修复保存最近操作店铺失败

This commit is contained in:
2024-10-25 14:28:04 +08:00
parent f507b3da98
commit 873c075600
3 changed files with 32 additions and 5 deletions

View File

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

View File

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

View File

@@ -130,9 +130,9 @@
<script>
import {
patientInfo,
recordList,
prescripRecord
recordListByDoctor,
} from '@/api/all.js'
import {prescripRecordByDoctor} from "../../api/all";
export default {
data() {
return {
@@ -242,11 +242,11 @@
},
async getList() {
let res = {}
this.current == 0 && (res = await recordList({
this.current == 0 && (res = await recordListByDoctor({
up_id: this.id,
store_id: uni.getStorageSync('store_id') || '11001',
}))
this.current == 1 && (res = await prescripRecord({
this.current == 1 && (res = await prescripRecordByDoctor({
up_id: this.id,
store_id: uni.getStorageSync('store_id') || '11001',
}))