Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 3 years ago
parent
commit
2cc5e71984
1 changed files with 7 additions and 8 deletions
  1. 7 8
      src/xt_pages/user/templateSummary.vue

+ 7 - 8
src/xt_pages/user/templateSummary.vue View File

900
           start_time:"",
900
           start_time:"",
901
           end_time:"",
901
           end_time:"",
902
           template_plan_content:"",
902
           template_plan_content:"",
903
+          inspect_date:"",
903
         },
904
         },
904
         timeType:[
905
         timeType:[
905
           {id:1,name:"第一季度"},
906
           {id:1,name:"第一季度"},
1451
            if(response.data.state == 1){
1452
            if(response.data.state == 1){
1452
               var list = response.data.data.list
1453
               var list = response.data.data.list
1453
               var inspectlist = response.data.data.inspectlist
1454
               var inspectlist = response.data.data.inspectlist
1454
-              console.log("inspectlist2322332",list)
1455
+
1456
+              console.log("列表数据",list)
1455
               let arr = this.unique(inspectlist,'project_name')
1457
               let arr = this.unique(inspectlist,'project_name')
1456
-              console.log("hhh23h2323223223232323",arr)
1458
+              console.log("内容233323232323223",arr)
1457
               list.template_inspection_content = arr
1459
               list.template_inspection_content = arr
1458
               this.editObj = list
1460
               this.editObj = list
1459
 
1461
 
1530
               this.form.anticoagulant = list.anticoagulant
1532
               this.form.anticoagulant = list.anticoagulant
1531
               this.form.autunite = list.autunite
1533
               this.form.autunite = list.autunite
1532
               this.form.befor_pressure = list.befor_pressure
1534
               this.form.befor_pressure = list.befor_pressure
1535
+              this.projectIndate = list.inspect_date
1533
               if( list.befor_weight == 0){
1536
               if( list.befor_weight == 0){
1534
                  this.form.befor_weight = ""
1537
                  this.form.befor_weight = ""
1535
               }else{
1538
               }else{
1552
                this.form.natrium =list.natrium
1555
                this.form.natrium =list.natrium
1553
                this.form.perfusion_apparatus= list.perfusion_apparatus
1556
                this.form.perfusion_apparatus= list.perfusion_apparatus
1554
                this.form.other_count = list.other_count
1557
                this.form.other_count = list.other_count
1555
-              //  this.form.record_time = this.getTimeTwo(list.record_time)
1556
                console.log("时间232233232",list.record_time)
1558
                console.log("时间232233232",list.record_time)
1557
                if(list.template_inspection_id == 0){
1559
                if(list.template_inspection_id == 0){
1558
                   list.template_inspection_id = ""
1560
                   list.template_inspection_id = ""
1573
                }else{
1575
                }else{
1574
                  this.form.template_summary_id = list.template_summary_id
1576
                  this.form.template_summary_id = list.template_summary_id
1575
                }
1577
                }
1576
-
1577
-              //  this.projectIndate = list.inspect_date
1578
                this.projectStr = list.project_id
1578
                this.projectStr = list.project_id
1579
            }
1579
            }
1580
         })
1580
         })
1633
             befor_weight:this.form.befor_weight.toString(),
1633
             befor_weight:this.form.befor_weight.toString(),
1634
             after_weight:this.form.after_weight.toString(),
1634
             after_weight:this.form.after_weight.toString(),
1635
             befor_pressure:this.form.befor_pressure,
1635
             befor_pressure:this.form.befor_pressure,
1636
-            // template_summary_content:this.form.template_summary_content,
1637
-            // template_plan_content:this.form.template_plan_content,
1638
             template_plan_content:"",
1636
             template_plan_content:"",
1639
             template_summary_content:this.$refs.edit_neditor.content,
1637
             template_summary_content:this.$refs.edit_neditor.content,
1640
             admin_user_id:this.form.admin_user_id,
1638
             admin_user_id:this.form.admin_user_id,
1648
             inspect_date:this.projectIndate,
1646
             inspect_date:this.projectIndate,
1649
          }
1647
          }
1650
          console.log("parawm232323223",params)
1648
          console.log("parawm232323223",params)
1651
-
1649
+        
1650
+       
1652
         UpdateTemplateSummary(params).then(response=>{
1651
         UpdateTemplateSummary(params).then(response=>{
1653
           if(response.data.state == 1){
1652
           if(response.data.state == 1){
1654
             var list = response.data.data.list
1653
             var list = response.data.data.list