From d71436544198b7b051115662fc9cf4b12ce0cda3 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 19 七月 2022 18:32:40 +0800
Subject: [PATCH] 1.修改bug

---
 src/views/scgl/sckbg.vue |  295 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 278 insertions(+), 17 deletions(-)

diff --git a/src/views/scgl/sckbg.vue b/src/views/scgl/sckbg.vue
index 8831aa6..8d169cd 100644
--- a/src/views/scgl/sckbg.vue
+++ b/src/views/scgl/sckbg.vue
@@ -2,14 +2,15 @@
   <div>
     <div class="body" style="padding: 0;height: 100%" :style="{height:mainHeight+'px'}">
 
-      <el-tabs ref="elTabs" type="border-card" @tab-click="tabClick">
+      <el-tabs ref="elTabs" v-model="activeName" type="border-card" @tab-click="tabClick">
         <el-tab-pane label="鐢熶骇鍒楄〃">
           <div style="margin-left: 10px;margin-top:10px;display: flex;justify-content: space-between">
             <div style="display: flex;align-items: center">
-              <div style="width: 70px">鎵爜锛�</div>
+              <div style="width: 90px">鎵弿鏉$爜锛�</div>
+              <!--              oninput="value=value.replace(/[^0-9a-zA-Z;_]/g,'')"-->
+
               <el-input
                 v-model="form.orderstepqrcode"
-                oninput="value=value.replace(/[^0-9a-zA-Z;_]/g,'')"
                 name="produceCode"
                 style="width: 300px"
                 @keyup.enter.native="val=>enterNative(val,'produceCode')"
@@ -163,10 +164,9 @@
                   :value="item.code"
                 />
               </el-select>
-              <div style="width: 70px;margin-left: 20px">鎵爜锛�</div>
+              <div style="width: 90px;margin-left: 20px">鎵弿鏉$爜锛�</div>
               <el-input
                 v-model="WXform.orderstepqrcode"
-                oninput="value=value.replace(/[^0-9a-zA-Z;_]/g,'')"
                 name="WXproduceCode"
                 style="width: 300px"
                 @keyup.enter.native="val=>enterNative(val,'WXproduceCode')"
@@ -303,7 +303,192 @@
             @pagination="getMesOrderStepSearch"
           />
         </el-tab-pane>
+        <el-tab-pane label="宸ュ簭妫�楠�">
+          <div style="margin-left: 10px;margin-top:10px;display: flex;flex-direction: column">
+            <div style="margin-bottom: 10px;font-size: 14px">
+              <i class="el-icon-s-operation" style="color:#42b983; margin-right: 5px" />鎵爜淇℃伅
+            </div>
+            <div style="display: flex;align-items: center">
+              <div style="width: 90px">鎵弿鏉$爜锛�</div>
+              <el-input
+                v-model="GXform.orderstepqrcode"
+                name="GXproduceCode"
+                style="width: 300px"
+                @keyup.enter.native="val=>enterNative(val,'GXproduceCode')"
+              />
+            </div>
+            <!--        鍏」淇℃伅      -->
+            <div style="display:flex;margin-top: 10px;align-items: center">
+              <div style="display: flex;">
+                <div style="display: flex;margin-right: 50px">
+                  <div style="width: 90px">宸ュ崟缂栫爜锛�</div>
+                  <div style="width: 100px">PX00120012312</div>
+                </div>
+                <div style="display: flex;">
+                  <div style="width: 90px">浜у搧缂栫爜锛�</div>
+                  <div style="width: 100px">123-446-789</div>
+                </div>
+              </div>
+              <div style="display: flex;margin-left: 30px;">
+                <div style="display: flex;margin-right: 50px">
+                  <div style="width: 90px">浜у搧鍚嶇О锛�</div>
+                  <div style="width: 100px">PX00120012312</div>
+                </div>
+                <div style="display: flex;">
+                  <div style="width: 90px">浜у搧瑙勬牸锛�</div>
+                  <div style="width: 100px">123-446-789</div>
+                </div>
+              </div>
+              <div style=" display: flex;margin-left: 30px;">
+                <div style="display: flex;margin-right: 50px">
+                  <div style="width: 90px">宸ュ簭缂栫爜锛�</div>
+                  <div>PX00120012312</div>
+                </div>
+                <div style="display: flex;">
+                  <div style="width: 90px">宸ュ簭鍚嶇О锛�</div>
+                  <div>123-446-789</div>
+                </div>
+              </div>
+            </div>
+            <div style="margin: 10px 0;font-size: 14px">
+              <i class="el-icon-s-operation" style="color:#42b983; margin-right: 5px" />妫�楠屾爣鍑嗕俊鎭�
+            </div>
+            <div style="display: flex;align-items: center">
+              <div style="width: 90px">妫�楠屾爣鍑嗭細</div>
+              <el-select
+                v-model="dialogForm.aaa"
+                style="width: 200px;"
+                placeholder="璇烽�夋嫨"
+                filterable
+              >
+                <el-option
+                  v-for="item in ARR"
+                  :key="item.code"
+                  :label="item.name"
+                  :value="item.code"
+                />
+              </el-select>
+              <div style="width: 90px;margin-left: 50px;">妫�楠屼汉鍛橈細</div>
+              <el-select
+                v-model="dialogForm.aaa"
+                style="width: 200px;"
+                placeholder="璇烽�夋嫨"
+                filterable
+              >
+                <el-option
+                  v-for="item in ARR"
+                  :key="item.code"
+                  :label="item.name"
+                  :value="item.code"
+                />
+              </el-select>
+            </div>
+            <div style="margin: 10px 0;font-size: 14px">
+              <i class="el-icon-s-operation" style="color:#42b983; margin-right: 5px" />妫�楠岄」淇℃伅
+            </div>
+            <div>
+              <el-button type="primary" @click="add">鏂板</el-button>
+            </div>
+            <div style="margin-top: 10px">
+              <el-table
+                :data="JYTableData"
+                :height="(tableHeight-195)+'px'"
+                border
+                stripe
+                :style="{width: 100+'%',height:tableHeight+'px',}"
+                highlight-current-row
+                :header-cell-style="this.$headerCellStyle"
+                :cell-style="this.$cellStyle"
+                @sort-change="JYsortChange"
+              >
+                <el-table-column
+                  prop="RowNum"
+                  label="搴忓彿"
+                />
+                <!--                <el-table-column-->
+                <!--                  prop="bm"-->
+                <!--                  label="妫�楠岄」鐩紪鐮�"-->
+                <!--                  sortable="custom"-->
+                <!--                />-->
+                <el-table-column
+                  prop="mc"
+                  sortable="custom"
+                  label="妫�楠岄」鐩悕绉�"
+                >
+                  <!--                  <template slot-scope="{row}">-->
+                  <!--                    <el-input v-if="row.isVisible===1" v-model="row.group_code" placeholder="璇疯緭鍏�" />-->
+                  <!--                    <div v-else> {{ row.group_code }}</div>-->
+                  <!--                  </template>-->
+                </el-table-column>
+                <el-table-column
+                  prop="ms"
+                  label="妫�楠屾爣鍑嗘弿杩�"
+                  sortable="custom"
+                >
+                  <!--                  <template slot-scope="{row}">-->
+                  <!--                    <el-input v-if="row.isVisible===1" v-model="row.group_code" placeholder="璇疯緭鍏�" />-->
+                  <!--                    <div v-else> {{ row.group_code }}</div>-->
+                  <!--                  </template>-->
+                </el-table-column>
+                <el-table-column
+                  prop="jg"
+                  label="妫�楠岀粨鏋�"
+                  sortable="custom"
+                >
+                  <template slot-scope="{row}">
+                    <div style="justify-content: flex-start ;">
+                      <el-radio v-model="radio" label="1">澶囬�夐」</el-radio>
+                      <el-radio v-model="radio" label="2">澶囬�夐」</el-radio>
+                    </div>
+                  </template>
+                </el-table-column>
+                <el-table-column
+                  label="鎿嶄綔"
+                >
+                  <template slot-scope="{row}">
+                    <div class="operationClass">
+                      <el-button v-if="row.isVisible===0" type="text" @click="del(row)">鍒犻櫎</el-button>
+                      <el-button v-if="row.isVisible===1" type="text" @click="confirm(row)">纭</el-button>
+                      <el-button v-if="row.isVisible===1" type="text" @click="cancel(row)">鍙栨秷</el-button>
+                    </div>
+                  </template>
+                </el-table-column>
+              </el-table>
+            </div>
+            <!--   妫�楠岀粨鏋�   鍜�  妫�楠屽娉�      -->
+            <div style="display: flex;margin-top: 20px;align-items: center">
 
