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 @@