import request from '../../utils/request' import {ElMessage, ElMessageBox} from "element-plus"; import {downloadExcel} from "@/utils/excel"; // 查询员工基本信息 export function selectEmployeeInfo(text) { return request({ url: '/technologyArchives/selectEmployeeInfo', method: 'get', params: { text }, }) } // 查询员工基本信息 export function selectDictInfo() { return request({ url: '/technologyArchives/selectDictInfo', method: 'get', params: { }, }) } // 保存技术文档基本信息 export function saveTechnologyArchivesMain(data) { return request({ url: '/technologyArchives/saveTechnologyArchivesMain', method: 'post', data, }) } // 查询技术文档1 export function selectTechnologyArchives1() { return request({ url: '/technologyArchives/selectTechnologyArchives1', method: 'get', params: { }, }) } // 保存技术文档1 export function saveTechnologyArchives1(data) { return request({ url: '/technologyArchives/saveTechnologyArchives1', method: 'post', data, }) } // 根据serialNo, getTime删除技术文档1 export function delTechnologyArchives1ByCode(socialNo, getTime) { return request({ url: '/technologyArchives/delTechnologyArchives1ByCode', method: 'get', params: { socialNo, getTime }, }) } // 查询技术文档2 export function selectTechnologyArchives2() { return request({ url: '/technologyArchives/selectTechnologyArchives2', method: 'get', params: { }, }) } // 保存技术文档2 export function saveTechnologyArchives2(data) { return request({ url: '/technologyArchives/saveTechnologyArchives2', method: 'post', data, }) } // 根据serialNo, no删除技术文档2 export function delTechnologyArchives2ByCode(socialNo, no) { return request({ url: '/technologyArchives/delTechnologyArchives2ByCode', method: 'get', params: { socialNo, no }, }) } // 查询技术文档3 export function selectTechnologyArchives3() { return request({ url: '/technologyArchives/selectTechnologyArchives3', method: 'get', params: { }, }) } // 保存技术文档3 export function saveTechnologyArchives3(data) { return request({ url: '/technologyArchives/saveTechnologyArchives3', method: 'post', data, }) } // 根据serialNo, id删除技术文档3 export function delTechnologyArchives3ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives3ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档4 export function selectTechnologyArchives4() { return request({ url: '/technologyArchives/selectTechnologyArchives4', method: 'get', params: { }, }) } // 保存技术文档4 export function saveTechnologyArchives4(data) { return request({ url: '/technologyArchives/saveTechnologyArchives4', method: 'post', data, }) } // 根据serialNo, id删除技术文档4 export function delTechnologyArchives4ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives4ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档5 export function selectTechnologyArchives5() { return request({ url: '/technologyArchives/selectTechnologyArchives5', method: 'get', params: { }, }) } // 保存技术文档5 export function saveTechnologyArchives5(data) { return request({ url: '/technologyArchives/saveTechnologyArchives5', method: 'post', data, }) } // 根据serialNo, time删除技术文档5 export function delTechnologyArchives5ByCode(socialNo, time) { return request({ url: '/technologyArchives/delTechnologyArchives5ByCode', method: 'get', params: { socialNo, time }, }) } // 查询技术文档6 export function selectTechnologyArchives6() { return request({ url: '/technologyArchives/selectTechnologyArchives6', method: 'get', params: { }, }) } // 保存技术文档6 export function saveTechnologyArchives6(data) { return request({ url: '/technologyArchives/saveTechnologyArchives6', method: 'post', data, }) } // 根据serialNo, id删除技术文档6 export function delTechnologyArchives6ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives6ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档7 export function selectTechnologyArchives7() { return request({ url: '/technologyArchives/selectTechnologyArchives7', method: 'get', params: { }, }) } // 保存技术文档7 export function saveTechnologyArchives7(data) { return request({ url: '/technologyArchives/saveTechnologyArchives7', method: 'post', data, }) } // 根据serialNo, id删除技术文档7 export function delTechnologyArchives7ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives7ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档9 export function selectTechnologyArchives9() { return request({ url: '/technologyArchives/selectTechnologyArchives9', method: 'get', params: { }, }) } // 保存技术文档9 export function saveTechnologyArchives9(data) { return request({ url: '/technologyArchives/saveTechnologyArchives9', method: 'post', data, }) } // 根据serialNo, id删除技术文档9 export function delTechnologyArchives9ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives9ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档10 export function selectTechnologyArchives10() { return request({ url: '/technologyArchives/selectTechnologyArchives10', method: 'get', params: { }, }) } // 保存技术文档10 export function saveTechnologyArchives10(data) { return request({ url: '/technologyArchives/saveTechnologyArchives10', method: 'post', data, }) } // 根据serialNo, id删除技术文档10 export function delTechnologyArchives10ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives10ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档12 export function selectTechnologyArchives12() { return request({ url: '/technologyArchives/selectTechnologyArchives12', method: 'get', params: { }, }) } // 保存技术文档10 export function saveTechnologyArchives12(data) { return request({ url: '/technologyArchives/saveTechnologyArchives12', method: 'post', data, }) } // 根据serialNo, id删除技术文档7 export function delTechnologyArchives12ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives12ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档13 export function selectTechnologyArchives13() { return request({ url: '/technologyArchives/selectTechnologyArchives13', method: 'get', params: { }, }) } // 保存技术文档13 export function saveTechnologyArchives13(data) { return request({ url: '/technologyArchives/saveTechnologyArchives13', method: 'post', data, }) } // 根据serialNo, id删除技术文档13 export function delTechnologyArchives13ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives13ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档14 export function selectTechnologyArchives14() { return request({ url: '/technologyArchives/selectTechnologyArchives14', method: 'get', params: { }, }) } // 保存技术文档14 export function saveTechnologyArchives14(data) { return request({ url: '/technologyArchives/saveTechnologyArchives14', method: 'post', data, }) } // 根据serialNo, id删除技术文档14 export function delTechnologyArchives14ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives14ByCode', method: 'get', params: { socialNo, id }, }) } // 限制类医疗技术档案 // 查询技术文档8 export function selectTechnologyArchives8() { return request({ url: '/technologyArchives/selectTechnologyArchives8', method: 'get', params: { }, }) } // 保存技术文档8 export function saveTechnologyArchives8(data) { return request({ url: '/technologyArchives/saveTechnologyArchives8', method: 'post', data, }) } // 根据serialNo, id删除技术文档8 export function delTechnologyArchives8ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives8ByCode', method: 'get', params: { socialNo, id }, }) } // 医疗安全行为记录 // 查询技术文档11 export function selectTechnologyArchives11() { return request({ url: '/technologyArchives/selectTechnologyArchives11', method: 'get', params: { }, }) } // 保存技术文档11 export function saveTechnologyArchives11(data) { return request({ url: '/technologyArchives/saveTechnologyArchives11', method: 'post', data, }) } // 根据serialNo, id删除技术文档11 export function delTechnologyArchives11ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives11ByCode', method: 'get', params: { socialNo, id }, }) } // 应用医疗技术权限记录 // 查询技术文档15 export function selectTechnologyArchives15() { return request({ url: '/technologyArchives/selectTechnologyArchives15', method: 'get', params: { }, }) } // 保存技术文档15 export function saveTechnologyArchives15(data) { return request({ url: '/technologyArchives/saveTechnologyArchives15', method: 'post', data, }) } // 根据serialNo, id删除技术文档15 export function delTechnologyArchives15ByCode(socialNo, id) { return request({ url: '/technologyArchives/delTechnologyArchives15ByCode', method: 'get', params: { socialNo, id }, }) } // 查询技术文档类型 (type: 1 Ⅰ档案 2 Ⅱ档案) export function selectTechnologyArchivesType(type) { return request({ url: '/technologyArchives/selectTechnologyArchivesType', method: 'get', params: { type }, }) } // 根据档案类型查询技术档案信息(textType:档案类型) export function selectTechnologyArchivesInfo(data) { return request({ url: '/technologyArchives/selectTechnologyArchivesInfo', method: 'post', data, }) } // 根据档案类型导出技术档案信息 export function exportTechnologyArchivesInfo(params) { ElMessageBox.prompt('导出文件名字', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', inputPattern: /\S/, inputErrorMessage: '文件名不能为空 (∩•̀ω•́)⊃-*⋆', }).then(({ value }) => { const data = { param: params, url: '/technologyArchives/exportTechnologyArchivesInfo', fileName: value + '.xlsx', } setTimeout(() => { downloadExcel(data) }, 500) }).catch((res) => { if (res.code === '0') { ElMessage({ message: res.message, type: 'success', duration: 2000, showClose: true, }) } else { ElMessage({ message: res.message, type: 'warning', duration: 3000, showClose: true, }) } }) } export function selectTechnologyArchivesMainDict(){ return request({ url: '/technologyArchives/selectTechnologyArchivesMainDict', method: 'get', params: { }, }) }