|
@@ -99,6 +99,7 @@
|
|
|
id: '',
|
|
id: '',
|
|
|
title: '',
|
|
title: '',
|
|
|
type: '',
|
|
type: '',
|
|
|
|
|
+ isReceiptDetail: true,
|
|
|
itemData: {},
|
|
itemData: {},
|
|
|
loading: null,
|
|
loading: null,
|
|
|
// 在制品发货状态:键为后端 status,值为 el-tag 显示配置
|
|
// 在制品发货状态:键为后端 status,值为 el-tag 显示配置
|
|
@@ -230,7 +231,7 @@
|
|
|
label: '是否收货',
|
|
label: '是否收货',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
- show: this.type == 'receipt' ? true : false
|
|
|
|
|
|
|
+ show: this.type == 'receipt' && !this.isReceiptDetail ? true : false
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
@@ -248,6 +249,9 @@
|
|
|
this.title = this.type != 'receipt' ? '发货单' : '收货单';
|
|
this.title = this.type != 'receipt' ? '发货单' : '收货单';
|
|
|
this.itemData = item;
|
|
this.itemData = item;
|
|
|
this.id = item.id;
|
|
this.id = item.id;
|
|
|
|
|
+ // 重置 isReceiptDetail:仅当 type 为 receipt 且传入了 detailType 时,才是收货操作(false)
|
|
|
|
|
+ // 其余情况(收货详情、发货、详情等)保持为 true
|
|
|
|
|
+ this.isReceiptDetail = !(type === 'receipt' && detailType);
|
|
|
this.getDetail(item.id, detailType);
|
|
this.getDetail(item.id, detailType);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -269,6 +273,7 @@
|
|
|
if(this.type === 'receipt' && type) {
|
|
if(this.type === 'receipt' && type) {
|
|
|
params.detailType = type;
|
|
params.detailType = type;
|
|
|
params.status = 3;
|
|
params.status = 3;
|
|
|
|
|
+ // isReceiptDetail 在 open() 里已经重置,此处只处理 params
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
await pleaseEntrustGoodsDetail(params).then(async (res) => {
|
|
await pleaseEntrustGoodsDetail(params).then(async (res) => {
|