+              <div style="display: flex;margin-right: 50px;align-items: center">
+                <div style="width: 90px">妫�楠岀粨鏋滐細</div>
+                <el-select
+                  v-model="dialogForm.aaa"
+                  style="width: 200px;"
+                  placeholder="璇烽�夋嫨"
+                  filterable
+                >
+                  <el-option
+                    v-for="item in ARR"
+                    :key="item.code"
+                    :label="item.name"
+                    :value="item.code"
+                  />
+                </el-select>
+              </div>
+              <div style="display: flex;">
+                <div style="width: 90px">妫�楠屽娉細</div>
+                <!--                <el-input v-model="row.group_code" placeholder="璇疯緭鍏�" />-->
+              </div>
+
+            </div>
+
+            <div style="display: flex;margin: 20px 0;align-items: center">
+              <el-button type="primary">棣栨淇濆瓨</el-button>
+              <el-button type="primary" style="margin-left: 50px">宸℃淇濆瓨</el-button>
+              <el-button type="primary" style="margin-left: 50px">瀹屽伐妫�淇濆瓨</el-button>
+              <el-button type="info" style="margin-left: 50px">鍙栨秷</el-button>
+            </div>
+          </div>
+        </el-tab-pane>
       </el-tabs>
 
     </div>
@@ -366,6 +551,7 @@
         <!--鑷埗寮�濮�-->
         <el-form-item v-if="dialogTitle==='鑷埗寮�濮�'" label="寮�宸ユ暟閲忥細">
           <div style="width: 200px">{{ dialogForm.startqty }}</div>
+          <!--          <div style="width: 200px">{{  dialogForm.noreportqty }}</div>-->
         </el-form-item>
         <el-form-item v-if="dialogTitle==='鑷埗寮�濮�'" prop="eqpcode" label="鐢熶骇璁惧锛�">
           <el-select
@@ -416,6 +602,7 @@
         </el-form-item>
         <el-form-item v-if="dialogTitle==='鑷埗鎶ュ伐'" label="鎶ュ伐鏁伴噺锛�" prop="startqty">
           <el-input v-model="dialogForm.startqty" oninput="value=value.replace(/[^0-9.]/g,'')" style="width: 200px;" />
+          <!--          <el-input v-model="dialogForm.noreportqty" oninput="value=value.replace(/[^0-9.]/g,'')" style="width: 200px;" />-->
         </el-form-item>
         <el-form-item v-if="dialogTitle==='鑷埗鎶ュ伐'" label="涓嶈壇鏁伴噺锛�">
           <el-input v-model="dialogForm.noputqty" oninput="value=value.replace(/[^0-9.]/g,'')" style="width: 200px;" />
@@ -649,8 +836,6 @@
 
 <script>
 import Pagination from '@/components/Pagination'
-import { AddUpdateOrganization, DeleteOrganization, OrganizationSearch, PrentOrganization } from '@/api/jcsz'
-import { getCookie } from '@/utils/auth'
 import $ from 'jquery'
 import {
   MesOrderGroupSelectUser,
@@ -668,7 +853,7 @@
   SavaMesOrderStepReport
 } from '@/api/scgl'
 import { urlAddRandomNo, webapp_urlprotocol_startup, webapp_ws_ajax_run, webapp_ws_autoupdate } from '@/utils/grwebapp'
-import { MesOrderPrintSearch1 } from '@/api/utils'
+import { UserGroupDelete } from '@/api/jcsz'
 
 const SER_HZ = /^[\u4e00-\u9fa5]+$/
 export default {
@@ -712,7 +897,6 @@
       total: 10,
       tableData: [],
       WXform: { // 澶栧崗琛ㄥ崟
-        // PO202206280001_4;Step01
         orderstepqrcode: '', // 鎵弿鐨勪簩缁寸爜淇℃伅
         prop: 'wo_code', // 鎺掑簭瀛楁z
         order: 'asc', // 鎺掑簭瀛楁
@@ -774,7 +958,6 @@
       UserTotal: 0,
       Userform: {},
       userIsSave: false, // 姝や汉鍛樻槸鍚﹀彲淇濇寔
-      // operation: '',
       dialogFormRules: {
         outuser: [
           { required: true, message: '璇烽�夋嫨鍙戞枡浜哄憳', trigger: ['blur', 'change'] }
@@ -806,8 +989,19 @@
         startqty: [
           { required: true, message: '璇疯緭鍏ユ姤宸ユ暟閲�', trigger: ['blur', 'change'] }
         ]
-      }
-
+      },
+      activeName: '',
+      GXform: { // 宸ュ簭
+        orderstepqrcode: '' // 鎵弿鐨勪簩缁寸爜淇℃伅
+        // prop: 'wo_code', // 鎺掑簭瀛楁z
+        // order: 'asc', // 鎺掑簭瀛楁
+        // page: 1, // 绗嚑椤�
+        // rows: 20 // 姣忛〉澶氬皯鏉�
+      },
+      JYTableData: [
+        { RowNum: 1, bm: '001', mc: '灏哄', ms: '鏃�', jg: '鎴戞槸缁撴灉', isVisible: 0 }
+      ], // 妫�楠岄」淇℃伅琛ㄦ牸
+      radio: ''
     }
   },
   created() {
@@ -879,14 +1073,19 @@
         this.$nextTick(() => {
           this.getMesOrderStepSearch()
           $("input[name='produceCode']")[0].focus()
-          // this.WXform.orderstepqrcode = ''
+          this.WXform.orderstepqrcode = ''
         })
       }
       if (this.$refs.elTabs.currentName === '1') {
         this.$nextTick(() => {
           this.getMesOrderWxStepSearch()
           $("input[name='WXproduceCode']")[0].focus()
-          // this.form.orderstepqrcode = ''
+          this.form.orderstepqrcode = ''
+        })
+      }
+      if (this.$refs.elTabs.currentName === '2') {
+        this.$nextTick(() => {
+          $("input[name='GXproduceCode']")[0].focus()
         })
       }
     },
