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