给收款单和付款单的新增界面增加快捷收款或付款

This commit is contained in:
jishenghua
2025-04-29 15:12:48 +08:00
parent 6ef8848bf4
commit 8814917af2
4 changed files with 16 additions and 3 deletions

View File

@@ -178,7 +178,7 @@
getAction('/depotHead/debtList', params).then((res) => {
if (res.code === 200) {
this.selectBillRows = res.data.rows
this.$emit('ok', record.id, this.selectBillRows)
this.$emit('ok', this.organType, record.id, this.selectBillRows)
this.selectBillRows = []
this.close()
}

View File

@@ -234,12 +234,14 @@ export const FinancialModalMixin = {
workflowModalFormOk() {
this.close()
},
waitNeedListOk(organId, selectBillRows) {
waitNeedListOk(organType, organId, selectBillRows) {
if(organId) {
this.form.setFieldsValue({'organId': organId})
}
if (selectBillRows && selectBillRows.length > 0) {
this.requestSubTableDataEx(selectBillRows, this.accountTable);
} else {
this.selectBeginNeed(organType)
}
},
onAdded(event) {
@@ -305,7 +307,7 @@ export const FinancialModalMixin = {
}
tab.dataSource = listEx
this.$nextTick(() => {
this.form.setFieldsValue({'totalPrice':changeAmount, 'changeAmount':changeAmount})
this.form.setFieldsValue({'totalPrice':changeAmount.toFixed(2), 'changeAmount':changeAmount.toFixed(2)})
});
typeof success === 'function' ? success(res) : ''
tab.loading = false
@@ -331,6 +333,9 @@ export const FinancialModalMixin = {
listEx.push(info)
that.accountTable.dataSource = listEx
let changeAmount = info.eachAmount
if(changeAmount) {
changeAmount = changeAmount.toFixed(2)
}
that.$nextTick(() => {
that.form.setFieldsValue({'totalPrice':changeAmount, 'changeAmount':changeAmount})
})
@@ -344,6 +349,10 @@ export const FinancialModalMixin = {
that.$message.warning('请选择' + type + '');
}
},
//选择-待收款或者待付款
handleWaitNeed(type) {
this.$refs.waitNeedList.show(type)
},
//保存并审核
handleOkAndCheck() {
this.billStatus = '1'

View File

@@ -72,6 +72,8 @@
<span class="gap"></span>
<a-button type="primary" icon="plus" @click="selectBeginNeed('客户')">选择期初</a-button>
<span class="gap"></span>
<a-button icon="link" @click="handleWaitNeed('客户')">待收款</a-button>
<span class="gap"></span>
<a-button icon="minus" @click="handleClear">清空</a-button>
</div>
</a-col>

View File

@@ -72,6 +72,8 @@
<span class="gap"></span>
<a-button type="primary" icon="plus" @click="selectBeginNeed('供应商')">选择期初</a-button>
<span class="gap"></span>
<a-button icon="link" @click="handleWaitNeed('供应商')">待付款</a-button>
<span class="gap"></span>
<a-button icon="minus" @click="handleClear">清空</a-button>
</div>
</a-col>