From 436569820a3084dcf90f8156a4f812bc220fbb98 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 31 八月 2022 11:17:23 +0800
Subject: [PATCH] 1.修改bug2.完成保养标准页面的开发

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

diff --git a/src/views/scgl/scdd.vue b/src/views/scgl/scdd.vue
index 5cbf831..5f5f9d7 100644
--- a/src/views/scgl/scdd.vue
+++ b/src/views/scgl/scdd.vue
@@ -236,14 +236,24 @@
             prop="planstartdate"
             label="棰勮寮�宸ユ椂闂�"
             sortable="custom"
-            width="160"
-          />
+            width="130"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.planstartdate">{{ row.planstartdate.substring(0,11) }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="planenddate"
             label="棰勮瀹屽伐鏃堕棿"
             sortable="custom"
-            width="160"
-          />
+            width="130"
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.planenddate">{{ row.planenddate.substring(0,11) }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="createuser"
             label="鍒涘缓浜哄憳"
@@ -258,9 +268,14 @@
           <el-table-column
             prop="createdate"
             label="鍒涘缓鏃堕棿"
-            width="160"
+            width="130"
             sortable="custom"
-          />
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.createdate">{{ row.createdate.substring(0,11) }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
           <el-table-column
             label="鎿嶄綔"
             fixed="right"
@@ -374,7 +389,7 @@
       <span slot="footer" class="dialog-footer">
         <div class="footerButton">
           <el-button @click="dialogVisibleCancel">鍙� 娑�</el-button>
-          <el-button type="primary" @click="dialogVisibleConfirm">涓� 杈�</el-button>
+          <el-button type="primary" :disabled="sendButtonIsDisabled" @click="dialogVisibleConfirm">涓� 杈�</el-button>
         </div>
       </span>
     </el-dialog>
@@ -432,7 +447,6 @@
         { code: 'CLOSED', name: '宸插叧闂�' }
       ],
       total: 10,
-      radioSelected: '',
       radioSelectedId: '',
       tableData: [],
       dialogVisible: false,
@@ -581,8 +595,6 @@
     },
     // 鍗曢�夋閫変腑鑾峰彇褰撳墠琛屼俊鎭�
     getCurrentRow(id) {
-      // console.log(row, 2)
-      // this.radioSelected = row.wo
       this.radioSelectedId = id
     },
     // 璁㈠崟鍏抽棴
@@ -604,7 +616,6 @@
                 if (res.code === '200') {
                   this.$message.success('璁㈠崟鍏抽棴鎴愬姛!')
                   this.getErpOrderSearch()
-                  // this.radioSelected = ''
                 }
               })
             }).catch(() => {
@@ -658,6 +669,8 @@
       this.dialogForm.markqty = ''
       this.dialogForm.ordernum = ''
       this.dialogForm.relse_qty = ''
+
+      this.sendButtonIsDisabled = false
       this.$refs.dialogForm.clearValidate()
     },
     // 瀵硅瘽妗嗗彇娑�
@@ -687,7 +700,7 @@
             'ordernum': this.dialogForm.ordernum,
             'relse_qty': this.dialogForm.relse_qty
           }
-          console.log(data)
+          this.sendButtonIsDisabled = true
           MarkSaveErpOrder(data).then(res => {
             if (res.code === '200') {
               this.$message.success('涓嬭揪鎴愬姛锛�')

--
Gitblit v1.9.3