From 49b1409c6886034321042f9e7e19d119f1fe3901 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 07 十月 2022 09:01:40 +0800
Subject: [PATCH] 1.看板新增监测网络是否在线事件

---
 src/views/scgl/scdd.vue |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/src/views/scgl/scdd.vue b/src/views/scgl/scdd.vue
index 262793f..36bd953 100644
--- a/src/views/scgl/scdd.vue
+++ b/src/views/scgl/scdd.vue
@@ -189,11 +189,13 @@
             label="浜у搧鍚嶇О"
             sortable="custom"
             min-width="150"
+            show-tooltip-when-overflow
           />
           <el-table-column
             prop="partspec"
             label="浜у搧瑙勬牸"
             sortable="custom"
+            show-tooltip-when-overflow
             min-width="110"
           >
             <template slot-scope="{row}">
@@ -370,7 +372,12 @@
       <span slot="footer" class="dialog-footer">
         <div class="footerButton">
           <el-button @click="dialogVisibleCancel">鍙� 娑�</el-button>
-          <el-button type="primary" :disabled="sendButtonIsDisabled" @click="dialogVisibleConfirm">涓� 杈�</el-button>
+          <el-button
+            type="primary"
+            :loading="$store.state.app.buttonIsDisabled"
+            :disabled="$store.state.app.buttonIsDisabled"
+            @click="dialogVisibleConfirm"
+          >涓� 杈�</el-button>
         </div>
       </span>
     </el-dialog>
@@ -653,7 +660,6 @@
       this.dialogForm.ordernum = ''
       this.dialogForm.relse_qty = ''
 
-      this.sendButtonIsDisabled = false
       this.$refs.dialogForm.clearValidate()
     },
     // 瀵硅瘽妗嗗彇娑�
@@ -670,13 +676,13 @@
         return this.$message.info('涓嬪崟鏁伴噺瓒呭嚭鍙笅鍗曟暟鐨勮寖鍥达紒')
       }
 
-      console.log(this.dialogForm.ordernum < this.dialogForm.markqty)
       if (this.dialogForm.ordernum < 1 || this.dialogForm.ordernum > this.dialogForm.markqty) {
         return this.$message.info('涓嬪崟鍗曟暟瓒呭嚭鍙笅鍗曞崟鏁扮殑鑼冨洿锛�')
       }
 
       this.$refs.dialogForm.validate(valid => {
         if (valid) {
+          this.$store.state.app.buttonIsDisabled = true
           const data = {
             'erporderid': this.dialogForm.erporderid,
             // 'erporderstus': this.dialogForm.erporderstus,
@@ -689,12 +695,12 @@
             'ordernum': this.dialogForm.ordernum,
             'relse_qty': this.dialogForm.relse_qty
           }
-          this.sendButtonIsDisabled = true
           MarkSaveErpOrder(data).then(res => {
             if (res.code === '200') {
-              this.$message.success('涓嬭揪鎴愬姛锛�')
               this.dialogVisible = false
+              this.$message.success('涓嬭揪鎴愬姛锛�')
               this.getErpOrderSearch()
+              this.$store.state.app.buttonIsDisabled = false
             } else {
               this.$message.error('涓嬭揪澶辫触锛�')
             }
@@ -839,15 +845,18 @@
     height: 100% !important;
   }
 }
+
 </style>
 <style>
 .el-table .custom-row {
   background: #f8f8fa;
 }
-</style>
-<style>
 .osloading{
-  font-size: 40px;
+  font-size: 26px !important;
 }
 
+.el-loading-text{
+  font-size: 26px !important;
+}
 </style>
+

--
Gitblit v1.9.3