From 2a68c32b93b6ac300b496c2a4dfb38a72b625bbe Mon Sep 17 00:00:00 2001 From: tengxi <971623072@qq.com> Date: Thu, 16 Feb 2023 15:16:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scm/basicInformation/arinvoices/index.vue | 38 +++++--- .../scm/basicInformation/paymentdoc/Form.vue | 91 ++++++++++++------- .../scm/basicInformation/paymentdoc/index.vue | 65 +++++++++---- .../scm/basicInformation/receiptin/Form.vue | 4 +- .../basicInformation/reservoirarea/Form.vue | 14 +-- .../scm/basicInformation/vehicle/Form.vue | 43 ++++----- .../scm/basicInformation/vehicle/index.vue | 2 +- 7 files changed, 160 insertions(+), 97 deletions(-) diff --git a/SC-web/src/views/scm/basicInformation/arinvoices/index.vue b/SC-web/src/views/scm/basicInformation/arinvoices/index.vue index 90eab4e0..fd9891c8 100644 --- a/SC-web/src/views/scm/basicInformation/arinvoices/index.vue +++ b/SC-web/src/views/scm/basicInformation/arinvoices/index.vue @@ -26,6 +26,17 @@ 批量删除 + 编辑 + + 删除 + + 审核 + + 弃审 + + 提交 + +
@@ -35,36 +46,37 @@
- - + + - - - - - - - - - - @@ -74,7 +86,7 @@ width="150" > 删除 - 详情 diff --git a/SC-web/src/views/scm/basicInformation/paymentdoc/Form.vue b/SC-web/src/views/scm/basicInformation/paymentdoc/Form.vue index d0e6f513..d83d61a3 100644 --- a/SC-web/src/views/scm/basicInformation/paymentdoc/Form.vue +++ b/SC-web/src/views/scm/basicInformation/paymentdoc/Form.vue @@ -10,21 +10,21 @@ + placeholder="系统自动生成" readonly :disabled="true"> - - - + + + + + + - - - + + + @@ -33,7 +33,7 @@ :columnOptions="supplierNamecolumnOptions" propsValue="supplier_name" relationField="supplier_name" popupType="dialog" popupTitle="选择数据" popupWidth="800px" - hasPage :pageSize="20" + hasPage :pageSize="20" @change="popupSelectourceNo"> > @@ -54,7 +54,7 @@ + placeholder="请输入" readonly clearable :style='{"width":"100%"}' @input="inputChange()" :disabled="true"> @@ -155,26 +155,26 @@

- + @@ -182,7 +182,7 @@ - + - + @@ -277,10 +277,12 @@ import { getDictionaryDataSelector } from '@/api/systemData/dictionary' export default { + components: {}, props: [], data() { return { + excludeFields: [], visible: false, loading: false, isDetail: false, @@ -308,13 +310,21 @@ activeshpeyb: '0', rules: { - collectionAccount: [ + supplierName: [ + { + required: true, + message: '请输入供应商', + trigger: 'blur' + } + ], + dueDate: [ { required: true, - message: '请输入', + message: '请输入应付日期', trigger: 'blur' } ], + amount: [{ required: true, message: '请输入', trigger: 'blur' }] }, @@ -355,8 +365,25 @@ mounted() { }, methods: { + + inputChange(value){ + var amount = 0; + for (let i = 0; i < this.dataForm.paymentdoc_item0List.length; i++) { + amount = amount + parseFloat(this.dataForm.paymentdoc_item0List[i].amount); + } + this.dataForm.ramount = amount; + + }, + popupSelectourceNo(e, d) { + this.excludeFields = []; + this.dataForm.paymentdoc_item0List = []; + }, + popupSelectorder(a, b) { + var excludeFields = []; + var amount = 0; for (let i = 0; i < this.dataForm.paymentdoc_item0List.length; i++) { + excludeFields.push(this.dataForm.paymentdoc_item0List[i].purchaseorderId); if (a == this.dataForm.paymentdoc_item0List[i].purchaseorderId) { this.dataForm.paymentdoc_item0List[i].lastModifyUserId = b.contract_code this.dataForm.paymentdoc_item0List[i].lastModifyUserName = b.num @@ -364,10 +391,12 @@ this.dataForm.paymentdoc_item0List[i].orgnizeId = b.rate this.dataForm.paymentdoc_item0List[i].deleteUserId = b.not_amount - this.dataForm.ramount = parseFloat(this.dataForm.ramount) + parseFloat(b.amount) - } + amount = amount + parseFloat(this.dataForm.paymentdoc_item0List[i].amount); } + this.dataForm.ramount = amount; + + this.excludeFields = excludeFields; }, paymentdoc_item0Exist() { diff --git a/SC-web/src/views/scm/basicInformation/paymentdoc/index.vue b/SC-web/src/views/scm/basicInformation/paymentdoc/index.vue index a0af4bbd..6fa5d194 100644 --- a/SC-web/src/views/scm/basicInformation/paymentdoc/index.vue +++ b/SC-web/src/views/scm/basicInformation/paymentdoc/index.vue @@ -30,12 +30,20 @@
+ + 编辑 + 新增 导出 批量删除 + 审核 + + 弃审 + + 付款
@@ -47,63 +55,76 @@
- - + + - - - - - - - - - - - - - + width="200"> @@ -222,6 +243,10 @@ }).then(res => { var _list = [] for (let i = 0; i < res.data.list.length; i++) { + res.data.list[i].businessDate = res.data.list[i].businessDate ? res.data.list[i].businessDate.substring(0, + 10) : ''; + res.data.list[i].dueDate = res.data.list[i].dueDate ? res.data.list[i].dueDate + .substring(0, 10) : ''; let _data = res.data.list[i] _list.push(_data) } diff --git a/SC-web/src/views/scm/basicInformation/receiptin/Form.vue b/SC-web/src/views/scm/basicInformation/receiptin/Form.vue index 4ca415a2..b31988b5 100644 --- a/SC-web/src/views/scm/basicInformation/receiptin/Form.vue +++ b/SC-web/src/views/scm/basicInformation/receiptin/Form.vue @@ -48,7 +48,7 @@
- + @@ -118,7 +118,7 @@ + relationField="areaname" popupType="dialog" popupWidth="800px" @change="popupSelect3">
diff --git a/SC-web/src/views/scm/basicInformation/reservoirarea/Form.vue b/SC-web/src/views/scm/basicInformation/reservoirarea/Form.vue index dac14085..b00598be 100644 --- a/SC-web/src/views/scm/basicInformation/reservoirarea/Form.vue +++ b/SC-web/src/views/scm/basicInformation/reservoirarea/Form.vue @@ -7,7 +7,7 @@