XMLWAN 3 years ago
parent
commit
80bcbcff9e

+ 8 - 0
src/api/stock.js View File

786
     params: params
786
     params: params
787
   })
787
   })
788
 }
788
 }
789
+
790
+export function SaveCheckedDamage(params) {
791
+  return request({
792
+    url: '/api/stock/savecheckdamage',
793
+    method: 'get',
794
+    params: params
795
+  })
796
+}

+ 4 - 1
src/xt_pages/stock/detail/print.vue View File

52
              
52
              
53
               <td style="line-height: 50px">
53
               <td style="line-height: 50px">
54
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
54
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
55
-                <span v-if="type == 2"> {{ item.count }}</span>
55
+                <span v-if="type == 2"> {{getStockCount(item.good_id) }}</span>
56
                 <span v-if="type == 4"> {{ item.count }}</span>
56
                 <span v-if="type == 4"> {{ item.count }}</span>
57
               </td>
57
               </td>
58
               <td style="line-height: 50px">
58
               <td style="line-height: 50px">
425
            var list = response.data.data.list
425
            var list = response.data.data.list
426
            console.log("新的",list)
426
            console.log("新的",list)
427
            this.stockDatas = list
427
            this.stockDatas = list
428
+           var stockTotal = response.data.data.stockTotal
429
+          this.stockTotal = stockTotal
430
+           
428
            
431
            
429
          }
432
          }
430
       })
433
       })

+ 4 - 1
src/xt_pages/stock/detail/stockOutDetail.vue View File

761
         this.tableData[i].specification_name = this.tableData[i].specification_name
761
         this.tableData[i].specification_name = this.tableData[i].specification_name
762
         this.tableData[i].packing_unit = this.tableData[i].packing_unit
762
         this.tableData[i].packing_unit = this.tableData[i].packing_unit
763
         this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].packing_price).toFixed(2)
763
         this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].packing_price).toFixed(2)
764
+        this.tableData[i].out_count = this.getStockCount(this.tableData[i].good_id)
764
        }
765
        }
765
        import('@/vendor/Export2Excel').then(excel => {
766
        import('@/vendor/Export2Excel').then(excel => {
766
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
767
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
767
-       const filterVal = ['index','good_name', 'specification_name', 'packing_unit','count','packing_price','total_price','remark']
768
+       const filterVal = ['index','good_name', 'specification_name', 'packing_unit','out_count','packing_price','total_price','remark']
768
 
769
 
769
        const data = this.formatJson(filterVal, this.tableData)
770
        const data = this.formatJson(filterVal, this.tableData)
770
        console.log("data",data)
771
        console.log("data",data)
808
           var list = response.data.data.list
809
           var list = response.data.data.list
809
           console.log("出库单详单",list)
810
           console.log("出库单详单",list)
810
           this.tableData = list
811
           this.tableData = list
812
+          var stockTotal = response.data.data.stockTotal
813
+          this.stockTotal = stockTotal
811
         }
814
         }
812
       })
815
       })
813
      } 
816
      } 

+ 21 - 4
src/xt_pages/stock/stockDamaged.vue View File

38
             </div>
38
             </div>
39
             <div>
39
             <div>
40
                 <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
40
                 <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
41
-                <el-button size="small" type="primary">核对</el-button>
41
+                <el-button size="small" type="primary" @click="toCheck">核对</el-button>
42
                 <el-button size="small" type="primary" @click="print">打印</el-button>
42
                 <el-button size="small" type="primary" @click="print">打印</el-button>
43
                 <el-button size="small" type="primary">导出</el-button>
43
                 <el-button size="small" type="primary">导出</el-button>
44
             </div>
44
             </div>
271
         </span>
271
         </span>
272
         <span slot="footer" class="dialog-footer">
272
         <span slot="footer" class="dialog-footer">
273
             <el-button @click="checkDialogVisible = false">取 消</el-button>
273
             <el-button @click="checkDialogVisible = false">取 消</el-button>
274
-            <el-button type="primary" @click="SaveCheckedPrice">保 存</el-button>
274
+            <el-button type="primary" @click="SaveCheckedDamage">保 存</el-button>
275
         </span>
275
         </span>
276
     </el-dialog>
