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/GyCustomer/index.vue |  713 ++++++++++++++++++----------------------------------------
 1 files changed, 222 insertions(+), 491 deletions(-)

diff --git a/src/views/GyCustomer/index.vue b/src/views/GyCustomer/index.vue
index 40d5efa..75382ca 100644
--- a/src/views/GyCustomer/index.vue
+++ b/src/views/GyCustomer/index.vue
@@ -1,32 +1,20 @@
 <template>
-  <div style="padding: 10px">
+  <div style="padding: 10px;position: relative;">
     <el-card style="margin-bottom: 10px;">
       <el-form :inline="true" :model="queryParams" ref="queryForm" class="mb8">
         <el-form-item label="瀹㈡埛浠g爜" prop="HNumber">
-          <el-input
-            v-model="queryParams.HNumber"
-            placeholder="璇疯緭鍏ュ鎴蜂唬鐮�"
-            style="width: 160px"
-          />
+          <el-input v-model="queryParams.HNumber" placeholder="璇疯緭鍏ュ鎴蜂唬鐮�" style="width: 160px" />
         </el-form-item>
         <el-form-item label="瀹㈡埛鍚嶇О" prop="HName">
-          <el-input
-            v-model="queryParams.HName"
-            placeholder="璇疯緭鍏ュ鎴峰悕绉�"
-            style="width: 160px"
-          />
+          <el-input v-model="queryParams.HName" placeholder="璇疯緭鍏ュ鎴峰悕绉�" style="width: 160px" />
         </el-form-item>
         <el-form-item label="閲嶆柊鍚屾">
-          <el-input
-            v-model="queryParams.HNumber2"
-            placeholder="璇疯緭鍏ュ鎴蜂唬鐮�"
-            style="width: 160px"
-          />
-          <el-button type="primary" @click="handleResCnz" style="margin-left: 10px">閲嶆柊鍚屾</el-button>
+          <el-input v-model="queryParams.HNumber2" placeholder="璇疯緭鍏ュ鎴蜂唬鐮�" style="width: 160px" />
+          <el-button type="primary" size="mini" @click="handleResCnz" style="margin-left: 10px">閲嶆柊鍚屾</el-button>
         </el-form-item>
         <el-form-item>
-          <el-button type="primary" icon="el-icon-search" @click="handleQuery">鎼滅储</el-button>
-          <el-button @click="resetQuery">閲嶇疆</el-button>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
+          <el-button size="mini" @click="resetQuery">閲嶇疆</el-button>
         </el-form-item>
       </el-form>
 
@@ -40,126 +28,66 @@
                 <el-form-item label-width="0">
                   <el-row>
                     <el-col :span="7">
-                      <el-select
-                        v-model="queryParams.ColName"
-                        placeholder="璇烽�夋嫨"
-                        style="width: 100%"
-                      >
-                        <el-option value="0" label=""></el-option>
-                        <el-option
-                          v-for="(item, index) in visibleColumns"
-                          :key="index"
-                          :label="item.title"
-                          :value="item.field"
-                        ></el-option>
+                      <el-select v-model="queryParams.ColName" placeholder="璇烽�夋嫨" style="width: 100%">
+                        <!-- <el-option value="0" label=""></el-option> -->
+                        <el-option v-for="(item, index) in visibleColumns" :key="index" :label="item.title"
+                          :value="item.field"></el-option>
                       </el-select>
                     </el-col>
                     <el-col :span="6" style="padding: 0 10px">
-                      <el-select
-                        v-model="queryParams.Comparator"
-                        placeholder="璇烽�夋嫨"
-                        style="width: 100%"
-                      >
-                        <el-option value="0" label=""></el-option>
-                        <el-option
-                          v-for="(item, index) in comparatorList"
-                          :key="index"
-                          :label="item.label"
-                          :value="item.value"
-                        ></el-option>
+                      <el-select v-model="queryParams.Comparator" placeholder="璇烽�夋嫨" style="width: 100%">
+                        <!-- <el-option value="0" label=""></el-option> -->
+                        <el-option v-for="(item, index) in comparatorList" :key="index" :label="item.label"
+                          :value="item.value"></el-option>
                       </el-select>
                     </el-col>
                     <el-col :span="11">
-                      <el-input
-                        v-model="queryParams.ColContent"
-                        placeholder="璇疯緭鍏�"
-                        clearable
-                        @keyup.enter.native="handleQuery"
-                      />
+                      <el-input v-model="queryParams.ColContent" placeholder="璇疯緭鍏�" clearable
+                        @keyup.enter.native="handleQuery" />
                     </el-col>
                   </el-row>
                 </el-form-item>
                 <el-form-item label-width="0">
                   <el-row>
                     <el-col :span="7">
