From eb48d3bada053e26def2a94d46dbe115a5a7bb2f Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期六, 18 十一月 2023 16:46:18 +0800
Subject: [PATCH] 问题项修改

---
 src/views/eam/DailyInspectionOrderList.vue |  116 +++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 70 insertions(+), 46 deletions(-)

diff --git a/src/views/eam/DailyInspectionOrderList.vue b/src/views/eam/DailyInspectionOrderList.vue
index d94dec3..7ba2ee7 100644
--- a/src/views/eam/DailyInspectionOrderList.vue
+++ b/src/views/eam/DailyInspectionOrderList.vue
@@ -150,7 +150,7 @@
             v-if="record.status == '2'"
             type="vertical"
           />
-          <a-popconfirm
+          <!-- <a-popconfirm
             title="纭畾鎭㈠宸ュ崟鍚�?"
             @confirm="() => handleOrderRecover(record)"
             v-has="'dailyInspectionOrder:recover'"
@@ -160,8 +160,8 @@
           <a-divider
             v-if="record.status == '7'"
             type="vertical"
-          />
-          <a-popconfirm
+          /> -->
+          <!-- <a-popconfirm
             title="纭畾浣滃簾宸ュ崟鍚�?"
             @confirm="() => handleOrderCancel(record)"
             v-has="'dailyInspectionOrder:recover'"
@@ -171,7 +171,7 @@
           <a-divider
             v-if="record.status == '2'"
             type="vertical"
-          />
+          /> -->
           <a-popconfirm
             title="纭畾棰嗗彇宸ュ崟鍚�?"
             @confirm="() => handleOrderGet(record)"
@@ -179,12 +179,12 @@
           >
             <a v-if="record.status == '2' && record.assignMode == '1'">棰嗗彇</a>
           </a-popconfirm>
-          <a
+          <!-- <a
             v-if="record.status == '2' && record.assignMode == '2'  "
             @click="handleAssignOrder(record)"
             v-has="'dailyInspectionOrder:assign'"
-          >娲惧伐</a>
-          <a
+          >娲惧伐</a> -->
+          <!-- <a
             v-if="record.status == '2'&& record.assignMode == '3'  && record.inspectionUserName != null  "
             @click="handleAssignOrder(record)"
             v-has="'dailyInspectionOrder:assign'"
@@ -193,7 +193,7 @@
             v-if="record.status == '3'"
             @click="handleAssignOrder(record)"
             v-has="'dailyInspectionOrder:assign'"
-          >鏀规淳</a>
+          >鏀规淳</a>-->
           <a-divider
             v-if="record.status == '2'"
             type="vertical"
@@ -209,6 +209,17 @@
           >鎵ц</a>
           <a-divider
             v-if="record.status === '3' || record.status === '4' "
+            type="vertical"
+          />
+          <a-popconfirm
+            title="缁翠慨浜虹‘璁ゅ畬宸ュ悧?"
+            @confirm="() => handleOrderRepairConfirm(record)"
+            v-has="'dailyInspectionOrder:repairConfirm'"
+          >
+            <a v-if="record.status == '5'">缁翠慨纭</a>
+          </a-popconfirm>
+          <a-divider
+            v-if="record.status == '5'"
             type="vertical"
           />
           <a
@@ -244,7 +255,7 @@
           slot-scope="text, record"
         >
           <a
-            v-if="record.status === '3' || record.status === '4' ||record.status === '5'  ||record.status === '7' "
+            v-if="record.status === '3' || record.status === '4' ||record.status === '5'  ||record.status === '6' "
             class="lot"
             @click="handleOrderExe(record)"
           >{{record.num}}</a>
@@ -331,19 +342,19 @@
         //     return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text)
         //   }
         // },
