qcp QCP pad
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
1.5 KiB

import { post } from '@/api/base'
// import { useUserStoreWidthOut } from '@/store/modules/user'
// const userStore = useUserStoreWidthOut()
export const serviceApi = {
// 查平车信息
getCarInfo: () => post('/car/queryByPadNo', { param: {} }),
// 查急救列表
getAidList: (keywords: string, pageNum = 1, pageSize = 20, sort = '') =>
post('/firstAid/list', { param: { keywords }, pageSize, pageNum, sort }),
// 查数据字典
getDict: (dictType: string) => post('/sys/dict/data/list', { param: { dictType } }),
// 查民族
getNationList: () => post('/sys/nation/list', { param: {} }),
// 扫描身份证
ocrIdCard: (idcardUrl: string) => post('/sys/ocr/idcardInfo', { param: { idcardUrl } }),
// 创建急救
createAid: param => post('/firstAid/create', { param }),
// 查病历数据
getAidInfo: (firstAidId: string, codeList = []) => post('/firstAid/queryAidRecord', { param: { firstAidId, codeList } }),
// 更新急救基本信息
updateAidBase: param => post('/firstAid/update', { param }),
// 更新急救code信息
updateAidCode: param => post('/firstAid/saveAidRecord', { param }),
// 查 下一个节点
getNextNode: (firstAidId: string) => post('/firstAid/next', { param: { firstAidId } }),
// 查溶栓记录
getThrombolysisRecord: (firstAidId: string) => post('/firstAid/queryThrombolysisRecord', { param: { firstAidId } }),
// 导出溶栓记录
exportThrombolysisRecord: (firstAidId: string) => post('/firstAid/exportThrombolysisRecord', { param: { firstAidId } }),
}