|
@@ -752,7 +752,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//打开新增编辑弹框
|
|
//打开新增编辑弹框
|
|
|
- async open(type, row, sendId,isEntrustedReceive) {
|
|
|
|
|
|
|
+ async open(type, row, sendId, isEntrustedReceive) {
|
|
|
this.title = type === 'add' ? '新增' : '修改';
|
|
this.title = type === 'add' ? '新增' : '修改';
|
|
|
this.row = row;
|
|
this.row = row;
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
@@ -763,11 +763,12 @@
|
|
|
if (row && row?.id) {
|
|
if (row && row?.id) {
|
|
|
await this.getReturnSaleOrderrecordDetail(row?.id);
|
|
await this.getReturnSaleOrderrecordDetail(row?.id);
|
|
|
}
|
|
}
|
|
|
- if (sendId&&!isEntrustedReceive) {
|
|
|
|
|
|
|
+ if (sendId && !isEntrustedReceive) {
|
|
|
await this.getSendSaleOrderDetail(sendId);
|
|
await this.getSendSaleOrderDetail(sendId);
|
|
|
- }else{
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (sendId && isEntrustedReceive) {
|
|
|
this.form.returnSourceType = 2;
|
|
this.form.returnSourceType = 2;
|
|
|
- await this.getInfo({id:sendId})
|
|
|
|
|
|
|
+ await this.getInfo({ id: sendId });
|
|
|
}
|
|
}
|
|
|
this.isUpdate = type != 'add';
|
|
this.isUpdate = type != 'add';
|
|
|
},
|
|
},
|