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/gyUnit/gyUnit.vue | 56 ++++++++++++++++++++++++++++++++++----------------------
1 files changed, 34 insertions(+), 22 deletions(-)
diff --git a/src/views/basic/gyUnit/gyUnit.vue b/src/views/basic/gyUnit/gyUnit.vue
index bfbf894..b563227 100644
--- a/src/views/basic/gyUnit/gyUnit.vue
+++ b/src/views/basic/gyUnit/gyUnit.vue
@@ -447,16 +447,16 @@
this.editGyClose(); // 缁勪欢鍐呯殑鏂规硶缁戝畾鍒皐indows
};
this.queryParams.HOrgID = sessionStorage["OrganizationID"];
+
+ this.riqiChange();
+ this.handleQuery();
},
beforeDestroy() {
// 缁勪欢閿�姣佹椂娓呯悊鍏ㄥ眬鏂规硶锛岄伩鍏嶅唴瀛樻硠婕�
delete window.editGyClose;
},
- created() {
- this.riqiChange();
- this.handleQuery();
- },
+ created() {},
methods: {
onDateScanOptionChangerHandler(e) {
this.queryParams.timeSpan = e;
@@ -498,7 +498,7 @@
defaintOperationByCompanyName() {
var result = false;
axios
- .get(this.baseURL + "/Xt_getInfo/getCompanyName")
+ .get(this.$baseUrl + "/Xt_getInfo/getCompanyName")
.then((res) => {
var data1 = res.data;
if (data1.count == 1) {
@@ -596,7 +596,7 @@
// 璁¢噺鍗曚綅鍒楄〃
try {
- let res = await axios.get(this.baseURL + "/Gy_Unit/list1", {
+ let res = await axios.get(this.$baseUrl + "/Gy_Unit/list1", {
params: {
sWhere: this.sWhere,
user: sessionStorage["HUserName"],
@@ -700,7 +700,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,
@@ -858,7 +858,7 @@
},
//閫変腑琛岄珮浜牱寮�
rowStyle({ row, rowIndex }) {
- if (this.ids.includes(row.hmainid)) {
+ if (this.ids.includes(row.HItemID)) {
return { background: "#ecf5ff" };
}
},
@@ -880,14 +880,25 @@
}
this.handleEdit(row, this.OperationType);
},
- // 澶氶�夋閫変腑鏁版嵁
+ // 澶氶�夋閫変腑鏁版嵁
handleSelectionChange(selection) {
// this.rowForm = {}
- this.ids = selection.map((item) => item.hmainid);
- this.single = selection.length != 1;
- this.multiple = !selection.length;
- if (!this.single) {
+ if (this.openPage) {
+ //鍒楄〃鍗曢��
+ if (selection.length > 1) {
+ const del_row = selection.shift();
+ this.$refs.tableData.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
+ }
+ this.rowForm = {};
+ this.ids = selection.map((item) => item.HItemID);
this.rowForm = selection[0];
+ } else {
+ this.ids = selection.map((item) => item.HItemID);
+ this.single = selection.length != 1;
+ this.multiple = !selection.length;
+ if (!this.single) {
+ this.rowForm = selection[0];
+ }
}
},
//鎵撳紑渚ц竟鎼滅储寮圭獥
@@ -994,13 +1005,14 @@
sWhere += " and 绂佺敤鏍囪 = '' and ISNULL(瀹℃牳浜�,'') != ''";
return sWhere;
}
+
return sWhere;
},
//鏍规嵁鐢ㄦ埛鑾峰彇鐢ㄦ埛鍏宠仈缁勭粐鐨勮繃婊ゆ潯浠�
getOrgIDByUser() {
var res = "";
axios
- .get(this.baseURL + "/Xt_User/getOrgIDListByUser", {
+ .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", {
params: {
HModName: this.HModName,
user: sessionStorage["HUserName"],
@@ -1084,9 +1096,10 @@
.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠")
.then(() => {
if (!this.rowForm.瀹℃牳浜�) {
- const InterID = this.rowForm.hmainid || this.rowForm.HItemID || this.rowForm.HInterID;
+ const InterID =
+ this.rowForm.hmainid || this.rowForm.HItemID || this.rowForm.HInterID;
axios
- .get(this.baseURL + "DeltetGy_Unit", {
+ .get(this.$baseUrl + "DeltetGy_Unit", {
params: {
HItemID: InterID,
user: sessionStorage["HUserName"],
@@ -1114,7 +1127,7 @@
var InterID = form.HItemID || form.HInterID || form.hmainid;
//閫昏緫瀹℃牳鏂规硶
axios
- .get(this.baseURL + "/Gy_Unit/AuditGy_Unit", {
+ .get(this.$baseUrl + "/Gy_Unit/AuditGy_Unit", {
params: {
HInterID: InterID,
Type: num,
@@ -1136,15 +1149,15 @@
this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
});
},
-
-
+
+
// 鍙嶇鐢�/绂佺敤鏁版嵁
set_De_Stop(num, form) {
var InterID = form.HItemID || form.HInterID;
//閫昏緫瀹℃牳鏂规硶
axios
- .get(this.baseURL + "/Gy_Unit/StopGy_Unit", {
+ .get(this.$baseUrl + "/Gy_Unit/StopGy_Unit", {
params: {
HInterID: InterID,
IsStop: num,
@@ -1214,7 +1227,6 @@
return org ? org.Name : ''; // 鍙繑鍥炵粍缁囧悕绉�
},
-
// 鎻愪氦涓婁紶鏂囦欢
submitFileForm() {
this.$refs.upload.submit();
@@ -1230,7 +1242,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