|
|
@ -141,6 +141,7 @@ |
|
|
|
const choosesingleColumnItem = ref() |
|
|
|
const isInAccount = ref() |
|
|
|
const itemNumber = ref() |
|
|
|
const msg = ref('') |
|
|
|
|
|
|
|
// 触发提交表单 |
|
|
|
function submit() { |
|
|
@ -232,13 +233,15 @@ |
|
|
|
function getLocation() { |
|
|
|
locationApi.getLocation(form1.value.locationNumber).then(res => { |
|
|
|
if (!res.data) { |
|
|
|
proxy.$modal.showToast('找不到该库位') |
|
|
|
msg.value = res.msg ? res.msg : '找不到该库位' |
|
|
|
proxy.$modal.showToast(msg.value) |
|
|
|
|
|
|
|
form1.value.areaNumber ='' |
|
|
|
isInAccount.value = '' |
|
|
|
itemNumber.value = '' |
|
|
|
return; |
|
|
|
} |
|
|
|
msg.value = '' |
|
|
|
form1.value.areaNumber = res.data.areaNumber; |
|
|
|
isInAccount.value = res.data.isInAccount |
|
|
|
itemNumber.value = res.data.itemNumber |
|
|
@ -272,6 +275,10 @@ |
|
|
|
proxy.$modal.showToast('请扫描库位') |
|
|
|
return; |
|
|
|
} |
|
|
|
if(msg.value){ |
|
|
|
proxy.$modal.showToast(msg.value) |
|
|
|
return; |
|
|
|
} |
|
|
|
if (isInAccount.value == 'TRUE') { |
|
|
|
proxy.$modal.showToast('该库位属于帐内库,请选择帐外库') |
|
|
|
return; |
|
|
@ -292,7 +299,7 @@ |
|
|
|
proxy.$modal.showToast('请输入维修原因') |
|
|
|
return; |
|
|
|
} |
|
|
|
if (form.valueitemNumbers && form.value.itemNumbers.length > 0) { |
|
|
|
if (form.value.itemNumbers && form.value.itemNumbers.length > 0) { |
|
|
|
let arr = form.value.itemNumbers.filter(item => item.itemNumber == form1.value.itemNumber) |
|
|
|
if (arr && arr.length > 0) { |
|
|
|
proxy.$modal.showToast('该备件已添加') |
|
|
|