From 7fb0a8f0ab16c149484bf043754cd10cfa94de2f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 19 一月 2026 14:48:05 +0800
Subject: [PATCH] 增加了业务员,保管员和验收员的对应的显示

---
 src/views/system/user/xtUserList.vue |   39 +++++++++++++++++++++++++--------------
 1 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/src/views/system/user/xtUserList.vue b/src/views/system/user/xtUserList.vue
index 2672ee6..3efc06b 100644
--- a/src/views/system/user/xtUserList.vue
+++ b/src/views/system/user/xtUserList.vue
@@ -105,8 +105,7 @@
           @click="handleEdit(row = rowForm, OperationType = 3)">缂栬緫</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button type="primary" icon="el-icon-share" size="mini" :disabled="single"
-          @click="openQuery = true">鏉冮檺</el-button>
+        <el-button type="primary" icon="el-icon-share" size="mini" :disabled="single" @click="queryClick">鏉冮檺</el-button>
       </el-col>
       <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">鍒犻櫎
@@ -147,7 +146,7 @@
           :copyType="copyType" @editClose="editClose" v-if="editShow" />
       </el-dialog>
       <el-dialog title="鐢ㄦ埛鏉冮檺" :visible.sync="openQuery" width="1480px" append-to-body class="xsckdBox">
-        <Query />
+        <Query HSouceBillType="yh" @editQueryClose="editQueryClose" :linterid=this.rowForm.鐢ㄦ埛缂栫爜 v-if="queryShow" />
       </el-dialog>
     </div>
   </div>
@@ -157,7 +156,7 @@
 import axios from 'axios'
 import RowSettings from '@/views/component/rowSettings'
 import Edit from '@/views/system/user/xtUserListEdit.vue'
-import Query from '@/views/system/user/xtUserRightQuery.vue'
+import Query from '@/views/system/user/powerInformation.vue'
 
 
 export default {
@@ -172,6 +171,7 @@
       activeSeach: '',
       HModName: 'Xt_UserList',
       editShow: false,
+      queryShow: false,
       openEdit: false,
       totalNameList: [],
       tableShow: true,
@@ -213,7 +213,7 @@
       open: false,
       // 鏌ヨ鍙傛暟
       queryParams: {
-        HUSEORGID: null,
+        HUSEORGID: sessionStorage["OrganizationID"] - 0,
         HName: null,
         HNumber: null,
         Comparator1: '',
@@ -350,10 +350,9 @@
       if (this.pageSize == 0) {
         this.pageSize = 50
       }
-      this.queryParams.HUSEORGID = sessionStorage["OrganizationID"] - 0
       // this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
       //鍒楄〃
-      axios.get(this.baseURL + '/Xt_User/list', {
+      axios.get(this.$baseUrl + '/Xt_User/list', {
         params: {
           "sWhere": this.sWhere,
           "user": sessionStorage["HUserName"],
@@ -383,7 +382,7 @@
     },
     DisPlay_HideColumn(HModName, user, option, dataOption) {
       this.totalNameList = []
-      axios.get(this.baseURL + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', {
+      axios.get(this.$baseUrl + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', {
         params: {
           "HModName": HModName,
           "user": user,
@@ -529,7 +528,7 @@
     },
     //閫変腑琛岄珮浜牱寮�
     rowStyle({ row, rowIndex }) {
-      if (this.ids.includes(row.HEmpID)) {
+      if (this.ids.includes(row.鐢ㄦ埛缂栫爜)) {
         return { "background": "#ecf5ff" }
       }
     },
@@ -642,7 +641,7 @@
     //鏍规嵁鐢ㄦ埛鑾峰彇鐢ㄦ埛鍏宠仈缁勭粐鐨勮繃婊ゆ潯浠�
     getOrgIDByUser() {
       var res = "";
-      axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', {
+      axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', {
         params: {
           HModName: this.HModName,
           user: sessionStorage["HUserName"],
@@ -667,7 +666,7 @@
     resetQuery() {
       this.sWhere = ''
       this.queryParams = {
-        // HOrgID: null,
+        HOrgID: null,
         HName: null,
         HNumber: null,
         Comparator1: '',
@@ -684,6 +683,7 @@
     //閫�鍑�
     close() {
       this.tableShow = true
+      this.single= true
       this.openEdit = false
       this.editShow = false
       this.getList()
@@ -695,7 +695,6 @@
         this.openEdit = true
         this.editShow = true
       })
-
     },
     //鎵撳紑淇敼缁勪欢寮圭獥
     handleEdit() {
@@ -708,14 +707,26 @@
     editClose(val) {
       this.editShow = false
       this.openEdit = false
-      this.multiple = true
+      this.single= true
+      this.ids = []
+      this.getList()
+    },
+    queryClick() {
+      this.queryShow = true
+      this.openQuery = true
+    },
+    editQueryClose(val) {
+      this.queryShow = false
+      this.openQuery = false
+      this.single= true
+      this.ids = []
       this.getList()
     },
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete() {
       this.$modal.confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠').then(() => {
         var HCzybm = this.rowForm.鐢ㄦ埛缂栫爜.toString();
-        axios.get(this.baseURL + "/Xt_User/DeltetUser", {
+        axios.get(this.$baseUrl + "/Xt_User/DeltetUser", {
           params: { "HCzybm": HCzybm }
         }).then(response => {
           if (response.data.count == 1) {

--
Gitblit v1.9.1