-        {
-          title: '鐐规鏃堕棿',
-          align: "center",
-          dataIndex: 'inspectionTime',
-          // customRender: function (text) {
-          //   return !text ? "" : (text.length > 10 ? text.substr(11, 20) : text)
-          // }
-        },
-        {
-          title: '鎴鏃堕棿',
-          align: "center",
-          dataIndex: 'inspectionDeadline',
-        },
+        // {
+        //   title: '鐐规鏃堕棿',
+        //   align: "center",
+        //   dataIndex: 'inspectionTime',
+        //   // customRender: function (text) {
+        //   //   return !text ? "" : (text.length > 10 ? text.substr(11, 20) : text)
+        //   // }
+        // },
+        // {
+        //   title: '鎴鏃堕棿',
+        //   align: "center",
+        //   dataIndex: 'inspectionDeadline',
+        // },
         {
           title: '缁熶竴缂栫爜',
           align: "center",
@@ -381,33 +392,33 @@
         //     }
         //   },
         // },
-        {
-          title: '鐐规鏍囧噯缂栫爜',
-          align: "center",
-          dataIndex: 'inspectionStandardNum'
-        },
+        // {
+        //   title: '鐐规鏍囧噯缂栫爜',
+        //   align: "center",
+        //   dataIndex: 'inspectionStandardNum'
+        // },
         {
           title: '鐐规鍛ㄦ湡',
           align: "center",
           dataIndex: 'inspectionCycleName'
         },
-        {
-          title: '娲惧伐鏂瑰紡',
-          align: "center",
-          dataIndex: 'assignModeName'
-        },
-        {
-          title: '鐐规缁撴灉',
-          align: "center",
-          dataIndex: 'result'
-        },
+        // {
+        //   title: '娲惧伐鏂瑰紡',
+        //   align: "center",
+        //   dataIndex: 'assignModeName'
+        // },
+        // {
+        //   title: '鐐规缁撴灉',
+        //   align: "center",
+        //   dataIndex: 'result'
+        // },
         {
           title: '鐐规浜�',
           align: "center",
           dataIndex: 'inspectionUserName'
         },
         {
-          title: '瀹屾垚鏃堕棿',
+          title: '鐐规鏃堕棿',
           align: "center",
           dataIndex: 'actualEndTime',
           // customRender: function (text) {
@@ -415,10 +426,23 @@
           // }
         },
         {
-          title: '鍒涘缓浜�',
+          title: '缁翠慨纭浜�',
           align: "center",
-          dataIndex: 'createBy'
+          dataIndex: 'repairConfirmPerson'
         },
+        {
+          title: '纭鏃堕棿',
+          align: "center",
+          dataIndex: 'repairConfirmDate',
+          // customRender: function (text) {
+          //   return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text)
+          // }
+        },
+        // {
+        //   title: '鍒涘缓浜�',
+        //   align: "center",
+        //   dataIndex: 'createBy'
+        // },
         {
           title: '鍒涘缓鏃ユ湡',
           align: "center",
@@ -496,7 +520,7 @@
         this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = true
         this.$refs.DailyInspectionOrderExeDrawer.revocationDistable = false
         this.$refs.DailyInspectionOrderExeDrawer.SWbuttonDistable = true
-      } else if (record.status === '7') {
+      } else if (record.status === '6') {
         this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = true
         this.$refs.DailyInspectionOrderExeDrawer.revocationDistable = true
         this.$refs.DailyInspectionOrderExeDrawer.SWbuttonDistable = true
@@ -541,15 +565,15 @@
         }
       })
     },
-    //浣滃簾
-    handleOrderCancel(record) {
+    //缁翠慨纭
+    handleOrderRepairConfirm(record) {
       const that = this;
-      requestPut(that.url.edit, { id: record.id, status: '7' }).then((res) => {
+      requestPut(that.url.edit, { id: record.id, status: '6' }).then((res) => {
         if (res.success) {
-          that.$message.success("宸ュ崟浣滃簾鎴愬姛锛�")
+          that.$message.success("宸ュ崟瀹屽伐鎴愬姛锛�")
           that.loadData()
         } else {
-          that.$message.warning("宸ュ崟浣滃簾澶辫触锛�")
+          that.$message.warning("宸ュ崟瀹屽伐澶辫触锛�")
         }
       })
     },

--
Gitblit v1.9.3