Commit ab74bfd8 authored by jingnan's avatar jingnan 👀

解决检验界面履历单详情页获取不到履历单id的问题

parent 8abfb41f
......@@ -47,7 +47,16 @@ export default {
methods: {
onShow(row, config) {
this.config = config
this.rowData = row
if (config.typeName === 'BiographicData' && config.layKey === 'defaultInfo') {
const responseInTest = this.$utils.getTargetJobResponses(row, 'JobResponseInTest')
if (responseInTest && responseInTest.biographicDataVOS && responseInTest.biographicDataVOS.length) {
this.rowData = responseInTest.biographicDataVOS[0]
} else {
this.rowData = row
}
} else {
this.rowData = row
}
this.visibile = true
},
onClose() {
......
......@@ -353,10 +353,16 @@ export default {
'openProps': [
{ 'name': 'inventoryJobResponses',
'openProps': [
{ 'name': 'extWorkUnit' }
{ 'name': 'extWorkUnit' },
{ 'name': 'biographicDataVOS' }
]
},
{ 'name': 'extMaterial', 'openProps': [{ 'name': 'resType2' }, { 'name': 'extUnit' }] }, { 'name': 'extDxSipplier' }, { 'name': 'storageZone' }, { 'name': 'inventoryReq' }],
{ 'name': 'extMaterial', 'openProps': [{ 'name': 'resType2' }, { 'name': 'extUnit' }] },
{ 'name': 'extDxSipplier' },
{ 'name': 'storageZone' },
{ 'name': 'inventoryReq' }
],
'sortItem': [
{
'fieldName': 'modifyTime',
......
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