Browse Source

增加已创建标签校验

master
zhaoxuebing 10 months ago
parent
commit
a5e51dd488
  1. 13
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

13
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -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

Loading…
Cancel
Save