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

新增收款单bug

parent ddcc0718
...@@ -1136,13 +1136,16 @@ export default { ...@@ -1136,13 +1136,16 @@ export default {
this.$modal.msgError(this.$t('请添加未收客户款项')); this.$modal.msgError(this.$t('请添加未收客户款项'));
return 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 => { params.receiptAccountList.map(v => {
delete v.discountTotal delete v.discountTotal
v.writeOffRate = Number(v.writeOffRate) v.writeOffRate = Number(v.writeOffRate)
return v return v
}) })
delete params.receivableDetail delete params.receivableDetail
if (addType === 1) { if (addType === 1) {
let fieldsToValidate = ['customerId', 'departmentId', 'salesmanId']; // 部分字段校验 保存草稿用 let fieldsToValidate = ['customerId', 'departmentId', 'salesmanId']; // 部分字段校验 保存草稿用
Promise.all( Promise.all(
......
...@@ -806,7 +806,7 @@ export default { ...@@ -806,7 +806,7 @@ export default {
}) })
.then(() => { .then(() => {
this.$modal.msgSuccess(this.$t('核销成功')); this.$modal.msgSuccess(this.$t('核销成功'));
this.$router.back(); this.$store.dispatch('tagsView/delCurrentView');
}) })
.catch(() => {}); .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