From 59eb5746394c73b4eb7396fe695d0cdb1f0c071e Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期三, 25 十月 2023 17:04:27 +0800
Subject: [PATCH] 已经处理的问题

---
 src/views/eam/RepairOrderList.vue |  229 +++++++++++++++++++++++++++++++-------------------------
 1 files changed, 127 insertions(+), 102 deletions(-)

diff --git a/src/views/eam/RepairOrderList.vue b/src/views/eam/RepairOrderList.vue
index 79a36cc..3cae629 100644
--- a/src/views/eam/RepairOrderList.vue
+++ b/src/views/eam/RepairOrderList.vue
@@ -82,7 +82,77 @@
                 ></a-input>
               </a-form-item>
             </a-col>
+            <a-col 
+            :xl="6"
+              :lg="7"
+              :md="8"
+              :sm="24">
+            <a-form-item
+            label="璁惧鎵�灞炲垎绫�" 
+            >
+              <j-dict-select-tag
+                dictCode="mom_eam_equipment_category,name,id"
+                placeholder="璇疯緭鍏ユ悳绱㈡潯浠跺苟閫夋嫨"
+                v-model="queryParam.equipmentCategoryId"
+              />
+            </a-form-item>
+          </a-col>
+          <a-col 
+          :xl="6"
+            :lg="7"
+              :md="8"
+              :sm="24"
+          >
+            <a-form-item
+              label="杞﹂棿"
+            >
+              <j-dict-select-tag
+                allow-clear
+                placeholder="璇烽�夋嫨璧勮溅闂�"
+                :triggerChange="true"
+                dictCode="mom_base_factory_model,name,id,del_flag!='1'"
+                v-model="queryParam.factoryModelId"
+              />
+            </a-form-item>
+          </a-col>
+          <a-col
+          :xl="6"
+            :lg="7"
+              :md="8"
+              :sm="24"
+          >
+            <a-form-item
+              label="鏄惁鍏抽敭璁惧"
+            >
+              <j-dict-select-tag
+                allow-clear
+                placeholder="璇烽�夋嫨鏄惁鍏抽敭璁惧"
+                :triggerChange="true"
+                dictCode="specific_equipment"
+                v-model="queryParam.specificEquipment"
+              />
+            </a-form-item>
+          </a-col>
           </a-row>
+          <!-- <a-row :gutter="24">
+            <a-col 
+            :xl="6"
+            :lg="7"
+              :md="8"
+              :sm="24">
+            <a-form-item
+              label="宸ュ尯"
+            >
+              <j-dict-select-tag
+                allow-clear
+                placeholder="璇烽�夋嫨宸ュ尯"
+                :triggerChange="true"
+                dictCode="mom_base_area,name,id,del_flag!='1'"
+                v-model="queryParam.factoryModelId"
+              />
+            </a-form-item>
+          </a-col>
+          </a-row> -->
         </template>
       </a-form>
     </div>
@@ -94,10 +164,10 @@
             key="1"
             @click="handleAddPre(1)"
           ><a-icon type="smile" />鑷缓</a-menu-item>
-          <a-menu-item
+          <!-- <a-menu-item
             key="2"
             @click="handleAddPre(2)"
-          ><a-icon type="copy" />鍙傜収鏁呴殰鎶ヤ慨鍗�</a-menu-item>
+          ><a-icon type="copy" />鍙傜収鏁呴殰鎶ヤ慨鍗�</a-menu-item> -->
           <a-menu-item
             key="2"
             @click="handleAddPre(3)"
@@ -126,6 +196,11 @@
         @click="handleDispatch()"
         :disabled="selectionRows.length==0"
       >娲惧伐</a-button>
+      <a-button
+          type="primary"
+          icon="plus"
+          @click="getReports"
+      >棰嗗彇</a-button>
       <!-- <a-button type="primary" icon="download" @click="handleExportXls('缁翠慨宸ュ崟')">瀵煎嚭</a-button>
       <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
         <a-button type="primary" icon="import">瀵煎叆</a-button>
