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.
 
 
 
 
 

27 lines
956 B

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 } }),
}