给收付款增加对供应商和客户期初收付款的功能

This commit is contained in:
季圣华 2023-03-20 01:48:07 +08:00
parent b8cfcdcac6
commit 5810cd953d
3 changed files with 33 additions and 0 deletions

View File

@ -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'

View File

@ -66,6 +66,8 @@
<div class="action-button">
<a-button type="primary" icon="plus" @click="handleClickAdd">选择单据</a-button>
<span class="gap"></span>
<a-button type="primary" icon="plus" @click="selectBeginNeed('客户')">选择期初</a-button>
<span class="gap"></span>
<a-button icon="minus" @click="handleClear">清空</a-button>
</div>
</a-col>

View File

@ -66,6 +66,8 @@
<div class="action-button">
<a-button type="primary" icon="plus" @click="handleClickAdd">选择单据</a-button>
<span class="gap"></span>
<a-button type="primary" icon="plus" @click="selectBeginNeed('供应商')">选择期初</a-button>
<span class="gap"></span>
<a-button icon="minus" @click="handleClear">清空</a-button>
</div>
</a-col>