浏览代码

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

28169 1周前
父节点
当前提交
2b3e400ac9

+ 61 - 45
src/xt_pages/dialysis/batch_print/batch_print_order_eightythree.vue 查看文件

@@ -48,10 +48,10 @@
48 48
                           }}
49 49
                         </div>
50 50
                         <div style="flex: 1;">
51
-                          透析频次:
52
-                          <span style="display: inline-block;width: 60px;">
53
-                            {{ record.assessment_before_dislysis.dialysis_count}}
54
-                          </span>
51
+                          透析频次:{{ record.assessment_before_dislysis.dialysis_count }}
52
+                          <!-- <span style="display: inline-block;width: 60px;">
53
+                            {{ record.assessment_before_dislysis.dialysis_count }}
54
+                          </span> -->
55 55
                         </div>
56 56
                       </div>
57 57
                     </td>
@@ -65,8 +65,8 @@
65 65
                   </tr>
66 66
                   <tr>
67 67
                     <td colspan="3">
68
-                    
69
-                      <div class="row" style="padding: 2px 0; line-height: 23px;display: inline-block;" >
68
+
69
+                      <div class="row" style="padding: 2px 0; line-height: 23px;display: inline-block;">
70 70
                         <div class="inline_block" style="flex: 0.8;">
71 71
                           T:
72 72
                           <div class="under_line" style="width: 50px; text-align: center">
@@ -129,7 +129,8 @@
129 129
                         治疗方式:
130 130
                         <label-box :isChecked="record.prescription.mode_id == 1 ? true : false"
131 131
                           showValue="HD"></label-box>&nbsp;
132
-                        <label-box :isChecked="record.prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
132
+                        <label-box :isChecked="record.prescription.mode_id == 2 ? true : false"
133
+                          showValue="HDF"></label-box>
133 134
                         (<label-box
134 135
                           :isChecked="record.prescription.mode_id == 2 && record.prescription.displace_liqui_part == 1 ? true : false"
135 136
                           showValue="前稀释"></label-box>&nbsp;
@@ -140,8 +141,10 @@
140 141
                           record.prescription.displace_liqui_value : "/" }} ml</span>
141 142
                         )&nbsp;&nbsp;
142 143
                         <label-box :isChecked="record.prescription.mode == 5 ? true : false" showValue="HF"></label-box>
143
-                        <label-box :isChecked="record.prescription.mode == 20 ? true : false" showValue="UF"></label-box>
144
-                        <label-box :isChecked="record.prescription.mode == 3 ? true : false" showValue="HD+HP"></label-box>
144
+                        <label-box :isChecked="record.prescription.mode == 20 ? true : false"
145
+                          showValue="UF"></label-box>
146
+                        <label-box :isChecked="record.prescription.mode == 3 ? true : false"
147
+                          showValue="HD+HP"></label-box>
145 148
                       </div>
146 149
                     </td>
147 150
                     <td style="line-height:30px;">
@@ -157,10 +160,12 @@
157 160
                     <td colspan="3">
158 161
                       <div style="display: flex;line-height:30px;">
159 162
                         <span>治疗抗凝:</span>
160
-                        <label-box :isChecked="record.prescription.anticoagulant==3 ||record.prescription.anticoagulant==6||
161
-                          record.prescription.anticoagulant==7 ? true : false"showValue="低分子肝素:"></label-box>&nbsp;
162
-                        <span v-if="record.prescription.anticoagulant==3 ||record.prescription.anticoagulant==6||record.prescription.anticoagulant==7">
163
-                          {{ record.prescription.anticoagulant_zongliang ? record.prescription.anticoagulant_zongliang : "0" }}
163
+                        <label-box :isChecked="record.prescription.anticoagulant == 3 || record.prescription.anticoagulant == 6 ||
164
+                          record.prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素:"></label-box>&nbsp;
165
+                        <span
166
+                          v-if="record.prescription.anticoagulant == 3 || record.prescription.anticoagulant == 6 || record.prescription.anticoagulant == 7">
167
+                          {{ record.prescription.anticoagulant_zongliang ? record.prescription.anticoagulant_zongliang :
168
+                          "0" }}
164 169
                         </span>U&nbsp;&nbsp;
165 170
 
166 171
                         <label-box :isChecked="record.prescription.anticoagulant == 2 ? true : false"
@@ -174,12 +179,12 @@
174 179
                           追加:
