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/gy/gySupplier.vue | 63 ++++++++++++++++++++++---------
1 files changed, 44 insertions(+), 19 deletions(-)
diff --git a/src/views/basic/gy/gySupplier.vue b/src/views/basic/gy/gySupplier.vue
index 19dbb6b..3fc2c10 100644
--- a/src/views/basic/gy/gySupplier.vue
+++ b/src/views/basic/gy/gySupplier.vue
@@ -10,7 +10,7 @@
</el-form-item>
<el-form-item label="缁勭粐">
<el-select v-model="queryParams.HUSEORGID" placeholder="璇烽�夋嫨">
- <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name" :value="item.ID">
+ <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name" :value="item.Name">
</el-option>
</el-select>
</el-form-item>
@@ -291,7 +291,7 @@
open: false,
// 鏌ヨ鍙傛暟
queryParams: {
- HUSEORGID: sessionStorage["OrganizationID"] - 0,
+ HUSEORGID: sessionStorage["Organization"],
HName: null,
HNumber: null,
HSupTypeID: null,
@@ -405,7 +405,7 @@
this.getList()
},
getTreeselect() {
- axios.get(this.baseURL + '/Gy_BadReason/Gy_SupTypeTreeListByLevel',).then(response => {
+ axios.get(this.$baseUrl + '/Gy_BadReason/Gy_SupTypeTreeListByLevel',).then(response => {
let data1 = response.data
if (data1.count == 1) {
this.treeOptions = JSON.parse(data1.data);
@@ -444,11 +444,11 @@
}
// this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
//鐢熶骇璧勬枡鍒楄〃
- axios.get(this.baseURL + '/Gy_Supplier/page', {
+ axios.get(this.$baseUrl + '/Gy_Supplier/page', {
params: {
"sWhere": this.sWhere,
"user": sessionStorage["HUserName"],
- "Organization": sessionStorage["Organization"],
+ "Organization": this.queryParams.HUSEORGID,
"page": this.page,
"size": this.pageSize
},
@@ -494,7 +494,7 @@
},
DisPlay_HideColumn(HModName, user, option, dataOption) {
this.totalNameList = []
- axios.get(this.baseURL + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', {
+ axios.get(this.$baseUrl + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', {
params: {
"HModName": HModName,
"user": user,
@@ -631,11 +631,15 @@
},
//鐐瑰嚮琛�
handleRowClick(row, column, event) {
+ if (this.checkIsIframe()) {
+ // 灏嗗綋鍓嶉�変腑鐨勬暟鎹毚闇插埌window涓�
+ window.selectedRow = row;
+ }
this.lastSelectedRow = this.selectedRow; // 璁板綍涓婁竴娆¢�変腑鐨勮
this.selectedRow = row; // 璁板綍褰撳墠閫変腑鐨勮
this.lastSelectedRowIndex = this.tableData.indexOf(row);
this.$refs.tableData.toggleRowSelection(row);
- if (this.openPage) {
+ if (this.openPage) {
this.$emit('deptEmit', row, 6)
}
},
@@ -645,8 +649,18 @@
return { "background": "#ecf5ff" }
}
},
+ checkIsIframe() {
+ if (window.self == window.top) {
+ return false;
+ }
+ return true;
+ },
//鍙屽嚮琛�
handleDblclick(row, column, cell, event) {
+ if (this.checkIsIframe()) {
+ window.parent.iframeSupplierCallBack(row);
+ return;
+ }
this.OperationType = 3
if (this.openPage) {
this.$emit('deptEmitDb', row, 6)
@@ -752,11 +766,12 @@
if (this.queryParams.HName) {
this.sWhere += " and 渚涘簲鍟嗗悕绉� like '%" + this.queryParams.HName + "%'";
}
- if (this.queryParams.HUSEORGID) {
- this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
- }
+ // if (this.queryParams.HUSEORGID) {
+ // this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
+ // }
// this.sWhere += this.addSWhereByOpenType()
// this.sWhere += this.getOrgIDByUser()
+ this.clearData()
this.getList()
},
@@ -774,7 +789,7 @@
//鏍规嵁鐢ㄦ埛鑾峰彇鐢ㄦ埛鍏宠仈缁勭粐鐨勮繃婊ゆ潯浠�
getOrgIDByUser() {
var res = "";
- axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', {
+ axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', {
params: {
HModName: this.HModName,
user: sessionStorage["HUserName"],
@@ -799,7 +814,7 @@
resetQuery() {
this.sWhere = ''
this.queryParams = {
- HUSEORGID: null,
+ HUSEORGID:sessionStorage["Organization"],
HName: null,
HNumber: null,
Comparator1: '',
@@ -810,14 +825,22 @@
ColContent: '',
}
this.resetForm("queryForm")
+ this.clearData()
this.getList()
},
-
+ clearData() {
+ this.single = true
+ this.multiple = true
+ this.OperationType = 0
+ this.copyType = 0
+ this.ids = []
+ },
//閫�鍑�
close() {
this.tableShow = true
this.openEdit = false
this.editShow = false
+ this.clearData()
this.getList()
},
//鎵撳紑鏂板缁勪欢寮圭獥
@@ -840,14 +863,14 @@
editGyClose(val) {
this.editShow = false
this.openEdit = false
- this.multiple = true,
- this.getList()
+ this.clearData()
+ this.getList()
},
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete() {
this.$modal.confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠').then(() => {
if (!this.rowForm.瀹℃牳浜�) {
- axios.get(this.baseURL + "DeltetGy_Source", {
+ axios.get(this.$baseUrl + "DeltetGy_Source", {
params: { 'HItemID': this.rowForm.HItemID.toString(), 'user': sessionStorage["HUserName"] }
}).then(response => {
if (response.data.count == 1) {
@@ -868,7 +891,7 @@
set_CheckBill(num, form) {
var InterID = form.HItemID || form.HInterID
//閫昏緫瀹℃牳鏂规硶
- axios.get(this.baseURL + "/Gy_Source/AuditGy_Source", {
+ axios.get(this.$baseUrl + "/Gy_Supplier/AuditGy_Supplier", {
params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
}).then(response => {
let result = response.data
@@ -879,6 +902,7 @@
else {
this.$modal.msgError("閿欒:" + result.code + result.Message,);
}
+ this.clearData()
}).catch(error => {
this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
});
@@ -887,7 +911,7 @@
set_De_Stop(num, form) {
var InterID = form.HItemID || form.HInterID
//閫昏緫瀹℃牳鏂规硶
- axios.get(this.baseURL + "/Gy_Source/StopGy_Source", {
+ axios.get(this.$baseUrl + "/Gy_Supplier/StopGy_Supplier", {
params: { "HInterID": InterID, "IsStop": num, "CurUserName": sessionStorage["HUserName"] }
}).then(response => {
let result = response.data
@@ -898,6 +922,7 @@
else {
this.$modal.msgError("閿欒:" + result.code + result.Message,);
}
+ this.clearData()
}).catch(error => {
this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
});
@@ -951,7 +976,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