From 873c075600d8a9e9ab3c63e041ffb2760f582571 Mon Sep 17 00:00:00 2001 From: lq Date: Fri, 25 Oct 2024 14:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E6=93=8D=E4=BD=9C=E5=BA=97=E9=93=BA=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/all.js | 27 +++++++++++++++++++++- pages/login/index.vue | 2 ++ subPackages/sub_patient/patient_detail.vue | 8 +++---- 3 files changed, 32 insertions(+), 5 deletions(-) diff --git a/api/all.js b/api/all.js index c492676..282bf42 100644 --- a/api/all.js +++ b/api/all.js @@ -965,12 +965,24 @@ export function chinRefuse(data) { }) } -// 就诊记录列表 +// 就诊记录列表-药师 /** * @param {Object} data * 参数名称 必须 参数类型 说明 */ export function recordList(data) { + return req.request({ + url: 'patient/record-list', + method: 'post', + data + }) +} +// 就诊记录列表2 +/** + * @param {Object} data + * 参数名称 必须 参数类型 说明 + */ +export function recordListByDoctor(data) { return req.request({ url: 'patient/record-list-by-doctor', method: 'post', @@ -997,6 +1009,19 @@ export function prescripDetailList(data) { * 参数名称 必须 参数类型 说明 */ export function prescripRecord(data) { + return req.request({ + url: 'examine/list', + method: 'get', + data + }) +} + +// 药师 处方列表 prescripRecord http://xiaokang.com/service/v1/examine/list?status=0&store_id=11001 +/** + * @param {Object} data + * 参数名称 必须 参数类型 说明 + */ +export function prescripRecordByDoctor(data) { return req.request({ url: 'examine/list-by-doctor', method: 'get', diff --git a/pages/login/index.vue b/pages/login/index.vue index b30d9fc..749a2aa 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -144,6 +144,8 @@ // console.log(res); uni.setStorageSync('identity', res.data['ServiceUser']['role']) uni.setStorageSync('logInfo', res.data['ServiceUser']) + // 记录店铺id + uni.setStorageSync('store_id', res.data['StoreDoctor']['store_id']) const data = { store_id: uni.getStorageSync('store_id') || '11001', diff --git a/subPackages/sub_patient/patient_detail.vue b/subPackages/sub_patient/patient_detail.vue index 9a1fbfb..7e80014 100644 --- a/subPackages/sub_patient/patient_detail.vue +++ b/subPackages/sub_patient/patient_detail.vue @@ -130,9 +130,9 @@