| 123456789101112131415161718192021 |
- import { Post } from "../../../lib/request/method"
- import { transformHealthIndex2Chart } from "./health-index";
- const careId=wx.getStorageSync('careId')
- export function healthIndexReportMethod() {
- if(careId)
- {
- console.log(careId, '服务包详情');
- return Post(`/patientCrManage/getPcrProcessById/${careId}`, {}, {
- transform({ data }: any) {
- return transformHealthIndex2Chart(<any[]>data.patientQuotaGroups)
- }
- })
- }else{
- console.log('获取健康评估记录');
- return Post(`/patientQuota/getQuovalRecord`, {}, {
- transform({ data }) { return transformHealthIndex2Chart(<any[]>data) }
- })
- }
-
- }
|