From 3d191afba4d90a4f18b5cb9941ef10552d413309 Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期日, 16 三月 2025 20:35:52 +0800
Subject: [PATCH] 修改全局人员查询

---
 src/views/business/productOrder/components/add.vue |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/add.vue
index 909003a..5da2477 100644
--- a/src/views/business/productOrder/components/add.vue
+++ b/src/views/business/productOrder/components/add.vue
@@ -232,6 +232,7 @@
           </div>
         </div>
         <el-table ref="sampleTable" :data="sampleList" border class="el-table sampleTable" highlight-current-row
+                  :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }"
           max-height="400px" tooltip-effect="dark" @selection-change="selectSample" @row-click="rowClick">
           <el-table-column v-if="active==1" :selectable="selectable" type="selection" width="60"></el-table-column>
           <el-table-column align="center" label="搴忓彿" type="index" width="65"></el-table-column>
@@ -295,8 +296,9 @@
             </template>
           </el-table-column>
         </el-table>
-        <el-table ref="productTable" v-loading="getProductLoad" :data="productList" :row-class-name="tableRowClassName" border class="el-table"
-                  :key="upIndex"
+        <el-table ref="productTable" v-loading="getProductLoad" :data="productList"
+                  :row-class-name="tableRowClassName" border class="el-table"
+                  :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }"
           max-height="400px" style="margin-bottom: 10px;" tooltip-effect="dark"
           @select="selectOne" @selection-change="selectProduct" @select-all="handleAll">
           <el-table-column v-if="active==1" :selectable="selectable0" type="selection" width="65"></el-table-column>
@@ -899,7 +901,6 @@
         this.isSpecial = true
         this.$nextTick(() => {
           this.$refs.productTable.doLayout();
-          this.upIndex++
         });
       },
       getQuarterOnOrderList () {
@@ -980,7 +981,7 @@
       },
       // 鑾峰彇鐢ㄦ埛鍒楄〃
       getAuthorizedPerson() {
-        selectUserCondition().then(res => {
+        selectUserCondition({ type: 1 }).then(res => {
           let data = []
           res.data.forEach(a => {
             data.push({
@@ -1301,7 +1302,6 @@
             company: this.addObj.company
           }).then(res => {
             this.saveLoad = false
-            if (res.code == 201) return
             this.$message.success('鎻愪氦鎴愬姛')
             selectOrderManDay({
               id: this.currentId
@@ -1339,10 +1339,6 @@
           userId: this.distributeData.userId,
           sonLaboratory:this.distributeData.sonLaboratory
         }).then(res => {
-          if (res.code === 201) {
-            this.upLoad = false
-            return
-          }
           this.$message.success('鎻愪氦鎴愬姛')
           this.upLoad = false
           this.issuedDialogVisible = false
@@ -1676,9 +1672,6 @@
           delInsOrderTemplate({
             id: row.id
           }).then(res => {
-            if (res.code === 201) {
-              return
-            }
             this.$message.success('鍒犻櫎鎴愬姛')
             this.selectInsOrderTemplate()
           }).catch(e => {

--
Gitblit v1.9.3