From e59527c22e7598e0c099b01893885cbd7f9eb020 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期二, 25 三月 2025 10:53:23 +0800
Subject: [PATCH] art: 设备台账-列表、详情 修改

---
 src/views/eam/equipment/EamEquipmentList.vue |   89 ++++++++++++++++++++++++++------------------
 1 files changed, 53 insertions(+), 36 deletions(-)

diff --git a/src/views/eam/equipment/EamEquipmentList.vue b/src/views/eam/equipment/EamEquipmentList.vue
index ed6bece..c6527c7 100644
--- a/src/views/eam/equipment/EamEquipmentList.vue
+++ b/src/views/eam/equipment/EamEquipmentList.vue
@@ -84,11 +84,21 @@
         :scroll="{ x: 'max-content' }"
         :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
         @change="handleTableChange">
-
         <span slot="equipmentImportance" slot-scope="text">
-          <lx-switch v-model="text" disabled checked-children='鏄�' un-checked-children='鍚�' />
+          <lx-switch v-model="text" disabled checked-children="鏄�" un-checked-children="鍚�" />
         </span>
-
+        <span slot="mdcFlag" slot-scope="text">
+          <lx-switch v-model="text" disabled checked-children="鏄�" un-checked-children="鍚�" />
+        </span>
+        <span slot="processParametersFlag" slot-scope="text">
+          <lx-switch v-model="text" disabled checked-children="鏄�" un-checked-children="鍚�" />
+        </span>
+        <span slot="precisionParametersFlag" slot-scope="text">
+          <lx-switch v-model="text" disabled checked-children="鏄�" un-checked-children="鍚�" />
+        </span>
+        <span slot="specialEquipment" slot-scope="text">
+          <lx-switch v-model="text" disabled checked-children="鏄�" un-checked-children="鍚�" />
+        </span>
         <span slot="action" slot-scope="text, record">
           <a @click="handleEdit(record)">缂栬緫</a>
 
@@ -96,6 +106,9 @@
           <a-dropdown>
             <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
             <a-menu slot="overlay">
+              <a-menu-item>
+                <a href="javascript:;" @click="handleDetail(record)">璇︽儏</a>
+              </a-menu-item>
               <a-menu-item>
                 <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)">
                   <a>鍒犻櫎</a>
@@ -139,7 +152,7 @@
           customRender: function(t, r, index) {
             return parseInt(index) + 1
           },
-          fixed: 'left',
+          fixed: 'left'
         },
         {
           title: '璁惧缂栧彿',
@@ -160,147 +173,151 @@
         {
           title: '鍏抽敭璁惧鏍囪瘑',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'equipmentImportance',
           scopedSlots: { customRender: 'equipmentImportance' }
         },
         {
           title: '鎶�鏈姸鎬�',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'technologyStatus_dictText'
         },
         {
           title: '鎿嶄綔绯荤粺',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'operationSystem'
         },
         {
           title: '浣跨敤杞﹂棿',
           align: 'center',
-          width : 100,
-          dataIndex: 'orgId'
+          width: 100,
+          dataIndex: 'orgId_dictText'
         },
         {
           title: '璁惧绠$悊鍛�',
           align: 'center',
-          width : 100,
-          dataIndex: 'equipmentManager'
+          width: 100,
+          dataIndex: 'equipmentManager_dictText'
         },
         {
           title: '璁惧鍒嗙被',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'equipmentCategory_dictText'
         },
         {
           title: '璁惧鍨嬪彿',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'equipmentModel'
         },
         {
           title: '璁惧瑙勬牸',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'equipmentSpecification'
         },
         {
           title: '涓昏酱杩炴帴灏哄',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'spindleConnectDimension'
         },
         {
           title: '鎬诲姛鐜�',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'equipmentPower'
         },
         {
           title: '瀹夎浣嶇疆',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'installationPosition'
         },
         {
           title: '璧勪骇鐘舵��',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'assetStatus_dictText'
         },
         {
           title: '绔嬮」鍗″彿',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'cardNumber'
         },
         {
           title: '鍑哄巶缂栧彿',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'factoryNumber'
         },
         {
           title: '鏈哄簥鍘傚',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'manufacturingEnterprise'
         },
         {
           title: '鏉ユ簮鍥藉',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'originCountry'
         },
         {
           title: '鍑哄巶鏃ユ湡',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'leaveFactoryDate'
         },
         {
           title: '楠屾敹鏃ユ湡',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'acceptanceCheckDate'
         },
         {
           title: '璐ㄤ繚寮�濮嬫棩鏈�',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'warrantyStartDate'
         },
         {
           title: '璐ㄤ繚缁撴潫鏃ユ湡',
           align: 'center',
-          width : 100,
+          width: 100,
           dataIndex: 'warrantyEndDate'
         },
         {
           title: '鏄惁瀹炴柦MDC',
           align: 'center',
-          width : 100,
-          dataIndex: 'mdcFlag'
+          width: 100,
+          dataIndex: 'mdcFlag',
+          scopedSlots: { customRender: 'mdcFlag' }
         },
         {
-          title: '鏄惁鏈夊伐鑹哄弬鏁�',
+          title: '鏈夋棤宸ヨ壓鍙傛暟',
           align: 'center',
-          width : 100,
-          dataIndex: 'processParametersFlag'
+          width: 100,
+          dataIndex: 'processParametersFlag',
+          scopedSlots: { customRender: 'processParametersFlag' }
         },
         {
-          title: '鏄惁鏈夌簿搴﹀弬鏁�',
+          title: '鏈夋棤绮惧害鍙傛暟',
           align: 'center',
-          width : 100,
-          dataIndex: 'precisionParametersFlag'
+          width: 100,
+          dataIndex: 'precisionParametersFlag',
+          scopedSlots: { customRender: 'precisionParametersFlag' }
         },
         {
           title: '鏄惁涓虹壒绉嶈澶�',
           align: 'center',
-          width : 100,
-          dataIndex: 'specialEquipment'
+          width: 100,
+          dataIndex: 'specialEquipment',
+          scopedSlots: { customRender: 'specialEquipment' }
         },
         {
           title: '閲嶉噺',

--
Gitblit v1.9.3