From 6208ba6872cc54ccbd2b2ff3b67a1a2f054af41d Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 19 九月 2023 14:52:15 +0800
Subject: [PATCH] 1.生产入库实现

---
 src/views/scgl/scdd.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/scgl/scdd.vue b/src/views/scgl/scdd.vue
index 36bd953..6fd61e2 100644
--- a/src/views/scgl/scdd.vue
+++ b/src/views/scgl/scdd.vue
@@ -55,7 +55,7 @@
             <el-form-item v-show="isExpandForm" label="鍒涘缓浜哄憳" style=" display: flex;">
               <el-input v-model="form.creatuser" style="width: 200px" placeholder="璇疯緭鍏�" />
             </el-form-item>
-            <el-form-item v-show="isExpandForm" label="棰勮寮�宸ユ椂闂�" label-width="100px" style=" line-height: 40px;;display: flex;font-size: 14px;">
+            <el-form-item v-show="isExpandForm" label="棰勮寮�宸ユ椂闂�" label-width="100px" style="display: flex;font-size: 14px;align-items: center">
               <el-date-picker
                 v-model="form.paystartdate"
                 type="daterange"
@@ -71,7 +71,7 @@
               <!--              :picker-options="expireTimeOption"-->
 
             </el-form-item>
-            <el-form-item v-show="isExpandForm" label="棰勮瀹屽伐鏃堕棿" label-width="100px" style=" display: flex;font-size: 14px;">
+            <el-form-item v-show="isExpandForm" label="棰勮瀹屽伐鏃堕棿" label-width="100px" style=" display: flex;font-size: 14px;align-items: center">
               <el-date-picker
                 v-model="form.payenddate"
                 type="daterange"
@@ -135,6 +135,7 @@
           :header-cell-style="this.$headerCellStyle"
           :cell-style="this.$cellStyle"
           @sort-change="sortChange"
+          @row-click="rowClick"
         >
           <!--          <el-table-column-->
           <!--            type="selection"-->
@@ -149,8 +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
@@ -587,6 +588,9 @@
     getCurrentRow(id) {
       this.radioSelectedId = id
     },
+    rowClick(row) {
+      this.radioSelectedId = row.id
+    },
     // 璁㈠崟鍏抽棴
     async orderClose() {
       if (this.radioSelectedId.length < 1) {
@@ -622,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