-                      <el-select
-                        v-model="queryParams.ColName1"
-                        placeholder="璇烽�夋嫨"
-                        style="width: 100%"
-                      >
-                        <el-option value="0" label=""></el-option>
-                        <el-option
-                          v-for="(item, index) in visibleColumns"
-                          :key="index"
-                          :label="item.title"
-                          :value="item.field"
-                        ></el-option>
+                      <el-select v-model="queryParams.ColName1" placeholder="璇烽�夋嫨" style="width: 100%">
+                        <!-- <el-option value="0" label=""></el-option> -->
+                        <el-option v-for="(item, index) in visibleColumns" :key="index" :label="item.title"
+                          :value="item.field"></el-option>
                       </el-select>
                     </el-col>
                     <el-col :span="6" style="padding: 0 10px">
-                      <el-select
-                        v-model="queryParams.Comparator1"
-                        placeholder="璇烽�夋嫨"
-                        style="width: 100%"
-                      >
-                        <el-option value="0" label=""></el-option>
-                        <el-option
-                          v-for="(item, index) in comparatorList"
-                          :key="index"
-                          :label="item.label"
-                          :value="item.value"
-                        ></el-option>
+                      <el-select v-model="queryParams.Comparator1" placeholder="璇烽�夋嫨" style="width: 100%">
+                        <!-- <el-option value="0" label=""></el-option> -->
+                        <el-option v-for="(item, index) in comparatorList" :key="index" :label="item.label"
+                          :value="item.value"></el-option>
                       </el-select>
                     </el-col>
                     <el-col :span="11">
-                      <el-input
-                        v-model="queryParams.ColContent1"
-                        placeholder="璇疯緭鍏�"
-                        clearable
-                        @keyup.enter.native="handleQuery"
-                      />
+                      <el-input v-model="queryParams.ColContent1" placeholder="璇疯緭鍏�" clearable
+                        @keyup.enter.native="handleQuery" />
                     </el-col>
                   </el-row>
                 </el-form-item>
                 <el-form-item label-width="0">
                   <el-row>
                     <el-col :span="7">
-                      <el-select
-                        v-model="queryParams.ColName2"
-                        placeholder="璇烽�夋嫨"
-                        style="width: 100%"
-                      >
-                        <el-option value="0" label=""></el-option>
-                        <el-option
-                          v-for="(item, index) in visibleColumns"
-                          :key="index"
-                          :label="item.title"
-                          :value="item.field"
-                        ></el-option>
+                      <el-select v-model="queryParams.ColName2" placeholder="璇烽�夋嫨" style="width: 100%">
+                        <!-- <el-option value="0" label=""></el-option> -->
+                        <el-option v-for="(item, index) in visibleColumns" :key="index" :label="item.title"
+                          :value="item.field"></el-option>
                       </el-select>
                     </el-col>
                     <el-col :span="6" style="padding: 0 10px">
-                      <el-select
-                        v-model="queryParams.Comparator2"
-                        placeholder="璇烽�夋嫨"
-                        style="width: 100%"
-                      >
-                        <el-option value="0" label=""></el-option>
-                        <el-option
-                          v-for="(item, index) in comparatorList"
-                          :key="index"
-                          :label="item.label"
-                          :value="item.value"
-                        ></el-option>
+                      <el-select v-model="queryParams.Comparator2" placeholder="璇烽�夋嫨" style="width: 100%">
+                        <!-- <el-option value="0" label=""></el-option> -->
+                        <el-option v-for="(item, index) in comparatorList" :key="index" :label="item.label"
+                          :value="item.value"></el-option>
                       </el-select>
                     </el-col>
                     <el-col :span="11">
-                      <el-input
-                        v-model="queryParams.ColContent2"
-                        placeholder="璇疯緭鍏�"
-                        clearable
-                        @keyup.enter.native="handleQuery"
-                      />
+                      <el-input v-model="queryParams.ColContent2" placeholder="璇疯緭鍏�" clearable
+                        @keyup.enter.native="handleQuery" />
                     </el-col>
                   </el-row>
                 </el-form-item>
@@ -169,189 +97,63 @@
         </el-collapse>
       </el-form>
 
-  
+
       <div style="text-align:center;font-size:15px;font-weight:bold;color:#fc9393;margin: 20px 0;">
         {{ currentFilterScheme }}
       </div>
     </el-card>
-   
+
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-upload2"
-          size="mini"
-          @click="handleImport"
-          >瀵煎叆</el-button
-        >
+        <el-button type="primary" plain size="mini" @click="handleImport">瀵煎叆</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          @click="handleExport"
-          >瀵煎嚭</el-button
-        >
+        <el-button type="primary" plain size="mini" @click="handleExport">瀵煎嚭</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-document"
-          size="mini"
-          @click="handleNumAdd"
-          >娴佹按鍙锋柊澧�</el-button
-        >
+        <el-button type="primary" size="mini" @click="handleNumAdd">娴佹按鍙锋柊澧�</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-plus"
-          size="mini"
-          @click="handleAdd"
-          >鏂板</el-button
-        >
+        <el-button type="primary" size="mini" @click="handleAdd">鏂板</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-document-copy"
-          size="mini"
-          :disabled="single"
-          @click="handleCopy"
-          >澶嶅埗</el-button
-        >
+        <el-button size="mini" :disabled="single" @click="handleCopy">澶嶅埗</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="single"
-          @click="handleEdit"
-          >缂栬緫</el-button
-        >
+        <el-button size="mini" :disabled="single" @click="handleEdit">缂栬緫</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="danger"
-          plain
-          icon="el-icon-delete"
-          size="mini"
-          :disabled="single"
-          @click="handleDelete"
-          >鍒犻櫎</el-button
-        >
+        <el-button type="danger" size="mini" :disabled="single" @click="handleDelete">鍒犻櫎</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-check"
-          size="mini"
-          :disabled="single"
-          @click="handleAudit(0)"
-          >瀹℃牳</el-button
-        >
+        <el-button size="mini" :disabled="single" @click="handleAudit(0)">瀹℃牳</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="success"
-          plain
-          icon="el-icon-close"
-          size="mini"
-          :disabled="single"
-          @click="handleAudit(1)"
-          >鍙嶅鏍�</el-button
-        >
+        <el-button size="mini" :disabled="single" @click="handleAudit(1)">鍙嶅鏍�</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-turn-off"
-          size="mini"
-          :disabled="single"
-          @click="handleStop(0)"
-          >绂佺敤</el-button
-        >
+        <el-button size="mini" :disabled="single" @click="handleStop(0)">绂佺敤</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-open"
-          size="mini"
-          :disabled="single"
-          @click="handleStop(1)"
-          >鍙嶇鐢�</el-button
-        >
+        <el-button size="mini" :disabled="single" @click="handleStop(1)">鍙嶇鐢�</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="info"
-          plain
-          icon="el-icon-setting"
-          size="mini"
-          @click="handleColumnSetting"
-          >鍒楄缃�</el-button
-        >
+        <el-button size="mini" @click="handleColumnSetting">鍒楄缃�</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="info"
-          plain
-          icon="el-icon-s-operation"
-          size="mini"
-          @click="handleButtonSetting"
-          >鎸夐挳璁剧疆</el-button
-        >
+        <el-button size="mini" @click="handleButtonSetting">鎸夐挳璁剧疆</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-folder-checked"
-          size="mini"
-          @click="handleSaveScheme"
-          >淇濆瓨鏂规</el-button
-        >
+        <el-button type="primary" size="mini" @click="handleSaveScheme">淇濆瓨鏂规</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-folder-opened"
-          size="mini"
-          @click="handleReadScheme"
-          >璇诲彇鏂规</el-button
-        >
+        <el-button type="primary" size="mini" @click="handleReadScheme">璇诲彇鏂规</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="info"
-          plain
-          icon="el-icon-refresh"
-          size="mini"
-          @click="handleRefresh"
-          >鍒锋柊</el-button
-        >
+        <el-button size="mini" @click="handleRefresh">鍒锋柊</el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button
-          type="info"
-          plain
-          icon="el-icon-close"
-          size="mini"
-          @click="handleExit"
-          >閫�鍑�</el-button
-        >
+        <el-button size="mini" @click="handleExit">閫�鍑�</el-button>
       </el-col>
     </el-row>
 
@@ -361,15 +163,8 @@
           <div slot="header">
             <span>瀹㈡埛鍒嗙被</span>
           </div>
-          <el-tree
-            :data="treeData"
-            :props="treeProps"
-            node-key="id"
-            default-expand-all
-            :expand-on-click-node="false"
-            @node-click="handleTreeNodeClick"
-            :highlight-current="true"
-          >
+          <el-tree :data="treeData" :props="treeProps" node-key="id" default-expand-all :expand-on-click-node="false"
+            @node-click="handleTreeNodeClick" :highlight-current="true">
             <span class="custom-tree-node" slot-scope="{ node, data }">
               <span>{{ node.label }}</span>
             </span>
@@ -377,42 +172,20 @@
         </el-card>
       </el-col>
 
-     
+
       <el-col :span="20">
         <div class="tableBox" v-loading="loading">
-          <el-table
-            :data="tableData"
-            ref="tableData"
-            height="600"
-            @selection-change="handleSelectionChange"
-            border
-            @row-click="handleRowClick"
-            :row-style="rowStyle"
-            @cell-dblclick="handleDblclick"
-            v-if="tableShow"
-          >
+          <el-table :data="tableData" ref="tableData" height="600" @selection-change="handleSelectionChange" border
+            @row-click="handleRowClick" :row-style="rowStyle" @cell-dblclick="handleDblclick" v-if="tableShow">
             <el-table-column type="selection" width="55" align="center" fixed="left" />
             <el-table-column prop="hmainid" label="鍗曟嵁ID" v-if="false" />
-            <el-table-column
-              v-for="(item, index) in btList"
-              :key="index"
-              :align="item.align"
-              :prop="item.field"
-              :label="item.title"
-              :width="item.width"
-              v-if="!item.hide"
-              :sortable="item.sort"
-              show-overflow-tooltip
-              :fixed="item.fixed"
-            >
+            <el-table-column v-for="(item, index) in btList" :key="index" :align="item.align" :prop="item.field"
+              :label="item.title" :width="item.width" v-if="!item.hide" :sortable="item.sort" show-overflow-tooltip
+              :fixed="item.fixed">
               <template slot-scope="{ row, column }">
                 <div :style="item.style">
-                  <el-button
-                    type="text"
-                    @click="handleCustomerCodeClick(row)"
-                    v-if="column.property === '瀹㈡埛浠g爜'"
-                    >{{ row[column.property] }}</el-button
-                  >
+                  <el-button type="text" @click="handleCustomerCodeClick(row)" v-if="column.property === '瀹㈡埛浠g爜'">{{
+                    row[column.property] }}</el-button>
                   <span v-else-if="(column.property || '').includes('鏃堕棿') || (column.property || '').includes('鏃ユ湡')">
                     {{ formatDate(row[column.property]) }}
                   </span>
@@ -421,37 +194,20 @@
               </template>
             </el-table-column>
           </el-table>
-          <pagination
-            v-show="total > 0"
-            :total="total"
-            :page.sync="page"
-            :limit.sync="pageSize"
-            :pageSizes="pageSizes"
-            @pagination="getList"
-          />
+          <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes"
+            @pagination="getList" />
         </div>
       </el-col>
     </el-row>
 
-   
+
     <el-card v-if="selectedRow" style="margin-top: 20px">
       <div slot="header">
         <span>鍏宠仈鐢ㄦ埛</span>
       </div>
-      <el-table
-        :data="relationUserData"
-        height="300"
-        border
-        v-loading="relationLoading"
-      >
-        <el-table-column
-          v-for="(item, index) in relationUserColumns"
-          :key="index"
-          :prop="item.field"
-          :label="item.title"
-          :width="item.width"
-          :align="item.align"
-        >
+      <el-table :data="relationUserData" height="300" border v-loading="relationLoading">
+        <el-table-column v-for="(item, index) in relationUserColumns" :key="index" :prop="item.field"
+          :label="item.title" :width="item.width" :align="item.align">
           <template slot-scope="{ row, column }">
             <span v-if="column.property.includes('鏃堕棿') || column.property.includes('鏃ユ湡')">
               {{ formatDate(row[column.property]) }}
@@ -462,80 +218,37 @@
       </el-table>
     </el-card>
 
-    <el-dialog
-      title="闅愯棌鍒楄缃�"
-      :visible.sync="openColumnSetting"
-      width="816px"
-      append-to-body
-    >
-      <RowSettings
-        :colName="btResList"
-        :HModName="HModName"
-        @rowEditClose="columnSettingClose"
-        v-if="columnSettingShow"
-      />
+    <el-dialog title="闅愯棌鍒楄缃�" :visible.sync="openColumnSetting" width="816px" append-to-body>
+      <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="columnSettingClose"
+        v-if="columnSettingShow" />
     </el-dialog>
 
-    <el-dialog
-      title="缂栬緫瀹㈡埛"
-      :visible.sync="openEdit"
-      width="1480px"
-      append-to-body
-      class="customerBox"
-      :before-close="closeEdit"
-    >
-    <CustomerEdit
-      :OperationType="OperationType"
-      :linterid="selectedRow ? selectedRow.HItemID : ''"
-      :HSouceBillType="''"
-      :HCusTypeID="currentCusTypeID"
-      :HCusClsName="currentCusClsName"
-      @editClose="editClose"
-      v-if="editShow"
-    />
+    <el-dialog title="缂栬緫瀹㈡埛" :visible.sync="openEdit" width="1480px" append-to-body class="customerBox"
+      :before-close="closeEdit">
+      <CustomerEdit :OperationType="OperationType" :linterid="selectedRow ? selectedRow.HItemID : ''"
+        :HSouceBillType="''" :HCusTypeID="currentCusTypeID" :HCusClsName="currentCusClsName" @editClose="editClose"
+        v-if="editShow" />
     </el-dialog>
 
