Browse Source

申请 判断是否创建过标签 判断逻辑修改

master
陈薪名 11 months ago
parent
commit
1b11701b84
  1. 12
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  2. 9
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  3. 12
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

12
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -348,9 +348,15 @@ const buttonTableClick = async (val, row) => {
})
} else if (val == 'mainHandle') { //
if (row.packingNumber) {
isCreateLabel.value = true
}
await ProductionreturnRequestDetailApi.getProductionreturnRequestDetailPage({
masterId: row.id
}).then(res => {
if (res.list) {
if (res.list[0].packingNumber) {
isCreateLabel.value = true
}
}
})
if (!isCreateLabel.value) {
message.warning('请先创建标签')
return

9
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -350,6 +350,15 @@ const buttonTableClick = async (val, row) => {
})
} else if (val == 'mainHandle') { //
await ProductionreturnRequestDetailNoApi.getProductionreturnRequestDetailPage({
masterId: row.id
}).then(res => {
if (res.list) {
if (res.list[0].packingNumber) {
isCreateLabel.value = true
}
}
})
if (!isCreateLabel.value) {
message.warning('请先创建标签')
return

12
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -371,9 +371,15 @@ const buttonTableClick = async (val, row) => {
})
} else if (val == 'mainHandle') { //
if (row.packingNumber) {
isCreateLabel.value = true
}
await ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPage({
masterId: row.id
}).then(res => {
if (res.list) {
if (res.list[0].packingNumber) {
isCreateLabel.value = true
}
}
})
if (!isCreateLabel.value) {
message.warning('请先创建标签')
return

Loading…
Cancel
Save