@@ -161,14 +236,13 @@
         @change="handleTableChange"
         :customRow="clickThenSelect"
       >
-        <!-- :rowSelection="rowSelection" -->
-
+        <span slot="jell" slot-scope="text">
+            <j-ellipsis :value="text" :length="8" />
+        </span>
         <span
           slot="num"
           slot-scope="text, record"
         >
-
-
           <a
             v-if="record.status === '3' || record.status === '4' ||record.status === '5'  ||record.status === '7' "
             class="lot"
@@ -176,71 +250,6 @@
           ><j-ellipsis :value="text" :length="15"/></a>
           <span v-else> <j-ellipsis :value="text" :length="15"/></span>
         </span>
-
-        <!-- <span
-          slot="action"
-          slot-scope="text, record"
-        >
-          <a-popconfirm
-            title="纭畾涓嬪彂鍚�?"
-            @confirm="() => handleDistribute(record)"
-          >
-            <a v-if="record.status=='0'">涓嬪彂</a>
-          </a-popconfirm>
-          <a-divider
-            type="vertical"
-            v-if="record.status=='0'"
-          />
-          <a-popconfirm
-            title="纭畾鎾ゅ洖鍚�?"
-            @confirm="() => handleWithdraw(record)"
-          >
-            <a v-if="record.status=='1'">鎾ゅ洖</a>
-          </a-popconfirm>
-          <a-divider
-            type="vertical"
-            v-if="record.status=='1'"
-          />
-          <a-popconfirm
-            title="纭畾棰嗗彇鍚�?"
-            @confirm="() => handleReceive(record)"
-          >
-            <a v-if="record.status=='1'">棰嗗彇</a>
-          </a-popconfirm>
-          <a-divider
-            type="vertical"
-            v-if="record.status=='1'"
-          />
-          <a
-            v-if="record.status === '2' || record.status === '3' ||record.status === '4'"
-            @click="handleOrderExe(record)"
-          >鎵ц</a>
-          <a-divider
-            type="vertical"
-            v-if="record.status === '2' || record.status === '3' ||record.status === '4'"
-          />
-          <a
-            @click="handleEditPre(record)"
-            v-if="record.status=='0'"
-          >缂栬緫</a>
-          <a-divider
-            type="vertical"
-            v-if="record.status=='0'"
-          />
-          <a-dropdown v-if="record.status=='0'">
-            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
-            <a-menu slot="overlay">
-              <a-menu-item>
-                <a-popconfirm
-                  title="纭畾鍒犻櫎鍚�?"
-                  @confirm="() => handleDelete(record.id)"
-                >
-                  <a>鍒犻櫎</a>
-                </a-popconfirm>
-              </a-menu-item>
-            </a-menu>
-          </a-dropdown>
-        </span> -->
         <span
           slot="action"
           slot-scope="text, record"
@@ -275,10 +284,10 @@
             v-if="record.status == '1' && record.dispatchMethod == '1'  "
             @click="handleAssignOrder(record)"
           >娲惧伐</a>
-          <a
+          <!-- <a
             v-if="record.status == '2' && record.dispatchMethod != null "
             @click="handleAssignOrder(record)"
-          >鏀规淳</a>
+          >鏀规淳</a> -->
           <a-divider
             v-if="record.status == '1' || record.status == '2' "
             type="vertical"
@@ -407,9 +416,13 @@
     <repair-order-excute-drawer
       ref="repairOrderExcuteDrawer"
       @ok="modalFormOk"
+      :repairOrderId="repairOrderFaultAnalysisMainId"
       :repairOrder="excuteRepairOrder"
     >
     </repair-order-excute-drawer>
+    <fault-report-repair
+      ref="FaultReportRepair"
+    ></fault-report-repair>
   </a-card>
 </template>
 <script>
