XMLWAN 4 anos atrás
pai
commit
ca6cd30e59
1 arquivos alterados com 10 adições e 4 exclusões
  1. 10 4
      src/xt_pages/qcd/officesControlAnalysis/project.vue

+ 10 - 4
src/xt_pages/qcd/officesControlAnalysis/project.vue Ver arquivo

285
         })
285
         })
286
     },
286
     },
287
     handleModeType(val){
287
     handleModeType(val){
288
-      // console.log("modetype",this.mode_type)
288
+     
289
+      console.log("modetype",this.type,this.mode_type)
289
       if(this.type == 2){
290
       if(this.type == 2){
290
          this.bloodType = val
291
          this.bloodType = val
291
         if(this.mode_type == -1 || this.mode_type == -2){
292
         if(this.mode_type == -1 || this.mode_type == -2){
292
           this.getMonthBloodList()
293
           this.getMonthBloodList()
294
+         
293
           return false
295
           return false
294
         }else{
296
         }else{
295
             // console.log("chuff")
297
             // console.log("chuff")
597
 
599
 
598
         const  decStart = moment().month(11).startOf('month').format("YYYY-MM-DD")
600
         const  decStart = moment().month(11).startOf('month').format("YYYY-MM-DD")
599
         const decEnd = moment().month(11).endOf('month').format("YYYY-MM-DD")
601
         const decEnd = moment().month(11).endOf('month').format("YYYY-MM-DD")
600
-
602
+        for(let i=0;i<this.normdata.length;i++){
603
+            if(this.normdata[i].inspection_minor == this.mode_type){
604
+               this.range_type = this.normdata[i].range_type
605
+            }
606
+        }
601
 
607
 
602
         const params = {
608
         const params = {
603
           lapseto:this.lapseto,
609
           lapseto:this.lapseto,
629
           decEnd:decEnd,
635
           decEnd:decEnd,
630
           range_type:this.range_type,
636
           range_type:this.range_type,
631
         }
637
         }
632
-
638
+       console.log("222222",params)
633
        getMonthProjectList(params).then(response=>{
639
        getMonthProjectList(params).then(response=>{
634
         if(response.data.state === 1){
640
         if(response.data.state === 1){
635
             var monthlist = response.data.data.monthlist
641
             var monthlist = response.data.data.monthlist
1084
             decEnd:decEnd,
1090
             decEnd:decEnd,
1085
             bloodType:this.bloodType
1091
             bloodType:this.bloodType
1086
          }
1092
          }
1087
-        //  console.log("params",params)
1093
+       console.log("params",params)
1088
       getMonthBloodList(params).then(response=>{
1094
       getMonthBloodList(params).then(response=>{
1089
         if(response.data.state == 1){
1095
         if(response.data.state == 1){
1090
           if(this.bloodType == -1){
1096
           if(this.bloodType == -1){