From 869922ac0aa2cc59062919e15e900ecb377be4be Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 24 十一月 2022 16:21:26 +0800
Subject: [PATCH] 1.新增日期选择控制2.对话框弹出控制

---
 src/views/scgl/scdd.vue |    9 ++++++---
 src/views/scgl/gd.vue   |   12 ++++++++++--
 2 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/views/scgl/gd.vue b/src/views/scgl/gd.vue
index 79296ee..8bc0a55 100644
--- a/src/views/scgl/gd.vue
+++ b/src/views/scgl/gd.vue
@@ -599,6 +599,8 @@
             v-model="dialogForm.planstartdate"
             type="date"
             :clearable="false"
+            :picker-options="pickerOptions"
+
             value-format="yyyy-MM-dd"
             style="width: 200px"
             placeholder="閫夋嫨鏃ユ湡"
@@ -609,6 +611,7 @@
             v-model="dialogForm.planenddate"
             type="date"
             :clearable="false"
+            :picker-options="pickerOptions"
             value-format="yyyy-MM-dd"
             style="width: 200px"
             placeholder="閫夋嫨鏃ユ湡"
@@ -1815,7 +1818,12 @@
         // { code: 3, name: '50*40' },
         // { code: 4, name: '50*80' },
         // { code: 5, name: '40*30' }
-      ]
+      ],
+      pickerOptions: {
+        disabledDate(time) {
+          return time.getTime() < Date.now() - 8.64e7
+        }
+      }
     }
   },
   created() {
@@ -2239,9 +2247,9 @@
             // div.scrollTop = div.scrollHeight // 婊氬姩鏉′綅浜庢渶搴曢儴
             div.scrollTop = 0 // 婊氬姩鏉′綅浜庢渶椤堕儴
           })
+          this.dialogVisibleApprove = true
         }
       })
-      this.dialogVisibleApprove = true
     },
     dialogVisibleTaskClose() {
       this.dialogForm.mesordercode = ''
diff --git a/src/views/scgl/scdd.vue b/src/views/scgl/scdd.vue
index 2ec5bd2..6fd61e2 100644
--- a/src/views/scgl/scdd.vue
+++ b/src/views/scgl/scdd.vue
@@ -150,9 +150,8 @@
                 v-model="radioSelectedId"
                 :label="row.id"
                 style="color: transparent;padding-left: 10px;"
-
               />
-<!--              @change.native="getCurrentRow(row.id)"-->
+              <!--              @change.native="getCurrentRow(row.id)"-->
             </template>
           </el-table-column>
           <el-table-column
@@ -589,7 +588,7 @@
     getCurrentRow(id) {
       this.radioSelectedId = id
     },
-    rowClick(row){
+    rowClick(row) {
       this.radioSelectedId = row.id
     },
     // 璁㈠崟鍏抽棴
@@ -627,6 +626,10 @@
     },
     // 淇敼鎸夐挳
     edit(operation, row) {
+      if (parseFloat(row.qty) === parseFloat(row.relse_qty)) {
+        return this.$message.info('姝ゅ伐鍗曞凡鍏ㄩ儴涓嬭揪锛�')
+      }
+
       this.operation = operation
       this.dialogVisible = true
 

--
Gitblit v1.9.3