@@ -429,6 +442,7 @@
 import RepairOrderAssignTask from './modules/repairorder/RepairOrderAssignTask.vue'
 import RepairOrderExcuteDrawer from './modules/repairorder/repairOrderExcuteDrawer.vue'
 import FaultDescriptionList from './FaultDescriptionList'
+import FaultReportRepair from './modules/repairorder/moudles/select/FaultReportRepair.vue'
 export default {
   name: "RepairOrderList",
   mixins: [JeecgListMixin],
@@ -444,7 +458,8 @@
     RepairOrderModal,
     RepairOrderAssignTask,
     RepairOrderExcuteDrawer,
-    FaultDescriptionList
+    FaultDescriptionList,
+    FaultReportRepair
   },
   data() {
     return {
@@ -472,11 +487,11 @@
           dataIndex: 'num',
           scopedSlots: { customRender: 'num' }
         },
-        {
-          title: '涓氬姟绫诲瀷',
-          align: "center",
-          dataIndex: 'businessType_dictText'
-        },
+        // {
+        //   title: '涓氬姟绫诲瀷',
+        //   align: "center",
+        //   dataIndex: 'businessType_dictText'
+        // },
         {
           title: '璁惧缂栫爜',
           align: "center",
@@ -497,25 +512,28 @@
           align: "center",
           dataIndex: 'departId_dictText'
         },
+        // {
+        //   title: '绱ф�ョ▼搴�',
+        //   align: "center",
+        //   dataIndex: 'urgency_dictText'
+        // },
+        // {
+        //   title: '缁翠繚鏂瑰紡',
+        //   align: "center",
+        //   dataIndex: 'maintenanceMethod_dictText'
+        // },
+        // {
+        //   title: '澶栧鍗曚綅',
+        //   align: "center",
+        //   dataIndex: 'outsourcingUnitName'
+        // },
         {
-          title: '绱ф�ョ▼搴�',
+          title: '缁翠慨鐝粍',
           align: "center",
-          dataIndex: 'urgency_dictText'
-        },
-        {
-          title: '缁翠繚鏂瑰紡',
-          align: "center",
-          dataIndex: 'maintenanceMethod_dictText'
-        },
-        {
-          title: '澶栧鍗曚綅',
-          align: "center",
-          dataIndex: 'outsourcingUnitName'
-        },
-        {
-          title: '璐d换鐝粍',
-          align: "center",
-          dataIndex: 'teamId_dictText'
+          dataIndex: 'teamId_dictText',
+          scopedSlots: { 
+            customRender: 'jell' 
+          }
         },
         {
           title: '璐d换浜�',
@@ -535,7 +553,10 @@
         {
           title: '鏁呴殰鎻忚堪',
           align: "center",
-          dataIndex: 'faultDescription'
+          dataIndex: 'faultDescription',
+          scopedSlots: { 
+            customRender: 'jell' 
+          }
         },
         {
           title: '鏁呴殰鍘熷洜',
@@ -573,11 +594,11 @@
         //   align: "center",
         //   dataIndex: 'isStop_dictText'
         // },
-        {
-          title: '宸ユ椂瀹氶',
-          align: "center",
-          dataIndex: 'workingHourQuota'
-        },
+        // {
+        //   title: '宸ユ椂瀹氶',
+        //   align: "center",
+        //   dataIndex: 'workingHourQuota'
+        // },
         {
           title: '瀹為檯宸ユ椂',
           align: "center",
@@ -853,6 +874,10 @@
       this.onClearSelected()
       this.$refs.FaultDescriptionList.faultId = '-1'
     },
+    getReports(){
+         this.$refs.FaultReportRepair.title = '鏁呴殰鎶ヤ慨鍗�';
+         this.$refs.FaultReportRepair.visible = true;
+    }
 
   },
 }

--
Gitblit v1.9.3