给收款单和付款单的新增界面增加快捷收款或付款
This commit is contained in:
@@ -178,7 +178,7 @@
|
|||||||
getAction('/depotHead/debtList', params).then((res) => {
|
getAction('/depotHead/debtList', params).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.selectBillRows = res.data.rows
|
this.selectBillRows = res.data.rows
|
||||||
this.$emit('ok', record.id, this.selectBillRows)
|
this.$emit('ok', this.organType, record.id, this.selectBillRows)
|
||||||
this.selectBillRows = []
|
this.selectBillRows = []
|
||||||
this.close()
|
this.close()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -234,12 +234,14 @@ export const FinancialModalMixin = {
|
|||||||
workflowModalFormOk() {
|
workflowModalFormOk() {
|
||||||
this.close()
|
this.close()
|
||||||
},
|
},
|
||||||
waitNeedListOk(organId, selectBillRows) {
|
waitNeedListOk(organType, organId, selectBillRows) {
|
||||||
if(organId) {
|
if(organId) {
|
||||||
this.form.setFieldsValue({'organId': organId})
|
this.form.setFieldsValue({'organId': organId})
|
||||||
}
|
}
|
||||||
if (selectBillRows && selectBillRows.length > 0) {
|
if (selectBillRows && selectBillRows.length > 0) {
|
||||||
this.requestSubTableDataEx(selectBillRows, this.accountTable);
|
this.requestSubTableDataEx(selectBillRows, this.accountTable);
|
||||||
|
} else {
|
||||||
|
this.selectBeginNeed(organType)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onAdded(event) {
|
onAdded(event) {
|
||||||
@@ -305,7 +307,7 @@ export const FinancialModalMixin = {
|
|||||||
}
|
}
|
||||||
tab.dataSource = listEx
|
tab.dataSource = listEx
|
||||||
this.$nextTick(() => {
|
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) : ''
|
typeof success === 'function' ? success(res) : ''
|
||||||
tab.loading = false
|
tab.loading = false
|
||||||
@@ -331,6 +333,9 @@ export const FinancialModalMixin = {
|
|||||||
listEx.push(info)
|
listEx.push(info)
|
||||||
that.accountTable.dataSource = listEx
|
that.accountTable.dataSource = listEx
|
||||||
let changeAmount = info.eachAmount
|
let changeAmount = info.eachAmount
|
||||||
|
if(changeAmount) {
|
||||||
|
changeAmount = changeAmount.toFixed(2)
|
||||||
|
}
|
||||||
that.$nextTick(() => {
|
that.$nextTick(() => {
|
||||||
that.form.setFieldsValue({'totalPrice':changeAmount, 'changeAmount':changeAmount})
|
that.form.setFieldsValue({'totalPrice':changeAmount, 'changeAmount':changeAmount})
|
||||||
})
|
})
|
||||||
@@ -344,6 +349,10 @@ export const FinancialModalMixin = {
|
|||||||
that.$message.warning('请选择' + type + '!');
|
that.$message.warning('请选择' + type + '!');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
//选择-待收款或者待付款
|
||||||
|
handleWaitNeed(type) {
|
||||||
|
this.$refs.waitNeedList.show(type)
|
||||||
|
},
|
||||||
//保存并审核
|
//保存并审核
|
||||||
handleOkAndCheck() {
|
handleOkAndCheck() {
|
||||||
this.billStatus = '1'
|
this.billStatus = '1'
|
||||||
|
|||||||
@@ -72,6 +72,8 @@
|
|||||||
<span class="gap"></span>
|
<span class="gap"></span>
|
||||||
<a-button type="primary" icon="plus" @click="selectBeginNeed('客户')">选择期初</a-button>
|
<a-button type="primary" icon="plus" @click="selectBeginNeed('客户')">选择期初</a-button>
|
||||||
<span class="gap"></span>
|
<span class="gap"></span>
|
||||||
|
<a-button icon="link" @click="handleWaitNeed('客户')">待收款</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>
|
||||||
|
|||||||
@@ -72,6 +72,8 @@
|
|||||||
<span class="gap"></span>
|
<span class="gap"></span>
|
||||||
<a-button type="primary" icon="plus" @click="selectBeginNeed('供应商')">选择期初</a-button>
|
<a-button type="primary" icon="plus" @click="selectBeginNeed('供应商')">选择期初</a-button>
|
||||||
<span class="gap"></span>
|
<span class="gap"></span>
|
||||||
|
<a-button icon="link" @click="handleWaitNeed('供应商')">待付款</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