Commit a741ccc9 authored by 我在何方's avatar 我在何方

新增收款单bug

parent ddcc0718
......@@ -1136,13 +1136,16 @@ export default {
this.$modal.msgError(this.$t('请添加未收客户款项'));
return
}
params.receiptAccountList.length = params.receiptAccountList.length - 1
// params.receiptAccountList.length = params.receiptAccountList.length - 1
params.receiptAccountList.splice(params.receiptAccountList.length - 1,1)
params.receiptAccountList.map(v => {
delete v.discountTotal
v.writeOffRate = Number(v.writeOffRate)
return v
})
delete params.receivableDetail
if (addType === 1) {
let fieldsToValidate = ['customerId', 'departmentId', 'salesmanId']; // 部分字段校验 保存草稿用
Promise.all(
......
......@@ -806,7 +806,7 @@ export default {
})
.then(() => {
this.$modal.msgSuccess(this.$t('核销成功'));
this.$router.back();
this.$store.dispatch('tagsView/delCurrentView');
})
.catch(() => {});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment