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') { // } else if (val == 'mainHandle') { //
if (row.packingNumber) { await ProductionreturnRequestDetailApi.getProductionreturnRequestDetailPage({
isCreateLabel.value = true masterId: row.id
} }).then(res => {
if (res.list) {
if (res.list[0].packingNumber) {
isCreateLabel.value = true
}
}
})
if (!isCreateLabel.value) { if (!isCreateLabel.value) {
message.warning('请先创建标签') message.warning('请先创建标签')
return return

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

@ -350,6 +350,15 @@ const buttonTableClick = async (val, row) => {
}) })
} else if (val == 'mainHandle') { // } 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) { if (!isCreateLabel.value) {
message.warning('请先创建标签') message.warning('请先创建标签')
return return

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

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

Loading…
Cancel
Save