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/gyEmployee.vue | 33 ++++++++++++++++++---------------
1 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/src/views/basic/gyEmployee/gyEmployee.vue b/src/views/basic/gyEmployee/gyEmployee.vue
index 5c319ba..5329a60 100644
--- a/src/views/basic/gyEmployee/gyEmployee.vue
+++ b/src/views/basic/gyEmployee/gyEmployee.vue
@@ -34,7 +34,7 @@
v-for="(item, index) in organizationList"
:key="index"
:label="item.Name"
- :value="item.ID"
+ :value="item.ID.toString()"
>
</el-option>
</el-select>
@@ -353,7 +353,7 @@
}}</span>
<el-button
type="text"
- @click="handleEdit(row, (OperationType = 3))"
+ @click.stop="handleEdit(row, (OperationType = 3))"
v-else-if="column.property == '鑱屽憳浠g爜'"
>{{ row.鑱屽憳浠g爜 }}</el-button
>
@@ -562,7 +562,7 @@
openData: false, //鏁版嵁寮圭獥
dialogTitle: "",
zuzhiId: "",
- organizationList: [], //缁勭粐鍒楄〃
+ organizationList: JSON.parse(sessionStorage["organizationList"]), //缁勭粐鍒楄〃
subDisabled: false, //缂栬緫椤甸潰淇濆瓨鎸夐挳鏄惁绂佺敤(true绂佺敤锛宖alse鍙敤)
OperationType: null, //淇濆瓨绫诲瀷锛堟柊澧�1淇敼3锛�
HInterID: null,
@@ -586,7 +586,7 @@
dateRange: [],
// 鏌ヨ鍙傛暟
queryParams: {
- HOrgID: null,
+ HOrgID: sessionStorage["OrganizationID"],
HName: null,
HNumber: null,
Comparator1: "",
@@ -685,7 +685,7 @@
defaintOperationByCompanyName() {
var result = false;
axios
- .get(this.baseURL + "/Xt_getInfo/getCompanyName")
+ .get(this.$baseUrl + "/Xt_getInfo/getCompanyName")
.then((response) => {
var data1 = response.data;
if (data1.count == 1) {
@@ -778,13 +778,15 @@
}
// this.queryParams.HOrgID = 100038
this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'";
+ let OrgName =
+ this.organizationList.find((e) => e.ID == this.queryParams.HOrgID)?.Name || "";
//鐢熶骇璧勬枡鍒楄〃
axios
- .get(this.baseURL + "/Gy_Employee/listPage", {
+ .get(this.$baseUrl + "/Gy_Employee/listPage", {
params: {
sWhere: this.sWhere,
user: sessionStorage["HUserName"],
- Organization: "娴欐睙鏅轰簯杩堟��",
+ Organization: OrgName,
page: this.page,
size: this.pageSize,
},
@@ -889,7 +891,7 @@
DisPlay_HideColumn(HModName, user, option, dataOption) {
this.totalNameList = [];
axios
- .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
+ .get(this.$baseUrl + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
params: {
HModName: HModName,
user: user,
@@ -1053,7 +1055,7 @@
if (this.openPage) {
this.$emit("deptEmitDb", row, 4);
} else {
- this.handleEdit();
+ this.handleEdit(row);
}
},
// 澶氶�夋閫変腑鏁版嵁
@@ -1184,7 +1186,7 @@
getOrgIDByUser() {
var res = "";
axios
- .get(this.baseURL + "/Xt_User/getOrgIDListByUser", {
+ .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", {
params: {
HModName: this.HModName,
user: sessionStorage["HUserName"],
@@ -1248,7 +1250,8 @@
});
},
//鎵撳紑淇敼缁勪欢寮圭獥
- handleEdit() {
+ handleEdit(row) {
+ this.rowForm = row
this.$nextTick(() => {
this.openEdit = true;
this.editShow = true;
@@ -1267,7 +1270,7 @@
.then(() => {
if (!this.rowForm.瀹℃牳浜�) {
axios
- .get(this.baseURL + "DeltetGy_Employee", {
+ .get(this.$baseUrl + "DeltetGy_Employee", {
params: {
HItemID: this.rowForm.HItemID.toString(),
user: sessionStorage["HUserName"],
@@ -1295,7 +1298,7 @@
var InterID = form.HItemID || form.HInterID;
//閫昏緫瀹℃牳鏂规硶
axios
- .get(this.baseURL + "/Gy_Employee/AuditGy_Employee", {
+ .get(this.$baseUrl + "/Gy_Employee/AuditGy_Employee", {
params: {
HInterID: InterID,
IsAudit: num,
@@ -1320,7 +1323,7 @@
var InterID = form.HItemID || form.HInterID;
//閫昏緫瀹℃牳鏂规硶
axios
- .get(this.baseURL + "/Gy_Employee/StopGy_Employee", {
+ .get(this.$baseUrl + "/Gy_Employee/StopGy_Employee", {
params: {
HInterID: InterID,
IsStop: num,
@@ -1394,7 +1397,7 @@
var sMainSub = sSubStr + "&鍜�" + sessionStorage["HUserName"];
axios({
method: "post",
- url: this.baseURL + "/Gy_Source/Gy_Source_btnSave",
+ url: this.$baseUrl + "/Gy_Source/Gy_Source_btnSave",
data: {
sMainSub: sMainSub,
},
--
Gitblit v1.9.1