From dc24803e0bc49c5a356b7eaad43060d463469a51 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 08 三月 2023 16:10:20 +0800
Subject: [PATCH] 1.车间生产看板优化

---
 src/views/scgl/sckbg.vue |   62 +++++++++++++++---------------
 1 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/src/views/scgl/sckbg.vue b/src/views/scgl/sckbg.vue
index 42f77f3..4301899 100644
--- a/src/views/scgl/sckbg.vue
+++ b/src/views/scgl/sckbg.vue
@@ -297,7 +297,7 @@
                 sortable="custom"
               />
               <el-table-column
-                label="鏈姤宸ユ暟閲�"
+                label="鏈敹鏂欐暟閲�"
                 width="120"
               >
                 <!--                sortable="custom"-->
@@ -619,20 +619,20 @@
         <!--        <el-form-item v-if="dialogTitle==='鑷埗鎶ュ伐'" label="鎶ュ伐浜哄憳锛�">-->
         <!--          <el-input v-model="dialogForm.remarks" type="textarea" style="width: 200px;" />-->
         <!--        </el-form-item>-->
-        <el-form-item v-if="dialogTitle==='鑷埗鎶ュ伐'" label="鎶ュ伐浜猴細">
-          <el-select
-            v-model="dialogForm.operation"
-            style="width: 200px;"
-            placeholder="璇烽�夋嫨"
-          >
-            <el-option
-              v-for="item in OperationArr"
-              :key="item.usercode"
-              :label="item.username"
-              :value="item.usercode"
-            />
-          </el-select>
-        </el-form-item>
+        <!--        <el-form-item v-if="dialogTitle==='鑷埗鎶ュ伐'" label="鎶ュ伐浜猴細">-->
+        <!--          <el-select-->
+        <!--            v-model="dialogForm.operation"-->
+        <!--            style="width: 200px;"-->
+        <!--            placeholder="璇烽�夋嫨"-->
+        <!--          >-->
+        <!--            <el-option-->
+        <!--              v-for="item in OperationArr"-->
+        <!--              :key="item.usercode"-->
+        <!--              :label="item.username"-->
+        <!--              :value="item.usercode"-->
+        <!--            />-->
+        <!--          </el-select>-->
+        <!--        </el-form-item>-->
         <el-form-item v-if="dialogTitle==='鑷埗鎶ュ伐'" label="澶囨敞锛�">
           <el-input v-model="dialogForm.remarks" type="textarea" style="width: 200px;" />
         </el-form-item>
@@ -870,7 +870,7 @@
             :disabled="$store.state.app.buttonIsDisabled"
             type="primary"
             @click="dialogVisibleConfirm"
-          >鎻愪氦/鎵撳嵃</el-button>
+          >鎻愪氦</el-button>
           <el-button
             v-if="dialogTitle==='澶栧崗鍙戞枡'"
             :loading="$store.state.app.buttonIsDisabled"
@@ -884,7 +884,7 @@
             :disabled="$store.state.app.buttonIsDisabled"
             type="primary"
             @click="dialogVisibleConfirm"
-          >鏀舵枡/鎵撳嵃</el-button>
+          >鏀舵枡</el-button>
         </div>
       </span>
     </el-dialog>
@@ -1388,7 +1388,7 @@
     this.getHeight()
 
     this.$nextTick(() => {
-      $("input[name='produceCode']")[0].focus()
+      $('input[name=\'produceCode\']')[0].focus()
       // this.bindQRCode('10001;001')
     })
     // webapp_urlprotocol_startup()
@@ -1466,21 +1466,21 @@
       if (this.$refs.elTabs.currentName === '0') {
         this.$nextTick(() => {
           this.getMesOrderStepSearch()
-          $("input[name='produceCode']")[0].focus()
+          $('input[name=\'produceCode\']')[0].focus()
           this.WXform.orderstepqrcode = ''
         })
       }
       if (this.$refs.elTabs.currentName === '1') {
         this.$nextTick(() => {
           this.getMesOrderWxStepSearch()
-          $("input[name='WXproduceCode']")[0].focus()
+          $('input[name=\'WXproduceCode\']')[0].focus()
           this.form.orderstepqrcode = ''
         })
       }
       if (this.$refs.elTabs.currentName === '2') {
         this.$nextTick(() => {
           this.getBadList()
-          $("input[name='badProduceCode']")[0].focus()
+          $('input[name=\'badProduceCode\']')[0].focus()
           this.badForm.orderstepqrcode = ''
         })
       }
@@ -1685,7 +1685,7 @@
         this.dialogForm.startqty = obj.noreportqty
 
         this.dialogForm.nextstepname = obj.nextstepname
-        this.dialogForm.nextstepcode = obj.nextstepcode
+        this.dialogForm.nextstepcode = obj.nextstepcode ? obj.nextstepcode : obj.stepcode
 
         this.dialogForm.startqtySum = obj.noreportqty
       })
@@ -1746,7 +1746,7 @@
         this.dialogForm.stepcode = obj.stepcode
 
         this.dialogForm.nextstepname = obj.nextstepname
-        this.dialogForm.nextstepcode = obj.nextstepcode
+        this.dialogForm.nextstepcode = obj.nextstepcode ? obj.nextstepcode : obj.stepcode
 
         this.dialogForm.noputqty = obj.noputqty
         this.dialogForm.stepseq = obj.seq
@@ -1998,10 +1998,10 @@
               if (res.code === '200') {
                 this.dialogVisible = false
                 this.$message.success('鏀舵枡鎴愬姛锛�')
-                if (this.dialogForm.nextstepcode === '') {
-                  this.WXprint2(this.OperationArr.find(item => item.usercode === this.dialogForm.inuser).username)
-                  this.dialogVisible2 = true
-                }
+                // if (this.dialogForm.nextstepcode === '') {
+                //   this.WXprint2(this.OperationArr.find(item => item.usercode === this.dialogForm.inuser).username)
+                //   this.dialogVisible2 = true
+                // }
                 this.tabClick()
                 this.$store.state.app.buttonIsDisabled = false
               } else {
@@ -2076,10 +2076,10 @@
               if (res.code === '200') {
                 this.dialogVisible = false
                 this.$message.success('鎶ュ伐鎴愬姛锛�')
-                if (this.dialogForm.nextstepcode === '') {
-                  this.ZZprint2(this.OperationArr.find(item => item.usercode === this.dialogForm.operation).username)
-                  this.dialogVisible2 = true
-                }
+                // if (this.dialogForm.nextstepcode === '') {
+                //   this.ZZprint2(this.OperationArr.find(item => item.usercode === this.dialogForm.operation).username)
+                //   this.dialogVisible2 = true
+                // }
                 this.tabClick()
                 this.$store.state.app.buttonIsDisabled = false
               } else {

--
Gitblit v1.9.3