From 68155c57dff251d047081c972c3b3e5931a29bfa Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期四, 24 七月 2025 14:08:50 +0800 Subject: [PATCH] 技术鉴定工单页面列表增加自定义展示字段 --- src/views/eam/technical/EamTechnicalStatusEvaluationOrderList.vue | 57 ++++++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 44 insertions(+), 13 deletions(-) diff --git a/src/views/eam/technical/EamTechnicalStatusEvaluationOrderList.vue b/src/views/eam/technical/EamTechnicalStatusEvaluationOrderList.vue index 4eb05c3..21fbd44 100644 --- a/src/views/eam/technical/EamTechnicalStatusEvaluationOrderList.vue +++ b/src/views/eam/technical/EamTechnicalStatusEvaluationOrderList.vue @@ -43,8 +43,34 @@ <!-- table鍖哄煙-begin --> <a-table bordered rowKey="id" :columns="columns" :dataSource="dataSource" :pagination="ipagination" :scroll="{ x: 'max-content' }" :loading="loading" @change="handleTableChange"> + <!--瀹夊叏瑁呯疆妫�鏌ョ粨鏋�--> + <template slot="safetyEquipmentCheckResult" slot-scope="text"> + <a-switch checked-children="鏄�" un-checked-children="鍚�" :checked="Boolean(+text)" disabled/> + </template> - <span slot="action" slot-scope="text, record"> + <!--绮惧害鍙傛暟妫�鏌ョ粨鏋�--> + <template slot="precisionCheckResult" slot-scope="text"> + <a-switch checked-children="鏄�" un-checked-children="鍚�" :checked="Boolean(+text)" disabled/> + </template> + + <!--鍔熻兘鐘舵�佹鏌ョ粨鏋�--> + <template slot="functionalCheckResult" slot-scope="text"> + <a-switch v-if="text!=='NONE'" checked-children="鏄�" un-checked-children="鍚�" :checked="text==='YES'" disabled/> + <span v-else>鏃�</span> + </template> + + <!--鍏朵粬妫�鏌ョ粨鏋�--> + <template slot="otherCheckResult" slot-scope="text"> + <a-switch v-if="text!=='NONE'" checked-children="鏄�" un-checked-children="鍚�" :checked="text==='YES'" disabled/> + <span v-else>鏃�</span> + </template> + + <!--璇曚欢妫�鏌ョ粨鏋�--> + <template slot="sampleCheckResult" slot-scope="text"> + <a-switch checked-children="鏄�" un-checked-children="鍚�" :checked="Boolean(+text)" disabled/> + </template> + + <span slot="action" slot-scope="text, record"> <template v-if="record.evaluationStatus === 'WAIT_EVALUATION'"> <a-popconfirm title="纭畾棰嗗彇鍚楋紵" @confirm="handleReceive(record.id)"> <a>棰嗗彇</a> @@ -53,13 +79,13 @@ <a-divider type="vertical"/> </template> - <template v-if="record.evaluationStatus == 'WAIT_EVALUATION'||record.evaluationStatus=='LOCKED'"> + <template v-if="record.evaluationStatus === 'WAIT_EVALUATION'||record.evaluationStatus==='LOCKED'"> <a @click="handleOrderChange(record)">鍙樻洿</a> <a-divider type="vertical"/> </template> - <a @click="handleDetail(record)">璇︽儏</a> + <a @click="handleDetail(record)" v-if="record.evaluationStatus!=='CHANGING'">璇︽儏</a> </span> </a-table> <!-- table鍖哄煙-end --> @@ -177,42 +203,47 @@ { title: '瀹夊叏瑁呯疆妫�鏌ョ粨鏋�', align: 'center', - dataIndex: 'safetyEquipmentCheckResult' + dataIndex: 'safetyEquipmentCheckResult', + scopedSlots: { customRender: 'safetyEquipmentCheckResult' } }, { title: '绮惧害鍙傛暟妫�鏌ョ粨鏋�', align: 'center', - dataIndex: 'precisionCheckResult' + dataIndex: 'precisionCheckResult', + scopedSlots: { customRender: 'precisionCheckResult' } }, { title: '鍔熻兘鐘舵�佹鏌ョ粨鏋�', align: 'center', - dataIndex: 'functionalCheckResult' + dataIndex: 'functionalCheckResult', + scopedSlots: { customRender: 'functionalCheckResult' } }, { title: '鍏朵粬妫�鏌ョ粨鏋�', align: 'center', - dataIndex: 'otherCheckResult' + dataIndex: 'otherCheckResult', + scopedSlots: { customRender: 'otherCheckResult' } }, { title: '缁翠慨瀹や富浠荤瀛�', align: 'center', - dataIndex: 'repairManagerSignature' + dataIndex: 'repairManagerSignature_dictText' }, { title: '缁翠慨瀹や富浠荤瀛楁椂闂�', align: 'center', - dataIndex: 'repairManagerSignatureTime1' + dataIndex: 'repairManagerSignatureTime' }, { title: '璇曚欢妫�鏌ョ粨鏋�', align: 'center', - dataIndex: 'sampleCheckResult' + dataIndex: 'sampleCheckResult', + scopedSlots: { customRender: 'sampleCheckResult' } }, { title: '宸ヨ壓鍛樼瀛�', align: 'center', - dataIndex: 'processTechnicianSignature' + dataIndex: 'processTechnicianSignature_dictText' }, { title: '宸ヨ壓鍛樼瀛楁椂闂�', @@ -222,7 +253,7 @@ { title: '閴村畾缁撴灉', align: 'center', - dataIndex: 'evaluationResult' + dataIndex: 'evaluationResult_dictText' }, { title: '闄�/绂佺敤鍘熷洜', @@ -232,7 +263,7 @@ { title: '璁惧妫�鏌ヤ汉绛惧瓧', align: 'center', - dataIndex: 'inspectorSignature' + dataIndex: 'inspectorSignature_dictText' }, { title: '璁惧妫�鏌ヤ汉绛惧瓧鏃堕棿', -- Gitblit v1.9.3