175 180
                           <span v-if="record.prescription.anticoagulant == 2">
176 181
                             {{ record.prescription.anticoagulant_weichi ? record.prescription.anticoagulant_weichi :
177
-                            "0"}}
182
+                              "0" }}
178 183
                           </span>mg/h &nbsp;&nbsp;
179 184
                           总量:
180 185
                           <span v-if="record.prescription.anticoagulant == 2">
181 186
                             {{ record.prescription.anticoagulant_zongliang ? record.prescription.anticoagulant_zongliang
182
-                            : "0"}}
187
+                              : "0" }}
183 188
                           </span>mg
184 189
                         </div>
185 190
                         &nbsp;&nbsp;
@@ -202,9 +207,12 @@
202 207
                         </span>ml/h
203 208
                         <span>
204 209
                           透析(滤)器:
205
-                          {{ record.prescription.dialysis_dialyszers ? record.prescription.dialysis_dialyszers : "" }} &nbsp;
206
-                          {{ record.prescription.dialysis_strainer ? record.prescription.dialysis_strainer : "" }} &nbsp;
207
-                          {{ record.prescription.dialysis_irrigation ? record.prescription.dialysis_irrigation :'' }} &nbsp;
210
+                          {{ record.prescription.dialysis_dialyszers ? record.prescription.dialysis_dialyszers : "" }}
211
+                          &nbsp;
212
+                          {{ record.prescription.dialysis_strainer ? record.prescription.dialysis_strainer : "" }}
213
+                          &nbsp;
214
+                          {{ record.prescription.dialysis_irrigation ? record.prescription.dialysis_irrigation : '' }}
215
+                          &nbsp;
208 216
                         </span>
209 217
 
210 218
                       </div>
@@ -252,17 +260,18 @@
252 260
                       <label-box
253 261
                         :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('无绦纶套') != -1 ? true : false"
254 262
                         showValue="临时(颈、股)静脉导管"></label-box>&nbsp;
255
-                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('人造血管') != -1 ? true : false"
263
+                      <label-box
264
+                        :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('人造血管') != -1 ? true : false"
256 265
                         showValue="人造血管"></label-box>&nbsp;
257
-                        <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('股静脉') != -1 ? true : false"
266
+                      <label-box
267
+                        :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('股静脉') != -1 ? true : false"
258 268
                         showValue="股静脉"></label-box>&nbsp;
259 269
                       其他:
260
-                      <div style="display: inline-block;" 
270
+                      <div style="display: inline-block;"
261 271
                         v-if="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('内瘘') == -1 &&
262
-                        QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('无绦纶套') == -1 &&
263
-                        QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('带隧道带绦纶套') == -1 &&
264
-                        QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('人造血管') == -1"
265
-                      >
272
+                          QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('无绦纶套') == -1 &&
273
+                          QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('带隧道带绦纶套') == -1 &&
274
+                          QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id).indexOf('人造血管') == -1">
266 275
                         {{ QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id) }}
267 276
                       </div>
268 277
 
@@ -284,18 +293,24 @@
284 293
                     <div style="display: flex;">
285 294
                       <div style="flex: 1;">
286 295
                         内瘘穿刺方式:
287
-                        <label-box :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('绳梯') != -1 ? true : false"
296
+                        <label-box
297
+                          :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('绳梯') != -1 ? true : false"
288 298
                           showValue="绳梯"></label-box>
289
-                        <label-box :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('扣眼') != -1 ? true : false"
299
+                        <label-box
300
+                          :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('扣眼') != -1 ? true : false"
290 301
                           showValue="扣眼"></label-box>
291
-                        <label-box :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('区域') != -1 ? true : false"
302
+                        <label-box
303
+                          :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('区域') != -1 ? true : false"
292 304
                           showValue="区域"></label-box>
293 305
                       </div>
294 306
                       <div style="flex: 1;">
295 307
                         内瘘震颤和血管杂音:
296
-                        <label-box :isChecked="record.assessment_before_dislysis.blood_access_noise == 1 ? true : false" showValue="存在"></label-box>
297
-                        <label-box :isChecked="record.assessment_before_dislysis.blood_access_noise == 2 ? true : false" showValue="减弱"></label-box>
298
-                        <label-box :isChecked="record.assessment_before_dislysis.blood_access_noise == 3 ? true : false" showValue="不存在"></label-box>
308
+                        <label-box :isChecked="record.assessment_before_dislysis.blood_access_noise == 1 ? true : false"
309
+                          showValue="存在"></label-box>
310
+                        <label-box :isChecked="record.assessment_before_dislysis.blood_access_noise == 2 ? true : false"
311
+                          showValue="减弱"></label-box>
312
+                        <label-box :isChecked="record.assessment_before_dislysis.blood_access_noise == 3 ? true : false"
313
+                          showValue="不存在"></label-box>
299 314
                       </div>
