diff --git a/package.json b/package.json index d392773..6e5e021 100644 --- a/package.json +++ b/package.json @@ -62,15 +62,16 @@ "url": "^0.11.3", "video.js": "^7.21.5", "vue": "3.4.21", + "vue-baidu-map-3x": "^1.0.34", "vue-dompurify-html": "^4.1.4", "vue-i18n": "9.10.2", "vue-router": "^4.3.0", "vue-types": "^5.1.1", + "vue-ueditor-wrap": "^3.0.8", + "vue3-print-nb": "^0.1.4", "vuedraggable": "^4.1.0", "web-storage-cache": "^1.1.1", - "xml-js": "^1.6.11", - "vue-ueditor-wrap": "^3.0.8", - "vue-baidu-map-3x": "^1.0.34" + "xml-js": "^1.6.11" }, "devDependencies": { "@commitlint/cli": "^19.0.1", @@ -85,8 +86,8 @@ "@types/qs": "^6.9.12", "@typescript-eslint/eslint-plugin": "^7.1.0", "@typescript-eslint/parser": "^7.1.0", - "@unocss/transformer-variant-group": "^0.58.5", "@unocss/eslint-config": "^0.57.4", + "@unocss/transformer-variant-group": "^0.58.5", "@vitejs/plugin-legacy": "^5.3.1", "@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue-jsx": "^3.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ba3ff2f..701c3d9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -134,6 +134,9 @@ dependencies: vue-ueditor-wrap: specifier: ^3.0.8 version: 3.0.8(vue@3.4.21) + vue3-print-nb: + specifier: ^0.1.4 + version: 0.1.4(typescript@5.3.3) vuedraggable: specifier: ^4.1.0 version: 4.1.0(vue@3.4.21) @@ -9412,6 +9415,14 @@ packages: vue: 3.4.21(typescript@5.3.3) dev: false + /vue3-print-nb@0.1.4(typescript@5.3.3): + resolution: {integrity: sha512-LExI7viEzplR6ZKQ2b+V4U0cwGYbVD4fut/XHvk3UPGlT5CcvIGs6VlwGp107aKgk6P8Pgx4rco3Rehv2lti3A==} + dependencies: + vue: 3.4.21(typescript@5.3.3) + transitivePeerDependencies: + - typescript + dev: false + /vue@3.4.21(typescript@5.3.3): resolution: {integrity: sha512-5hjyV/jLEIKD/jYl4cavMcnzKwjMKohureP8ejn3hhEjwhWIhWeuzL2kJAjzl/WyVsgPY56Sy4Z40C3lVshxXA==} peerDependencies: diff --git a/src/main.ts b/src/main.ts index e3267c6..6b9e681 100644 --- a/src/main.ts +++ b/src/main.ts @@ -43,10 +43,13 @@ import VueUeditorWrap from 'vue-ueditor-wrap' import VueDOMPurifyHTML from 'vue-dompurify-html' // 解决v-html 的安全隐患 +import print from 'vue3-print-nb' + // 创建实例 const setupAll = async () => { const app = createApp(App) app.use(VueUeditorWrap) + app.use(print) await setupI18n(app) diff --git a/src/views/crm/crmcontract/ContractPrint.vue b/src/views/crm/crmcontract/ContractPrint.vue new file mode 100644 index 0000000..d0e368a --- /dev/null +++ b/src/views/crm/crmcontract/ContractPrint.vue @@ -0,0 +1,415 @@ + + + + \ No newline at end of file diff --git a/src/views/crm/crmcontract/index.vue b/src/views/crm/crmcontract/index.vue index 6e735df..2fd543f 100644 --- a/src/views/crm/crmcontract/index.vue +++ b/src/views/crm/crmcontract/index.vue @@ -94,13 +94,21 @@ > 新增 + + 打印 + - + \ No newline at end of file + +