From 53131ad56777d9a112a55e75fb0af5474c250beb Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Thu, 4 Jun 2026 15:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E7=BA=BF=E8=B4=9F=E8=B4=A3=E4=BA=BA?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/FAIResultEntry.vue | 31 +++--------------------- src/views/modules/qc/FQCResultEntry.vue | 31 +++--------------------- src/views/modules/qc/IPQCResultEntry.vue | 31 +++--------------------- src/views/modules/qc/IQCResultEntry.vue | 31 +++--------------------- src/views/modules/qc/PQCResultEntry.vue | 31 +++--------------------- 5 files changed, 20 insertions(+), 135 deletions(-) diff --git a/src/views/modules/qc/FAIResultEntry.vue b/src/views/modules/qc/FAIResultEntry.vue index 1c24a08..b770af1 100644 --- a/src/views/modules/qc/FAIResultEntry.vue +++ b/src/views/modules/qc/FAIResultEntry.vue @@ -734,9 +734,9 @@
- + - + @@ -859,7 +859,6 @@ import { getEamPropertiesItemByItemNo, getCollectorDataByItem, getResponsibleOperatorList, - getMhmResponsibleRoleList, } from '@/api/qc/qc.js' import { getTableDefaultListLanguage, @@ -902,12 +901,6 @@ export default { } return this.tableData.slice(start, end) }, - operatorRoleList() { - if (this.operatorData.flag === '2' && this.detailData.buNo === '04-MHM') { - return this.mhmRoleList - } - return this.roleList - }, }, watch: { detailData: { @@ -2247,7 +2240,6 @@ export default { authFile: false, menuId: this.$route.meta.menuId, roleList: [], - mhmRoleList: [], defaultCollaborativeRoleName: 'FAI操作员', operatorList: [], operatorData: { @@ -2603,19 +2595,6 @@ export default { }) }, - loadMhmRoleList(callback) { - if (this.mhmRoleList.length > 0) { - callback && callback() - return - } - getMhmResponsibleRoleList({}).then(({ data }) => { - if (data && data.code === 0) { - this.mhmRoleList = data.rows || [] - } - callback && callback() - }) - }, - fetchResponsibleOperatorData(tempDataList, showDialog) { let request if (this.isMhmResponsibleBu()) { @@ -2661,10 +2640,8 @@ export default { this.fetchResponsibleOperatorData(tempDataList, true) } if (this.isMhmResponsibleBu()) { - this.loadMhmRoleList(() => { - this.operatorData.roleId = '' - openDialog() - }) + this.operatorData.roleId = '' + openDialog() } else { if (this.roleList.length > 0) { let filterList = this.roleList.filter( diff --git a/src/views/modules/qc/FQCResultEntry.vue b/src/views/modules/qc/FQCResultEntry.vue index 2fe786b..36c18e7 100644 --- a/src/views/modules/qc/FQCResultEntry.vue +++ b/src/views/modules/qc/FQCResultEntry.vue @@ -716,9 +716,9 @@
- + - + @@ -843,7 +843,6 @@ import { getEamPropertiesItemByItemNo, getCollectorDataByItem, getResponsibleOperatorList, - getMhmResponsibleRoleList, } from '@/api/qc/qc.js' import { getTableDefaultListLanguage, @@ -886,12 +885,6 @@ export default { } return this.tableData.slice(start, end) }, - operatorRoleList() { - if (this.operatorData.flag === '2' && this.detailData.buNo === '04-MHM') { - return this.mhmRoleList - } - return this.roleList - }, }, watch: { detailData: { @@ -2230,7 +2223,6 @@ export default { authFile: false, menuId: this.$route.meta.menuId, roleList: [], - mhmRoleList: [], defaultCollaborativeRoleName: 'FQC操作员', operatorList: [], operatorData: { @@ -2585,19 +2577,6 @@ export default { }) }, - loadMhmRoleList(callback) { - if (this.mhmRoleList.length > 0) { - callback && callback() - return - } - getMhmResponsibleRoleList({}).then(({ data }) => { - if (data && data.code === 0) { - this.mhmRoleList = data.rows || [] - } - callback && callback() - }) - }, - fetchResponsibleOperatorData(tempDataList, showDialog) { let request if (this.isMhmResponsibleBu()) { @@ -2643,10 +2622,8 @@ export default { this.fetchResponsibleOperatorData(tempDataList, true) } if (this.isMhmResponsibleBu()) { - this.loadMhmRoleList(() => { - this.operatorData.roleId = '' - openDialog() - }) + this.operatorData.roleId = '' + openDialog() } else { if (this.roleList.length > 0) { let filterList = this.roleList.filter( diff --git a/src/views/modules/qc/IPQCResultEntry.vue b/src/views/modules/qc/IPQCResultEntry.vue index 5fbe765..69e4e83 100644 --- a/src/views/modules/qc/IPQCResultEntry.vue +++ b/src/views/modules/qc/IPQCResultEntry.vue @@ -794,10 +794,10 @@
- + @@ -951,7 +951,6 @@ getEamPropertiesItemByItemNo, getCollectorDataByItem, getResponsibleOperatorList, - getMhmResponsibleRoleList, } from "@/api/qc/qc.js" import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" import Chooselist from '@/views/modules/common/Chooselist_eam' @@ -987,12 +986,6 @@ } return this.tableData.slice(start,end) }, - operatorRoleList () { - if (this.operatorData.flag === '2' && this.detailData.buNo === '04-MHM') { - return this.mhmRoleList - } - return this.roleList - } }, watch: { detailData: { @@ -2379,7 +2372,6 @@ authFile: false, menuId: this.$route.meta.menuId, roleList: [], - mhmRoleList: [], defaultCollaborativeRoleName: 'IPQC操作员', operatorList: [], operatorData: { @@ -2759,19 +2751,6 @@ }) }, - loadMhmRoleList (callback) { - if (this.mhmRoleList.length > 0) { - callback && callback() - return - } - getMhmResponsibleRoleList({}).then(({ data }) => { - if (data && data.code === 0) { - this.mhmRoleList = data.rows || [] - } - callback && callback() - }) - }, - fetchResponsibleOperatorData (tempDataList, showDialog) { let request if (this.isMhmResponsibleBu()) { @@ -2811,10 +2790,8 @@ this.fetchResponsibleOperatorData(tempDataList, true) } if (this.isMhmResponsibleBu()) { - this.loadMhmRoleList(() => { - this.operatorData.roleId = '' - openDialog() - }) + this.operatorData.roleId = '' + openDialog() } else { if (this.roleList.length > 0) { let filterList = this.roleList.filter(item => item.roleName === '机修人员') diff --git a/src/views/modules/qc/IQCResultEntry.vue b/src/views/modules/qc/IQCResultEntry.vue index cab831d..761bf51 100644 --- a/src/views/modules/qc/IQCResultEntry.vue +++ b/src/views/modules/qc/IQCResultEntry.vue @@ -655,10 +655,10 @@
- + @@ -800,7 +800,6 @@ getEamPropertiesItemByItemNo, getCollectorDataByItem, getResponsibleOperatorList, - getMhmResponsibleRoleList, } from "@/api/qc/qc.js" import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" import Chooselist from '@/views/modules/common/Chooselist_eam' @@ -836,12 +835,6 @@ } return this.tableData.slice(start,end) }, - operatorRoleList () { - if (this.operatorData.flag === '2' && this.detailData.buNo === '04-MHM') { - return this.mhmRoleList - } - return this.roleList - } }, watch: { detailData: { @@ -1920,7 +1913,6 @@ authFile: false, menuId: this.$route.meta.menuId, roleList: [], - mhmRoleList: [], defaultCollaborativeRoleName: 'IQC操作员', operatorList: [], operatorData: { @@ -2258,19 +2250,6 @@ }) }, - loadMhmRoleList (callback) { - if (this.mhmRoleList.length > 0) { - callback && callback() - return - } - getMhmResponsibleRoleList({}).then(({ data }) => { - if (data && data.code === 0) { - this.mhmRoleList = data.rows || [] - } - callback && callback() - }) - }, - fetchResponsibleOperatorData (tempDataList, showDialog) { let request if (this.isMhmResponsibleBu()) { @@ -2310,10 +2289,8 @@ this.fetchResponsibleOperatorData(tempDataList, true) } if (this.isMhmResponsibleBu()) { - this.loadMhmRoleList(() => { - this.operatorData.roleId = '' - openDialog() - }) + this.operatorData.roleId = '' + openDialog() } else { if (this.roleList.length > 0) { let filterList = this.roleList.filter(item => item.roleName === '机修人员') diff --git a/src/views/modules/qc/PQCResultEntry.vue b/src/views/modules/qc/PQCResultEntry.vue index 1399c77..0908b22 100644 --- a/src/views/modules/qc/PQCResultEntry.vue +++ b/src/views/modules/qc/PQCResultEntry.vue @@ -891,10 +891,10 @@
- + @@ -1054,7 +1054,6 @@ import { previewSopFile,//预览Sop文件 getColumnDisplayFlagList,//查询 检验单标准值角色用户 getResponsibleOperatorList, - getMhmResponsibleRoleList, } from "@/api/qc/qc.js" import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" import Chooselist from '@/views/modules/common/Chooselist_eam' @@ -1091,12 +1090,6 @@ export default { } return this.tableData.slice(start,end) }, - operatorRoleList () { - if (this.operatorData.flag === '2' && this.detailData.buNo === '04-MHM') { - return this.mhmRoleList - } - return this.roleList - }, // returntemplateId(){ // let a = this.modalData.operationDesc // let list = this.operationList @@ -2523,7 +2516,6 @@ export default { authFile: false, menuId: this.$route.meta.menuId, roleList: [], - mhmRoleList: [], defaultCollaborativeRoleName: 'PQC操作员', operatorList: [], operatorData: { @@ -2853,19 +2845,6 @@ export default { return this.detailData.buNo === '04-MHM' }, - loadMhmRoleList (callback) { - if (this.mhmRoleList.length > 0) { - callback && callback() - return - } - getMhmResponsibleRoleList({}).then(({ data }) => { - if (data && data.code === 0) { - this.mhmRoleList = data.rows || [] - } - callback && callback() - }) - }, - fetchResponsibleOperatorData (tempDataList, showDialog) { let request if (this.isMhmResponsibleBu()) { @@ -2905,10 +2884,8 @@ export default { this.fetchResponsibleOperatorData(tempDataList, true) } if (this.isMhmResponsibleBu()) { - this.loadMhmRoleList(() => { - this.operatorData.roleId = '' - openDialog() - }) + this.operatorData.roleId = '' + openDialog() } else { if (this.roleList.length > 0) { let filterList = this.roleList.filter(item => item.roleName === '机修人员')