276
     </el-dialog>
277
   </div>
277
   </div>
280
 <script>
280
 <script>
281
 import BreadCrumb from "../components/bread-crumb";
281
 import BreadCrumb from "../components/bread-crumb";
282
 import { uParseTime } from '@/utils/tools'
282
 import { uParseTime } from '@/utils/tools'
283
-import { postSearchGoodWarehouseList,saveReportStock,getReportStockList} from "@/api/stock"
283
+import { postSearchGoodWarehouseList,saveReportStock,getReportStockList,SaveCheckedDamage} from "@/api/stock"
284
 export default {
284
 export default {
285
     name: "stockModifyPrice",
285
     name: "stockModifyPrice",
286
     components:{
286
     components:{
331
             page:1,
331
             page:1,
332
             total:0,
332
             total:0,
333
             doctorList:[],
333
             doctorList:[],
334
+            checker:this.$store.getters.xt_user.user.id,
335
+            check_time:new Date(),
334
         }
336
         }
335
     },
337
     },
336
     methods:{
338
     methods:{
470
        }else{
472
        }else{
471
          this.checkDialogVisible = true
473
          this.checkDialogVisible = true
472
        }
474
        }
473
-    
474
      },
475
      },
475
     changePrice(val){
476
     changePrice(val){
476
        console.log("val23232322323",val)
477
        console.log("val23232322323",val)
486
       this.ids = str
487
       this.ids = str
487
      
488
      
488
      },
489
      },
490
+     SaveCheckedDamage(){
491
+         var params = {
492
+            ids:this.ids,
493
+            check_time:this.getTime(this.check_time),
494
+            checker:this.checker,
495
+         }
496
+       console.log("params",params)
497
+       SaveCheckedDamage(params).then(response=>{
498
+         if(response.data.state == 1){
499
+           this.$message.success("保存成功")
500
+           var reportprice = response.data.data.reportprice 
501
+           this.checkDialogVisible = false
502
+           this.getlist()
503
+         }
504
+       })
505
+     }
489
     },
506
     },
490
     created(){
507
     created(){
491
         // var nowDate = new Date();
508
         // var nowDate = new Date();

+ 90 - 30
src/xt_pages/user/dialysisSolution.vue View File

1568
       this.addPlan.dialysis_duration_minute = '' + row.dialysis_duration_minute
1568
       this.addPlan.dialysis_duration_minute = '' + row.dialysis_duration_minute
1569
       this.addPlan.hemodialysis_machine = row.hemodialysis_machine + ''
1569
       this.addPlan.hemodialysis_machine = row.hemodialysis_machine + ''
1570
       this.addPlan.perfusion_apparatus = row.perfusion_apparatus + ''
1570
       this.addPlan.perfusion_apparatus = row.perfusion_apparatus + ''
1571
-      this.addPlan.blood_flow_volume = row.blood_flow_volume.toString()
1571
+      if(row.blood_flow_volume!="" || row.blood_flow_volume!=undefined){
1572
+        this.addPlan.blood_flow_volume = row.blood_flow_volume.toString()
1573
+      }
1574
+     
1572
       if (row.anticoagulant == 3) {
1575
       if (row.anticoagulant == 3) {
1573
         this.addPlan.anticoagulant = '低分子肝素'
1576
         this.addPlan.anticoagulant = '低分子肝素'
1574
       }
1577
       }
1581
 
1584
 
1582
       }
1585
       }
1583
       this.addPlan.replacement_total = row.replacement_total
1586
       this.addPlan.replacement_total = row.replacement_total
1584
-
1585
-      this.addPlan.target_ktv = row.target_ktv.toString()
1586
-      this.addPlan.target_ultrafiltration = row.target_ultrafiltration.toString()
1587
+      if(row.target_ktv!="" ||row.target_ktv!=undefined){
1588
+         this.addPlan.target_ktv = row.target_ktv.toString()
1589
+      }
1590
+      if(row.target_ultrafiltration!="" || row.target_ultrafiltration!=undefined){
1591
+        this.addPlan.target_ultrafiltration = row.target_ultrafiltration.toString()
1592
+      }
1593
+   
1587
 
1594
 
1588
       this.addPlan.dialysis_duration = parseFloat(row.dialysis_duration_hour) + parseFloat((row.dialysis_duration_minute / 60).toFixed(2))
1595
       this.addPlan.dialysis_duration = parseFloat(row.dialysis_duration_hour) + parseFloat((row.dialysis_duration_minute / 60).toFixed(2))
1589
       this.addPlan.dialysis_duration_hour = row.dialysis_duration_hour
1596
       this.addPlan.dialysis_duration_hour = row.dialysis_duration_hour
1590
       this.addPlan.dialysis_duration_minute = row.dialysis_duration_minute
1597
       this.addPlan.dialysis_duration_minute = row.dialysis_duration_minute
1591
-      this.addPlan.anticoagulant_shouji = row.anticoagulant_shouji.toString()
1592
-      this.addPlan.anticoagulant_weichi = row.anticoagulant_weichi.toString()
1593
-      this.addPlan.anticoagulant_zongliang = row.anticoagulant_zongliang.toString()
1594
-      this.addPlan.anticoagulant_gaimingcheng = row.anticoagulant_gaimingcheng.toString()
1595
-      this.addPlan.anticoagulant_gaijiliang = row.anticoagulant_gaijiliang.toString()
1596
-      this.addPlan.kalium = row.kalium.toString()
1597
-      this.addPlan.sodium = row.sodium.toString()
1598
-      this.addPlan.calcium = row.calcium.toString()
1599
-
1600
-
1598
+      if(row.anticoagulant_shouji!=""|| row.anticoagulant_shouji!=undefined){
1599
+        this.addPlan.anticoagulant_shouji = row.anticoagulant_shouji.toString()
1600
+      }
1601
+      if(row.anticoagulant_weichi!="" || row.anticoagulant_weichi!=undefined){
1602
+          this.addPlan.anticoagulant_weichi = row.anticoagulant_weichi.toString()
1603
+      }
1604
+      if(row.anticoagulant_zongliang!="" || row.anticoagulant_zongliang!=undefined){
1605
+        this.addPlan.anticoagulant_zongliang = row.anticoagulant_zongliang.toString()
1606
+      }
1607
+      if(row.anticoagulant_gaimingcheng!=""||row.anticoagulant_gaimingcheng!=undefined){
1608
+         this.addPlan.anticoagulant_gaimingcheng = row.anticoagulant_gaimingcheng.toString()
1609
+      }
1610
+      if(row.anticoagulant_gaijiliang!=""||row.anticoagulant_gaijiliang!=undefined){
1611
+         this.addPlan.anticoagulant_gaijiliang = row.anticoagulant_gaijiliang.toString()
1612
+      }
1613
+      if(row.kalium!=""||row.kalium!=undefined){
1614
+        this.addPlan.kalium = row.kalium.toString()
1615
+      }
1616
+      if(row.sodium!=""||row.sodium!=undefined){
1617
+        this.addPlan.sodium = row.sodium.toString()
1618
+      }
1619
+      if(row.calcium!=""||row.calcium!=undefined){
1620
+         this.addPlan.calcium = row.calcium.toString()
1621
+      }
1622
+     
1623
+     if(row.bicarbonate!=""||  row.bicarbonate!=undefined){
1624
+       this.addPlan.bicarbonate = row.bicarbonate.toString()
1625
+     }
1601
 
1626
 
1602
-      this.addPlan.bicarbonate = row.bicarbonate.toString()
1603
-      this.addPlan.glucose = row.glucose.toString()
1627
+     if(row.glucose!=""||row.glucose!=undefined){
1628
+       this.addPlan.glucose = row.glucose.toString()
1629
+     }
1630
+     if(row.dialysate_flow!="" || row.dialysate_flow!=undefined){
1604
       this.addPlan.dialysate_flow = row.dialysate_flow.toString()
1631
       this.addPlan.dialysate_flow = row.dialysate_flow.toString()
1605
-      this.addPlan.dialysate_temperature = row.dialysate_temperature.toString()
1606
-      this.addPlan.conductivity = row.conductivity.toString()
1632
+     }
1633
+    if( row.dialysate_temperature!=""||  row.dialysate_temperature!=undefined){
1634
+       this.addPlan.dialysate_temperature = row.dialysate_temperature.toString()
1635
+    }
1636
+    if(row.conductivity!="" ||row.conductivity!=undefined ){
1637
+       this.addPlan.conductivity = row.conductivity.toString()
1638
+    }
1639
+     
1640
+    
1607
       this.addPlan.remark = row.remark
