From 68a57ed39d8288bf3c8e158dc31d31655a8a67f6 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 13 Dec 2023 16:02:45 +0800 Subject: [PATCH] =?UTF-8?q?2023-12-13=20=E6=9F=A5=E8=AF=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/qc/qc.js | 1 + src/views/modules/qc/qcItem.vue | 127 +++++++++++++++++++++++++++++++- 2 files changed, 126 insertions(+), 2 deletions(-) diff --git a/src/api/qc/qc.js b/src/api/qc/qc.js index a86ff58..70a74f3 100644 --- a/src/api/qc/qc.js +++ b/src/api/qc/qc.js @@ -14,6 +14,7 @@ export const qcItemDelete = data => createAPI(`/pms/qc/qcItemDelete`,'post',data export const uploadExcel = data => createAPI(`/pms/qc/uploadExcel`,'post',data) export const getItemLists= data => createAPI(`/pms/qc/getItemLists`,'post',data) export const subDetailUpload= data => createAPI(`/pms/qc/subDetailUpload`,'post',data) +export const queryMethodList= data => createAPI(`/pms/qc/queryMethodList`,'post',data) // ===================================== 质检员信息 ===================================== export const inspectorSearch = data => createAPI(`/pms/qc/inspectorSearch`,'post',data) diff --git a/src/views/modules/qc/qcItem.vue b/src/views/modules/qc/qcItem.vue index 32eee97..56df51b 100644 --- a/src/views/modules/qc/qcItem.vue +++ b/src/views/modules/qc/qcItem.vue @@ -118,7 +118,8 @@ - 方法编码 + + 方法编码 @@ -170,6 +171,59 @@ + + +
+ + + + + + + + + + + + + + + 查询 + + + + + + + +
+ + 关闭 + +
+ @@ -182,7 +236,8 @@ qcItemSave, // 新增项目 qcItemUpdate, // 修改项目 qcItemDelete, // 删除项目 - inspectionTypeSearch + inspectionTypeSearch, // 查询检验类型 + queryMethodList // 查询检验方法 } from "@/api/qc/qc.js" import Chooselist from '@/views/modules/common/Chooselist_eam' import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js' @@ -502,6 +557,53 @@ ] }, options: [], + methodData: { + site: this.$store.state.user.site, + methodNo: '', + methodName: '', + inspectionTypeNo: '', + inspectionTypeName: '' + }, + methodList: [], + methodModelFlag: false, + methodDetailList: [ + { + columnProp: 'methodNo', + headerAlign: "center", + align: "center", + columnLabel: '方法编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + columnProp: 'methodName', + headerAlign: "center", + align: "center", + columnLabel: '方法名称', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + { + columnProp: 'inspectionTypeName', + headerAlign: "center", + align: "center", + columnLabel: '检验类型', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + }, + ], } }, mounted () { @@ -759,6 +861,27 @@ } }, + // 获取检验方法列表 + queryMethodList () { + queryMethodList(this.methodData).then(({data}) => { + if (data && data.code === 0) { + this.methodList = data.rows + this.methodModelFlag = true + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }, + + // 选中检验方法 + getRowData (row) { + this.modalData.methodNo = row.methodNo + this.modalData.methodName = row.methodName + this.methodModelFlag = false + }, + // 校验用户是否收藏 favoriteIsOk() { let userFavorite = {