|
@ -277,6 +277,19 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'delete') { // 删除 |
|
|
} else if (val == 'delete') { // 删除 |
|
|
handleDelete(row.id) |
|
|
handleDelete(row.id) |
|
|
} else if( val == 'cjbq'){// 创建标签 |
|
|
} else if( val == 'cjbq'){// 创建标签 |
|
|
|
|
|
// 判断 是否已创建标签 |
|
|
|
|
|
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 |
|
|
|
|
|
} |
|
|
console.log("列表-操作按钮事件-创建标签") |
|
|
console.log("列表-操作按钮事件-创建标签") |
|
|
detatableData.params = { |
|
|
detatableData.params = { |
|
|
masterId:row.id |
|
|
masterId:row.id |
|
|