瀏覽代碼

11月14日 库存扣减更新

XMLWAN 2 年之前
父節點
當前提交
12db722b27

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 5 - 5
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -458,7 +458,7 @@
458 458
             align="center"
459 459
             label="置换量(ml/h)"
460 460
             width="100"
461
-            v-if="isShow('置换量') && (template_id == 43 || template_id == 47)"
461
+            v-if="isShow('置换量') && (template_id == 43 || template_id == 48)"
462 462
           >
463 463
             <template slot-scope="scope">
464 464
               {{
@@ -485,7 +485,7 @@
485 485
                 template_id == 20 ||
486 486
                 template_id == 26 ||
487 487
                 template_id == 29 ||
488
-                template_id == 47)
488
+                template_id == 48)
489 489
             "
490 490
           >
491 491
             <template slot-scope="scope">
@@ -511,7 +511,7 @@
511 511
               template_id != 26 &&
512 512
               template_id != 29 &&
513 513
               template_id != 43 &&
514
-              template_id != 47
514
+              template_id != 48
515 515
             "
516 516
           >
517 517
             <template slot-scope="scope">
@@ -1169,7 +1169,7 @@
1169 1169
               template_id != 29 &&
1170 1170
               template_id != 43 &&
1171 1171
               template_id != 46 &&
1172
-              template_id != 47
1172
+              template_id != 48
1173 1173
             "
1174 1174
           >
1175 1175
             <el-form-item label="置换量(L):">
@@ -1190,7 +1190,7 @@
1190 1190
                 template_id == 26 ||
1191 1191
                 template_id == 29 ||
1192 1192
                 template_id == 46 ||
1193
-                template_id == 47)
1193
+                template_id == 48)
1194 1194
             "
1195 1195
           >
1196 1196
             <el-form-item label="置换量(ml):">

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -23,8 +23,8 @@
23 23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 47 || template_id == 48) " width="92px" > 置换率(ml/min) </th>
24 24
           <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 47 && template_id != 48" width="92px" > 置换率(L/h)  </th>
25 25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 47 || template_id == 48)" width="92px"  > 置换量(ml)  </th>
27
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 47 && template_id != 48)" width="92px" > 置换量(L) </th>
26
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48)" width="92px"  > 置换量(ml)  </th>
27
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48)" width="92px" > 置换量(L) </th>
28 28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29 29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
30 30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>

+ 0 - 2
src/xt_pages/outpatientDoctorStation/components/medicalRecord.vue 查看文件

@@ -123,13 +123,11 @@ export default {
123 123
         },
124 124
         //获取历史数据历史模板
125 125
         getlist(){
126
-            
127 126
             const params = {
128 127
                keyword:this.search_input,
129 128
                start_time:this.start_time,
130 129
                end_time:this.end_time
131 130
             }
132
-         
133 131
           getHistoryTemplate(params).then(response=>{
134 132
             if(response.data.state == 1){
135 133
               var template =  response.data.data.template

+ 40 - 2
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue 查看文件

@@ -89,7 +89,10 @@
89 89
               <line-chart :options="bar"></line-chart>
90 90
 
91 91
             </div>
92
-            <div class="tableTitle">统计表</div>
92
+              <div class="tableTitle">统计表</div>
93
+              <div style="float:right;margin-right:10px">
94
+               <el-button  size="small" type="primary" @click="toExport">导出</el-button>
95
+              </div>
93 96
             <div>
94 97
 
95 98
               <el-table :data="tableData" style="width: 100%" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
@@ -615,8 +618,43 @@
615 618
 
616 619
           }
617 620
         })
621
+      },
622
+    toExport(){
623
+      import('@/vendor/Export2Excel').then(excel => {
624
+        console.log("hhhh323223",this.tableData)
625
+        for(let i=0;i<this.tableData.length;i++){
626
+          this.tableData[i].assessment_date = this.getTime(this.tableData[i].assessment_date,'{y}-{m}-{d}')
627
+          this.tableData[i].name = this.tableData[i].patient.name
628
+          this.tableData[i].over_pluse =  this.tableData[i].weight_before -  this.tableData[i].last_after_weight
629
+        }
630
+       
631
+        const tHeader = ['日期', '姓名', '干体重','前次透后体重','透前体重','透后体重','体重增加']
632
+        const filterVal = ['assessment_date', 'name', 'dry_weight','last_after_weight','weight_before','weight_after','over_pluse']
633
+        console.log("table",this.tableData)
634
+      
635
+        const data = this.formatJson(filterVal, this.tableData)
636
+        excel.export_json_to_excel({
637
+          header: tHeader,
638
+          data,
639
+          filename: '患者体重'
640
+        })
641
+        this.downloadLoading = false
642
+     })
643
+    },
644
+    formatJson(filterVal, jsonData) {
645
+      return jsonData.map(v => filterVal.map(j => v[j]));
646
+    },
647
+    getTime(value, temp) {
648
+      if (value == 0) {
649
+        return "";
650
+      }
651
+      if (value != undefined) {
652
+        return uParseTime(value, temp);
618 653
       }
619
-    }, created() {
654
+      return "";
655
+    },
656
+    },
657
+     created() {
620 658
       this.getCurrentOrgPatients()
621 659
       var date = new Date()
622 660
       var year = date.getFullYear() //获取完整的年份(4位)