From 71bfe3e7a4cfc6059b26e2bf05ee22754ebcdcc4 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期四, 11 一月 2024 14:43:50 +0800
Subject: [PATCH] 修改

---
 src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue |   53 ++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 38 insertions(+), 15 deletions(-)

diff --git a/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue b/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue
index bacf158..60a0ef4 100644
--- a/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue
+++ b/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue
@@ -197,12 +197,22 @@
                         v-if="col.dataIndex == 'maintenanceOrderDetailUda1'"
                         @change="(e)=>handleChange(e, record.key, col, index)"
                         placeholder="璇疯緭鍏ヤ繚鍏讳汉"
+                        :disabled="record.disabled"
                       />
-                      <a-input
+                      <!-- <a-input
                         :value="text"
                         v-if="col.dataIndex == 'maintenanceOrderDetailUda2'"
                         @change="(e)=>handleChange(e, record.key, col, index)"
                         placeholder="璇疯緭鍏ユ墽琛屾儏鍐�"
+                      /> -->
+                      <a-textarea
+                        :value="text"
+                        v-if="col.dataIndex == 'maintenanceOrderDetailUda2'"
+                        :maxLength="500"
+                        auto-size
+                        placeholder="璇疯緭鍏ユ墽琛屾儏鍐�"
+                        @change="(e)=>handleChange(e, record.key, col, index)"
+                        :disabled="record.disabled"
                       />
                     </div>
                   </template>
@@ -228,7 +238,7 @@
               </div>
             </a-tab-pane>
 
-            <a-tab-pane
+            <!-- <a-tab-pane
               tab='璁″垝鐢ㄦ枡'
               key="2"
             >
@@ -275,7 +285,7 @@
                   :equipmentId="this.model.equipmentId"
                 ></actual-material-edit-table>
               </div>
-            </a-tab-pane>
+            </a-tab-pane>-->
             <a-tab-pane
               tab='瀹為檯宸ユ椂'
               key="6"
@@ -376,6 +386,18 @@
         xs: { span: 24 },
         sm: { span: 18 },
       },
+      /* 鍒嗛〉鍙傛暟 */
+      ipagination: {
+        current: 1,
+        pageSize: 99,
+        pageSizeOptions: ['99'],
+        showTotal: (total, range) => {
+          return range[0] + "-" + range[1] + " 鍏�" + total + "鏉�"
+        },
+        showQuickJumper: true,
+        showSizeChanger: true,
+        total: 0
+      },
       validatorRules: {
         // description: {
         //   rules: [
@@ -401,12 +423,12 @@
           dataIndex: 'location',
         },
         // class: "notshow"
-        {
-          title: '绀烘剰鍥�',
-          align: 'center',
-          dataIndex: 'photo',
-          scopedSlots: { customRender: 'photo' },
-        },
+        // {
+        //   title: '绀烘剰鍥�',
+        //   align: 'center',
+        //   dataIndex: 'photo',
+        //   scopedSlots: { customRender: 'photo' },
+        // },
         // class: "notshow"
         {
           title: '淇濆吇椤圭洰',
@@ -510,11 +532,11 @@
           // }
           //update-begin---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
           this.dataSource = res.result.records || res.result;
-          if (res.result.total) {
-            this.ipagination.total = res.result.total;
-          } else {
-            this.ipagination.total = 0;
-          }
+          // if (res.result.total) {
+          //   this.ipagination.total = res.result.total;
+          // } else {
+          //   this.ipagination.total = 0;
+          // }
           //update-end---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
         } else {
           this.$message.warning(res.message)
@@ -562,6 +584,7 @@
               that.buttonDistable = false
               that.revocationDistable = true
               that.SWbuttonDistable = true
+              that.loadData1(1)
             } else {
               that.$message.warning("宸ュ崟寮�宸ュけ璐ワ紒")
             }
@@ -619,6 +642,7 @@
               that.buttonDistable = false
               that.revocationDistable = true
               that.SWbuttonDistable = true
+              that.loadData1(1)
             } else {
               that.$message.warning(res.message)
             }
@@ -657,7 +681,6 @@
 
 
     handleChange(value, key, column, index) {
-      debugger
       let that = this;
       const temp = [...that.dataSource];
       const target = temp[index];

--
Gitblit v1.9.3