zhouna 5 tahun lalu
induk
melakukan
6c6212060a

+ 4 - 3
src/components/qualityControl/BaseFieldList.vue

@@ -143,7 +143,7 @@
       })
       })
     },
     },
     methods: {
     methods: {
-      moduleFormatter(item){
+      moduleFormatter(item){console.log(item)
         const field = this.fieldTypes.filter((it)=>it.val==item.modeId);
         const field = this.fieldTypes.filter((it)=>it.val==item.modeId);
         return field[0]?field[0].name:'';
         return field[0]?field[0].name:'';
       },
       },
@@ -161,11 +161,12 @@
         //获取枚举信息
         //获取枚举信息
         api.getQcTypes().then((res)=>{
         api.getQcTypes().then((res)=>{
           if(res.data.code==="0"){
           if(res.data.code==="0"){
-            this.getDataList();
             const data = res.data.data;
             const data = res.data.data;
-            localStorage.setItem("qcFieldTypes",JSON.stringify(data[11]));
             localStorage.setItem("qcModuleTypes",JSON.stringify(data[12]));
             localStorage.setItem("qcModuleTypes",JSON.stringify(data[12]));
             localStorage.setItem("qcHospitalTypes",JSON.stringify(data[13]));
             localStorage.setItem("qcHospitalTypes",JSON.stringify(data[13]));
+            this.hisTypes =data[13];
+            this.fieldTypes =data[12];
+            this.getDataList();
           }else{
           }else{
             this.warning("获取枚举信息失败");
             this.warning("获取枚举信息失败");
           }
           }

+ 5 - 3
src/components/qualityControl/CombineFeildList.vue

@@ -103,10 +103,10 @@
     },
     },
     created() {
     created() {
       this.getAllTypes();
       this.getAllTypes();
-      const _this=this;
+      /*const _this=this;
       setTimeout(function() {
       setTimeout(function() {
         _this.getDataList();
         _this.getDataList();
-      },100);
+      },100);*/
     },
     },
     watch:{
     watch:{
       'filter':{
       'filter':{
@@ -142,9 +142,11 @@
         api.getQcTypes().then((res)=>{
         api.getQcTypes().then((res)=>{
           if(res.data.code==="0"){
           if(res.data.code==="0"){
             const data = res.data.data;
             const data = res.data.data;
-            localStorage.setItem("qcFieldTypes",JSON.stringify(data[11]));
             localStorage.setItem("qcModuleTypes",JSON.stringify(data[12]));
             localStorage.setItem("qcModuleTypes",JSON.stringify(data[12]));
             localStorage.setItem("qcHospitalTypes",JSON.stringify(data[13]));
             localStorage.setItem("qcHospitalTypes",JSON.stringify(data[13]));
+            this.hisTypes =data[13];
+            this.fieldTypes =data[12];
+            this.getDataList();
           }else{
           }else{
             this.warning("获取枚举信息失败");
             this.warning("获取枚举信息失败");
           }
           }