|
@@ -323,7 +323,7 @@
|
|
|
data() {
|
|
data() {
|
|
|
let formDef = {
|
|
let formDef = {
|
|
|
id: '',
|
|
id: '',
|
|
|
- payAmount: '',
|
|
|
|
|
|
|
+ payAmount: 0,
|
|
|
returnFiles: [],
|
|
returnFiles: [],
|
|
|
repliedFiles: [],
|
|
repliedFiles: [],
|
|
|
remark: '',
|
|
remark: '',
|
|
@@ -680,7 +680,7 @@
|
|
|
},
|
|
},
|
|
|
onchangeLink() {
|
|
onchangeLink() {
|
|
|
// this.getSendSaleOrderDetail(this.form.sendId);
|
|
// this.getSendSaleOrderDetail(this.form.sendId);
|
|
|
- this.form.type=''
|
|
|
|
|
|
|
+ this.form.type = '';
|
|
|
this.handleSetReturnSourceType();
|
|
this.handleSetReturnSourceType();
|
|
|
},
|
|
},
|
|
|
async contactDetail(id) {
|
|
async contactDetail(id) {
|
|
@@ -701,8 +701,7 @@
|
|
|
entrustedCode: '',
|
|
entrustedCode: '',
|
|
|
entrustedId: '',
|
|
entrustedId: '',
|
|
|
entrustedReceiveId: '',
|
|
entrustedReceiveId: '',
|
|
|
- entrustedReceiveCode: '',
|
|
|
|
|
-
|
|
|
|
|
|
|
+ entrustedReceiveCode: ''
|
|
|
});
|
|
});
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.inventoryTableref &&
|
|
this.$refs.inventoryTableref &&
|
|
@@ -1008,7 +1007,7 @@
|
|
|
];
|
|
];
|
|
|
if (
|
|
if (
|
|
|
!['40', '50'].includes(this.form.type) ||
|
|
!['40', '50'].includes(this.form.type) ||
|
|
|
- this.returnSourceType != 1
|
|
|
|
|
|
|
+ this.form.returnSourceType != 1
|
|
|
) {
|
|
) {
|
|
|
proAll.push(
|
|
proAll.push(
|
|
|
new Promise((resolve, reject) => {
|
|
new Promise((resolve, reject) => {
|
|
@@ -1039,10 +1038,11 @@
|
|
|
(this.$refs.inventoryTableref1 &&
|
|
(this.$refs.inventoryTableref1 &&
|
|
|
this.$refs.inventoryTableref1.getTableValue()) ||
|
|
this.$refs.inventoryTableref1.getTableValue()) ||
|
|
|
[];
|
|
[];
|
|
|
|
|
+
|
|
|
if (
|
|
if (
|
|
|
data.productList.length === 0 &&
|
|
data.productList.length === 0 &&
|
|
|
(!['40', '50'].includes(this.form.type) ||
|
|
(!['40', '50'].includes(this.form.type) ||
|
|
|
- this.returnSourceType != 1)
|
|
|
|
|
|
|
+ this.form.returnSourceType != 1)
|
|
|
) {
|
|
) {
|
|
|
return this.$message.error('至少选择一个退货产品');
|
|
return this.$message.error('至少选择一个退货产品');
|
|
|
}
|
|
}
|
|
@@ -1052,10 +1052,9 @@
|
|
|
let commitData = Object.assign({}, this.form, {
|
|
let commitData = Object.assign({}, this.form, {
|
|
|
totalAmount: this.totalAmount,
|
|
totalAmount: this.totalAmount,
|
|
|
productList: data.productList,
|
|
productList: data.productList,
|
|
|
|
|
+ payAmount:this.totalAmount,
|
|
|
redressProductList
|
|
redressProductList
|
|
|
});
|
|
});
|
|
|
- commitData.payAmount = data.payAmount;
|
|
|
|
|
- commitData.totalAmount = this.totalAmount;
|
|
|
|
|
// return;
|
|
// return;
|
|
|
if (this.isUpdate) {
|
|
if (this.isUpdate) {
|
|
|
UpdateReturnInformation(commitData)
|
|
UpdateReturnInformation(commitData)
|