From 68155c57dff251d047081c972c3b3e5931a29bfa Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 24 七月 2025 14:08:50 +0800
Subject: [PATCH] 技术鉴定工单页面列表增加自定义展示字段
---
src/views/eam/maintenance/modules/EamInspectionOrderModal.vue | 48 +++++++++++++++++++++---------------------------
1 files changed, 21 insertions(+), 27 deletions(-)
diff --git a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
index 84c5ec1..45fdba0 100644
--- a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
+++ b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
@@ -33,7 +33,7 @@
</a-col>
<a-col :span="8">
<a-form-model-item label="淇濆吇鍛ㄦ湡">
- <a-input placeholder="閫夋嫨璁惧鍚庤嚜鍔ㄥ甫鍑�" v-model="model.maintenancePeriod" disabled/>
+ <a-input v-model="model.maintenancePeriod" disabled/>
</a-form-model-item>
</a-col>
<a-col :span="8">
@@ -130,22 +130,19 @@
key: 'itemCode',
type: JVXETypes.normal,
width: 100,
- align: 'center',
- disabled: true
+ align: 'center'
},
{
title: '淇濆吇椤�',
key: 'itemName',
- type: JVXETypes.textarea,
- align: 'center',
- disabled: true
+ type: JVXETypes.normal,
+ align: 'center'
},
{
title: '淇濆吇瑙勮寖鎴栬姹�',
key: 'itemDemand',
- type: JVXETypes.textarea,
- align: 'center',
- disabled: true
+ type: JVXETypes.normal,
+ align: 'center'
}
],
weekInspectionColumns: [],
@@ -155,41 +152,39 @@
key: 'itemCode',
type: JVXETypes.normal,
width: 60,
- align: 'center',
- disabled: true
+ align: 'center'
},
{
title: '淇濆吇椤�',
key: 'itemName',
- type: JVXETypes.textarea,
- align: 'center',
- disabled: true
+ type: JVXETypes.normal,
+ align: 'center'
},
{
title: '淇濆吇瑕佹眰',
key: 'itemDemand',
- type: JVXETypes.textarea,
- align: 'center',
- disabled: true
+ type: JVXETypes.normal,
+ align: 'center'
},
{
title: '鐐规缁撴灉',
key: 'inspectionResult',
- type: JVXETypes.textarea,
+ type: JVXETypes.select,
+ dictCode: 'inspection_project_result',
align: 'center',
disabled: true
},
{
title: '寮傚父鎻忚堪',
key: 'exceptionDescription',
- type: JVXETypes.textarea,
- align: 'center',
- disabled: true
+ type: JVXETypes.normal,
+ align: 'center'
},
{
title: '寮傚父鏄惁鎶ヤ慨',
key: 'reportFlag',
- type: JVXETypes.textarea,
+ type: JVXETypes.select,
+ ditCode: 'yn',
align: 'center',
disabled: true
}
@@ -199,7 +194,7 @@
},
methods: {
add() {
- this.model = {}
+ this.model = { maintenancePeriod: 1 }
this.visible = true
this.editable = true
this.detail.dayInspectionList = []
@@ -207,7 +202,7 @@
},
edit(record) {
- this.model = Object.assign({}, record)
+ this.model = Object.assign({ maintenancePeriod: 1 }, record)
this.editable = false
this.visible = true
this.spinning = true
@@ -254,7 +249,6 @@
autocompleteForm(selectObj) {
this.model.standardName = selectObj.standardName
- this.model.maintenancePeriod = selectObj.maintenancePeriod
this.model.standardCode = selectObj.standardCode
this.standardId = selectObj.id
this.detail.dayInspectionList = []
@@ -302,8 +296,8 @@
})
.then(res => {
if (res.success) {
- if (res.result.length > 0) {
- this.detail.weekInspectionList = res.result
+ if (res.result.list.length > 0) {
+ this.detail.weekInspectionList = res.result.list
this.detail.weekInspectionColumns = this.detail.weekInspectionOrderColumns
}
}
--
Gitblit v1.9.3