|
|
@ -473,18 +473,18 @@ const buttonTableClick = async (val, row) => { |
|
|
|
|
|
|
|
} else if (val == 'mainHandle') { // 处理 |
|
|
|
// 判断 是否已创建标签 |
|
|
|
// let isCreateLabel = false |
|
|
|
// await PackageApi.getPackagePage({ |
|
|
|
// requestNumber: row.number |
|
|
|
// }).then(res => { |
|
|
|
// if (res) { |
|
|
|
// if (res.list.length > 0) isCreateLabel = true |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// if (!isCreateLabel) { |
|
|
|
// message.warning('请先创建标签') |
|
|
|
// return |
|
|
|
// } |
|
|
|
let isCreateLabel = false |
|
|
|
await PackageApi.getPackagePage({ |
|
|
|
requestNumber: row.number |
|
|
|
}).then(res => { |
|
|
|
if (res) { |
|
|
|
if (res.list.length > 0) isCreateLabel = true |
|
|
|
} |
|
|
|
}) |
|
|
|
if (!isCreateLabel) { |
|
|
|
message.warning('请先创建标签') |
|
|
|
return |
|
|
|
} |
|
|
|
tableObject.loading = true |
|
|
|
ProductionreturnRequestMainNoApi.handle(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|