From b08411e811e003ae2711e7ba8d92deaec9239de3 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 24 三月 2023 14:01:44 +0800
Subject: [PATCH] 1.生产开报工优化

---
 src/views/scgl/sckbg.vue |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/views/scgl/sckbg.vue b/src/views/scgl/sckbg.vue
index 3f2aeba..80685d2 100644
--- a/src/views/scgl/sckbg.vue
+++ b/src/views/scgl/sckbg.vue
@@ -1519,6 +1519,7 @@
       this.dialogForm.usergroupcode = ''
       this.dialogForm.operation = ''
       this.userTableData = []
+      this.UserTotal = 0
       // console.log(this.$refs.dialogForm, 'log')
       // this.$nextTick(() => {
       //   this.$refs.dialogForm.resetFields()
@@ -1937,6 +1938,7 @@
     async getUserTableData() {
       const { data: res } = await MesOrderGroupSelectUser({ usergroupcode: this.dialogForm.usergroupcode })
       this.userTableData = res
+      this.UserTotal = res.length
       this.userTableData.forEach(item => {
         let number = Math.random() * Math.random()// 浣滀负鍒犻櫎鏃剁殑鏍囪瘑绗�
         number = number === 0 ? (10 + Math.random()) : number
@@ -1961,6 +1963,7 @@
         value += item.ratio
       })
       console.log(value, 1)
+      this.UserTotal = this.userTableData.length
       if (value !== total) {
         // let temp = this.userTableData
         // temp[temp.length-1].ratio=temp[temp.length-1].ratio+(total-value)
@@ -2041,6 +2044,7 @@
           this.userTableData.splice(index, 1)
         }
       })
+      this.UserTotal = this.userTableData.length
     },
     // 鐢ㄦ埛鍒楄〃浜哄憳鍚嶇О鍊奸�変腑
     usernameChange(val, row) {
@@ -2173,11 +2177,11 @@
               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.WXprint2(this.OperationArr.find(item => item.usercode === getCookie('navTabId')).username)
-                  this.dialogVisible2 = true
-                }
+                // if (this.dialogForm.nextstepcode === '') {
+                // this.WXprint2(this.OperationArr.find(item => item.usercode === this.dialogForm.inuser).username)
+                this.WXprint2(this.OperationArr.find(item => item.usercode === getCookie('navTabId')).username)
+                this.dialogVisible2 = true
+                // }
                 this.tabClick()
                 this.$store.state.app.buttonIsDisabled = false
               } else {
@@ -2272,10 +2276,10 @@
               if (res.code === '200') {
                 this.dialogVisible = false
                 this.$message.success('鎶ュ伐鎴愬姛锛�')
-                if (this.dialogForm.nextstepcode === '') {
-                  this.ZZprint2(this.OperationArr.find(item => item.usercode === getCookie('navTabId')).username)
-                  this.dialogVisible2 = true
-                }
+                // if (this.dialogForm.nextstepcode === '') {
+                this.ZZprint2(this.OperationArr.find(item => item.usercode === getCookie('navTabId')).username)
+                this.dialogVisible2 = true
+                // }
                 this.tabClick()
                 this.$store.state.app.buttonIsDisabled = false
               } else {

--
Gitblit v1.9.3