Commit ccf24b34 authored by jingnan's avatar jingnan 👀

退库入库检验单类型取值修改

parent d767f67b
...@@ -122,8 +122,19 @@ export default { ...@@ -122,8 +122,19 @@ export default {
if (!id) return if (!id) return
get(`InventoryRequest/${id}`).then(res => { get(`InventoryRequest/${id}`).then(res => {
const type = res.items.billType const type = res.items.billType
if (!type && this.basicData.subTypeName && this.basicData.subTypeName.includes('BackItem')) {
let findType = ''
const responseInTest = this.$utils.getTargetJobResponses(this.basicData, 'JobResponseInTest')
if (responseInTest && responseInTest.billType) {
findType = responseInTest.billType
} else {
findType = this.basicData.outStorage.inventory.jobResponse.jobOrder.inventoryReq.billType
}
this.initData(findType)
} else {
if (!type) return this.$utils.showMessageWarning('未查询到验收单信息!') if (!type) return this.$utils.showMessageWarning('未查询到验收单信息!')
this.initData(type) this.initData(type)
}
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment