diff --git a/base-vue/package.json b/base-vue/package.json index 9d413b3..8fec501 100644 --- a/base-vue/package.json +++ b/base-vue/package.json @@ -21,8 +21,10 @@ "bpmn-js": "^6.0.4", "bpmn-js-properties-panel": "^0.33.0", "camunda-bpmn-moddle": "^4.3.0", + "docxtemplater": "^3.60.2", "echarts": "^5.4.2", "element-ui": "^2.15.14", + "file-saver": "^2.0.5", "gulp": "4.0.2", "gulp-concat": "2.6.1", "gulp-load-plugins": "2.0.5", @@ -31,6 +33,7 @@ "lodash": "4.17.5", "node-sass": "^6.0.1", "npm": "^6.9.0", + "pizzip": "^3.1.8", "pubsub-js": "^1.9.4", "sass-loader": "6.0.6", "svg-sprite-loader": "3.7.3", diff --git a/base-vue/src/views/modules/contract/temp-add-or-update.vue b/base-vue/src/views/modules/contract/temp-add-or-update.vue index 1de420c..d03e06b 100644 --- a/base-vue/src/views/modules/contract/temp-add-or-update.vue +++ b/base-vue/src/views/modules/contract/temp-add-or-update.vue @@ -82,13 +82,16 @@ 取消 - 打印 + 导出为 Word 文档 diff --git a/base-vue/src/views/modules/contract/temp-add-or-update的副本.vue b/base-vue/src/views/modules/contract/temp-add-or-update的副本.vue new file mode 100644 index 0000000..75c22b8 --- /dev/null +++ b/base-vue/src/views/modules/contract/temp-add-or-update的副本.vue @@ -0,0 +1,249 @@ + + + + + \ No newline at end of file diff --git a/base-vue/static/word/template.docx b/base-vue/static/word/template.docx new file mode 100644 index 0000000..657e759 Binary files /dev/null and b/base-vue/static/word/template.docx differ diff --git a/base-vue/yarn.lock b/base-vue/yarn.lock index a70d65b..7a4f7ce 100644 --- a/base-vue/yarn.lock +++ b/base-vue/yarn.lock @@ -92,6 +92,11 @@ resolved "https://registry.yarnpkg.com/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz#9aa30c04db212a9a0649d6ae6fd50accc40748a1" integrity sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ== +"@xmldom/xmldom@^0.9.7": + version "0.9.8" + resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.9.8.tgz#1471e82bdff9e8f20ee8bbe60d4ffa8a516e78d8" + integrity sha512-p96FSY54r+WJ50FIOsCOjyj/wavs8921hG5+kVMmZgKcvIKxMXHTrjNJvRgWa/zuX3B6t2lijLNFaOyuxUH+2A== + JSONStream@^1.3.4, JSONStream@^1.3.5: version "1.3.5" resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" @@ -3495,6 +3500,13 @@ doctrine@^2.0.0: dependencies: esutils "^2.0.2" +docxtemplater@^3.60.2: + version "3.60.2" + resolved "https://registry.yarnpkg.com/docxtemplater/-/docxtemplater-3.60.2.tgz#597d0a3df6423623f48bf4be3f3a225ff9d96c35" + integrity sha512-x6p8Vr5FgZn0ibmFJz4IS9u8KANQKLzhrp3EMxMvzBAxFW/c3kYhJKFNN8QzjJzXqKO2+XWCN1KTcaSKjqtnqg== + dependencies: + "@xmldom/xmldom" "^0.9.7" + dom-converter@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768" @@ -4545,6 +4557,11 @@ file-loader@1.1.4: loader-utils "^1.0.2" schema-utils "^0.3.0" +file-saver@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-2.0.5.tgz#d61cfe2ce059f414d899e9dd6d4107ee25670c38" + integrity sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA== + file-uri-to-path@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" @@ -9336,6 +9353,11 @@ pacote@^9.1.0, pacote@^9.5.12, pacote@^9.5.3: unique-filename "^1.1.1" which "^1.3.1" +pako@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pako/-/pako-2.1.0.tgz#266cc37f98c7d883545d11335c00fbd4062c9a86" + integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug== + pako@~1.0.5: version "1.0.11" resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" @@ -9581,6 +9603,13 @@ pinkie@^2.0.0: resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== +pizzip@^3.1.8: + version "3.1.8" + resolved "https://registry.yarnpkg.com/pizzip/-/pizzip-3.1.8.tgz#2028944e4845cb08fb79412939fc41d842659858" + integrity sha512-Nynadaz6/o1cmXDQGKqmTnbeaY10BGNc1PPOZYJMfLcjWfVJQ1ARngpVO+BrrRl/WUNIj0V9uJNrP72mkfsY5A== + dependencies: + pako "^2.1.0" + pkg-dir@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4"