Commit d767f67b authored by jingnan's avatar jingnan 👀

单据类型修改为从检验响应上获取

parent ca7a2d55
...@@ -86,8 +86,11 @@ export default { ...@@ -86,8 +86,11 @@ export default {
'openProps': [ 'openProps': [
{ {
'name': 'jobOrder', 'name': 'jobOrder',
'pageFrom': 1, 'openProps': [
'pageSize': 9999 {
'name': 'inventoryJobResponses'
}
]
} }
], ],
'sortItem': [ 'sortItem': [
...@@ -105,7 +108,12 @@ export default { ...@@ -105,7 +108,12 @@ export default {
...jobOrder, ...jobOrder,
...this.basicData ...this.basicData
} }
const responseInTest = this.$utils.getTargetJobResponses(jobOrder, 'JobResponseInTest')
if (responseInTest && responseInTest.billType) {
this.initData(responseInTest.billType)
} else {
this.getInventoryRequest(jobOrder.inventoryReqId) this.getInventoryRequest(jobOrder.inventoryReqId)
}
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
...@@ -114,13 +122,8 @@ export default { ...@@ -114,13 +122,8 @@ 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')) {
const 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