完善收付款单的选择期初按钮操作

This commit is contained in:
季圣华
2023-03-20 23:46:24 +08:00
parent c03ca0274a
commit 7eb8a7a528

View File

@@ -267,12 +267,13 @@ export const FinancialModalMixin = {
//选择期初 //选择期初
selectBeginNeed(type) { selectBeginNeed(type) {
let that = this let that = this
this.$confirm({ let info = type === '供应商'? '付款':'收款'
title: "确认操作", let organId = this.form.getFieldValue('organId')
content: "是否选择期初金额?", if(organId){
onOk: function () { this.$confirm({
let organId = that.form.getFieldValue('organId') title: "确认操作",
if(organId){ content: "是否选择期初金额,对期初进行" + info + "?",
onOk: function () {
let listEx = [] let listEx = []
let info = {} let info = {}
info.billNumber = 'QiChu' info.billNumber = 'QiChu'
@@ -283,15 +284,19 @@ export const FinancialModalMixin = {
info.eachAmount = res.data.eachAmount info.eachAmount = res.data.eachAmount
listEx.push(info) listEx.push(info)
that.accountTable.dataSource = listEx that.accountTable.dataSource = listEx
let changeAmount = info.eachAmount
that.$nextTick(() => {
that.form.setFieldsValue({'totalPrice':changeAmount, 'changeAmount':changeAmount})
})
}else{ }else{
that.$message.info(res.data) that.$message.info(res.data)
} }
}) })
} else {
that.$message.warning('请选择' + type + '');
} }
} })
}) } else {
that.$message.warning('请选择' + type + '');
}
}, },
//保存并审核 //保存并审核
handleOkAndCheck() { handleOkAndCheck() {