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

---
 src/views/scgl/scdd.vue |    4 ++++
 src/views/scgl/gd.vue   |   15 +++++++++++----
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/views/scgl/gd.vue b/src/views/scgl/gd.vue
index 34d6360..f0ced12 100644
--- a/src/views/scgl/gd.vue
+++ b/src/views/scgl/gd.vue
@@ -147,7 +147,7 @@
                 :label="row.wo_code"
                 style="color: transparent;padding-left: 10px;"
               />
-<!--              @change.native="getCurrentRow(row.wo_code)"-->
+              <!--              @change.native="getCurrentRow(row.wo_code)"-->
             </template>
           </el-table-column>
           <el-table-column
@@ -594,6 +594,7 @@
             type="date"
             :clearable="false"
             value-format="yyyy-MM-dd"
+            :picker-options="pickerOptions"
             style="width: 200px"
             placeholder="閫夋嫨鏃ユ湡"
           />
@@ -604,6 +605,7 @@
             type="date"
             :clearable="false"
             value-format="yyyy-MM-dd"
+            :picker-options="pickerOptions"
             style="width: 200px"
             placeholder="閫夋嫨鏃ユ湡"
           />
@@ -1786,7 +1788,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() {
@@ -1991,7 +1998,7 @@
         type: 'warning'
       }).then(() => {
         const data = {
-          souceid: row.sourceid?row.sourceid:'',
+          souceid: row.sourceid ? row.sourceid : '',
           wocode: row.wo_code,
           m_po: row.m_po,
           orderqty: row.plan_qty
@@ -2209,9 +2216,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 18b0ff6..6fd61e2 100644
--- a/src/views/scgl/scdd.vue
+++ b/src/views/scgl/scdd.vue
@@ -626,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