From 7774bae8dc35cb626d6296a4ca6a47694cc72cc4 Mon Sep 17 00:00:00 2001 From: "271556543@qq.com" <271556543@qq.com> Date: Mon, 25 Jul 2022 14:42:55 +0800 Subject: [PATCH] 2022.7.25 --- package.json | 3 +- src/api/contractSign/contractSign.js | 7 + src/components/XyDialog/index.vue | 11 +- src/main.js | 3 - .../contract/components/detailContract.vue | 8 + .../contract/components/printRegistration.vue | 269 ++++++++++++++---- src/views/contract/paymentPlan.vue | 71 +++++ 7 files changed, 315 insertions(+), 57 deletions(-) create mode 100644 src/views/contract/paymentPlan.vue diff --git a/package.json b/package.json index fd16603..c6ec39a 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,15 @@ "axios": "0.18.1", "core-js": "3.6.5", "element-ui": "2.13.2", + "html2canvas": "^1.4.1", "js-cookie": "2.2.0", "less": "^3.13.1", "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", + "print-js": "^1.6.0", "view-design": "^4.7.0", "vue": "2.6.10", - "vue-print-nb": "^1.7.5", "vue-router": "3.0.6", "vuex": "3.1.0", "wangeditor": "^4.7.12" diff --git a/src/api/contractSign/contractSign.js b/src/api/contractSign/contractSign.js index 31f07d1..139861e 100644 --- a/src/api/contractSign/contractSign.js +++ b/src/api/contractSign/contractSign.js @@ -8,3 +8,10 @@ export function addContractSign(data){ }) } +export function getContractSign(params){ + return request({ + method:'get', + url:'/api/admin/sign_plan/index', + params + }) +} diff --git a/src/components/XyDialog/index.vue b/src/components/XyDialog/index.vue index 7c31061..75a0525 100644 --- a/src/components/XyDialog/index.vue +++ b/src/components/XyDialog/index.vue @@ -29,6 +29,9 @@ export default { default:()=>{ return {} } + }, + okText:{ + type:String } }, data() { @@ -66,6 +69,9 @@ export default { type:'error' }) }) + }, + okClick(){ + this.$emit('on-ok') } }, render(h) { @@ -79,14 +85,15 @@ export default { footer slot: footerContent */ - const {footerRender,width,type,$scopedSlots,rules,form,showChange,isShow,title} = this + const {okText,okClick,footerRender,width,type,$scopedSlots,rules,form,showChange,isShow,title} = this return ( +
+
+ + + +