From 7f6af6907202cb7c9395a7020d249bd62e17d50f Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期五, 05 一月 2024 17:59:17 +0800
Subject: [PATCH] 1、解决车间看板页面因浏览器兼容性问题导致的样式不适配问题(使用浏览器86版本与其他版本做对比) 2、优化车间看板页面代码,将看板拖拽区域设置高度后再设置限制拖拽以试图解决进入页面后有概率设备无法自由拖拽问题(猜想因父子组件渲染顺序导致,父组件还未渲染完成,子组件就已限制区域,此时区域高度可能0,未在现场调试,本地调试无问题) 3、优化设备利用率、开动率及班次利用率页面代码,解决因浏览器版本问题导致表格前3列文字无法垂直排列导致的布局问题以及调整右上角区间展示区域为响应式布局

---
 src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue |   49 ++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 36 insertions(+), 13 deletions(-)

diff --git a/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue b/src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue
index bacf158..3a7a7af 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>
@@ -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