Browse Source

WMS bug:HL-5613 生产隔离退料申请中缺少创建标签的按钮

hella_online_20240828
gaojs 3 months ago
parent
commit
f29a9110b6
  1. 24
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

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

@ -473,18 +473,18 @@ const buttonTableClick = async (val, row) => {
} 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
// }
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
}
tableObject.loading = true
ProductionreturnRequestMainNoApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))

Loading…
Cancel
Save