From 5810cd953d01c43c4677331d7da9ec2890f8e1f2 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 01:48:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E6=94=B6=E4=BB=98=E6=AC=BE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AF=B9=E4=BE=9B=E5=BA=94=E5=95=86=E5=92=8C=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E6=9C=9F=E5=88=9D=E6=94=B6=E4=BB=98=E6=AC=BE=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../financial/mixins/FinancialModalMixin.js | 29 +++++++++++++++++++ .../views/financial/modules/MoneyInModal.vue | 2 ++ .../views/financial/modules/MoneyOutModal.vue | 2 ++ 3 files changed, 33 insertions(+) diff --git a/jshERP-web/src/views/financial/mixins/FinancialModalMixin.js b/jshERP-web/src/views/financial/mixins/FinancialModalMixin.js index 755f504f..ec676381 100644 --- a/jshERP-web/src/views/financial/mixins/FinancialModalMixin.js +++ b/jshERP-web/src/views/financial/mixins/FinancialModalMixin.js @@ -264,6 +264,35 @@ export const FinancialModalMixin = { typeof success === 'function' ? success(res) : '' tab.loading = false }, + //选择期初 + selectBeginNeed(type) { + let that = this + this.$confirm({ + title: "确认操作", + content: "是否选择期初金额?", + onOk: function () { + let organId = that.form.getFieldValue('organId') + if(organId){ + let listEx = [] + let info = {} + info.billNumber = 'QiChu' + getAction('/supplier/getBeginNeedByOrganId', {'organId': organId}).then((res)=>{ + if(res.code === 200){ + info.needDebt = res.data.needDebt + info.finishDebt = res.data.finishDebt + info.eachAmount = res.data.eachAmount + listEx.push(info) + that.accountTable.dataSource = listEx + }else{ + that.$message.info(res.data) + } + }) + } else { + that.$message.warning('请选择' + type + '!'); + } + } + }) + }, //保存并审核 handleOkAndCheck() { this.billStatus = '1' diff --git a/jshERP-web/src/views/financial/modules/MoneyInModal.vue b/jshERP-web/src/views/financial/modules/MoneyInModal.vue index 3e08178f..4e77ff2d 100644 --- a/jshERP-web/src/views/financial/modules/MoneyInModal.vue +++ b/jshERP-web/src/views/financial/modules/MoneyInModal.vue @@ -66,6 +66,8 @@
diff --git a/jshERP-web/src/views/financial/modules/MoneyOutModal.vue b/jshERP-web/src/views/financial/modules/MoneyOutModal.vue index fcb2d32f..34e72aee 100644 --- a/jshERP-web/src/views/financial/modules/MoneyOutModal.vue +++ b/jshERP-web/src/views/financial/modules/MoneyOutModal.vue @@ -66,6 +66,8 @@