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 | 130 ++++++++++++++++++++-----------------------
1 files changed, 60 insertions(+), 70 deletions(-)
diff --git a/src/views/GyCustomer/index.vue b/src/views/GyCustomer/index.vue
index 51f44d3..75382ca 100644
--- a/src/views/GyCustomer/index.vue
+++ b/src/views/GyCustomer/index.vue
@@ -10,11 +10,11 @@
</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-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>
@@ -29,14 +29,14 @@
<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 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 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>
@@ -51,14 +51,14 @@
<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 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 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>
@@ -73,14 +73,14 @@
<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 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 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>
@@ -105,65 +105,55 @@
<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>
@@ -242,12 +232,12 @@
<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-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">鏂囦欢涓婁紶</el-button>
+ <el-button type="primary" size="mini">鏂囦欢涓婁紶</el-button>
</el-upload>
</div>
<el-table :data="uploadData" v-loading="uploadTableLoading" border height="550">
@@ -311,12 +301,12 @@
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: "",
@@ -361,12 +351,12 @@
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",
};
},
@@ -376,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);
@@ -417,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) => {
@@ -554,7 +537,7 @@
}
axios
- .get(this.baseURL + "/Gy_Customer/Gy_CustomerViewApi", {
+ .get(this.$baseUrl + "/Gy_Customer/Gy_CustomerViewApi", {
params: {
Number: this.queryParams.HNumber2,
Type: 'KH'
@@ -584,7 +567,7 @@
handleExport() {
axios
- .get(this.baseURL + "/LMES/getReportByModRightNameCheck", {
+ .get(this.$baseUrl + "/LMES/getReportByModRightNameCheck", {
params: {
ModRightNameCheck: "Gy_Customer_ExportExcel",
user: this.user
@@ -656,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,
@@ -685,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,
@@ -711,7 +694,7 @@
return;
}
axios
- .get(this.baseURL + "/Gy_Customer/StopGy_Customer", {
+ .get(this.$baseUrl + "/Gy_Customer/StopGy_Customer", {
params: {
HInterID: this.selectedRow.HItemID,
IsStop: isStop,
@@ -749,6 +732,13 @@
},
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();
},
@@ -775,7 +765,7 @@
getRelationUserData(HCusID) {
this.relationLoading = true;
axios
- .get(this.baseURL + "/Gy_Customer/RelationUserlist", {
+ .get(this.$baseUrl + "/Gy_Customer/RelationUserlist", {
params: { HCusID: HCusID }
})
.then((response) => {
@@ -808,7 +798,7 @@
rowStyle({ row, rowIndex }) {
if (this.ids.includes(row.hmainid)) {
- return { background: "#ecf5ff" };
+ return { };
}
},
@@ -889,7 +879,7 @@
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,
},
@@ -955,4 +945,4 @@
.filter-collapse {
margin-top: 10px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.1