XMLWAN 4 years ago
parent
commit
47a0c88dc2
1 changed files with 17 additions and 17 deletions
  1. 17 17
      src/xt_pages/data/components/project.vue

+ 17 - 17
src/xt_pages/data/components/project.vue View File

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