|
|
@ -243,8 +243,9 @@ const singleColumnShow = ref(false) |
|
|
|
proxy.$modal.showToast('该库位属于帐内库,请选择帐外库') |
|
|
|
return; |
|
|
|
} |
|
|
|
console.log(itemNumber.value) |
|
|
|
if (itemNumber.value) { |
|
|
|
proxy.$modal.showToast(msg.value) |
|
|
|
proxy.$modal.showToast('该库位已绑定过其他备件') |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!form1.value.qty) { |
|
|
@ -275,8 +276,12 @@ const singleColumnShow = ref(false) |
|
|
|
function getLocation() { |
|
|
|
locationApi.getLocation(form1.value.locationNumber).then(res => { |
|
|
|
if(!res.data){ |
|
|
|
if(res.msg){ |
|
|
|
proxy.$modal.showToast(res.msg) |
|
|
|
msg.value = res.msg |
|
|
|
}else{ |
|
|
|
proxy.$modal.showToast('找不到该库位') |
|
|
|
} |
|
|
|
return; |
|
|
|
} |
|
|
|
locationItem.value = res.data |
|
|
@ -335,7 +340,7 @@ const singleColumnShow = ref(false) |
|
|
|
isShow.value =true |
|
|
|
} |
|
|
|
}).catch((err)=>{ |
|
|
|
msg.value = res.msg |
|
|
|
msg.value = err.msg |
|
|
|
itemNumber.value = '' |
|
|
|
form1.value.areaNumber = '' |
|
|
|
form1.value.itemName = '' |
|
|
|