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 | 35 ++++++++++++-----------------------
1 files changed, 12 insertions(+), 23 deletions(-)
diff --git a/src/views/basic/gyEmployee/gyEmployeeEdit.vue b/src/views/basic/gyEmployee/gyEmployeeEdit.vue
index 5c0ca2c..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) => {
@@ -1702,8 +1693,6 @@
window.open(row.url, "_self");
},
async uploadDataUpload(row, index) {
- console.log(row.raw instanceof File);
- console.log(row.raw);
try {
let blob = await this.fileToBlob(row.raw);
console.log(blob);
@@ -1715,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