完善收付款单的选择期初按钮操作
This commit is contained in:
@@ -267,12 +267,13 @@ export const FinancialModalMixin = {
|
|||||||
//选择期初
|
//选择期初
|
||||||
selectBeginNeed(type) {
|
selectBeginNeed(type) {
|
||||||
let that = this
|
let that = this
|
||||||
|
let info = type === '供应商'? '付款':'收款'
|
||||||
|
let organId = this.form.getFieldValue('organId')
|
||||||
|
if(organId){
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: "确认操作",
|
title: "确认操作",
|
||||||
content: "是否选择期初金额?",
|
content: "是否选择期初金额,对期初进行" + info + "?",
|
||||||
onOk: function () {
|
onOk: function () {
|
||||||
let organId = that.form.getFieldValue('organId')
|
|
||||||
if(organId){
|
|
||||||
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 {
|
} else {
|
||||||
that.$message.warning('请选择' + type + '!');
|
that.$message.warning('请选择' + type + '!');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
//保存并审核
|
//保存并审核
|
||||||
handleOkAndCheck() {
|
handleOkAndCheck() {
|
||||||
|
|||||||
Reference in New Issue
Block a user