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