给收付款增加对供应商和客户期初收付款的功能
This commit is contained in:
@@ -264,6 +264,35 @@ export const FinancialModalMixin = {
|
|||||||
typeof success === 'function' ? success(res) : ''
|
typeof success === 'function' ? success(res) : ''
|
||||||
tab.loading = false
|
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() {
|
handleOkAndCheck() {
|
||||||
this.billStatus = '1'
|
this.billStatus = '1'
|
||||||
|
|||||||
@@ -66,6 +66,8 @@
|
|||||||
<div class="action-button">
|
<div class="action-button">
|
||||||
<a-button type="primary" icon="plus" @click="handleClickAdd">选择单据</a-button>
|
<a-button type="primary" icon="plus" @click="handleClickAdd">选择单据</a-button>
|
||||||
<span class="gap"></span>
|
<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>
|
<a-button icon="minus" @click="handleClear">清空</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@@ -66,6 +66,8 @@
|
|||||||
<div class="action-button">
|
<div class="action-button">
|
||||||
<a-button type="primary" icon="plus" @click="handleClickAdd">选择单据</a-button>
|
<a-button type="primary" icon="plus" @click="handleClickAdd">选择单据</a-button>
|
||||||
<span class="gap"></span>
|
<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>
|
<a-button icon="minus" @click="handleClear">清空</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
Reference in New Issue
Block a user