Explorar el Código

是否有预问诊信息接口修改

1178232204@qq.com hace 3 años
padre
commit
680cd8908c
Se han modificado 2 ficheros con 4 adiciones y 3 borrados
  1. 3 2
      src/components/PathInfo.vue
  2. 1 1
      src/utils/api.js

+ 3 - 2
src/components/PathInfo.vue

@@ -223,8 +223,9 @@
         api.recordCheck(param).then((res)=>{
           const result = res.data;
           if(result.code==0){
-            let type = result.data.type;
-            if(type == 3||type == 6){//有预问诊信息
+            let data = result.data;
+            console.log(data);
+            if(data.detailCount > 0 || data.physicalCount > 0 || data.scaleCount > 0 ){//有预问诊信息
               this.showToast = true
             }else{
               this.goNext();

+ 1 - 1
src/utils/api.js

@@ -4,7 +4,7 @@ const urls = {
   getPathInfo:'/api/prec/patientInfo/getTopPatientInfo',//患者信息
   getSysConfig:'/api/prec/sysSet/getSysSetInfoDatas',//配置项
   getHospitalDatas:'/api/prec/sysSet/getHospitalDatas',//获取医院列表
-  recordCheck:'/api/prec/inquiryInfo/recordCheck',//校验是否已做过
+  recordCheck:'/api/prec/inquiryInfoSyf/recordCheck',//校验是否已做过
   getAll:'/api/prec/moduleInfo/getAll',//获取模板
   getSymptom:'/api/prec/questionUsual/getQuestionUsual',//常用症状
   getById:'/api/prec/questionInfo/getById',//常标签详情