diff --git a/src/views/resource/common/selectPersonBydeptIdDialog.vue b/src/views/resource/common/selectPersonBydeptIdDialog.vue new file mode 100644 index 0000000..24048be --- /dev/null +++ b/src/views/resource/common/selectPersonBydeptIdDialog.vue @@ -0,0 +1,214 @@ + + + + + + diff --git a/src/views/resource/common/selectPersonBydeptIdDialog.vue b/src/views/resource/common/selectPersonBydeptIdDialog.vue new file mode 100644 index 0000000..24048be --- /dev/null +++ b/src/views/resource/common/selectPersonBydeptIdDialog.vue @@ -0,0 +1,214 @@ + + + + + + diff --git a/src/views/resource/customer/examine/detail.vue b/src/views/resource/customer/examine/detail.vue index 035a858..3deb65a 100644 --- a/src/views/resource/customer/examine/detail.vue +++ b/src/views/resource/customer/examine/detail.vue @@ -6,6 +6,7 @@ import ListTemplateDialog from './listTemplateDialog.vue' import type { IDictType } from '@/commonInterface/resource-interface' import { getDictByCode } from '@/api/system/dict' +import { getFileMethodList } from '@/api/resource/fileTechnology' import { getInfo } from '@/api/equipment/standard/book' import { deleteExamineRevoked, failUpdateExamine, getExamineDetail, refuseApproval, revokeApproval, saveExamine, submitExamine, updateDraftExamine } from '@/api/resource/examine' import ApprovalDialog from '@/views/resource/common/approvalDialog.vue' @@ -13,6 +14,7 @@ import useUserStore from '@/store/modules/user' import { SCHEDULE } from '@/utils/scheduleDict' import FilterStandard from '@/views/resource/common/filterStandard.vue' +import FilterTechnologyMethod from '@/views/resource/common/filterTechMethod.vue' // 从路由中传过来的参数 const type = ref('') @@ -600,6 +602,39 @@ loading.close() }) } +// -----------------------------------选择测试、校准检定方法------------------------------------------ +const methodFilterRef = ref() +// 点击选择测试校准检定方法 +const showTechMethodFilter = () => { + methodFilterRef.value.showOrHideFilterDialog(true) +} +// 选好测试校准检定方法 +const methodSelectedHandler = (method: { fileName: string }) => { + examineInfo.value.measureMethodName = method.fileName + methodFilterRef.value.showOrHideFilterDialog(false) +} + +// ====================下拉======================== +const measureMethodNameList = ref([]) // 选择测试校准检定方法下拉数据 +const fecthTechMethodList = () => { + const params = { + labCode: '', + groupCode: '', + fileNo: '', // 文件编号 + fileName: '', // 文件名 + fileDistributeNo: '', // 文件发放号 + activeDateStart: '', // + activeDateEnd: '', + noveltyStatus: '', + offset: 1, + limit: 20, + } + getFileMethodList(params).then((response) => { + measureMethodNameList.value = response.data.rows + }) +} + +// ------------------------------------------------------------------------------------------------- const initDialog = (params: any) => { // 从路由中获取参数 @@ -692,6 +727,7 @@ onMounted(() => { console.log('要求委托书、合同评审表详情页面') + fecthTechMethodList() // 获取测试校准检定方法 initDict() initDialog(route.query) }) @@ -914,9 +950,26 @@ - + - + + + + {{ item.fileName }} + {{ item.noveltyStatusName }} + + @@ -996,6 +1049,8 @@ + + diff --git a/src/views/resource/customer/examine/detail.vue b/src/views/resource/customer/examine/detail.vue index 035a858..3deb65a 100644 --- a/src/views/resource/customer/examine/detail.vue +++ b/src/views/resource/customer/examine/detail.vue @@ -6,6 +6,7 @@ import ListTemplateDialog from './listTemplateDialog.vue' import type { IDictType } from '@/commonInterface/resource-interface' import { getDictByCode } from '@/api/system/dict' +import { getFileMethodList } from '@/api/resource/fileTechnology' import { getInfo } from '@/api/equipment/standard/book' import { deleteExamineRevoked, failUpdateExamine, getExamineDetail, refuseApproval, revokeApproval, saveExamine, submitExamine, updateDraftExamine } from '@/api/resource/examine' import ApprovalDialog from '@/views/resource/common/approvalDialog.vue' @@ -13,6 +14,7 @@ import useUserStore from '@/store/modules/user' import { SCHEDULE } from '@/utils/scheduleDict' import FilterStandard from '@/views/resource/common/filterStandard.vue' +import FilterTechnologyMethod from '@/views/resource/common/filterTechMethod.vue' // 从路由中传过来的参数 const type = ref('') @@ -600,6 +602,39 @@ loading.close() }) } +// -----------------------------------选择测试、校准检定方法------------------------------------------ +const methodFilterRef = ref() +// 点击选择测试校准检定方法 +const showTechMethodFilter = () => { + methodFilterRef.value.showOrHideFilterDialog(true) +} +// 选好测试校准检定方法 +const methodSelectedHandler = (method: { fileName: string }) => { + examineInfo.value.measureMethodName = method.fileName + methodFilterRef.value.showOrHideFilterDialog(false) +} + +// ====================下拉======================== +const measureMethodNameList = ref([]) // 选择测试校准检定方法下拉数据 +const fecthTechMethodList = () => { + const params = { + labCode: '', + groupCode: '', + fileNo: '', // 文件编号 + fileName: '', // 文件名 + fileDistributeNo: '', // 文件发放号 + activeDateStart: '', // + activeDateEnd: '', + noveltyStatus: '', + offset: 1, + limit: 20, + } + getFileMethodList(params).then((response) => { + measureMethodNameList.value = response.data.rows + }) +} + +// ------------------------------------------------------------------------------------------------- const initDialog = (params: any) => { // 从路由中获取参数 @@ -692,6 +727,7 @@ onMounted(() => { console.log('要求委托书、合同评审表详情页面') + fecthTechMethodList() // 获取测试校准检定方法 initDict() initDialog(route.query) }) @@ -914,9 +950,26 @@ - + - + + + + {{ item.fileName }} + {{ item.noveltyStatusName }} + + @@ -996,6 +1049,8 @@ + + diff --git a/src/views/resource/customer/examine/detail.vue b/src/views/resource/customer/examine/detail.vue index 035a858..3deb65a 100644 --- a/src/views/resource/customer/examine/detail.vue +++ b/src/views/resource/customer/examine/detail.vue @@ -6,6 +6,7 @@ import ListTemplateDialog from './listTemplateDialog.vue' import type { IDictType } from '@/commonInterface/resource-interface' import { getDictByCode } from '@/api/system/dict' +import { getFileMethodList } from '@/api/resource/fileTechnology' import { getInfo } from '@/api/equipment/standard/book' import { deleteExamineRevoked, failUpdateExamine, getExamineDetail, refuseApproval, revokeApproval, saveExamine, submitExamine, updateDraftExamine } from '@/api/resource/examine' import ApprovalDialog from '@/views/resource/common/approvalDialog.vue' @@ -13,6 +14,7 @@ import useUserStore from '@/store/modules/user' import { SCHEDULE } from '@/utils/scheduleDict' import FilterStandard from '@/views/resource/common/filterStandard.vue' +import FilterTechnologyMethod from '@/views/resource/common/filterTechMethod.vue' // 从路由中传过来的参数 const type = ref('') @@ -600,6 +602,39 @@ loading.close() }) } +// -----------------------------------选择测试、校准检定方法------------------------------------------ +const methodFilterRef = ref() +// 点击选择测试校准检定方法 +const showTechMethodFilter = () => { + methodFilterRef.value.showOrHideFilterDialog(true) +} +// 选好测试校准检定方法 +const methodSelectedHandler = (method: { fileName: string }) => { + examineInfo.value.measureMethodName = method.fileName + methodFilterRef.value.showOrHideFilterDialog(false) +} + +// ====================下拉======================== +const measureMethodNameList = ref([]) // 选择测试校准检定方法下拉数据 +const fecthTechMethodList = () => { + const params = { + labCode: '', + groupCode: '', + fileNo: '', // 文件编号 + fileName: '', // 文件名 + fileDistributeNo: '', // 文件发放号 + activeDateStart: '', // + activeDateEnd: '', + noveltyStatus: '', + offset: 1, + limit: 20, + } + getFileMethodList(params).then((response) => { + measureMethodNameList.value = response.data.rows + }) +} + +// ------------------------------------------------------------------------------------------------- const initDialog = (params: any) => { // 从路由中获取参数 @@ -692,6 +727,7 @@ onMounted(() => { console.log('要求委托书、合同评审表详情页面') + fecthTechMethodList() // 获取测试校准检定方法 initDict() initDialog(route.query) }) @@ -914,9 +950,26 @@ - + - + + + + {{ item.fileName }} + {{ item.noveltyStatusName }} + + @@ -996,6 +1049,8 @@ + +