|
|
@ -25,7 +25,7 @@ |
|
|
|
</view> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item label="库位" prop="locationNumber" required v-if="isShow"> |
|
|
|
<u-input v-model="form.locationNumber" placeholder="请输入库位" @blur="blur()" @confirm="handelScanMsg"/> |
|
|
|
<u-input v-model="form.locationNumber" placeholder="请输入库位" @blur="blur()" @confirm="handelScanMsg" :disabled="isDisabled"/> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item label="数量" prop="qty" required> |
|
|
|
<u-input v-model="form.qty" type="number" placeholder="请输入数量" /> |
|
|
@ -60,7 +60,7 @@ |
|
|
|
import * as sparePartsReturnApi from "@/api/sparePartsReturn" |
|
|
|
import * as sparePartsApi from "@/api/spareParts" |
|
|
|
import * as locationApi from "@/api/location" |
|
|
|
|
|
|
|
const isDisabled =ref(false); |
|
|
|
const { proxy } = getCurrentInstance() |
|
|
|
const loading = ref(false) |
|
|
|
// 备件弹窗 |
|
|
@ -298,16 +298,18 @@ const singleColumnShow = ref(false) |
|
|
|
if(res.data.itemName==null || res.data.itemName==''){ |
|
|
|
proxy.$modal.showToast("找不到该备件") |
|
|
|
form.value.itemNumber = '' |
|
|
|
form.value.locationNumber = ''; |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
itemNumber.value = '' |
|
|
|
form.value.itemName = res.data.itemName |
|
|
|
if(res.data.locationNumber|| res.data.locationNumber=='' || res.data.locationNumber==null){ |
|
|
|
if(res.data.locationNumber=='' || res.data.locationNumber==null){ |
|
|
|
isShow.value =true |
|
|
|
isDisabled.value = false |
|
|
|
}else{ |
|
|
|
form.value.locationNumber = res.data.locationNumber |
|
|
|
isShow.value = false |
|
|
|
isDisabled.value = true |
|
|
|
} |
|
|
|
// 判断是否有帐外库 |
|
|
|
// locationItem.value = res.data.list.filter(item=>item.isInAccount==='FALSE')[0] |
|
|
|