From ffd519af6b02713a24483f5516f8b0e0092b6c44 Mon Sep 17 00:00:00 2001 From: 17602169347 Date: Thu, 16 Feb 2023 11:25:06 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scm/basicInformation/collection/Form.vue | 891 ++++---- .../scm/basicInformation/collection/index.vue | 710 +++--- .../scm/basicInformation/payment/index.vue | 1 + .../scm/basicInformation/poundlist/Form.vue | 893 ++++---- .../scm/basicInformation/poundlist/index.vue | 73 +- .../scm/basicInformation/saleorder/Form.vue | 1976 +++++++++-------- .../scm/basicInformation/saleorder/index.vue | 654 +++--- .../basicInformation/tradeupload/index.vue | 45 +- 8 files changed, 2835 insertions(+), 2408 deletions(-) diff --git a/SC-web/src/views/scm/basicInformation/collection/Form.vue b/SC-web/src/views/scm/basicInformation/collection/Form.vue index b557d824..8735795b 100644 --- a/SC-web/src/views/scm/basicInformation/collection/Form.vue +++ b/SC-web/src/views/scm/basicInformation/collection/Form.vue @@ -1,426 +1,511 @@ diff --git a/SC-web/src/views/scm/basicInformation/collection/index.vue b/SC-web/src/views/scm/basicInformation/collection/index.vue index baf671fb..3d8d6db0 100644 --- a/SC-web/src/views/scm/basicInformation/collection/index.vue +++ b/SC-web/src/views/scm/basicInformation/collection/index.vue @@ -1,323 +1,423 @@ diff --git a/SC-web/src/views/scm/basicInformation/payment/index.vue b/SC-web/src/views/scm/basicInformation/payment/index.vue index a94fc4d5..f517fdd2 100644 --- a/SC-web/src/views/scm/basicInformation/payment/index.vue +++ b/SC-web/src/views/scm/basicInformation/payment/index.vue @@ -44,6 +44,7 @@ + diff --git a/SC-web/src/views/scm/basicInformation/poundlist/Form.vue b/SC-web/src/views/scm/basicInformation/poundlist/Form.vue index 3f2c7379..146ce2c7 100644 --- a/SC-web/src/views/scm/basicInformation/poundlist/Form.vue +++ b/SC-web/src/views/scm/basicInformation/poundlist/Form.vue @@ -1,352 +1,349 @@ diff --git a/SC-web/src/views/scm/basicInformation/poundlist/index.vue b/SC-web/src/views/scm/basicInformation/poundlist/index.vue index 62b35058..70d19e2d 100644 --- a/SC-web/src/views/scm/basicInformation/poundlist/index.vue +++ b/SC-web/src/views/scm/basicInformation/poundlist/index.vue @@ -20,12 +20,16 @@
- 新增 + 新增 导出 批量删除 + 生成采购 + + 生成销售 +
@@ -35,40 +39,41 @@
- - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + - + 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 @@