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/basic/gyEmployee/gyEmployeeEdit.vue |   33 ++++++++++++---------------------
 1 files changed, 12 insertions(+), 21 deletions(-)

diff --git a/src/views/basic/gyEmployee/gyEmployeeEdit.vue b/src/views/basic/gyEmployee/gyEmployeeEdit.vue
index 481d622..3eaf595 100644
--- a/src/views/basic/gyEmployee/gyEmployeeEdit.vue
+++ b/src/views/basic/gyEmployee/gyEmployeeEdit.vue
@@ -1015,7 +1015,7 @@
   methods: {
     getFile() {
       axios
-        .get(`${this.baseURL}/Gy_Employee_Filelist?HBillNO=${this.form.HNumber}`)
+        .get(`${this.$baseUrl}/Gy_Employee_Filelist?HBillNO=${this.form.HNumber}`)
         .then((res) => {
           let { Message, data, count } = res.data;
           if (count == 1) {
@@ -1024,7 +1024,7 @@
               this.fileListPreUpload.push({
                 fileName: data[i].HFileName,
                 size: `${(data[i].HFileSize / 1024).toFixed(2)}KB`,
-                url: `${this.baseURL}${data[i].url}`,
+                url: `${this.$baseUrl}${data[i].url}`,
                 fileStatus: "宸蹭笂浼�",
                 raw: {},
               });
@@ -1102,16 +1102,11 @@
     },
     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.zuzhiId = data.HUSEORGID; //鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇榛樿鐨勭粍缁嘔D
-          this.user = data.Czymc;
+      
+          this.zuzhiId = sessionStorage["OrganizationID"]; //鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇榛樿鐨勭粍缁嘔D
+          this.user = sessionStorage["HUserName"];
           axios
-            .get(this.baseURL + "/Web/GetOrganizations", {})
+            .get(this.$baseUrl + "/Web/GetOrganizations", {})
             .then((response) => {
               if (response.data.count == 1) {
                 this.organizationList = response.data.data; //缁勭粐鍒楄〃
@@ -1121,10 +1116,6 @@
             .catch((error) => {
               this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
             });
-        })
-        .catch((error) => {
-          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-        });
     },
     AddALine() {
       this.PostDataCache.push({
@@ -1154,7 +1145,7 @@
     },
     getSubData() {
       axios
-        .get(this.baseURL + "/Gy_Employee/listSub", {
+        .get(this.$baseUrl + "/Gy_Employee/listSub", {
           params: {
             sWhere: ` and HEmpID = ${this.form.HItemID}`,
             user: this.user,
@@ -1182,7 +1173,7 @@
       if (this.OperationType != 1) {
         this.zzSelDis = true;
         axios
-          .get(this.baseURL + "/GetGy_EmployeeDetail", {
+          .get(this.$baseUrl + "/GetGy_EmployeeDetail", {
             params: {
               HID: this.linterid,
             },
@@ -1547,7 +1538,7 @@
               var sMainSub = sMainStr + ";" + this.user + ";" + sSubStr;
               axios({
                 method: "post",
-                url: this.baseURL + "/Gy_Employee/ModifyByID",
+                url: this.$baseUrl + "/Gy_Employee/ModifyByID",
                 data: {
                   oMain: sMainSub,
                 },
@@ -1580,7 +1571,7 @@
         .then(() => {
           if (this.rowForm.鐘舵�� == "鍒涘缓") {
             axios
-              .get(this.baseURL + "/Kf_SellOutBill/DeltetSellOutBill", {
+              .get(this.$baseUrl + "/Kf_SellOutBill/DeltetSellOutBill", {
                 params: { HInterID: this.rowForm.hmainid.toString(), user: this.user },
               })
               .then((response) => {
@@ -1604,7 +1595,7 @@
       var InterID = form.HItemID || form.HInterID;
       //閫昏緫瀹℃牳鏂规硶
       axios
-        .get(this.baseURL + "/Gy_Source/AuditGy_Source", {
+        .get(this.$baseUrl + "/Gy_Source/AuditGy_Source", {
           params: { HInterID: InterID, IsAudit: num, CurUserName: this.user },
         })
         .then((response) => {
@@ -1713,7 +1704,7 @@
 
         axios({
           method: "post",
-          url: this.baseURL + "/Gy_Employee_UploadFile", // 娉ㄦ剰淇浜哢RL涓殑鍙屾枩鏉�
+          url: this.$baseUrl + "/Gy_Employee_UploadFile", // 娉ㄦ剰淇浜哢RL涓殑鍙屾枩鏉�
           data: formData,
           headers: {
             "Content-Type": "multipart/form-data", // 涓嶉渶瑕佹墜鍔ㄨ缃�

--
Gitblit v1.9.1