|
@ -472,6 +472,19 @@ const buttonTableClick = async (val, row) => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
} else if (val == 'mainHandle') { // 处理 |
|
|
} 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 |
|
|
|
|
|
} |
|
|
await message.confirm('确认要处理吗?') |
|
|
await message.confirm('确认要处理吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
RelegateRequestMainApi.handle(row.masterId).then(() => { |
|
|
RelegateRequestMainApi.handle(row.masterId).then(() => { |
|
|