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 | 41 +++++++++++++++++------------------------
1 files changed, 17 insertions(+), 24 deletions(-)
diff --git a/src/views/GyCustomer/index.vue b/src/views/GyCustomer/index.vue
index e14f775..75382ca 100644
--- a/src/views/GyCustomer/index.vue
+++ b/src/views/GyCustomer/index.vue
@@ -351,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",
};
},
@@ -366,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);
@@ -407,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) => {
@@ -544,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'
@@ -574,7 +567,7 @@
handleExport() {
axios
- .get(this.baseURL + "/LMES/getReportByModRightNameCheck", {
+ .get(this.$baseUrl + "/LMES/getReportByModRightNameCheck", {
params: {
ModRightNameCheck: "Gy_Customer_ExportExcel",
user: this.user
@@ -646,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,
@@ -675,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,
@@ -701,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,
@@ -772,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) => {
@@ -886,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,
},
@@ -952,4 +945,4 @@
.filter-collapse {
margin-top: 10px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.1