|
@@ -56,6 +56,10 @@
|
|
|
{{ getStatusInfo(row.status).label }}
|
|
{{ getStatusInfo(row.status).label }}
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+
|
|
|
|
|
+ <template v-slot:isMeasuring="{ row }">
|
|
|
|
|
+ <span>{{ row.isMeasuring == 1 ? "是" : "否"}}</span>
|
|
|
|
|
+ </template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
|
|
|
|
|
<template v-slot:footer v-if="type != 'detail' && itemData.sendStatus != 4">
|
|
<template v-slot:footer v-if="type != 'detail' && itemData.sendStatus != 4">
|
|
@@ -95,6 +99,7 @@
|
|
|
id: '',
|
|
id: '',
|
|
|
title: '',
|
|
title: '',
|
|
|
type: '',
|
|
type: '',
|
|
|
|
|
+ isReceiptDetail: true,
|
|
|
itemData: {},
|
|
itemData: {},
|
|
|
loading: null,
|
|
loading: null,
|
|
|
// 在制品发货状态:键为后端 status,值为 el-tag 显示配置
|
|
// 在制品发货状态:键为后端 status,值为 el-tag 显示配置
|
|
@@ -219,6 +224,14 @@
|
|
|
minWidth: 110,
|
|
minWidth: 110,
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
show: this.type == 'detail' ? true : false
|
|
show: this.type == 'detail' ? true : false
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'isMeasuring',
|
|
|
|
|
+ slot: 'isMeasuring',
|
|
|
|
|
+ label: '是否收货',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ show: this.type == 'receipt' && !this.isReceiptDetail ? true : false
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
@@ -236,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);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -256,6 +272,8 @@
|
|
|
|
|
|
|
|
if(this.type === 'receipt' && type) {
|
|
if(this.type === 'receipt' && type) {
|
|
|
params.detailType = type;
|
|
params.detailType = type;
|
|
|
|
|
+ params.status = 3;
|
|
|
|
|
+ // isReceiptDetail 在 open() 里已经重置,此处只处理 params
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
await pleaseEntrustGoodsDetail(params).then(async (res) => {
|
|
await pleaseEntrustGoodsDetail(params).then(async (res) => {
|