-    <el-dialog
-      :title="upload.title"
-      :visible.sync="upload.open"
-      width="1500px"
-      append-to-body
-    >
+    <el-dialog :title="upload.title" :visible.sync="upload.open" width="1500px" append-to-body>
       <div style="margin-top: -20px">
-        <el-button type="primary" @click="handleImportSubmit">瀵煎叆鏁版嵁</el-button>
-        <el-button type="primary" @click="upload.open = false">閫� 鍑�</el-button>
-        <el-upload
-          ref="upload"
-          :limit="1"
-          accept=".xlsx, .xls"
-          style="display: inline-block; margin-left: 10px"
-          :action="upload.url + '?updateSupport=' + upload.updateSupport"
-          :disabled="upload.isUploading"
-          :on-progress="handleFileUploadProgress"
-          :on-success="handleFileSuccess"
-        >
-          <el-button type="primary">鏂囦欢涓婁紶</el-button>
+        <el-button type="primary" size="mini" @click="handleImportSubmit">瀵煎叆鏁版嵁</el-button>
+        <el-button type="primary" size="mini" @click="upload.open = false">閫� 鍑�</el-button>
+        <el-upload ref="upload" :limit="1" accept=".xlsx, .xls" style="display: inline-block; margin-left: 10px"
+          :action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading"
+          :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess">
+          <el-button type="primary" size="mini">鏂囦欢涓婁紶</el-button>
         </el-upload>
       </div>
