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