给收款单和付款单的新增界面增加快捷收款或付款
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user