From 7eb8a7a528de446081a20709dbe995eaf8a7c191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Mon, 20 Mar 2023 23:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=94=B6=E4=BB=98=E6=AC=BE?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E9=80=89=E6=8B=A9=E6=9C=9F=E5=88=9D=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../financial/mixins/FinancialModalMixin.js | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/jshERP-web/src/views/financial/mixins/FinancialModalMixin.js b/jshERP-web/src/views/financial/mixins/FinancialModalMixin.js index ec676381..2908c2d7 100644 --- a/jshERP-web/src/views/financial/mixins/FinancialModalMixin.js +++ b/jshERP-web/src/views/financial/mixins/FinancialModalMixin.js @@ -267,12 +267,13 @@ export const FinancialModalMixin = { //选择期初 selectBeginNeed(type) { let that = this - this.$confirm({ - title: "确认操作", - content: "是否选择期初金额?", - onOk: function () { - let organId = that.form.getFieldValue('organId') - if(organId){ + let info = type === '供应商'? '付款':'收款' + let organId = this.form.getFieldValue('organId') + if(organId){ + this.$confirm({ + title: "确认操作", + content: "是否选择期初金额,对期初进行" + info + "?", + onOk: function () { let listEx = [] let info = {} info.billNumber = 'QiChu' @@ -283,15 +284,19 @@ export const FinancialModalMixin = { info.eachAmount = res.data.eachAmount listEx.push(info) that.accountTable.dataSource = listEx + let changeAmount = info.eachAmount + that.$nextTick(() => { + that.form.setFieldsValue({'totalPrice':changeAmount, 'changeAmount':changeAmount}) + }) }else{ that.$message.info(res.data) } }) - } else { - that.$message.warning('请选择' + type + '!'); } - } - }) + }) + } else { + that.$message.warning('请选择' + type + '!'); + } }, //保存并审核 handleOkAndCheck() {