Commit ab74bfd8 authored by jingnan's avatar jingnan 👀

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

parent 8abfb41f
...@@ -47,7 +47,16 @@ export default { ...@@ -47,7 +47,16 @@ export default {
methods: { methods: {
onShow(row, config) { onShow(row, config) {
this.config = config this.config = config
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 this.rowData = row
}
} else {
this.rowData = row
}
this.visibile = true this.visibile = true
}, },
onClose() { onClose() {
......
...@@ -353,10 +353,16 @@ export default { ...@@ -353,10 +353,16 @@ export default {
'openProps': [ 'openProps': [
{ 'name': 'inventoryJobResponses', { 'name': 'inventoryJobResponses',
'openProps': [ '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': [ 'sortItem': [
{ {
'fieldName': 'modifyTime', '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