Browse Source

处理时校验是否创建标签

hella_online_20240829
chenfang 3 months ago
parent
commit
973a6c6b44
  1. 13
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

13
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

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

Loading…
Cancel
Save