XMLWAN il y a 4 ans
Parent
révision
47a0c88dc2
1 fichiers modifiés avec 17 ajouts et 17 suppressions
  1. 17 17
      src/xt_pages/data/components/project.vue

+ 17 - 17
src/xt_pages/data/components/project.vue Voir le fichier

@@ -52,7 +52,7 @@
52 52
         </el-link> -->
53 53
 
54 54
         <!-- <project-excel :on-success='handleSuccessOne'></project-excel>
55
-     
55
+
56 56
         <el-button
57 57
           style="margin-left:10px;"
58 58
           @click="generateLog()"
@@ -234,7 +234,7 @@ export default {
234 234
            dialogVisible:false,
235 235
            exportLogVisible:false,
236 236
            logs:[]
237
-          
237
+
238 238
         }
239 239
     },
240 240
     methods:{
@@ -375,7 +375,7 @@ export default {
375 375
                page:this.page,
376 376
                is_mark:this.is_mark,
377 377
             }
378
-          
378
+
379 379
           getProjectList(params).then(response=>{
380 380
              if(response.data.state == 1){
381 381
                var projecList = response.data.data.projecList
@@ -518,11 +518,11 @@ export default {
518 518
         })
519 519
      },
520 520
       handleSuccessOne({ results, header }) {
521
-       
521
+
522 522
         if (header != undefined && header.length > 0) {
523
-            
523
+
524 524
           var isHasProjectName = header.includes('*项目名称')
525
-        
525
+
526 526
           var isHasProjectPrice = header.includes('*零价')
527 527
 
528 528
           var isHasProjectUnit = header.includes('*单位')
@@ -530,9 +530,9 @@ export default {
530 530
           var isHasProjectCostClassify = header.includes('*费用类别')
531 531
 
532 532
           var isHasProjectExecutiveSection = header.includes('*执行科室')
533
-         
533
+
534 534
           var isHasProjectMedicalCoverage = header.includes('*医保等级')
535
-         
535
+
536 536
           if (!(isHasProjectName && isHasProjectPrice && isHasProjectUnit && isHasProjectCostClassify && isHasProjectExecutiveSection && isHasProjectMedicalCoverage )) {
537 537
             this.dialogVisible = true
538 538
             return
@@ -541,7 +541,7 @@ export default {
541 541
           this.dialogVisible = true
542 542
           return
543 543
         }
544
-       
544
+
545 545
        var tableData = []
546 546
        for(let i=0;i<results.length;i++){
547 547
          let obj = {"cost_classify_id":0,"medical_insurance_level_id":0,"executive_section_id":0,"tube_color_id":0,"statistical_classification_id":0,"category":0,"specail_project":0,"medical_status":0}
@@ -682,7 +682,7 @@ export default {
682 682
               }
683 683
           }
684 684
 
685
- 
685
+
686 686
          if (results[i]['总量'] === undefined) {
687 687
                 obj['total'] = ''
688 688
               } else {
@@ -739,10 +739,10 @@ export default {
739 739
           }
740 740
          }
741 741
          tableData.push(obj)
742
-         console.log("项目列表",tableData)
742
+         // console.log("项目列表",tableData)
743 743
         
744
-        for(let i=0;i<tableData.length;i++){ 
745
-          
744
+        for(let i=0;i<tableData.length;i++){
745
+
746 746
           if(tableData[i].disease_directory == ""){
747 747
               tableData[i].disease_directory = 0
748 748
           }
@@ -765,7 +765,7 @@ export default {
765 765
              tableData[i].is_record = 2
766 766
           }
767 767
 
768
-         
768
+
769 769
 
770 770
           if(tableData[i].category == ""){
771 771
              tableData[i].category = 0
@@ -802,12 +802,12 @@ export default {
802 802
             tableData[i].medical_status = 2
803 803
           }
804 804
         }
805
-       }   
805
+       }
806 806
        let params = {
807
-          'projects':tableData 
807
+          'projects':tableData
808 808
         }
809 809
        console.log("params2222",params)
810
-        
810
+
811 811
         postProjectInformation(params).then(response=>{
812 812
            if(response.data.state == 1){
813 813
              var msg =  response.data.data.msg