|
|
@@ -696,12 +696,13 @@
|
|
|
});
|
|
|
|
|
|
if (type) return;
|
|
|
- if (data.entrustedCode) {
|
|
|
- await this.getInfo({ id: data.entrustedId });
|
|
|
- this.form.returnSourceType = 2;
|
|
|
- this.loading = false;
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (data.entrustedCode) {
|
|
|
+ // this.form.returnSourceType = 2;
|
|
|
+ // await this.getInfo({ id: data.entrustedId });
|
|
|
+
|
|
|
+ // this.loading = false;
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
this.loading = false;
|
|
|
if (data) {
|
|
|
this.$nextTick(() => {
|
|
|
@@ -859,9 +860,11 @@
|
|
|
productListData.push(item.productName);
|
|
|
}
|
|
|
});
|
|
|
- console.log(productListData)
|
|
|
+ console.log(productListData);
|
|
|
if (productListData.length) {
|
|
|
- return this.$message.error(productListData.toString() + ' 退货数量不能为空!');
|
|
|
+ return this.$message.error(
|
|
|
+ productListData.toString() + ' 退货数量不能为空!'
|
|
|
+ );
|
|
|
}
|
|
|
if (orderIds?.length) {
|
|
|
commitData.orderIds = Array.from(new Set(orderIds)).toString();
|