|
|
@@ -137,7 +137,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import { ref } from 'vue';
|
|
|
import { onLoad } from '@dcloudio/uni-app';
|
|
|
-import { preciseQuerySubjectInfoById_V3, preciseQuerySample_V3, precisePatientEditAppoApply } from '@/pagesPatient/service/record/index';
|
|
|
+import { querySubjectInfoById_V3, querySample_V3, precisePatientEditAppoApply } from '@/pagesPatient/service/record/index';
|
|
|
import {common} from '@/utils';
|
|
|
import icon from '@/utils/icon';
|
|
|
|
|
|
@@ -151,16 +151,16 @@ onLoad((options: any) => {
|
|
|
itemInfo.value = JSON.parse(decodeURIComponent(options.itemInfo));
|
|
|
}
|
|
|
// 问卷详情
|
|
|
- querySubjectInfoById_V3();
|
|
|
+ querySubjectInfoByIdFn();
|
|
|
});
|
|
|
|
|
|
/** 问卷详情 */
|
|
|
-const querySubjectInfoById_V3 = async () => {
|
|
|
+const querySubjectInfoByIdFn = async () => {
|
|
|
let queryData = {
|
|
|
SubjectId: itemInfo.value.SubjectId
|
|
|
};
|
|
|
try {
|
|
|
- const res = await preciseQuerySubjectInfoById_V3(queryData);
|
|
|
+ const res = await querySubjectInfoById_V3(queryData);
|
|
|
if (common.isNotEmpty(res) && res.Code === 10000 && res.Data) {
|
|
|
let data = res.Data;
|
|
|
if (data[0].Status != 0) {
|
|
|
@@ -180,7 +180,7 @@ const querySubjectInfoById_V3 = async () => {
|
|
|
quesList.value = data[0];
|
|
|
|
|
|
// 问卷-查询样本和答案
|
|
|
- querySample_V3();
|
|
|
+ querySampleFn();
|
|
|
}
|
|
|
} catch (e) {
|
|
|
console.error(e);
|
|
|
@@ -188,7 +188,7 @@ const querySubjectInfoById_V3 = async () => {
|
|
|
};
|
|
|
|
|
|
/** 问卷-查询样本和答案 */
|
|
|
-const querySample_V3 = async () => {
|
|
|
+const querySampleFn = async () => {
|
|
|
let data = {
|
|
|
SubjectId: itemInfo.value.SubjectId,
|
|
|
IsGetAnswer: true,
|
|
|
@@ -197,7 +197,7 @@ const querySample_V3 = async () => {
|
|
|
};
|
|
|
|
|
|
try {
|
|
|
- const res = await preciseQuerySample_V3(data);
|
|
|
+ const res = await querySample_V3(data);
|
|
|
if (common.isNotEmpty(res) && res.Code === 10000 && res.Data) {
|
|
|
let respData = res.Data;
|
|
|
let tempQuesList = quesList.value;
|