From 96e036672e2d76e1ffedaf4cdcb322ee52817262 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Thu, 27 Apr 2023 17:26:40 +0800 Subject: [PATCH] 2023-4-27 --- src/api/budget/prePlan.js | 33 ++ src/views/budget/components/addUpload.vue | 305 ++++++++++++++++++ src/views/budget/upload.vue | 98 ++++++ .../components/paymentRegistration.vue | 22 +- src/views/contract/contractList.vue | 30 +- 5 files changed, 481 insertions(+), 7 deletions(-) create mode 100644 src/api/budget/prePlan.js create mode 100644 src/views/budget/components/addUpload.vue create mode 100644 src/views/budget/upload.vue diff --git a/src/api/budget/prePlan.js b/src/api/budget/prePlan.js new file mode 100644 index 0000000..11f0e08 --- /dev/null +++ b/src/api/budget/prePlan.js @@ -0,0 +1,33 @@ +import request from '@/utils/request' + +export function index(params) { + return request({ + method: "get", + url: "/api/admin/pre_plan/index", + params + }) +} + +export function show(params) { + return request({ + method: "get", + url: "/api/admin/pre_plan/show", + params + }) +} + +export function save(data) { + return request({ + method: "post", + url: "/api/admin/pre_plan/save", + data + }) +} + +export function destroy(params) { + return request({ + method: "get", + url: "/api/admin/pre_plan/destroy", + params + }) +} diff --git a/src/views/budget/components/addUpload.vue b/src/views/budget/components/addUpload.vue new file mode 100644 index 0000000..b9c6cf5 --- /dev/null +++ b/src/views/budget/components/addUpload.vue @@ -0,0 +1,305 @@ + + + + + diff --git a/src/views/budget/upload.vue b/src/views/budget/upload.vue new file mode 100644 index 0000000..3645f53 --- /dev/null +++ b/src/views/budget/upload.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue index 9fc4fa6..2b86993 100644 --- a/src/views/contract/components/paymentRegistration.vue +++ b/src/views/contract/components/paymentRegistration.vue @@ -424,12 +424,32 @@ export default { audit_money: this.paymentRegistrationForm.audit_money, }; addFundLog(data).then((res) => { - this.isShowPaymentRegistration = false; //付款申请后同时更新一下合同中审计金额 editorContract({ id: this.contract.id, audit_money: this.form.audit_money, }).then((r) => { + this.$emit("paid",{ + name: this.contract?.name, + type: this.contract?.type, + number: this.contract?.number, + id: this.contract?.id, + reason: this.paymentRegistrationForm.remark, + yizhifucishu: this.actNumsTotal(), + yizhifujine: this.totalMoney(), + zongjia: this.totalApplyMoney() + }) + console.log({ + name: this.contract?.name, + type: this.contract?.type, + number: this.contract?.number, + id: this.contract?.id, + reason: this.paymentRegistrationForm.remark, + yizhifucishu: this.actNumsTotal(), + yizhifujine: this.totalMoney(), + zongjia: this.totalApplyMoney() + }) + this.isShowPaymentRegistration = false; Message({ type: "success", message: "操作成功", diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index 866b4dc..c4c113b 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -166,8 +166,8 @@ @@ -177,7 +177,7 @@