From e4ac13bb87a98dee35542f01a75f3a046b948152 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Sun, 21 May 2023 23:33:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=82=A3=E8=80=85=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + api/modules/service.ts | 15 ++++ config/api.ts | 0 config/service.ts | 8 ++ manifest.json | 21 +++++ pages.json | 100 +++++++++++----------- pages/create-aid/create-aid.vue | 123 ++++++++++++++++++++++++++++ pages/detail2/detail2.vue | 47 +++++++++-- pages/patient-list/patient-list.vue | 3 +- store/modules/service.ts | 3 +- 10 files changed, 264 insertions(+), 57 deletions(-) create mode 100644 config/api.ts create mode 100644 pages/create-aid/create-aid.vue diff --git a/.vscode/settings.json b/.vscode/settings.json index 658b8c0..c9a7707 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,6 +3,7 @@ "dcloudio", "easyinput", "FILESYSTEMS", + "idcard", "localdata", "NIHSS", "nvue", diff --git a/api/modules/service.ts b/api/modules/service.ts index 245fef9..6f558ab 100644 --- a/api/modules/service.ts +++ b/api/modules/service.ts @@ -9,4 +9,19 @@ export const serviceApi = { // 查急救列表 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 } }), } diff --git a/config/api.ts b/config/api.ts new file mode 100644 index 0000000..e69de29 diff --git a/config/service.ts b/config/service.ts index f4ae214..4aca9b4 100644 --- a/config/service.ts +++ b/config/service.ts @@ -19,3 +19,11 @@ export const AID_STATUS = { 0: '创建', 1: '待审核', 2: '审核通过', 3: ' // 平车状态 export const CAR_STATUS = { 0: '离线', 1: '在线' } + +// 疑似诊断 +export const FIRST_AID_ZL_TYPE = [ + { value: 0, text: 'AS急性脑卒中' }, + { value: 1, text: 'AMI急性心肌梗死' }, + { value: 2, text: 'ATI急性创伤' }, + { value: 3, text: 'AGB急性消化道出血' }, +] diff --git a/manifest.json b/manifest.json index 88c54b9..65a286a 100644 --- a/manifest.json +++ b/manifest.json @@ -101,6 +101,27 @@ "pathRewrite": { "^/firstAid": "" } + }, + "/sys": { + "target": "http://test.tall.wiki:9002", + "changeOrigin": true, + "pathRewrite": { + "^/sys": "" + } + }, + "/common": { + "target": "http://test.tall.wiki:9002", + "changeOrigin": true, + "pathRewrite": { + "^/common": "" + } + }, + "/external": { + "target": "http://test.tall.wiki:9002", + "changeOrigin": true, + "pathRewrite": { + "^/external": "" + } } } } diff --git a/pages.json b/pages.json index 2ade6a6..fb39af7 100644 --- a/pages.json +++ b/pages.json @@ -1,48 +1,54 @@ { - "pages": [ - { - "path": "pages/loading/loading", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "" - } - }, - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "", - "navigationStyle": "custom" - } - }, - { - "path": "pages/patient-list/patient-list", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "患者列表" - } - }, - { - "path": "pages/detail1/detail1", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "患者详情" - } - }, - { - "path": "pages/detail2/detail2", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "患者详情" - } - } - ], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "暴风眼质控", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8", - "app-plus": { - "background": "#efeff4" - } - } -} + "pages": [ + { + "path": "pages/loading/loading", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "" + } + }, + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "pages/patient-list/patient-list", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "患者列表" + } + }, + { + "path": "pages/detail1/detail1", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "患者详情" + } + }, + { + "path": "pages/detail2/detail2", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "患者详情" + } + }, + { + "path": "pages/create-aid/create-aid", + "style": { + "navigationBarTitleText": "create-aid" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "暴风眼质控", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8", + "app-plus": { + "background": "#efeff4" + } + } +} \ No newline at end of file diff --git a/pages/create-aid/create-aid.vue b/pages/create-aid/create-aid.vue new file mode 100644 index 0000000..18783aa --- /dev/null +++ b/pages/create-aid/create-aid.vue @@ -0,0 +1,123 @@ + + + diff --git a/pages/detail2/detail2.vue b/pages/detail2/detail2.vue index 2d587db..2bc6345 100644 --- a/pages/detail2/detail2.vue +++ b/pages/detail2/detail2.vue @@ -13,9 +13,9 @@ @@ -27,10 +27,11 @@ 患者基本信息 - - - - + + + + + @@ -66,9 +67,41 @@