-      <el-table
-        :data="uploadData"
-        v-loading="uploadTableLoading"
-        border
-        height="550"
-      >
+      <el-table :data="uploadData" v-loading="uploadTableLoading" border height="550">
         <el-table-column type="index" label="搴忓彿" width="55" align="center" />
         <el-table-column label="瀹㈡埛浠g爜" prop="瀹㈡埛浠g爜" align="center" width="120" />
         <el-table-column label="瀹㈡埛鍚嶇О" prop="瀹㈡埛鍚嶇О" align="center" width="120" />
         <el-table-column label="瀹㈡埛鍒嗙被" prop="瀹㈡埛鍒嗙被" align="center" width="120" />
         <el-table-column label="鎿嶄綔" align="center">
           <template slot-scope="scope">
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-delete"
-              @click="uploadDataDelete(scope.$index)"
-              >鍒犻櫎</el-button
-            >
+            <el-button size="mini" type="text" icon="el-icon-delete"
+              @click="uploadDataDelete(scope.$index)">鍒犻櫎</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -550,21 +263,21 @@
 
 export default {
   name: "GyCustomer",
-  components: { RowSettings ,CustomerEdit},
+  components: { RowSettings, CustomerEdit },
   props: {
     openPage: { type: String },
   },
   data() {
     return {
-   
-      activeCollapse: [], 
-      
+
+      activeCollapse: [],
+
       HModName: "Gy_Customer",
       HModuleName: "瀹㈡埛鍒楄〃缁存姢",
       HClassTag: "ForFilteringSchemes",
-      
 
-      
+
+
       treeData: [],
       treeProps: {
         children: 'children',
@@ -572,36 +285,36 @@
       },
       currentCusTypeID: 0,
       currentCusClsName: '',
-      
-      
+
+
       editShow: false,
       openEdit: false,
       OperationType: null,
-      
+
       columnSettingShow: false,
       openColumnSetting: false,
-      
+
       tableShow: true,
       loading: true,
-      
+
       queryParams: {
         HNumber: null,
         HName: null,
         HNumber2: null,
-        ColName: "0",
-        ColName1: "0",
-        ColName2: "0",
-        Comparator: "0",
-        Comparator1: "0",
-        Comparator2: "0",
+        ColName: "",
+        ColName1: "",
+        ColName2: "",
+        Comparator: "",
+        Comparator1: "",
+        Comparator2: "",
         ColContent: "",
         ColContent1: "",
         ColContent2: "",
       },
-      
+
       currentFilterScheme: "",
       HInterID_Choose: 0,
-      
+
       comparatorList: [
         { label: "=", value: "=" },
         { label: ">=", value: ">=" },
@@ -614,7 +327,7 @@
         { label: "鍙冲寘鍚�", value: "9" },
         { label: "涓嶅寘鍚�", value: "10" },
       ],
-      
+
       sWhere: "",
       selectedRow: null,
       ids: [],
@@ -628,22 +341,22 @@
       page: 1,
       pageSize: 50,
       total: 0,
-      
+
       relationUserData: [],
       relationUserColumns: [],
       relationLoading: false,
-      
+
       upload: {
         open: false,
         title: "瀵煎叆",
         isUploading: false,
         updateSupport: 0,
-        url: "http://47.96.97.237/API/Gy_Customer/Gy_Customer_Excel",
+        url: "",
       },
       uploadData: [],
       uploadTableLoading: false,
-      
-      baseURL: process.env.VUE_APP_BASE_URL || "http://47.96.97.237/API/",
+
+      baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/",
       user: "admin",
     };
   },
@@ -653,29 +366,22 @@
     }
   },
   created() {
+    this.upload.url = this.$baseUrl + "Gy_Customer/Gy_Customer_Excel";
     this.fetchData();
   },
   methods: {
     fetchData() {
-      axios
-        .get(
-          "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038"
-        )
-        .then((response) => {
-          let data = response.data.data[0];
-          this.user = data.Czymc;
+
+          this.user = sessionStorage["HUserName"];
           this.getTreeData();
           this.getList();
           this.getDefaultFilterScheme();
-        })
-        .catch((error) => {
-          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-        });
+
     },
-    
+
     getTreeData() {
       axios
-        .get(this.baseURL + "/Gy_BadReason/Gy_CusTypeTreeListByLevel")
+        .get(this.$baseUrl + "/Gy_BadReason/Gy_CusTypeTreeListByLevel")
         .then((response) => {
           if (response.data.count == 1) {
             this.treeData = JSON.parse(response.data.data);
@@ -685,7 +391,7 @@
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
         });
     },
-    
+
     getList() {
       this.tableShow = false;
       this.loading = true;
@@ -694,13 +400,13 @@
       console.log(this.page);
       console.log(this.pageSize);
       axios
-        .get(this.baseURL + "/Gy_Customer/page", {
+        .get(this.$baseUrl + "/Gy_Customer/page", {
           params: {
             sWhere: this.sWhere,
             user: this.user,
             page: 1,
             size: this.pageSize,
-            Organization: ''
+            Organization: sessionStorage["Organization"]
           },
         })
         .then((response) => {
@@ -724,7 +430,7 @@
           this.loading = false;
         });
     },
-    
+
     setDefaultColumns() {
       this.btList = [
         { type: 'checkbox', fixed: 'left' },
@@ -740,13 +446,13 @@
         { field: '鍒涘缓鏃堕棿', title: '鍒涘缓鏃堕棿', align: 'center', width: 150 }
       ];
     },
-    
+
     handleTreeNodeClick(data) {
       this.currentCusTypeID = data.id;
       this.currentCusClsName = data.title;
-      
+
       if (data.id == "100") {
-        this.sWhere = " and HCusTypeID= "+"0";
+        this.sWhere = " and HCusTypeID= " + "0";
       } else if (data.id == "0") {
         this.sWhere = "";
       } else {
@@ -754,13 +460,13 @@
       }
       this.getList();
     },
-    
+
 
     async handleQuery() {
       this.sWhere = "";
-      
+
       this.processFilterConditions();
-      
+
 
       if (this.queryParams.HNumber) {
         this.sWhere += " and 瀹㈡埛浠g爜 like '%" + this.queryParams.HNumber + "%'";
@@ -771,7 +477,7 @@
 
       this.getList();
     },
-    
+
     processFilterConditions() {
       const conditions = [
         { colName: this.queryParams.ColName, comparator: this.queryParams.Comparator, content: this.queryParams.ColContent },
@@ -803,8 +509,8 @@
         }
       });
     },
-    
-  
+
+
     resetQuery() {
       this.sWhere = "";
       this.queryParams = {
@@ -823,15 +529,15 @@
       };
       this.getList();
     },
-    
+
     handleResCnz() {
       if (!this.queryParams.HNumber2) {
         this.$modal.msgWarning("璇疯緭鍏ュ鎴蜂唬鐮�");
         return;
       }
-      
+
       axios
-        .get(this.baseURL + "/Gy_Customer/Gy_CustomerViewApi", {
+        .get(this.$baseUrl + "/Gy_Customer/Gy_CustomerViewApi", {
           params: {
             Number: this.queryParams.HNumber2,
             Type: 'KH'
@@ -849,19 +555,19 @@
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
         });
     },
-    
 
-    
+
+
     handleImport() {
       this.uploadData = [];
       this.upload.isUploading = false;
       this.upload.title = "瀵煎叆";
       this.upload.open = true;
     },
-    
+
     handleExport() {
       axios
-        .get(this.baseURL + "/LMES/getReportByModRightNameCheck", {
+        .get(this.$baseUrl + "/LMES/getReportByModRightNameCheck", {
           params: {
             ModRightNameCheck: "Gy_Customer_ExportExcel",
             user: this.user
@@ -881,7 +587,7 @@
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
         });
     },
-    
+
     handleNumAdd() {
       if ((this.currentCusTypeID == 0 || this.currentCusTypeID == null) && !this.judgeSkipTouchCusType()) {
         this.$modal.msgWarning("璇烽�夋嫨鍏蜂綋瀹㈡埛鍒嗙被锛�");
@@ -891,13 +597,13 @@
       this.openEdit = true;
       this.editShow = true;
     },
-    
+
     handleAdd() {
       this.OperationType = 1;
       this.openEdit = true;
       this.editShow = true;
     },
-    
+
     handleCopy() {
       if (this.single) {
         this.$modal.msgWarning("璇烽�夋嫨涓�鏉℃暟鎹�");
@@ -907,7 +613,7 @@
       this.openEdit = true;
       this.editShow = true;
     },
-    
+
     handleEdit() {
       if (this.single) {
         this.$modal.msgWarning("璇烽�夋嫨涓�鏉℃暟鎹�");
@@ -917,7 +623,7 @@
       this.openEdit = true;
       this.editShow = true;
     },
-    
+
     handleDelete() {
       if (this.single) {
         this.$modal.msgWarning("璇烽�夋嫨涓�鏉℃暟鎹�");
@@ -933,7 +639,7 @@
         .confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠")
         .then(() => {
           axios
-            .get(this.baseURL + "/Gy_Customer/Delete_Json", {
+            .get(this.$baseUrl + "/Gy_Customer/Delete_Json", {
               params: {
                 HItemID: this.selectedRow.HItemID,
                 User: this.user,
@@ -952,9 +658,9 @@
               this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
             });
         })
-        .catch(() => {});
+        .catch(() => { });
     },
-    
+
     handleAudit(isAudit) {
       if (this.single) {
         this.$modal.msgWarning("璇烽�夋嫨涓�鏉℃暟鎹�");
@@ -962,7 +668,7 @@
       }
 
       axios
-        .get(this.baseURL + "/Gy_Customer/AuditGy_Customer", {
+        .get(this.$baseUrl + "/Gy_Customer/AuditGy_Customer", {
           params: {
             HInterID: this.selectedRow.HItemID,
             IsAudit: isAudit,
@@ -981,14 +687,14 @@
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
         });
     },
-    
+
     handleStop(isStop) {
       if (this.single) {
         this.$modal.msgWarning("璇烽�夋嫨涓�鏉℃暟鎹�");
         return;
       }
       axios
-        .get(this.baseURL + "/Gy_Customer/StopGy_Customer", {
+        .get(this.$baseUrl + "/Gy_Customer/StopGy_Customer", {
           params: {
             HInterID: this.selectedRow.HItemID,
             IsStop: isStop,
@@ -1007,49 +713,59 @@
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
         });
     },
-    
+
     handleColumnSetting() {
       this.columnSettingShow = true;
       this.openColumnSetting = true;
     },
-    
+
     handleButtonSetting() {
       this.$modal.msgInfo("鎸夐挳璁剧疆鍔熻兘");
     },
-    
+
     handleSaveScheme() {
       this.$modal.msgInfo("淇濆瓨鏂规鍔熻兘");
     },
-    
+
     handleReadScheme() {
       this.$modal.msgInfo("璇诲彇鏂规鍔熻兘");
     },
-    
+
     handleRefresh() {
+      if (this.$refs.tableData && this.$refs.tableData.clearSelection) {
+        this.$refs.tableData.clearSelection();
+      }
+      this.selectedRow = null;
+      this.ids = [];
+      this.single = true;
+      this.multiple = true;
       this.getList();
     },
-    
+
     handleExit() {
       this.$router.go(-1);
     },
-    
+
     handleCustomerCodeClick(row) {
       this.selectedRow = row;
       this.OperationType = 3;
       this.openEdit = true;
       this.editShow = true;
     },
-    
+
     handleRowClick(row, column, event) {
       this.$refs.tableData.toggleRowSelection(row);
       this.selectedRow = row;
       this.getRelationUserData(row.HItemID);
+      if (this.openPage) {
+        this.$emit('deptEmit', row, 7)
+      }
     },
-    
+
     getRelationUserData(HCusID) {
       this.relationLoading = true;
       axios
-        .get(this.baseURL + "/Gy_Customer/RelationUserlist", {
+        .get(this.$baseUrl + "/Gy_Customer/RelationUserlist", {
           params: { HCusID: HCusID }
         })
         .then((response) => {
@@ -1064,8 +780,8 @@
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
         });
     },
-    
-    
+
+
     setRelationUserColumns(list) {
       this.relationUserColumns = [];
       for (let key in list) {
@@ -1079,49 +795,64 @@
         }
       }
     },
-    
+
     rowStyle({ row, rowIndex }) {
       if (this.ids.includes(row.hmainid)) {
-        return { background: "#ecf5ff" };
+        return {  };
       }
     },
-    
+
     handleDblclick(row, column, cell, event) {
-      this.handleCustomerCodeClick(row);
-    },
-    
-    handleSelectionChange(selection) {
-      this.ids = selection.map((item) => item.hmainid);
-      this.single = selection.length != 1;
-      this.multiple = !selection.length;
-      if (!this.single) {
-        this.selectedRow = selection[0];
-        this.getRelationUserData(this.selectedRow.HItemID);
+      if (this.openPage) {
+        this.$emit('deptEmitDb', row, 7)
+      } else {
+        this.handleCustomerCodeClick(row);
       }
     },
-    
+
+    handleSelectionChange(selection) {
+      if (this.openPage) {
+        //鍒楄〃鍗曢��
+        if (selection.length > 1) {
+          const del_row = selection.shift()
+          this.$refs.tableData.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
+        }
+        this.rowForm = {}
+        this.ids = selection.map(item => item.HItemID)
+        this.rowForm = selection[0]
+      } else {
+        this.ids = selection.map((item) => item.hmainid);
+        this.single = selection.length != 1;
+        this.multiple = !selection.length;
+        if (!this.single) {
+          this.selectedRow = selection[0];
+          this.getRelationUserData(this.selectedRow.HItemID);
+        }
+      }
+    },
+
     closeEdit() {
       this.openEdit = false;
       this.editShow = false;
     },
-    
+
     editClose(val) {
       this.openEdit = false;
       this.editShow = false;
       this.getList();
     },
-    
+
     columnSettingClose(val) {
       this.columnSettingShow = false;
       this.openColumnSetting = val;
       this.getList();
     },
-    
+
     handleFileUploadProgress(event, file, fileList) {
       this.upload.isUploading = true;
       this.uploadTableLoading = true;
     },
-    
+
     handleFileSuccess(response, file, fileList) {
       this.upload.isUploading = true;
       this.$refs.upload.clearFiles();
@@ -1131,24 +862,24 @@
       } else {
         this.$alert(
           "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
-            response.Message +
-            "</div>",
+          response.Message +
+          "</div>",
           "瀵煎叆缁撴灉",
           { dangerouslyUseHTMLString: true }
         );
       }
     },
-    
+
     handleImportSubmit() {
       if (this.uploadData.length === 0) {
         this.$modal.msgWarning("璇峰厛涓婁紶鏂囦欢");
         return;
       }
-      
+
       var sMainSub = JSON.stringify(this.uploadData) + "&鍜�" + this.user;
       axios({
         method: "post",
-        url: this.baseURL + "/Gy_Customer/Gy_Customer_btnSave",
+        url: this.$baseUrl + "/Gy_Customer/Gy_Customer_btnSave",
         data: {
           sMainSub: sMainSub,
         },
@@ -1156,8 +887,8 @@
         .then((res) => {
           this.$alert(
             "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
-              res.data.Message +
-              "</div>",
+            res.data.Message +
+            "</div>",
             "瀵煎叆缁撴灉",
             { dangerouslyUseHTMLString: true }
           );
@@ -1168,28 +899,28 @@
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
         });
     },
-    
+
     uploadDataDelete(index) {
       this.uploadData.splice(index, 1);
     },
-    
+
 
     formatDate(dateString) {
       if (!dateString) return '';
       const date = new Date(dateString);
       return date.toLocaleString('zh-CN');
     },
-    
+
     judgeSkipTouchCusType() {
-      if (this.treeData.length > 0 && this.treeData[0].children && 
-          this.treeData[0].children.length == 1 && 
-          this.treeData[0].children[0].children.length == 0) {
+      if (this.treeData.length > 0 && this.treeData[0].children &&
+        this.treeData[0].children.length == 1 &&
+        this.treeData[0].children[0].children.length == 0) {
         return true;
       } else {
         return false;
       }
     },
-    
+
     getDefaultFilterScheme() {
       this.currentFilterScheme = "褰撳墠杩囨护鏂规锛氶粯璁ゆ柟妗�";
     }
@@ -1214,4 +945,4 @@
 .filter-collapse {
   margin-top: 10px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.1