@@ -928,6 +1127,10 @@
           await this.WXback(res.data)
         }
       }
+
+      if (belong === 'GXproduceCode') {
+        console.log('GXproduceCode')
+      }
     },
     // 鏌ヨ
     search() {
@@ -953,7 +1156,8 @@
         this.dialogForm.planqty = obj.planqty
         this.dialogForm.reportqty = obj.reportqty
         this.dialogForm.noreportqty = obj.noreportqty
-        this.dialogForm.startqty = obj.startqty
+        // this.dialogForm.startqty = obj.startqty
+        this.dialogForm.startqty = obj.noreportqty
       })
 
       await this.getMesOrderStepStartSelectEqp()
@@ -979,7 +1183,8 @@
         this.dialogForm.reportqty = obj.reportqty
         this.dialogForm.noputqty = obj.noputqty
         this.dialogForm.noreportqty = obj.noreportqty
-        this.dialogForm.startqty = obj.startqty
+        // this.dialogForm.startqty = obj.startqty
+        this.dialogForm.startqty = obj.noreportqty
 
         if (obj.nextstepname === null || obj.nextstepcode === '') {
           this.dialogForm.nextstepname = obj.stepname
@@ -987,7 +1192,7 @@
           this.dialogForm.nextstepname = obj.nextstepname
         }
 
-        this.dialogForm.startqtySum = obj.startqty
+        this.dialogForm.startqtySum = obj.noreportqty
       })
 
       await this.getMesOrderStepStartSelectEqp()
@@ -1379,6 +1584,62 @@
         this.mainHeight = window.innerHeight - 250
         this.tableHeight = this.mainHeight - 80
       })
+    },
+    /*
+  *妫�楠岄」淇℃伅
+  * */
+    JYsortChange({ column, prop, order }) {
+      if (order === 'descending') {
+        order = 'desc'
+      } else if (order === 'ascending') {
+        order = 'asc'
+      } else {
+        order = 'desc'
+      }
+      this.GXform.order = order
+      this.GXform.prop = prop
+      // this.getOrganizationSearch()
+    },
+    // 鑾峰彇宸ュ簭鍒楄〃
+    // getList(){
+    //
+    // },
+    //  鏂板
+    add() {
+      // this.JYTableData.forEach(item => {
+      //   item.isVisible = 0
+      // })
+
+      // let number = Math.random() * Math.random()// 浣滀负鍒犻櫎鏃剁殑鏍囪瘑绗�
+      // number = number === 0 ? (10 + Math.random()) : number
+
+      // const data = { group_code: '', group_name: '', description: '', isVisible: 1, number: number }
+      // this.JYTableData.unshift(data)
+    },
+    // 鍒犻櫎
+    del() {
+      this.$confirm('鏄惁纭鍒犻櫎?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(() => {
+        // UserGroupDelete({ UserGrupCode: row.group_code }).then(res => {
+        //   if (res.code === '200') {
+        //     this.$message.success('鍒犻櫎鎴愬姛!')
+        //     this.getUserGroupSearch()
+        //   }
+        // })
+      }).catch(() => {
+        this.$message.info('宸插彇娑堝垹闄�')
+      })
+    },
+    //  纭
+    confirm() {
+
+    },
+    //  鍙栨秷
+    cancel() {
+
     }
   }
 }

--
Gitblit v1.9.3