300 315
                     </div>
301 316
                   </td>
@@ -363,8 +378,8 @@
363 378
                           ? getAdminUser(monitor, "monitoring_nurse") : "/"
364 379
                         }}
365 380
                       </span>
366
-                      <img class="es-img" :src="setAdminUserES(monitor, 'monitoring_nurse')" alt=""
367
-                        srcset="" v-else style="height: 40px" />
381
+                      <img class="es-img" :src="setAdminUserES(monitor, 'monitoring_nurse')" alt="" srcset="" v-else
382
+                        style="height: 40px" />
368 383
                     </td>
369 384
 
370 385
                   </tr>
@@ -436,12 +451,12 @@
436 451
                         record.lastafterweight.weight_after).toFixed(1) }}kg</td>
437 452
                       <td v-if="advice_index === 2">干体重(DW):</td>
438 453
                       <td v-if="advice_index === 2">{{ record.assessment_before_dislysis.dry_weight ?
439
-                        record.assessment_before_dislysis.dry_weight : "0"}}kg</td>
454
+                        record.assessment_before_dislysis.dry_weight : "0" }}kg</td>
440 455
                       <td v-if="advice_index === 3">较干体重增加量:</td>
441 456
                       <td v-if="advice_index === 3">
442 457
                         {{ (record.assessment_before_dislysis.weight_before -
443 458
                           record.assessment_before_dislysis.dry_weight -
444
-                          record.assessment_before_dislysis.additional_weight).toFixed(2)}}kg
459
+                          record.assessment_before_dislysis.additional_weight).toFixed(2) }}kg
445 460
                       </td>
446 461
                       <td v-if="advice_index === 4">净脱水量:</td>
447 462
                       <td v-if="advice_index === 4">{{ record.assessment_after_dislysis.actual_ultrafiltration }}L</td>
@@ -452,7 +467,7 @@
452 467
                         {{ record.assessment_after_dislysis.weight_after == 0 ||
453 468
                           record.assessment_before_dislysis.weight_before == 0 ?
454 469
                           0 : (record.assessment_before_dislysis.weight_before -
455
-                            record.assessment_after_dislysis.weight_after ).toFixed(2)
470
+                            record.assessment_after_dislysis.weight_after).toFixed(2)
456 471
                         }}kg</td>
457 472
                     </tr>
458 473
                   </tbody>
@@ -564,7 +579,7 @@
564 579
                   <div class="inline_block" style="flex: 1">
565 580
                     透后体重:
566 581
                     <div class="under_line" style="width: 70px; text-align: center">
567
-                      <span v-if=" record.assessment_after_dislysis.weight_after!=''">
582
+                      <span v-if="record.assessment_after_dislysis.weight_after != ''">
568 583
                         <!-- {{
569 584
                           record.assessment_after_dislysis.weight_after
570 585
                             ? parseFloat(
@@ -573,7 +588,7 @@
573 588
                             ).toFixed(1)
574 589
                             : "/"
575 590
                         }} -->
576
-                            {{  record.assessment_after_dislysis.weight_after}}
591
+                        {{ record.assessment_after_dislysis.weight_after }}
577 592
                       </span>
578 593
                     </div>
579 594
                     kg
@@ -583,14 +598,15 @@
583 598
                     体重减少:
584 599
                     <div class="under_line" style="width: 70px; text-align: center">
585 600
 
586
-                     <span>{{ record.assessment_after_dislysis &&
587
-                                record.assessment_before_dislysis &&
588
-                                (record.assessment_before_dislysis.weight_before -record.assessment_after_dislysis.weight_after).toFixed(2)
589
-                                ? (record.assessment_before_dislysis.weight_before -
590
-                                record.assessment_after_dislysis.weight_after).toFixed(2)
591
-                              : "/" }}
601
+                      <span>{{ record.assessment_after_dislysis &&
602
+                        record.assessment_before_dislysis &&
603
+                        (record.assessment_before_dislysis.weight_before
604
+                          - record.assessment_after_dislysis.weight_after).toFixed(2)
605
+                        ? (record.assessment_before_dislysis.weight_before -
606
+                          record.assessment_after_dislysis.weight_after).toFixed(2)
607
+                        : "/" }}
592 608
 
593
-                       </span> 
609
+                      </span>
594 610
                     </div>
595 611
                     kg
596 612
                   </div>

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrdereightythree.vue 查看文件

@@ -33,10 +33,10 @@
33 33
                       dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
34 34
                   </div>
35 35
                   <div style="flex: 1;">
36
-                    透析频次:
37
-                    <span style="display: inline-block;width: 50px;">
36
+                    透析频次:{{ predialysis.dialysis_count}}
37
+                    <!-- <span style="display: inline-block;">
38 38
                       {{ predialysis.dialysis_count}}
39
-                    </span>
39
+                    </span> -->
40 40
                   </div>
41 41
                 </div>
42 42
               </td>

+ 73 - 2
src/xt_pages/eleFaPiao/settleDetail.vue 查看文件

@@ -61,11 +61,19 @@
61 61
         <el-button v-if="$store.getters.xt_user.org_id != 10318"  size="small" type="primary"
62 62
                    @click="auth">认证
63 63
         </el-button>
64
+
65
+        <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0"  size="small" type="primary"
66
+                   @click="batchOpen">批量开票
67
+        </el-button>
64 68
       </div>
65 69
 
66 70
       <el-table
67 71
         :data="tableData"
68 72
         border
73
+        v-loading="isbatchloading"
74
+        @select="selectCostInfo"
75
+        @selection-change="changeCostInfoTableData"
76
+        @select-all="changeAllCostInfoTableData"
69 77
         style="width: 100%"
70 78
         :row-style="{ color: '#303133' }"
71 79
         :header-cell-style="{
@@ -74,6 +82,8 @@
74 82
         }"
75 83
         highlight-current-row
76 84
       >
85
+        <el-table-column align="center" type="selection" width="55"></el-table-column>
86
+
77 87
         <el-table-column
78 88
           prop="date"
79 89
           label="序号"
@@ -374,6 +384,7 @@ export default {
374 384
         { path: false, name: '项目消费明细汇总' }
375 385
       ],
376 386
       tableData: [],
387
+      isbatchloading:false,
377 388
       tableData2:[],
378 389
       selecting_schs: [],
379 390
       dialogfapiaoVisible:false,
@@ -418,6 +429,7 @@ export default {
418 429
         verify:[{ required: true, message: '请输入活动名称', trigger: 'blur' },]
419 430
       },
420 431
       time:null,
432
+      selection:[],
421 433
       countdown: 0,
422 434
 
423 435
     }
@@ -432,6 +444,14 @@ export default {
432 444
   },
433 445
 
434 446
   methods: {
447
+    selectCostInfo(selection, row) {
448
+      this.selection = selection
449
+    },
450
+    changeCostInfoTableData(val) {
451
+      this.selection = val
452
+    }, changeAllCostInfoTableData(selection) {
453
+      this.selection = selection
454
+    },
435 455
     searchAction(){
436 456
 
437 457
       this.getHisOrderList()
@@ -822,7 +842,7 @@ export default {
822 842
       }
823 843
 
824 844
       var that = this;
825
-      axios.get('http://127.0.0.1:9532/api/bwfapiao/red',{params:params}).then(function(response) {
845
+      axios.get('http://127.0.0.1:9531/api/bwfapiao/red',{params:params}).then(function(response) {
826 846
         if (response.data.state == 0) {
827 847
           that.red_loading = false
828 848
 
@@ -996,8 +1016,59 @@ export default {
996 1016
         });
997 1017
 
998 1018
 
999
-    },
1019
+    },batchOpen(){
1020
+      let ids  = ""
1021
+      for (var i = 0; i < this.selection.length; i++){
1022
+        if (ids.length == 0){
1023
+          ids = this.selection[i].id
1024
+        }else{
1025
+          ids = ids + "," + this.selection[i].id
1026
+        }
1027
+      }
1028
+      if(ids.length == 0 ){
1029
+        this.$message.error("请勾选需要开票的数据");
1030
+        return
1031
+      }
1032
+      let params = {
1033
+        id: ids,
1034
+        admin_user_id: this.$store.getters.xt_user.user.id,
1035
+      };
1036
+      var that = this;
1037
+      that.isbatchloading = true
1038
+
1039
+      axios.get('http://127.0.0.1:9531/api/bwfapiao/batchopen',{params:params}).then(function(response) {
1040
+        if (response.data.state == 0) {
1041
+          this.isbatchloading = false
1042
+
1043
+          that.$message.error(response.data.data.msg);
1044
+          return false
1045
+        } else {
1046
+          that.isbatchloading = false
1047
+          if(response.data.data.failed_code == -10){
1048
+            that.$confirm(response.data.data.msg, '错误信息', {
1049
+              confirmButtonText: '确 定',
1050
+              type: 'warning'
1051
+            }).then(() => {
1052
+
1053
+            }).catch(() => {
1054
+            })
1055
+          }else{
1056
+            that.$confirm(response.data.data.msg, '上传信息', {
1057
+              confirmButtonText: '确 定',
1058
+              type: 'warning'
1059
+            }).then(() => {
1060
+              // that.$message.success( response.data.data.msg)
1061
+              that.getHisOrderList()
1062
+            }).catch(() => {
1063
+              that.getHisOrderList()
1064
+            })
1065
+          }
1066
+        }
1067
+      }).catch(function(error) {
1068
+        that.isbatchloading = false
1000 1069
 
1070
+      })
1071
+    },
1001 1072
     handleSelectionChange(val) {
1002 1073
       this.selecting_schs = val
1003 1074
     },

+ 9 - 5
src/xt_pages/hospitalStation/batchStatementTemplate/hospitalBatchPrint.vue 查看文件

@@ -87,16 +87,20 @@
87 87
         <td>住院号</td>
88 88
         <td>{{info.number}}</td>
89 89
         <td>科别</td>
90
-        <td width="100"></td>
90
+        <td width="100">血透室</td>
91 91
         <td>床号</td>
92 92
         <td></td>
93 93
         <td>入院日期</td>
94
-        <td>{{info.his.in_hosptial_time.split(" ")[0]}}</td>
94
+        <td v-if="$store.getters.xt_user.org_id == 10215">{{info.his.in_hosptial_time.split(" ")[0]}}</td>
95
+        <td v-if="$store.getters.xt_user.org_id != 10215">{{info.order.setl_time.split(" ")[0]}}</td>
96
+
95 97
         <td>出院日期</td>
96
-        <td width="100">{{info.his.out_hosptial_time.split(" ")[0]}}</td>
97
-        <td>住院天数</td>
98
-        <td>{{getDay(info.his.in_hosptial_time.split(" ")[0],info.his.out_hosptial_time.split(" ")[0])}}</td>
98
+        <td width="100" v-if="$store.getters.xt_user.org_id == 10215">{{info.his.out_hosptial_time.split(" ")[0]}}</td>
99
+        <td v-if="$store.getters.xt_user.org_id != 10215">{{info.order.setl_time.split(" ")[0]}}</td>
99 100
 
101
+        <td>住院天数</td>
102
+        <td v-if="$store.getters.xt_user.org_id == 10215">{{getDay(info.his.in_hosptial_time.split(" ")[0],info.his.out_hosptial_time.split(" ")[0])}}</td>
103
+        <td v-if="$store.getters.xt_user.org_id != 10215">{{getDay(info.order.setl_time.split(" ")[0],info.order.setl_time.split(" ")[0])}}</td>
100 104
       </tr>
101 105
       <tr>
102 106
         <td>险种</td>

+ 2 - 2
src/xt_pages/user/components/PatientDetail.vue 查看文件

@@ -1049,11 +1049,11 @@
1049 1049
     </el-form>
1050 1050
     <!-- 打印预览 style="display: none"-->
1051 1051
     <div style="display: none">
1052
-      <div id="print-info-box" v-if="org_id !=10206 && org_id!=0">
1052
+      <div id="print-info-box" v-if="org_id !=10206 ">
1053 1053
         <div class="print_main_content" style="">
1054 1054
           <!-- <div class="order_title" v-if="org_id!=10210">{{ orgname }} 血液透析门诊病历</div>
1055 1055
           <div class="order_title" v-if="org_id==10210">{{ orgname }} 血液透析住院病历</div> -->
1056
-          <div >
1056
+          <div style="width: 99%;">
1057 1057
             <table style="border-collapse: collapse;">
1058 1058
               <thead>
1059 1059
                 <tr>