Commit d767f67b authored by jingnan's avatar jingnan 👀

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

parent ca7a2d55
......@@ -86,8 +86,11 @@ export default {
'openProps': [
{
'name': 'jobOrder',
'pageFrom': 1,
'pageSize': 9999
'openProps': [
{
'name': 'inventoryJobResponses'
}
]
}
],
'sortItem': [
......@@ -105,7 +108,12 @@ export default {
...jobOrder,
...this.basicData
}
this.getInventoryRequest(jobOrder.inventoryReqId)
const responseInTest = this.$utils.getTargetJobResponses(jobOrder, 'JobResponseInTest')
if (responseInTest && responseInTest.billType) {
this.initData(responseInTest.billType)
} else {
this.getInventoryRequest(jobOrder.inventoryReqId)
}
}).catch((err) => {
console.log(err)
})
......@@ -114,13 +122,8 @@ export default {
if (!id) return
get(`InventoryRequest/${id}`).then(res => {
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('未查询到验收单信息!')
this.initData(type)
}
if (!type) return this.$utils.showMessageWarning('未查询到验收单信息!')
this.initData(type)
}).catch((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