Parcourir la source

11月14日 库存扣减更新

XMLWAN il y a 2 ans
Parent
révision
12db722b27

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Voir le fichier

28
           <el-col :span="8" v-if="isShow('实际超滤量')">
28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
             <el-form-item
29
             <el-form-item
30
               label="实际超滤量(ml): "
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
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>

+ 5 - 5
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Voir le fichier

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

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue Voir le fichier

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>
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
           <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>
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
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
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
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>
30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>

+ 0 - 2
src/xt_pages/outpatientDoctorStation/components/medicalRecord.vue Voir le fichier

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

+ 40 - 2
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue Voir le fichier

89
               <line-chart :options="bar"></line-chart>
89
               <line-chart :options="bar"></line-chart>
90
 
90
 
91
             </div>
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
             <div>
96
             <div>
94
 
97
 
95
               <el-table :data="tableData" style="width: 100%" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
98
               <el-table :data="tableData" style="width: 100%" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
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
       this.getCurrentOrgPatients()
658
       this.getCurrentOrgPatients()
621
       var date = new Date()
659
       var date = new Date()
622
       var year = date.getFullYear() //获取完整的年份(4位)
660
       var year = date.getFullYear() //获取完整的年份(4位)