1641
       this.addPlan.remark = row.remark
1608
 
1642
 
1609
       this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1643
       this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1610
-      this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1644
+      if(row.hemodialysis_pipelines_count!="" || row.hemodialysis_pipelines_count!=undefined){
1645
+        this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1646
+      }
1647
+     
1611
       this.addPlan.puncture_needle  = row.puncture_needle
1648
       this.addPlan.puncture_needle  = row.puncture_needle
1612
-      this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1649
+      if(row.puncture_needle_count!=null || row.puncture_needle_count!=undefined){
1650
+        this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1651
+      }
1652
+     
1613
       this.addPlan.epo  = row.epo
1653
       this.addPlan.epo  = row.epo
1614
-      this.addPlan.epo_count  = row.epo_count.toString()
1615
-
1616
-
1617
-      this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1618
-      this.addPlan.plasma_separator = row.plasma_separator.toString()
1619
-      this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1654
+      if(row.epo_count!="" || row.epo_count!=undefined){
1655
+        this.addPlan.epo_count  = row.epo_count.toString()
1656
+      }
1657
+    
1658
+      if(row.dialyzer_perfusion_apparatus!="" ||  row.dialyzer_perfusion_apparatus!=undefined){
1659
+         this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1660
+      }
1661
+      if(row.plasma_separator!="" || row.plasma_separator!=undefined){
1662
+        this.addPlan.plasma_separator = row.plasma_separator.toString()
1663
+      }
1664
+     
1665
+      if(row.bilirubin_adsorption_column!="" || row.bilirubin_adsorption_column!=undefined){
1666
+         this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1667
+      }
1668
+    
1620
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1669
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1621
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1670
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1622
       this.dialysis_irrigation = row.dialysis_irrigation
1671
       this.dialysis_irrigation = row.dialysis_irrigation
1635
       }else{
1684
       }else{
1636
         this.addPlan.body_fluid = row.body_fluid
1685
         this.addPlan.body_fluid = row.body_fluid
1637
       }
1686
       }
1638
-      this.addPlan.body_fluid_other = row.body_fluid_other.toString()
1687
+      if(row.body_fluid_other!=''|| row.body_fluid_other!=undefined){
1688
+        this.addPlan.body_fluid_other = row.body_fluid_other.toString()
1689
+      }
1690
+     
1639
       this.addPlan.special_medicine = row.special_medicine
1691
       this.addPlan.special_medicine = row.special_medicine
1640
-      this.addPlan.special_medicine_other = row.special_medicine_other.toString()
1692
+      if(row.special_medicine_other!=""||row.special_medicine_other!=undefined){
1693
+        this.addPlan.special_medicine_other = row.special_medicine_other.toString()
1694
+      }
1695
+   
1641
       this.addPlan.displace_liqui_part = row.displace_liqui_part
1696
       this.addPlan.displace_liqui_part = row.displace_liqui_part
1642
-      this.addPlan.displace_liqui_value = row.displace_liqui_value.toString()
1643
-      this.addPlan.ultrafiltration = row.ultrafiltration.toString()
1697
+      if(row.displace_liqui_value!=''||row.displace_liqui_value!=undefined){
1698
+        this.addPlan.displace_liqui_value = row.displace_liqui_value.toString()
1699
+      }
1700
+      if(row.ultrafiltration!='' ||  row.ultrafiltration!=undefined){
1701
+        this.addPlan.ultrafiltration = row.ultrafiltration.toString()
1702
+      }
1703
+     
1644
       this.addPlan.blood_access = row.blood_access
1704
       this.addPlan.blood_access = row.blood_access
1645
 
1705
 
1646
       this.addPlan.registrars_id = row.registrars_id
1706
       this.addPlan.registrars_id = row.registrars_id

+ 44 - 30
src/xt_pages/user/templateSummary.vue View File

60
             <el-col :span="14">
60
             <el-col :span="14">
61
               <div class="record_content_panel">
61
               <div class="record_content_panel">
62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
63
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>  
63
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;"><span v-if="editObj.record_time!=''">阶段小结时间:{{getTime(editObj.record_time)}}</span></div>  
64
                 <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
64
                 <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
79
                   <span style="margin-right:10px;line-height:30px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
79
                   <span style="margin-right:10px;line-height:30px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
80
                   <br>
80
                   <br>
81
                   <span style="margin-right:10px;line-height:30px;">每次透析:<span v-if="editObj.hour!=''"> {{editObj.hour}}小时</span>
81
                   <span style="margin-right:10px;line-height:30px;">每次透析:<span v-if="editObj.hour!=''"> {{editObj.hour}}小时</span>
82
-                   <span v-if="editObj.minute!=''">{{editObj.minute}}</span>分</span>
82
+                   <span v-if="editObj.minute!=0">{{editObj.minute}}分</span></span>
83
                   <span style="margin-right:10px;line-height:30px;">透前体重(kg):{{editObj.befor_weight}}</span>
83
                   <span style="margin-right:10px;line-height:30px;">透前体重(kg):{{editObj.befor_weight}}</span>
84
                   <span style="margin-right:10px;line-height:30px;">透后体重(kg):{{editObj.after_weight}}</span>
84
                   <span style="margin-right:10px;line-height:30px;">透后体重(kg):{{editObj.after_weight}}</span>
85
                   <br>
85
                   <br>
365
                          <el-date-picker
365
                          <el-date-picker
366
                             v-model="form.record_time"
366
                             v-model="form.record_time"
367
                              type="datetime"
367
                              type="datetime"
368
-                            value-format="yyyy-MM-dd"
368
+                            value-format="yyyy-MM-dd HH:mm:ss"
369
                             placeholder="选择日期时间">
369
                             placeholder="选择日期时间">
370
                         </el-date-picker>
370
                         </el-date-picker>
371
                       </el-form-item>
371
                       </el-form-item>
419
                   <el-col :span="8" v-if="form.radio == 1">
419
                   <el-col :span="8" v-if="form.radio == 1">
420
                     <el-form-item>
420
                     <el-form-item>
421
                       <el-date-picker
421
                       <el-date-picker
422
+                        @change="changeStartMonth"
422
                         value-format="MM"
423
                         value-format="MM"
423
                         v-model="form.start_month"
424
                         v-model="form.start_month"
424
                         type="month"
425
                         type="month"
428
                   </el-col>
429
                   </el-col>
429
                   <el-col :span="8" v-if="form.radio == 2">
430
                   <el-col :span="8" v-if="form.radio == 2">
430
                     <el-form-item>
431
                     <el-form-item>
431
-                       <el-select v-model="form.quarter" placeholder="请选择">
432
+                       <el-select v-model="form.quarter" placeholder="请选择" @change="changeQuarter">
432
                         <el-option
433
                         <el-option
433
                           v-for="item in timeType"
434
                           v-for="item in timeType"
434
                           :key="item.id"
435
                           :key="item.id"
623
                          <el-date-picker
624
                          <el-date-picker
624
                             v-model="form.record_time"
625
                             v-model="form.record_time"
625
                              type="datetime"
626
                              type="datetime"
626
-                            value-format="yyyy-MM-dd"
627
+                            value-format="yyyy-MM-dd HH:mm:ss"
627
                             placeholder="选择日期时间">
628
                             placeholder="选择日期时间">
628
                         </el-date-picker>
629
                         </el-date-picker>
629
                       </el-form-item>
630
                       </el-form-item>
862
           template_inspection_id:0,
863
           template_inspection_id:0,
863
           template_inspection_content:"",
864
           template_inspection_content:"",
864
           admin_user_id:this.$store.getters.xt_user.user.id,
865
           admin_user_id:this.$store.getters.xt_user.user.id,
865
-          record_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
866
+          record_time: moment().locale('zh-cn').format('YYYY-MM-DD HH:mm:ss'),
866
           patient_id:"",
867
           patient_id:"",
867
           start_time:"",
868
           start_time:"",
868
           end_time:"",
869
           end_time:"",
966
      
967
      
967
     },
968
     },
968
     methods: {
969
     methods: {
969
-    getTime(value, temp) {
970
-      if (value == 0) {
971
-        return ''
972
-      }
973
-      if (value != undefined) {
974
-        return uParseTime(value, temp)
975
-      }
976
-      return ''
977
-    },
970
+      getTime(val) {
971
+         if(val == ""){
972
+          return ""
973
+         }else {
974
+          return uParseTime(val, '{y}-{m}-{d}')
975
+         }
976
+      },
977
+      getTimeTwo(val) {
978
+         if(val == ""){
979
+          return ""
980
+         }else {
981
+          return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
982
+         }
983
+      },
978
       getTimeOne(val) {
984
       getTimeOne(val) {
979
          if(val < 0){
985
          if(val < 0){
980
            return ""
986
            return ""
1280
             template_plan_content:this.form.template_plan_content,
1286
             template_plan_content:this.form.template_plan_content,
1281
             // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1287
             // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1282
             admin_user_id:this.form.admin_user_id,
1288
             admin_user_id:this.form.admin_user_id,
1283
-            record_time:this.getTime(this.form.record_time),
1289
+            record_time:this.form.record_time,
1284
             after_pressure:this.form.after_pressure,
1290
             after_pressure:this.form.after_pressure,
1285
             template_summary_id:this.form.template_summary_id,
1291
             template_summary_id:this.form.template_summary_id,
1286
             template_summary_content:this.form.template_summary_content,
1292
             template_summary_content:this.form.template_summary_content,
1294
             radio:this.form.radio,
1300
             radio:this.form.radio,
1295
          }
1301
          }
1296
           console.log("parawm232323223",params)
1302
           console.log("parawm232323223",params)
1297
-        
1303
+    
1298
         saveCreation(params).then(response=>{
1304
         saveCreation(params).then(response=>{
1299
            if(response.data.state ==1){
1305
            if(response.data.state ==1){
1300
              var summary =  response.data.data.summary
1306
              var summary =  response.data.data.summary
1323
              this.form.template_summary_content = ""
1329
              this.form.template_summary_content = ""
1324
              this.form.template_plan_content = ""
1330
              this.form.template_plan_content = ""
1325
              this.form.template_inspection_content = ""
1331
              this.form.template_inspection_content = ""
1326
-             this.form.admin_user_id = ""
1327
-             this.form.record_time = ""
1328
              this.from.after_pressure = ""
1332
              this.from.after_pressure = ""
1329
              this.form.template_summary_id = ""
1333
              this.form.template_summary_id = ""
1330
              this.form.template_plan_id = ""
1334
              this.form.template_plan_id = ""
1435
               this.form.anticoagulant = list.anticoagulant
1439
               this.form.anticoagulant = list.anticoagulant
1436
               this.form.autunite = list.autunite
1440
               this.form.autunite = list.autunite
1437
               this.form.befor_pressure = list.befor_pressure
1441
               this.form.befor_pressure = list.befor_pressure
1438
-              this.form.befor_weight = list.befor_weight
1439
-              this.form.dialysis_count = list.dialysis_count
1442
+              if( list.befor_weight == 0){
1443
+                 this.form.befor_weight = ""
1444
+              }else{
1445
+                this.form.befor_weight = list.befor_weight
1446
+              }
1447
+              if(list.dialysis_count == 0){
1448
+                 this.form.dialysis_count = ""
1449
+              }else{
1450
+                this.form.dialysis_count = list.dialysis_count
1451
+              }
1452
+             
1440
               this.form.dialzer_apparatus = list.dialzer_apparatus
1453
               this.form.dialzer_apparatus = list.dialzer_apparatus
1441
               this.form.dry_weight = list.dry_weight
1454
               this.form.dry_weight = list.dry_weight
1442
                this.form.hd_count= list.hd_count
1455
                this.form.hd_count= list.hd_count
1447
                this.form.minute = list.minute
1460
                this.form.minute = list.minute
1448
                this.form.natrium =list.natrium
1461
                this.form.natrium =list.natrium
1449
                this.form.perfusion_apparatus= list.perfusion_apparatus
1462
                this.form.perfusion_apparatus= list.perfusion_apparatus
1450
-               this.form.record_time = this.getTime(list.record_time)
1451
-               console.log("时间232233232",this.form.record_time)
1463
+               this.form.record_time = this.getTimeTwo(list.record_time)
1464
+               console.log("时间232233232",list.record_time)
1452
                this.form.template_inspection_id = list.template_inspection_id
1465
                this.form.template_inspection_id = list.template_inspection_id
1453
                this.form.template_plan_content = list.template_plan_content
1466
                this.form.template_plan_content = list.template_plan_content
1454
                this.form.template_summary_content =list.template_summary_content
1467
                this.form.template_summary_content =list.template_summary_content
1455
-               this.form.template_summary_id = list.template_summary_id
1468
+               if(list.template_summary_id == 0){
1469
+                 this.form.template_summary_id = ""
1470
+               }else{
1471
+                 this.form.template_summary_id = list.template_summary_id
1472
+               }
1473
+              
1456
                this.projectIndate = list.inspect_date
1474
                this.projectIndate = list.inspect_date
1457
                this.projectStr = list.project_id
1475
                this.projectStr = list.project_id
1458
            }
1476
            }
1519
             var list = response.data.data.list
1537
             var list = response.data.data.list
1520
             this.$message.success("保存成功")
1538
             this.$message.success("保存成功")
1521
             this.edit_show_dialog = false
1539
             this.edit_show_dialog = false
1540
+            this.getTemplateSummaryList()
1522
           }
1541
           }
1523
         })
1542
         })
1524
       },
1543
       },
1575
         this.form.template_summary_content = ""
1594
         this.form.template_summary_content = ""
1576
         this.form.template_plan_content = ""
1595
         this.form.template_plan_content = ""
1577
         this.form.template_inspection_content = ""
1596
         this.form.template_inspection_content = ""
1578
-        this.form.admin_user_id = ""
1579
-        this.form.record_time = ""
1580
         this.from.after_pressure = ""
1597
         this.from.after_pressure = ""
1581
         this.form.template_summary_id = ""
1598
         this.form.template_summary_id = ""
1582
         this.form.template_plan_id = ""
1599
         this.form.template_plan_id = ""
1612
         this.form.template_summary_content = ""
1629
         this.form.template_summary_content = ""
1613
         this.form.template_plan_content = ""
1630
         this.form.template_plan_content = ""
1614
         this.form.template_inspection_content = ""
1631
         this.form.template_inspection_content = ""
1615
-        this.form.admin_user_id = ""
1616
-        this.form.record_time = ""
1617
         this.form.after_pressure = ""
1632
         this.form.after_pressure = ""
1618
         this.form.template_summary_id = ""
1633
         this.form.template_summary_id = ""
1619
         this.form.template_plan_id = ""
1634
         this.form.template_plan_id = ""
1656
         this.form.template_summary_content = ""
1671
         this.form.template_summary_content = ""
1657
         this.form.template_plan_content = ""
1672
         this.form.template_plan_content = ""
1658
         this.form.template_inspection_content = ""
1673
         this.form.template_inspection_content = ""
1659
-        this.form.admin_user_id = ""
1660
-        this.form.record_time = ""
1674
+       
1661
         this.form.after_pressure = ""
1675
         this.form.after_pressure = ""
1662
         this.form.template_summary_id = ""
1676
         this.form.template_summary_id = ""
1663
         this.form.template_plan_id = ""
1677
         this.form.template_plan_id = ""

+ 1 - 1
src/xt_pages/user/templateSummaryPrint.vue View File

36
             <span>灌流器:{{patientList.perfusion_apparatus}}</span> 
36
             <span>灌流器:{{patientList.perfusion_apparatus}}</span> 
37
             <span>抗凝剂:{{getAnticoagulant(patientList.anticoagulant)}}</span>  
37
             <span>抗凝剂:{{getAnticoagulant(patientList.anticoagulant)}}</span>  
38
             <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
38
             <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
39
-            <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
39
+            <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}} <span v-if="patientList.minute!=''">分</span></span>
40
           </div>
40
           </div>
41
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
41
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
42
             <span>透前体重(kg):{{patientList.befor_weight}}</span>
42
             <span>透前体重(kg):{{patientList.befor_weight}}</span>