Browse Source

FWHL-127

hella_online_20241212
王宇飞 3 months ago
parent
commit
bc1f22e0af
  1. 11
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

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

@ -424,6 +424,8 @@ const butttondata = (row,$index) => {
]
}
const enableMake = ref('')
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
@ -515,6 +517,7 @@ const buttonTableClick = async (val, row) => {
by: 'ASC',
}).then(res => {
if (res.list.length > 0) {
enableMake.value = res.list[0].enableMake
//
if (res.list[0].enableMake == "FALSE") {
// tableform
@ -547,6 +550,7 @@ const buttonTableClick = async (val, row) => {
})
}
} else {
enableMake.value = ''
message.warning('没有查询到物料代码:【' + item.itemCode + '】')
return
}
@ -724,6 +728,11 @@ const submitFormLabel = async (formType, submitData) => {
if(data.masterId){
data.id = data.masterId
}
alert(enableMake.value)
//
if (enableMake.value == "FALSE") {
let flag = true
detatableData.tableList.forEach(item => {
if(!item.supplierItemCode){
@ -734,7 +743,7 @@ const submitFormLabel = async (formType, submitData) => {
message.error('请填写供应商代码')
return
}
}
try {
detatableData.tableList.forEach(async (item) => {
await PackageApi.createPackageLabel({...item,toLocationCode:item.fromLocationCode}).then(res => {

Loading…
Cancel
Save