feat(force-notice): 修复办理页面下拉选项显示问题
- 在force、inclusion、liccan、recovery和remove模块的handle.vue文件中, 修复了nextPerformerMap数据映射问题 - 将原始的直接返回对象改为使用map函数处理,确保label显示name字段, value使用primaryKey字段 - 使下拉选择器能够正确显示和绑定数据
This commit is contained in:
parent
155817126b
commit
9ccb35c63f
|
|
@ -444,7 +444,13 @@ export default {
|
||||||
span: 12,
|
span: 12,
|
||||||
required: true,
|
required: true,
|
||||||
options: () => {
|
options: () => {
|
||||||
return this.nextPerformerMap
|
return this.nextPerformerMap.map((item) => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
label: item.name,
|
||||||
|
value: item.primaryKey
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
showInForm: ({ formData }) => {
|
showInForm: ({ formData }) => {
|
||||||
return !this.readonly && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree)
|
return !this.readonly && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree)
|
||||||
|
|
|
||||||
|
|
@ -415,7 +415,13 @@ export default {
|
||||||
span: 12,
|
span: 12,
|
||||||
required: true,
|
required: true,
|
||||||
options: () => {
|
options: () => {
|
||||||
return this.nextPerformerMap
|
return this.nextPerformerMap.map((item) => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
label: item.name,
|
||||||
|
value: item.primaryKey
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
showInForm: ({ formData }) => {
|
showInForm: ({ formData }) => {
|
||||||
return !this.readonly && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree)
|
return !this.readonly && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree)
|
||||||
|
|
|
||||||
|
|
@ -298,7 +298,13 @@ export default {
|
||||||
span: 12,
|
span: 12,
|
||||||
required: true,
|
required: true,
|
||||||
options: () => {
|
options: () => {
|
||||||
return this.nextPerformerMap
|
return this.nextPerformerMap.map((item) => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
label: item.name,
|
||||||
|
value: item.primaryKey
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
showInForm: ({ formData }) => {
|
showInForm: ({ formData }) => {
|
||||||
return !this.readonly && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree)
|
return !this.readonly && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree)
|
||||||
|
|
|
||||||
|
|
@ -344,7 +344,13 @@ export default {
|
||||||
span: 12,
|
span: 12,
|
||||||
required: true,
|
required: true,
|
||||||
options: () => {
|
options: () => {
|
||||||
return this.nextPerformerMap
|
return this.nextPerformerMap.map((item) => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
label: item.name,
|
||||||
|
value: item.primaryKey
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
showInForm: ({ formData }) => {
|
showInForm: ({ formData }) => {
|
||||||
return !this.readonly && formData.isAccept && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree)
|
return !this.readonly && formData.isAccept && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree)
|
||||||
|
|
|
||||||
|
|
@ -347,7 +347,13 @@ export default {
|
||||||
span: 12,
|
span: 12,
|
||||||
required: true,
|
required: true,
|
||||||
options: () => {
|
options: () => {
|
||||||
return this.nextPerformerMap
|
return this.nextPerformerMap.map((item) => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
label: item.name,
|
||||||
|
value: item.primaryKey
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
showInForm: ({ formData }) => {
|
showInForm: ({ formData }) => {
|
||||||
return !this.readonly && (formData.remType === '2' || (formData.remType === '1' && formData.isAccept === '1')) && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree) && formData.endForceRra
|
return !this.readonly && (formData.remType === '2' || (formData.remType === '1' && formData.isAccept === '1')) && ['0', '1', '7'].includes(formData.status) && !['nullify', 'transfer', 'examineFinish', 'approveFinish', 'lawFinish', 'handleReturn', 'examineReturn', 'end', 'upApproveFinish'].includes(formData.isAgree) && formData.endForceRra
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue