Browse Source

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

XMLWAN 2 years ago
parent
commit
3f6573611b

+ 17 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue View File

@@ -1329,14 +1329,14 @@
1329 1329
                                   "
1330 1330
                                   >【开始透析】</template
1331 1331
                                 >
1332
-                                <template
1332
+                                <!-- <template
1333 1333
                                   v-if="
1334 1334
                                     record.dialysis_order &&
1335 1335
                                     monitor_record.operate_time ==
1336 1336
                                       record.dialysis_order.end_time
1337 1337
                                   "
1338 1338
                                   >【结束透析】</template
1339
-                                >
1339
+                                > -->
1340 1340
                                 {{ monitor_record.end }}
1341 1341
                                 {{ monitor_record.symptom }} &nbsp;{{
1342 1342
                                   monitor_record.dispose
@@ -2675,7 +2675,21 @@ export default {
2675 2675
         var resp = rs.data;
2676 2676
         if (resp.state == 1) {
2677 2677
           this.records = this.records.concat(resp.data.schedules);
2678
-
2678
+          console.log("this.records------",this.records)
2679
+          var tempmonitorflag = true;
2680
+          for(let i=0;i<this.records.length;i++){
2681
+            for(let j=0;j<this.records[i].monitor_records.length;j++){
2682
+              this.records[i].monitor_records[j].end = ""
2683
+              if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
2684
+              this.records[i].monitor_records[j].end = "【结束透析】";
2685
+              tempmonitorflag = false;
2686
+            }
2687
+            if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
2688
+              this.records[i].monitor_records[j].end = "【结束透析】";
2689
+            }
2690
+            }
2691
+          }
2692
+          console.log("hhhhhhhhh",this.records)
2679 2693
           for (const recordIndex in this.records) {
2680 2694
             var dlegh = 0;
2681 2695
             if (

+ 8 - 2
src/xt_pages/dialysis/signPrint.vue View File

@@ -14,7 +14,11 @@
14 14
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
15 15
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
16 16
                         <div>姓名:{{item.patient.name}}</div>  
17
-                        <div>医嘱内容:{{ it.advice_name }}</div>  
17
+                        <div>医嘱内容:{{ it.advice_name }} 
18
+                           <span v-if="it.prescribing_number>0">
19
+                            {{it.prescribing_number}}{{ it.prescribing_number_unit }}
20
+                          </span> 
21
+                        </div>  
18 22
                         <div>给药途径:{{it.execution_frequency}}</div>  
19 23
                         <div>执行频率:{{it.delivery_way}}</div>  
20 24
                         <div>打印时间:{{time}}</div>   
@@ -29,7 +33,9 @@
29 33
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
30 34
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
31 35
                         <div>姓名:{{item.patient.name}}</div>  
32
-                        <div>医嘱内容:{{getAdvice(item.doctor_advice)}}</div>  
36
+                        <div>医嘱内容:{{getAdvice(item.doctor_advice)}} 
37
+                           <span v-if="it.prescribing_number >0"> {{it.prescribing_number}}{{ it.prescribing_number_unit }}</span>
38
+                        </div>  
33 39
                         <div>给药途径:{{item.doctor_advice[0].execution_frequency}}</div>  
34 40
                         <div>执行频率:{{item.doctor_advice[0].delivery_way}}</div>  
35 41
                         <div>打印时间:{{time}}</div>   

+ 31 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

@@ -374,14 +374,14 @@
374 374
                       医师签名:
375 375
                       <span
376 376
                         style="height: 20px"
377
-                        v-if="setAdminUserES(prescription.modifier) == ''"
377
+                        v-if="setAdminUserES(advices[0].advice_doctor) == ''"
378 378
                       >
379
-                        {{ getAdminUser(prescription.modifier) }}
379
+                        {{ getAdminUser(advices[0].advice_doctor) }}
380 380
                       </span>
381 381
                       <img
382 382
                         class="es-img"
383 383
                         style="height: 25px"
384
-                        :src="setAdminUserES(prescription.modifier)"
384
+                        :src="setAdminUserES(advices[0].advice_doctor)"
385 385
                         alt
386 386
                         srcset
387 387
                         v-else
@@ -805,7 +805,7 @@
805 805
                   <td
806 806
                     style="height: 20px"
807 807
                     width="90"
808
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
808
+                    v-if="org_id == 10346 || org_id == 9675"
809 809
                   >
810 810
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
811 811
                   </td>
@@ -815,10 +815,13 @@
815 815
                   <td
816 816
                     style="height: 20px"
817 817
                     width="70"
818
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
818
+                    v-if="org_id == 10346 || org_id == 9675"
819 819
                   >
820 820
                     <p style="height: 20px; line-height: 20px">执行时间</p>
821 821
                   </td>
822
+                  <td style="height: 20px" width="90" v-if="org_id == 10249  || org_id == 0">
823
+                    <p style="height: 20px; line-height: 20px">开嘱医生</p>
824
+                  </td>
822 825
                   <td style="height: 20px" width="90">
823 826
                     <p style="height: 20px; line-height: 20px">执行</p>
824 827
                   </td>
@@ -855,7 +858,7 @@
855 858
                   <td
856 859
                     style="line-height: 30px"
857 860
                     width="90"
858
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
861
+                    v-if="org_id == 10346 || org_id == 9675"
859 862
                   >
860 863
                     <span v-if="setAdminUserES(advice.advice_doctor) == ''">
861 864
                       {{ getAdminUser(advice.advice_doctor) }}
@@ -894,12 +897,27 @@
894 897
                   <td
895 898
                     style="line-height: 10px"
896 899
                     width="70"
897
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
900
+                    v-if="org_id == 10346 || org_id == 9675"
898 901
                   >
899 902
                     <span v-if="advice.execution_time">{{
900 903
                       getTime(advice.execution_time, "{h}:{i}")
901 904
                     }}</span>
902 905
                   </td>
906
+                  <td
907
+                    style="line-height: 30px"
908
+                    width="90"
909
+                    v-if="org_id == 10249 || org_id == 0"
910
+                  >
911
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">
912
+                      {{ getAdminUser(advice.advice_doctor) }}
913
+                    </span>
914
+                    <img
915
+                      style="height: 30px"
916
+                      :src="setAdminUserES(advice.advice_doctor)"
917
+                      alt=""
918
+                      srcset=""
919
+                    />
920
+                  </td>
903 921
                   <td style="line-height: 10px" width="90">
904 922
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
905 923
                       getAdminUser(advice.execution_staff)
@@ -1043,20 +1061,20 @@
1043 1061
                       <span
1044 1062
                         v-if="
1045 1063
                           setAdminUserES(
1046
-                            prescription == null
1064
+                            advices == null
1047 1065
                               ? 0
1048
-                              : prescription.prescription_doctor
1049
-                              ? prescription.prescription_doctor
1066
+                              : advices[0].advice_doctor
1067
+                              ? advices[0].advice_doctor
1050 1068
                               : ''
1051 1069
                           ) == ''
1052 1070
                         "
1053 1071
                       >
1054 1072
                         {{
1055 1073
                           getAdminUser(
1056
-                            prescription == null
1074
+                            advices == null
1057 1075
                               ? 0
1058
-                              : prescription.prescription_doctor
1059
-                              ? prescription.prescription_doctor
1076
+                              : advices[0].advice_doctor
1077
+                              ? advices[0].advice_doctor
1060 1078
                               : ""
1061 1079
                           )
1062 1080
                         }}

+ 142 - 1
src/xt_pages/hospitalStation/summary.vue View File

@@ -215,6 +215,32 @@
215 215
             >
216 216
               上传结算清单
217 217
             </el-button>
218
+            <el-button
219
+              size="mini"
220
+              type="primary"
221
+              @click="confirmUploadInfo(scope.row)"
222
+              v-if="$store.getters.xt_user.org_id == 10265"
223
+            >
224
+              确认结算清单
225
+            </el-button>
226
+            <el-button
227
+              size="mini"
228
+              type="primary"
229
+              @click="cancelUploadTwo(scope.row)"
230
+              v-if="$store.getters.xt_user.org_id == 10265"
231
+            >
232
+              取消结算清单
233
+            </el-button>
234
+
235
+            <el-button
236
+              size="mini"
237
+              type="primary"
238
+              @click="queryData(scope.row)"
239
+              v-if="$store.getters.xt_user.org_id == 10265"
240
+            >
241
+              查询结算清单
242
+            </el-button>
243
+
218 244
             <el-button
219 245
               size="mini"
220 246
               type="primary"
@@ -452,6 +478,121 @@ export default {
452 478
   },
453 479
 
454 480
   methods: {
481
+    confirmUploadInfo(row){
482
+      var that = this;
483
+      axios
484
+        .get("http://127.0.0.1:9532/api/4102", {
485
+          params: {
486
+            order_id: row.id,
487
+            admin_user_id: this.$store.getters.xt_user.user.id,
488
+            stas_type: 1
489
+          },
490
+        })
491
+        .then(function (response) {
492
+          if (response.data.state == 0) {
493
+            that.$message.error(response.data.msg);
494
+            return false;
495
+          } else {
496
+            if (response.data.data.failed_code == -10) {
497
+              that
498
+                .$confirm(response.data.data.msg, "医保错误信息", {
499
+                  confirmButtonText: "确 定",
500
+                  type: "warning",
501
+                })
502
+                .then(() => {
503
+                })
504
+                .catch(() => {
505
+                });
506
+            } else {
507
+              that.$message.success("确认成功");
508
+              row.result.id = response.data.data.result.id;
509
+            }
510
+          }
511
+        })
512
+        .catch(function (error) {
513
+        });
514
+
515
+
516
+    },
517
+    cancelUploadTwo(row){
518
+      if(this.$store.getters.xt_user.org_id == 10265){
519
+        var that = this;
520
+        axios
521
+          .get("http://127.0.0.1:9532/api/4102", {
522
+            params: {
523
+              order_id: row.id,
524
+              admin_user_id: this.$store.getters.xt_user.user.id,
525
+              stas_type: 0
526
+            },
527
+          })
528
+          .then(function (response) {
529
+            if (response.data.state == 0) {
530
+              that.$message.error(response.data.msg);
531
+              return false;
532
+            } else {
533
+              if (response.data.data.failed_code == -10) {
534
+                // that.$message.error(response.data.data.msg)
535
+                that
536
+                  .$confirm(response.data.data.msg, "医保错误信息", {
537
+                    confirmButtonText: "确 定",
538
+                    type: "warning",
539
+                  })
540
+                  .then(() => {
541
+                  })
542
+                  .catch(() => {
543
+                  });
544
+              } else {
545
+                that.$message.success("撤销成功");
546
+                row.result.id = 0;
547
+              }
548
+            }
549
+          })
550
+          .catch(function (error) {
551
+          });
552
+      }
553
+    },
554
+    queryData(row){
555
+      var that = this;
556
+      axios
557
+        .get("http://127.0.0.1:9532/api/4103", {
558
+          params: {
559
+            order_id: row.id,
560
+            admin_user_id: this.$store.getters.xt_user.user.id,
561
+          },
562
+        })
563
+        .then(function (response) {
564
+          if (response.data.state == 0) {
565
+            that.$message.error(response.data.msg);
566
+            return false;
567
+          } else {
568
+            if (response.data.data.failed_code == -10) {
569
+              that
570
+                .$confirm(response.data.data.msg, "医保错误信息", {
571
+                  confirmButtonText: "确 定",
572
+                  type: "warning",
573
+                })
574
+                .then(() => {
575
+                })
576
+                .catch(() => {
577
+                });
578
+            } else {
579
+              that
580
+                .$confirm(response.data.data.msg, "医保信息", {
581
+                  confirmButtonText: "确 定",
582
+                })
583
+                .then(() => {
584
+                })
585
+                .catch(() => {
586
+                });
587
+            }
588
+          }
589
+        })
590
+        .catch(function (error) {
591
+        });
592
+
593
+
594
+    },
595
+
455 596
     setStorage() {
456 597
       this.$store.commit("SET_PAGEDATA", {
457 598
         page: this.page,
@@ -1123,7 +1264,7 @@ export default {
1123 1264
         setl_time: obj.setl_time,
1124 1265
       };
1125 1266
       this.invoiceParams = paramsObj;
1126
-      
1267
+
1127 1268
       const loading = this.$loading({
1128 1269
           lock: true,
1129 1270
           text: '正在加载中...',

File diff suppressed because it is too large
+ 554 - 554
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue