瀏覽代碼

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

XMLWAN 3 年之前
父節點
當前提交
6b741cd3be
共有 22 個文件被更改,包括 5172 次插入4537 次删除
  1. 7 7
      src/xt_pages/data/components/consumables.vue
  2. 8 8
      src/xt_pages/data/components/drugs.vue
  3. 7 7
      src/xt_pages/data/components/project.vue
  4. 1111 1018
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  5. 22 22
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  6. 1 0
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue
  7. 12 12
      src/xt_pages/outpatientCharges/components/registerDialog9504.vue
  8. 1216 2052
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  9. 255 9
      src/xt_pages/outpatientCharges/statementPrint.vue
  10. 384 0
      src/xt_pages/outpatientCharges/statementTemplate/printFour.vue
  11. 633 0
      src/xt_pages/outpatientCharges/statementTemplate/printThree.vue
  12. 107 236
      src/xt_pages/outpatientCharges/summary.vue
  13. 11 10
      src/xt_pages/outpatientDoctorStation/components/callPrescription.vue
  14. 62 55
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  15. 12 3
      src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue
  16. 208 96
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  17. 1 1
      src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue
  18. 135 128
      src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue
  19. 539 597
      src/xt_pages/outpatientRegistration/index.vue
  20. 226 226
      src/xt_pages/outpatientRegistration/registrationHistory.vue
  21. 116 9
      src/xt_pages/user/dialysisSolution.vue
  22. 99 41
      src/xt_pages/user/templateSummary.vue

+ 7 - 7
src/xt_pages/data/components/consumables.vue 查看文件

@@ -43,8 +43,8 @@
43 43
     </div>
44 44
 
45 45
      <div style="display:flex; align-items:center;margin-bottom:10px;">
46
-        <el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">批量备案</el-button>
47
-        <el-button type="primary" size="mini" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028 && $store.getters.xt_user.org_id != 10138" @click="GDYBBatchPutOnRecord">批量备案</el-button>
46
+        <!--<el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">批量备案</el-button>-->
47
+        <!--<el-button type="primary" size="mini">批量备案</el-button>-->
48 48
         <el-link target="_blank" href="https://kuyi.shengws.com/stockTemplate.xlsx" :underline="false"
49 49
                  style="margin-left:15px">
50 50
           <el-button
@@ -130,12 +130,12 @@
130 130
           <!--<el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>-->
131 131
           <el-button type="danger" size="small" @click="handleGoodInfoDelete(scope.$index, scope.row)">删除</el-button>
132 132
 
133
-          <el-button type="primary" size="small" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">
134
-             <span v-if="scope.row.is_mark == 0">备案</span>
135
-             <span v-if="scope.row.is_mark == 1">撤销</span>
136
-          </el-button>
133
+          <!--<el-button type="primary" size="small" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">-->
134
+             <!--<span v-if="scope.row.is_mark == 0">备案</span>-->
135
+             <!--<span v-if="scope.row.is_mark == 1">撤销</span>-->
136
+          <!--</el-button>-->
137 137
 
138
-          <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028">
138
+          <el-button type="primary" size="small" >
139 139
             <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
140 140
             <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
141 141
           </el-button>

+ 8 - 8
src/xt_pages/data/components/drugs.vue 查看文件

@@ -45,8 +45,8 @@
45 45
 
46 46
     </div>
47 47
     <div style="display:flex; align-items:center;margin-bottom:10px;">
48
-        <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
49
-        <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028  && $store.getters.xt_user.org_id != 10138 && $store.getters.xt_user.org_id != 10138" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
48
+        <!--<el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>-->
49
+        <el-button type="primary" size="small"  @click="GDYBBatchPutOnRecord()">批量备案</el-button>
50 50
         <el-link target="_blank" href="https://kuyi.shengws.com/drugTemplate.xlsx" :underline="false"
51 51
                  style="margin-left:15px">
52 52
           <el-button
@@ -149,13 +149,13 @@
149 149
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
150 150
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
151 151
 
152
-        <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138" >
153
-          <span v-if="scope.row.is_mark == 0">备案</span>
154
-          <span v-if="scope.row.is_mark == 1">撤消</span>
155
-        </el-button>
152
+        <!--<el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138" >-->
153
+          <!--<span v-if="scope.row.is_mark == 0">备案</span>-->
154
+          <!--<span v-if="scope.row.is_mark == 1">撤消</span>-->
155
+        <!--</el-button>-->
156 156
 
157 157
 
158
-          <el-button type="primary" size="small" icon="el-icon-refresh-left" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028 && $store.getters.xt_user.org_id != 10138">
158
+          <el-button type="primary" size="small" icon="el-icon-refresh-left">
159 159
             <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
160 160
             <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
161 161
           </el-button>
@@ -736,7 +736,7 @@
736 736
             return false
737 737
           } else {
738 738
             this.total = response.data.data.total;
739
-          
739
+
740 740
             this.list = [];
741 741
             for (let i = 0; i < response.data.data.list.length; i++) {
742 742
               this.list.push(response.data.data.list[i])

+ 7 - 7
src/xt_pages/data/components/project.vue 查看文件

@@ -39,8 +39,8 @@
39 39
             </div>
40 40
         </div>
41 41
         <div style="display:flex; align-items:center;margin-bottom:10px;">
42
-        <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
43
-        <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
42
+        <!--<el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>-->
43
+        <el-button type="primary" size="small" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
44 44
         <el-link target="_blank" href="https://kuyi.shengws.com/itemTemplate.xlsx" :underline="false"
45 45
                  style="margin-left:15px">
46 46
           <el-button
@@ -114,12 +114,12 @@
114 114
                 <template slot-scope="scope">
115 115
                     <el-button @click="editHisProject(scope.row.id)" type="primary" size="small">编辑</el-button>
116 116
                     <el-button type="danger" size="small" @click="deleteProject(scope.row.id,scope.$index)">删除</el-button>
117
-                    <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">
118
-                      <span v-if="scope.row.is_mark ==0">备案</span>
119
-                      <span v-if="scope.row.is_mark ==1">撤销</span>
120
-                    </el-button>
117
+                    <!--<el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">-->
118
+                      <!--<span v-if="scope.row.is_mark ==0">备案</span>-->
119
+                      <!--<span v-if="scope.row.is_mark ==1">撤销</span>-->
120
+                    <!--</el-button>-->
121 121
 
122
-                    <el-button type="primary" size="small" icon="el-icon-refresh-left" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028 && $store.getters.xt_user.org_id != 10138">
122
+                    <el-button type="primary" size="small" icon="el-icon-refresh-left">
123 123
                         <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
124 124
                         <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
125 125
                     </el-button>

文件差異過大導致無法顯示
+ 1111 - 1018
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue


+ 22 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue 查看文件

@@ -77,7 +77,7 @@
77 77
           <tbody>
78 78
             <tr>
79 79
               <td colspan="1" style="width:50%;padding:0px 0px 5px">
80
-                <div style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;border-bottom:1px solid #000;">
80
+                <div style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;border-bottom:1px solid #000;">
81 81
                   透析前评估
82 82
                 </div>
83 83
                 <div class="row" style="padding:5px 8px;">
@@ -297,7 +297,7 @@
297 297
               </td>
298 298
             </tr>
299 299
             <tr>
300
-              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
300
+              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
301 301
                 透析处方
302 302
               </td>
303 303
             </tr>
@@ -504,7 +504,7 @@
504 504
                 <table class="inside_table">
505 505
                   <tbody>
506 506
                     <tr style="line-height:35px;padding:8px 5px;">
507
-                      <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
507
+                      <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
508 508
                         医嘱内容
509 509
                       </td>
510 510
                     </tr>
@@ -512,7 +512,7 @@
512 512
                   <td colspan="4" style="font-size: 16px">开医嘱</td>
513 513
                   <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
514 514
                 </tr> -->
515
-                    <tr style="line-height:35px;padding:8px 5px;">
515
+                    <tr style="line-height:30px;padding:0 5px;">
516 516
                       <td style="font-size: 16px" width="10%">时间</td>
517 517
                       <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
518 518
                       <td style="font-size: 16px" width="10%">医生签名</td>
@@ -523,13 +523,13 @@
523 523
                     <!-- <template v-for="group in doctor_advices" > -->
524 524
 
525 525
                     <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
526
-                      <td height="32px">
526
+                      <td height="30px" style="padding:4px 5px;">
527 527
                         <span v-if="advice.start_time">
528 528
                           {{ getTime(advice.start_time, "{h}:{i}") }}
529 529
                         </span>
530 530
                         <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
531 531
                       </td>
532
-                      <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
532
+                      <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
533 533
                         <span v-if="advice.parent_id > 0">---></span>
534 534
                         <span>{{ advice.advice_name }}</span>
535 535
                         <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
@@ -545,21 +545,21 @@
545 545
                     <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
546 546
                   </td> -->
547 547
                       <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
548
-                      <td height="32px">
548
+                      <td height="30px" style="padding:4px 5px;">
549 549
                         <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
550 550
                         <img style="height:30px" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
551 551
                       </td>
552 552
                       
553
-                      <td height="32px">
553
+                      <td height="30px" style="padding:4px 5px;">
554 554
                         <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
555 555
                       </td>
556
-                      <td height="32px">
556
+                      <td height="30px" style="padding:4px 5px;">
557 557
                         <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
558 558
                         <img style="height:30px" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
559 559
                       </td>
560
-                      <td height="35px">
560
+                      <td height="30px" style="padding:4px 5px;">
561 561
                         <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
562
-                        <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
562
+                        <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
563 563
                       </td>
564 564
                     </tr>
565 565
                     <!-- </template> -->
@@ -573,7 +573,7 @@
573 573
                 <table class="inside_table">
574 574
                   <tbody>
575 575
                     <tr>
576
-                      <td colspan="9" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
576
+                      <td colspan="9" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
577 577
                         监测记录
578 578
                       </td>
579 579
                     </tr>
@@ -590,17 +590,17 @@
590 590
                     </tr>
591 591
 
592 592
                     <tr v-for="(monitor, monindex) in monitors" :key="monindex">
593
-                      <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
594
-                      <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
595
-                      <td><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}/{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}</span></td>
596
-                      <td><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}/{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</span></td>
597
-                      <td><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}/{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</span></td>
598
-                      <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
599
-                      <td>
593
+                      <td style="padding:1px 5px;" height="30px">{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
594
+                      <td style="padding:1px 5px;">{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
595
+                      <td style="padding:1px 5px;"><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}/{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}</span></td>
596
+                      <td style="padding:1px 5px;"><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}/{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</span></td>
597
+                      <td style="padding:1px 5px;"><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}/{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</span></td>
598
+                      <td style="padding:1px 5px;">{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
599
+                      <td style="padding:1px 5px;">
600 600
                         {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
601 601
                         {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
602 602
                       </td>
603
-                      <td>
603
+                      <td style="padding:1px 5px;" height="30px">
604 604
                         <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
605 605
                           {{ getAdminUser(monitor.monitoring_nurse) }}
606 606
                         </span>
@@ -609,7 +609,7 @@
609 609
                         </span>
610 610
                       </td>
611 611
                       <td style="line-height:16px;padding:0px;">
612
-                        <div style="min-height:35px;line-height:35px; overflow:hidden;">
612
+                        <div style="min-height:20px;line-height:20px; overflow:hidden;">
613 613
                           <span v-if="getTime(monitor.operate_time, '{h}:{i}')" style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
614 614
                             <template v-if="(dialysisOrder && monitor.operate_time == dialysisOrder.start_time)">【开始透析】引血100ml/min</template>
615 615
                             {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
@@ -627,7 +627,7 @@
627 627
               </td>
628 628
             </tr>
629 629
             <tr>
630
-              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
630
+              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
631 631
                 治疗小结
632 632
               </td>
633 633
             </tr>

+ 1 - 0
src/xt_pages/hospitalStation/outpatientChargesManagement.vue 查看文件

@@ -310,6 +310,7 @@
310 310
                              v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
311 311
 
312 312
         <charge-dialog ref='charge' v-on:confirm="chargeConfirm" v-on:cancel="chargeCancel"></charge-dialog>
313
+
313 314
         <el-dialog
314 315
                 class="centerDialog"
315 316
                 width="900px"

+ 12 - 12
src/xt_pages/outpatientCharges/components/registerDialog9504.vue 查看文件

@@ -50,16 +50,16 @@
50 50
             </el-form-item>
51 51
 
52 52
 
53
-            <el-form-item label="医疗类别:" prop="medical_care">
54
-                <el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">
55
-                    <el-option
56
-                            v-for="(item,index) in medical_care"
57
-                            :key="index"
58
-                            :label="item.label"
59
-                            :value="item.value">
60
-                    </el-option>
61
-                </el-select>
62
-            </el-form-item>
53
+            <!--<el-form-item label="医疗类别:" prop="medical_care">-->
54
+                <!--<el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">-->
55
+                    <!--<el-option-->
56
+                            <!--v-for="(item,index) in medical_care"-->
57
+                            <!--:key="index"-->
58
+                            <!--:label="item.label"-->
59
+                            <!--:value="item.value">-->
60
+                    <!--</el-option>-->
61
+                <!--</el-select>-->
62
+            <!--</el-form-item>-->
63 63
 
64 64
 
65 65
             <el-form-item label="证件类型:" prop="certificates" >
@@ -320,7 +320,7 @@
320 320
           birthday: [{required: true, message: "患者出生日期不能为空", trigger: 'blur'}],
321 321
           certificates: [{required: true, message: "证件类型不能为空", trigger: 'change'}],
322 322
           id_card_type: [{required: true, message: "读卡类型不能为空", trigger: 'change'}],
323
-          medical_care: [{required: true, message: "医疗类别不能为空", trigger: 'change'}],
323
+          // medical_care: [{required: true, message: "医疗类别不能为空", trigger: 'change'}],
324 324
 
325 325
         },
326 326
         visibility: false,
@@ -435,7 +435,7 @@
435 435
 
436 436
         }
437 437
         this.read_loading = true
438
-        axios.get('http://127.0.0.1:9532/sz/api/readcard', {
438
+        axios.get('http://127.0.0.1:9532/api/readcard', {
439 439
           params: params
440 440
         })
441 441
           .then(function (response) {

文件差異過大導致無法顯示
+ 1216 - 2052
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 255 - 9
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

@@ -13,8 +13,12 @@
13 13
       </template>
14 14
 
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne :info="info" v-if="org_id != 9990"></printOne>
17
-        <printTwo  :info="info" v-if="org_id == 9990"></printTwo>
16
+        <div v-if="org_id == 9990 || org_id == 10138 || org_id == 9504">
17
+          <printTwo :info="info" v-if="org_id == 9990"></printTwo>
18
+          <printThree :info="info" :paramsObj="paramsObj" :balanceAccounts="balanceAccounts" v-if="org_id == 10138"></printThree>
19
+          <printFour v-if="org_id == 9504" :info="info"></printFour>
20
+        </div>
21
+        <printOne :info="info" v-else></printOne>
18 22
       </div>
19 23
   </div>
20 24
 </template>
@@ -32,13 +36,18 @@ import BreadCrumb from "@/xt_pages/components/bread-crumb";
32 36
 import print from "print-js";
33 37
 import printOne from "./statementTemplate/printOne"
34 38
 import printTwo from "./statementTemplate/printTwo"
39
+import printThree from "./statementTemplate/printThree"
40
+import printFour from "./statementTemplate/printFour"
35 41
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
42
+import { getPrivateExpenses } from '@/api/his/his'
36 43
 export default {
37 44
   name: "dialysisPrintOrder",
38 45
   components: {
39 46
     BreadCrumb,
40 47
     printOne,
41
-    printTwo
48
+    printTwo,
49
+    printThree,
50
+    printFour
42 51
   },
43 52
   props:{
44 53
     paramsObj:Object
@@ -60,7 +69,8 @@ export default {
60 69
       prescription_id:0,
61 70
       ids:'',
62 71
       info:null,
63
-      org_id:""
72
+      org_id:"",
73
+      balanceAccounts:{},
64 74
     };
65 75
   },
66 76
   methods:{
@@ -68,7 +78,132 @@ export default {
68 78
       var ptime = Math.round(new Date().getTime() / 1000);
69 79
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
70 80
 
71
-      const style =
81
+
82
+      if(this.$store.getters.xt_user.org_id == 10138){
83
+        setTimeout(() => {
84
+          const style =
85
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}';
86
+          const style2 =
87
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}';
88
+          const style3 =
89
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}';
90
+          const style4 =
91
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}';
92
+          const style5 =
93
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}';
94
+          const style6 =
95
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}';
96
+          const style7 =
97
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}';
98
+          const style8 =
99
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}';
100
+          const style9 =
101
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}';
102
+          const style10 =
103
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}';
104
+          const style11 =
105
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}';
106
+          const style12 =
107
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}';
108
+          if(this.num >= 13){
109
+            printJS({
110
+              printable: "prescription-print",
111
+              type: "html",
112
+              style: style,
113
+              scanStyles: false
114
+            });
115
+          }else if(this.num == 12){
116
+            printJS({
117
+              printable: "prescription-print",
118
+              type: "html",
119
+              style: style2,
120
+              scanStyles: false
121
+            });
122
+          }else if(this.num == 11){
123
+            printJS({
124
+              printable: "prescription-print",
125
+              type: "html",
126
+              style: style3,
127
+              scanStyles: false
128
+            });
129
+          }else if(this.num == 10){
130
+            printJS({
131
+              printable: "prescription-print",
132
+              type: "html",
133
+              style: style4,
134
+              scanStyles: false
135
+            });
136
+          }else if(this.num == 9){
137
+            printJS({
138
+              printable: "prescription-print",
139
+              type: "html",
140
+              style: style5,
141
+              scanStyles: false
142
+            });
143
+          }else if(this.num == 8){
144
+            printJS({
145
+              printable: "prescription-print",
146
+              type: "html",
147
+              style: style6,
148
+              scanStyles: false
149
+            });
150
+          }else if(this.num == 7){
151
+            printJS({
152
+              printable: "prescription-print",
153
+              type: "html",
154
+              style: style7,
155
+              scanStyles: false
156
+            });
157
+          }else if(this.num == 6){
158
+            printJS({
159
+              printable: "prescription-print",
160
+              type: "html",
161
+              style: style8,
162
+              scanStyles: false
163
+            });
164
+          }else if(this.num == 5){
165
+            printJS({
166
+              printable: "prescription-print",
167
+              type: "html",
168
+              style: style9,
169
+              scanStyles: false
170
+            });
171
+          }else if(this.num == 4){
172
+            printJS({
173
+              printable: "prescription-print",
174
+              type: "html",
175
+              style: style10,
176
+              scanStyles: false
177
+            });
178
+          }else if(this.num == 3){
179
+            printJS({
180
+              printable: "prescription-print",
181
+              type: "html",
182
+              style: style11,
183
+              scanStyles: false
184
+            });
185
+          }else if(this.num <= 2){
186
+            printJS({
187
+              printable: "prescription-print",
188
+              type: "html",
189
+              style: style12,
190
+              scanStyles: false
191
+            });
192
+          }
193
+          
194
+          
195
+        },500)
196
+      }else if(this.$store.getters.xt_user.org_id == 9504){
197
+        const style =
198
+        '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
199
+        printJS({
200
+            printable: "prescription-print",
201
+            type: "html",
202
+            style: style,
203
+            scanStyles: false
204
+        });
205
+      }else{
206
+        const style =
72 207
         '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
73 208
         printJS({
74 209
             printable: "statement-print",
@@ -76,6 +211,9 @@ export default {
76 211
             style: style,
77 212
             scanStyles: false
78 213
         });
214
+      }
215
+
216
+      
79 217
 
80 218
       // if (this.org_template_info.template_id == 1) {
81 219
       //   printJS({
@@ -155,8 +293,68 @@ export default {
155 293
     searchAction(){
156 294
 
157 295
     },
158
-    getInfo(order_id) {
159
-      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9990) {
296
+    getInfo(order_id,obj) {
297
+      if (obj.balance_accounts_type == 2){
298
+        let params = {
299
+          his_patient_id: obj.his_patient_id,
300
+          id: obj.order_id,
301
+
302
+        }
303
+        getPrivateExpenses(params).then(response => {
304
+          if (response.data.state == 0) {
305
+            // this.$message.error(response.data.msg)
306
+
307
+            return false
308
+          } else {
309
+            
310
+            this.balanceAccounts = response.data.data
311
+            let arr = []
312
+            let obj = {
313
+              type:1,
314
+              details: [],
315
+              total: 0
316
+            }
317
+            let obj2 = {
318
+              type:2,
319
+              details: [],
320
+              total: 0
321
+            }
322
+            let obj3 = {
323
+              type:3,
324
+              details: [],
325
+              total: 0
326
+            }
327
+            let num = 0
328
+            this.balanceAccounts.order_info.map(item => {
329
+              
330
+              if(item.advice_id > 0){
331
+                obj.details.push(item)
332
+                obj.total += (item.pric * item.advice.prescribing_number)
333
+                num++
334
+              }else{
335
+                if(item.project.type == 2){
336
+                  obj2.details.push(item)
337
+                  obj2.total += (item.pric * item.project.count)
338
+                  num++
339
+                }else{
340
+                  obj3.details.push(item)
341
+                  obj3.total += (item.pric * item.project.count)
342
+                  num++
343
+                }
344
+              }
345
+            })
346
+            this.balanceAccounts.new_detail_list = []
347
+            this.balanceAccounts.new_detail_list.push(obj)
348
+            this.balanceAccounts.new_detail_list.push(obj2)
349
+            this.balanceAccounts.new_detail_list.push(obj3)
350
+            console.log(111,this.balanceAccounts)
351
+            this.num = num
352
+            console.log('this.num',this.num)
353
+          }
354
+        })
355
+
356
+
357
+      }else if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9990) {
160 358
 
161 359
         var that = this;
162 360
 
@@ -183,10 +381,17 @@ export default {
183 381
               that.info['p_admin'] =  that.p_admin;
184 382
               that.info['charge_admin'] =  that.charge_admin;
185 383
 
384
+              that.info['order_number'] =  response.data.data.order_number;
385
+              that.info['patient'] =  response.data.data.patient;
186 386
               that.info['date'] =  response.data.data.date;
187 387
               that.info['number'] =  response.data.data.number;
188 388
               that.info['order_infos'] =  response.data.data.order_infos;
189 389
               that.info['diagnosis'] =  response.data.data.diagnosis;
390
+              that.info['org_code'] =  response.data.data.org_code;
391
+              that.info['org_name'] =  response.data.data.org_name;
392
+              that.info['doctor_code'] =  response.data.data.doctor_code;
393
+              that.info['department'] =  response.data.data.department;
394
+              that.info['health_card_no'] =  response.data.data.health_card_no;
190 395
 
191 396
 
192 397
               that.info['bed_cost_total'] = response.data.data.bedCostTotal;
@@ -231,6 +436,47 @@ export default {
231 436
               that.info['order_infos'] =  response.data.data.order_infos;
232 437
               that.info['diagnosis'] =  response.data.data.diagnosis
233 438
 
439
+              let obj = {
440
+                type:1,
441
+                details: [],
442
+                total: 0
443
+              }
444
+              let obj2 = {
445
+                type:2,
446
+                details: [],
447
+                total: 0
448
+              }
449
+              let obj3 = {
450
+                type:3,
451
+                details: [],
452
+                total: 0
453
+              }
454
+              let num = 0
455
+              that.info.order_infos.map(item => {
456
+                if(item.advice_id > 0){
457
+                  obj.details.push(item)
458
+                  obj.total += (item.pric * item.advice.prescribing_number)
459
+                  num++
460
+                }else{
461
+                  if(item.project.type == 2){
462
+                    obj2.details.push(item)
463
+                    obj2.total += (item.pric * item.project.count)
464
+                    num++
465
+                  }else{
466
+                    obj3.details.push(item)
467
+                    obj3.total += (item.pric * item.project.count)
468
+                    num++
469
+                  }
470
+                }
471
+              })
472
+
473
+              that.info.new_detail_list = []
474
+              that.info.new_detail_list.push(obj)
475
+              that.info.new_detail_list.push(obj2)
476
+              that.info.new_detail_list.push(obj3)
477
+              console.log('123',that.info.new_detail_list)
478
+              that.num = num
479
+
234 480
               if(that.paramsObj.settle_type != 1){
235 481
                 that.info.begndate = that.getTimes(that.paramsObj.start_time)
236 482
                 that.info.enddate = that.getTimes(that.paramsObj.end_time)
@@ -247,7 +493,7 @@ export default {
247 493
   },
248 494
 
249 495
   created() {
250
-    this.getInfo(this.paramsObj.order_id);
496
+    this.getInfo(this.paramsObj.order_id,this.paramsObj);
251 497
     this.org_id = this.$store.getters.xt_user.org_id;
252 498
     console.log("this.org_id",this.org_id)
253 499
   },
@@ -255,7 +501,7 @@ export default {
255 501
     paramsObj:{//深度监听,可监听到对象、数组的变化
256 502
       handler(val, oldVal){
257 503
         this.paramsObj = val;
258
-        this.getInfo(this.paramsObj.order_id)
504
+        this.getInfo(this.paramsObj.order_id,this.paramsObj)
259 505
 
260 506
       },
261 507
       deep:true

+ 384 - 0
src/xt_pages/outpatientCharges/statementTemplate/printFour.vue 查看文件

@@ -0,0 +1,384 @@
1
+<template>
2
+    <div>
3
+        <div id='prescription-print' class="prescription-print">
4
+            <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
5
+                <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
6
+                <div class="infoMain">
7
+                    <div class="infoP">医院(药店)编号:{{info.org_code}}</div>
8
+                    <div class="infoP">名称:{{info.org_name}}</div>
9
+                    <div class="infoP">医生工号:{{info.doctor_code}}</div>
10
+                    <div class="infoP">门诊流水号:{{info.number}}</div>
11
+                    <div class="infoP">科别: {{info.department}}</div>
12
+                    <div class="infoP">处方单据号:{{info.order_number}}</div>
13
+                    <div class="infoP">姓名:{{info.patient.name}}</div>
14
+                    <div class="infoP">医疗账号:{{info.health_card_no}}</div>
15
+                    <div class="infoP">医疗类别:</div>
16
+                </div>
17
+                <div class="chargeBox">
18
+                    <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
19
+                        <div class="chargeUl" style="width:20%;">
20
+                            <p style="width:50%;border-right:1px solid #000;">费用类型</p>
21
+                            <p style="width:50%;border-right:1px solid #000;">金额</p>
22
+                        </div>
23
+                        <div class="chargeUl" style="width:80%;">
24
+                            <p style="width:40%;border-right:1px solid #000;">明细名称</p>
25
+                            <p style="width:15%;border-right:1px solid #000;">规格</p>
26
+                            <p style="width:15%;border-right:1px solid #000;">数量</p>
27
+                            <p style="width:15%;border-right:1px solid #000;">单价</p>
28
+                            <p style="width:15%;">金额</p>
29
+                        </div>
30
+                    </div>
31
+                    <div style="display:flex;justify-content: space-between;">
32
+                        <div style="width:20%;">
33
+                            <div class="chargeUl" v-if="info.bed_cost_total > 0">
34
+                                <p style="width:50%;">床位费</p>
35
+                                <p style="width:50%;">{{info.bed_cost_total?info.bed_cost_total:0}}元</p>
36
+                            </div>
37
+                            <div class="chargeUl" v-if="info.operation_cost_total > 0">
38
+                                <p style="width:50%;">手术费</p>
39
+                                <p style="width:50%;">{{info.operation_cost_total?info.operation_cost_total:0}}元</p>
40
+                            </div>
41
+                            <div class="chargeUl" v-if="info.other_cost_total > 0">
42
+                                <p style="width:50%;">其他费</p>
43
+                                <p style="width:50%;">{{info.other_cost_total?info.other_cost_total:0}}元</p>
44
+                            </div>
45
+                            <div class="chargeUl" v-if="info.material_cost_total > 0">
46
+                                <p style="width:50%;">材料费</p>
47
+                                <p style="width:50%;">{{info.material_cost_total?info.material_cost_total:0}}元</p>
48
+                            </div>
49
+                            <div class="chargeUl" v-if="info.western_medicine_cost_total > 0">
50
+                                <p style="width:50%;">西药费</p>
51
+                                <p style="width:50%;">{{info.western_medicine_cost_total?info.western_medicine_cost_total:0}}元</p>
52
+                            </div>
53
+                            <div class="chargeUl" v-if="info.chinese_traditional_medicine_cost_total > 0">
54
+                                <p style="width:50%;">中成费</p>
55
+                                <p style="width:50%;">{{info.chinese_traditional_medicine_cost_total?info.chinese_traditional_medicine_cost_total:0}}元</p>
56
+                            </div>
57
+                            <div class="chargeUl" v-if="info.check_cost_total > 0">
58
+                                <p style="width:50%;">检查费</p>
59
+                                <p style="width:50%;">{{info.check_cost_total?info.check_cost_total:0}}元</p>
60
+                            </div>
61
+                            <div class="chargeUl" v-if="info.laboratory_cost_total > 0">
62
+                                <p style="width:50%;">化验费</p>
63
+                                <p style="width:50%;">{{info.laboratory_cost_total?info.laboratory_cost_total:0}}元</p>
64
+                            </div>
65
+                            <div class="chargeUl" v-if="info.treat_cost_total > 0">
66
+                                <p style="width:50%;">治疗费</p>
67
+                                <p style="width:50%;">{{info.treat_cost_total?info.treat_cost_total:0}}元</p>
68
+                            </div>
69
+                            <div class="chargeUl" style="border-top:1px solid #000;">
70
+                                <p style="width:50%;">费用合计</p>
71
+                                <p style="width:50%;">{{info.medfee_sumamt?info.medfee_sumamt:0}}元</p>
72
+                            </div>
73
+                            <div class="chargeUl" style="border-top:1px solid #000;">
74
+                                <p style="width:50%;">记账支付</p>
75
+                                <p style="width:50%;">{{info.fund_pay_sumamt?info.fund_pay_sumamt:0}}元</p>
76
+                            </div>
77
+                            <div class="chargeUl" style="border-top:1px solid #000;">
78
+                                <p style="width:50%;">个人账号</p>
79
+                                <p style="width:50%;">{{info.acct_pay?info.acct_pay:0}}元</p>
80
+                            </div>
81
+                            <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
82
+                                <p style="width:50%;">现金支付</p>
83
+                                <p style="width:50%;">{{info.psn_cash_pay?info.psn_cash_pay:0}}元</p>
84
+                            </div>
85
+                        </div>
86
+                        <div style="width:80%;max-height:500px;">
87
+                            <div style="display:flex;" v-for="(item,i) in info.order_infos.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="i">
88
+                                <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
89
+                                    <p class="chargeP">
90
+                                        <span v-if='item.type == 1'>{{item.advice.advice_name}}</span>
91
+                                        <span v-if='item.type == 2'>{{item.project.project.project_name}}</span>
92
+                                        <span v-if='item.type == 3'>{{item.project.good_info.specification_name}}</span>
93
+                                    </p>
94
+                                </div>
95
+                                <div style="border-right:1px solid #000;width:15%;text-align:center;">
96
+                                    <p class="chargeP">
97
+                                        <span v-if='item.type == 1'>{{item.advice.drug.drug_spec}}</span>
98
+                                        <span v-if='item.type == 2'>{{item.project.project.unit}}</span>
99
+                                        <span v-if='item.type == 3'>{{item.project.unit}}</span>
100
+                                    </p>
101
+                                </div>
102
+                                <div style="border-right:1px solid #000;width:15%;text-align:center;">
103
+                                    <p class="chargeP">
104
+                                        <span>{{item.cnt}}次</span>
105
+                                    </p>
106
+                                </div>
107
+                                <div style="border-right:1px solid #000;width:15%;text-align:center;">
108
+                                    <p class="chargeP">
109
+                                        <span>{{item.pric}}元</span>
110
+                                    </p>
111
+                                </div>
112
+                                <div style="width:15%;text-align:center;">
113
+                                    <p class="chargeP">
114
+                                        <span>{{item.cnt * item.pric}}元</span>
115
+                                    </p>
116
+                                </div>
117
+                            </div>
118
+                        </div>
119
+                    </div>
120
+
121
+                </div>
122
+                <div class="moneyBox">
123
+                    <p>实收金:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</p>
124
+                    <p>记账前金额:{{0.00}}元</p>
125
+                    <p>扣款金额:{{0.00}}元</p>
126
+                    <p>记账后金额:{{info.balc}}元</p>
127
+                    <p>找赎金:{{0.00}}元</p>
128
+                </div>
129
+                <div class="actionBar">
130
+                    <div>收费员:{{info.charge_admin.user_name}}</div>
131
+                    <div>日期:{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</div>
132
+                </div>
133
+            </div>
134
+
135
+        </div>
136
+    </div>
137
+
138
+</template>
139
+<script>
140
+  import axios from 'axios'
141
+  import { getChargePrint } from '@/api/project/project'
142
+
143
+  export default {
144
+    data() {
145
+      return {
146
+        list: {},
147
+        prescription: [],
148
+        patient: {},
149
+        orgname: '',
150
+
151
+        result: {},
152
+        org_code: '',
153
+        patient_name: '',
154
+        doctor_code: '',
155
+        doctor_name: '',
156
+
157
+        name_arr: [],
158
+        spec_arr: [],
159
+        count_arr: [],
160
+        price_arr: [],
161
+        total_arr: [],
162
+
163
+        page:1,
164
+        pageArr:[],
165
+
166
+      }
167
+    },
168
+    props: {
169
+      info: Object
170
+    },
171
+    methods: {
172
+      getItemName(number) {
173
+        switch (number) {
174
+          case '01':
175
+            return '床位费'
176
+            break
177
+          case '02':
178
+            return '西药费'
179
+
180
+            break
181
+          case '03':
182
+            return '中药费'
183
+
184
+            break
185
+          case '04':
186
+            return '中成药费'
187
+
188
+            break
189
+          case '05':
190
+            return '中草药费'
191
+
192
+            break
193
+          case '06':
194
+            return '检查费'
195
+
196
+            break
197
+          case '07':
198
+            return '治疗费'
199
+
200
+            break
201
+          case '08':
202
+            return '放射费'
203
+
204
+            break
205
+          case '09':
206
+            return '手术费'
207
+
208
+            break
209
+          case '10':
210
+            return '化验费'
211
+
212
+            break
213
+          case '11':
214
+            return '输血费'
215
+
216
+            break
217
+          case '12':
218
+            return '输氧费'
219
+
220
+            break
221
+          case '13':
222
+            return '其它费'
223
+
224
+            break
225
+          case '14':
226
+            return '麻醉费'
227
+
228
+            break
229
+          case '15':
230
+            return '材料费'
231
+
232
+            break
233
+          case '16':
234
+            return '特殊检查费'
235
+
236
+            break
237
+          case '17':
238
+            return '特殊治疗费'
239
+
240
+            break
241
+          case '18':
242
+            return '诊疗费(诊查费)'
243
+
244
+            break
245
+          case '19':
246
+            return '护理费'
247
+
248
+            break
249
+          case '20':
250
+            return '诊金'
251
+
252
+            break
253
+          case '21':
254
+            return '检查费(CT)'
255
+
256
+            break
257
+          case '22':
258
+            return '检查费(MRT)'
259
+
260
+            break
261
+          case '23':
262
+            return '检查费(其他)'
263
+
264
+            break
265
+          case '24':
266
+            return '特需服务费'
267
+
268
+            break
269
+          case '25':
270
+            return '杂费'
271
+
272
+            break
273
+          case '26':
274
+            return '挂号费'
275
+            break
276
+
277
+        }
278
+
279
+      },
280
+      getPage(){
281
+        this.page = 1
282
+        this.pageArr = []
283
+        if(this.info.order_infos.length <= 13){
284
+            this.page = 1
285
+            this.pageArr.push(this.info.order_infos.length)
286
+            console.log('this.pageArr',this.pageArr)
287
+        }else if(this.info.order_infos.length > 13){
288
+            this.page = parseInt(this.info.order_infos.length / 13)
289
+            let num = this.info.order_infos.length % 13
290
+            for (var i=0;i<this.page;i++){
291
+                this.pageArr.push(13)
292
+            }
293
+            if(num != 0){
294
+                this.pageArr.push(num)
295
+            }
296
+        }
297
+      }
298
+    },
299
+    created() {
300
+
301
+
302
+    },
303
+    watch:{
304
+      info: {
305
+        handler(newVal) {
306
+            this.getPage()
307
+        },
308
+        deep: true,
309
+      }
310
+    }
311
+
312
+  }
313
+</script>
314
+
315
+
316
+<style lang="scss" scoped>
317
+    .prescription-print {
318
+        -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
319
+        -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
320
+        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
321
+        margin-bottom: 20px;
322
+        padding: 20px 10px;
323
+    }
324
+
325
+    .printTitle {
326
+        font-size: 22px;
327
+        text-align: center;
328
+        font-weight: bold;
329
+    }
330
+
331
+    .infoMain {
332
+        display: flex;
333
+        flex-wrap: wrap;
334
+        padding: 0 10px;
335
+        margin-top: 10px;
336
+    }
337
+
338
+    .infoMain .infoP {
339
+        width: 33%;
340
+        line-height: 24px;
341
+    }
342
+
343
+    .chargeBox {
344
+        border: 1px solid #000;
345
+    }
346
+
347
+    .chargeUl {
348
+        display: flex;
349
+        justify-content: space-between;
350
+        text-align: center;
351
+    }
352
+
353
+    .chargeUl p {
354
+        height: 40px;
355
+        line-height: 40px;
356
+    }
357
+
358
+    .chargeP {
359
+        height: 40px;
360
+        line-height: 40px;
361
+    }
362
+
363
+    .moneyBox {
364
+        display: flex;
365
+        justify-content: space-between;
366
+        padding: 0 10px;
367
+        background: #eee;
368
+        height: 40px;
369
+        align-items: center;
370
+        border: 1px solid #000;
371
+        border-top: none
372
+    }
373
+
374
+    .actionBar {
375
+        display: flex;
376
+        justify-content: space-between;
377
+        line-height: 24px;
378
+        padding: 0 10px;
379
+    }
380
+
381
+    .actionBar div {
382
+        width: 150px;
383
+    }
384
+</style>

+ 633 - 0
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue 查看文件

@@ -0,0 +1,633 @@
1
+<template>
2
+    <div>
3
+        <div v-if="paramsObj.balance_accounts_type != 2" id='prescription-print' class="prescription-print" style="position: relative;">
4
+            <img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
5
+            <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
6
+            <div style="display:flex;">
7
+                <div>单据号:<span style="display:inline-block;width:200px;">{{info.order_number ? info.order_number : ''}}</span></div>
8
+                <div>透析号:<span style="display:inline-block;width:200px;">{{info.patient.dialysis_no ? info.patient.dialysis_no : ''}}</span></div>
9
+            </div>
10
+            <div style="display:flex;justify-content: space-between;">
11
+                <div style="display:flex;">
12
+                  <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient.name ? info.patient.name.indexOf("(") > -1 ? info.patient.name.substring(0,info.patient.name.indexOf("(")) : info.patient.name : ''}}</span></div>
13
+                  <div>性别:<span style="display:inline-block;width:30px;">{{info.patient.gender == '1' ? '男' : '女'}}</span></div>
14
+                  <div>年龄:<span style="display:inline-block;width:50px;">{{info.patient.age ? info.patient.age : ''}}岁</span></div>
15
+                  <div>费别:<span style="display:inline-block;min-width:80px;">医保</span>
16
+                  </div>
17
+                  <div style="margin-left:2px;">电脑号:<span style="display:inline-block;width:80px;">{{info.psn_no ? info.psn_no : ''}}</span></div>
18
+                  <div>收费日期:<span style="display:inline-block;width:100px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span></div>
19
+                </div>
20
+                <div style="float:right">金额单位:元</div>
21
+            </div>
22
+            <div style="min-height: 300px;">
23
+              <table border='1' style="width:100%;" cellspacing="0">
24
+                  <tr>
25
+                      <td width="70">类别</td>
26
+                      <td>项目</td>
27
+                      <td min-width="180" style="min-width:60px;">规格</td>
28
+                      <td width="40">单位</td>
29
+                      <td width="40">数量</td>
30
+                      <td width="60">单价</td>
31
+                      <td width="70">总额</td>
32
+                      <td width="130">小计</td>
33
+                  </tr>
34
+                  <div v-for="(item,i) in info.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
35
+                      <tr v-for="(subItem,index) in item.details" :key="index">
36
+                        <td>
37
+                          <span v-if="item.type == 1">药品费</span>
38
+                          <span v-if="item.type == 2">治疗费</span>
39
+                          <span v-if="item.type == 3">耗材费</span>
40
+                        </td>
41
+                        <td>
42
+                          <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
43
+                          <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
44
+                          <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
45
+                        </td>
46
+                        <td>
47
+                          <span v-if="item.type == 1"><span v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
48
+                          <span v-if="item.type == 2"></span>
49
+                          <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
50
+                        </td>
51
+                        <td>
52
+                          <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
53
+                          <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
54
+                          <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
55
+                        </td>
56
+                        <td>
57
+                          <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
58
+                          <span v-if="item.type == 2">{{ subItem.project.count }}</span>
59
+                          <span v-if="item.type == 3">{{ subItem.project.count }}</span>
60
+                        </td>
61
+                        <td>
62
+                          <span v-if="item.type == 1">{{ subItem.pric }}</span>
63
+                          <span v-if="item.type == 2">{{ subItem.pric }}</span>
64
+                          <span v-if="item.type == 3">{{ subItem.pric }}</span>
65
+                        </td>
66
+                        <td>
67
+                          <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
68
+                          <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
69
+                          <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
70
+                        </td>
71
+                        <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
72
+                      </tr>
73
+                  </div>
74
+                  <tr>
75
+                    <td colspan="7">
76
+                      <div style="display:flex;flez-wrap:wrap;">
77
+                        <div style="width:33%;" v-for="(item,index) in info.new_detail_list" :key="index">
78
+                          <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
79
+                          <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
80
+                          <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
81
+                        </div>
82
+                      </div>
83
+                    </td>
84
+                    <td>合计: {{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
85
+                  </tr>
86
+                  <tr>
87
+                      <td colspan="7">
88
+                          <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
89
+                              <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</div>
90
+                              <div style="width:33%;">基金支付金额:{{info.fund_pay_sumamt?info.fund_pay_sumamt:0}}元</div>
91
+                              <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:0}}元</div>
92
+
93
+                          </div>
94
+                          <div style="display:flex;flez-wrap:wrap;font-size:16px;">
95
+                              <div style="width:33%;">个人支付金额:{{info.psn_cash_pay?info.psn_cash_pay:0}}元</div>
96
+                              <div style="width:33%;">个人账户金额:{{info.balc}}元</div>
97
+                          </div>
98
+                      </td>
99
+                      <td style="font-size:16px;">合计:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
100
+                  </tr>
101
+
102
+              </table>
103
+            </div>
104
+            <div style="float:right;margin:10px 0;display:flex;">
105
+                <div>操作人:<span style="width:100px;display:inline-block;">{{info.p_admin.user_name}}</span></div>
106
+                <div>操作日期:<span style="width:100px;display:inline-block;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span></div>
107
+            </div>
108
+            <img style="width:100%;" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
109
+        </div>
110
+        <div v-else id='prescription-print' class="prescription-print" style="position: relative;">
111
+          <img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
112
+            <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
113
+            <div style="display:flex;">
114
+                <div>单据号:<span style="display:inline-block;width:200px;">{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</span></div>
115
+                <div>透析号:<span style="display:inline-block;width:200px;">{{balanceAccounts.patient ? balanceAccounts.patient.dialysis_no : ''}}</span></div>
116
+            </div>
117
+            <div style="display:flex;justify-content: space-between;">
118
+                <div style="display:flex;">
119
+                  <div>姓名:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.name.indexOf("(") > -1 ? balanceAccounts.patient.name.substring(0,balanceAccounts.patient.name.indexOf("(")) : balanceAccounts.patient.name : ''}}</span></div>
120
+                  <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span></div>
121
+                  <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span></div>
122
+                  <div>费别:<span style="display:inline-block;width:80px;">自费</span>
123
+                  </div>
124
+                  <div>电脑号:<span style="display:inline-block;width:80px;"></span></div>
125
+                  <div>收费日期:<span style="display:inline-block;width:100px;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
126
+                </div>
127
+                <div style="float:right">金额单位:元</div>
128
+            </div>
129
+            <div style="min-height: 300px;">
130
+              <table border='1' style="width:100%;" cellspacing="0">
131
+                  <tr>
132
+                      <td width="70">类别</td>
133
+                      <td>项目</td>
134
+                      <td min-width="180" style="min-width:60px;">规格</td>
135
+                      <td width="40">单位</td>
136
+                      <td width="40">数量</td>
137
+                      <td width="60">单价</td>
138
+                      <td width="70">总额</td>
139
+                      <td width="130">小计</td>
140
+                  </tr>
141
+                  <div v-for="(item,i) in balanceAccounts.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
142
+                      <tr v-for="(subItem,index) in item.details" :key="index">
143
+                        <td>
144
+                          <span v-if="item.type == 1">药品费</span>
145
+                          <span v-if="item.type == 2">治疗费</span>
146
+                          <span v-if="item.type == 3">耗材费</span>
147
+                        </td>
148
+                        <td>
149
+                          <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
150
+                          <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
151
+                          <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
152
+                        </td>
153
+                        <td>
154
+                          <span v-if="item.type == 1"><span v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
155
+                          <span v-if="item.type == 2"></span>
156
+                          <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
157
+                        </td>
158
+                        <td>
159
+                          <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
160
+                          <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
161
+                          <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
162
+                        </td>
163
+                        <td>
164
+                          <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
165
+                          <span v-if="item.type == 2">{{ subItem.project.count }}</span>
166
+                          <span v-if="item.type == 3">{{ subItem.project.count }}</span>
167
+                        </td>
168
+                        <td>
169
+                          <span v-if="item.type == 1">{{ subItem.pric }}</span>
170
+                          <span v-if="item.type == 2">{{ subItem.pric }}</span>
171
+                          <span v-if="item.type == 3">{{ subItem.pric }}</span>
172
+                        </td>
173
+                        <td>
174
+                          <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
175
+                          <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
176
+                          <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
177
+                        </td>
178
+                        <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
179
+                      </tr>
180
+                  </div>
181
+                  <tr>
182
+                    <td colspan="7">
183
+                      <div style="display:flex;flez-wrap:wrap;">
184
+                        <div style="width:33%;" v-for="(item,index) in balanceAccounts.new_detail_list" :key="index">
185
+                          <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
186
+                          <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
187
+                          <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
188
+                        </div>
189
+                      </div>
190
+                    </td>
191
+                    <td>合计: {{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
192
+                  </tr>
193
+                  <tr>
194
+                      <td colspan="7">
195
+                          <div style="display:flex;flez-wrap:wrap;">
196
+                              <div style="width:33%;">医疗费总额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</div>
197
+                              <div style="width:33%;">基金支付金额:0元</div>
198
+                              <div style="width:33%;">个人账户支付金额:0元</div>
199
+
200
+                          </div>
201
+                          <div style="display:flex;flez-wrap:wrap;">
202
+                              <div style="width:33%;">个人支付金额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</div>
203
+                              <div style="width:33%;">个人账户金额:0元</div>
204
+                          </div>
205
+                      </td>
206
+                      <td>合计:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
207
+                  </tr>
208
+
209
+              </table>
210
+            </div>
211
+            <div style="float:right;margin:10px 0;display:flex;">
212
+                <div>操作人:<span style="width:100px;display:inline-block;">{{balanceAccounts.current_admin.user_name}}</span></div>
213
+                <div>操作日期:<span style="width:100px;display:inline-block;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
214
+            </div>
215
+            <img style="width:100%;" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
216
+        </div>
217
+    </div>
218
+
219
+</template>
220
+<script>
221
+  import axios from 'axios'
222
+  import { getChargePrint } from '@/api/project/project'
223
+  import { uParseTime } from '@/utils/tools'
224
+
225
+  export default {
226
+    data() {
227
+      return {
228
+        list: {},
229
+        prescription: [],
230
+        patient: {},
231
+        orgname: '',
232
+
233
+        result: {},
234
+        org_code: '',
235
+        patient_name: '',
236
+        doctor_code: '',
237
+        doctor_name: '',
238
+
239
+        name_arr: [],
240
+        spec_arr: [],
241
+        count_arr: [],
242
+        price_arr: [],
243
+        total_arr: [],
244
+
245
+      }
246
+    },
247
+    props: {
248
+      paramsObj: Object,
249
+      info: Object,
250
+      balanceAccounts:Object
251
+    },
252
+    methods: {
253
+      getName(list) {
254
+        let new_list = []
255
+        for (let i = 0; i < list.length; i++) {
256
+          if (list[i].aac031 == '1') {
257
+            new_list.push(list[i])
258
+          }
259
+        }
260
+
261
+        switch (new_list[0].bcc334) {
262
+          case "A31001":
263
+            return "深圳医保1档"
264
+            break
265
+          case "A31002":
266
+            return "深圳医保2档"
267
+
268
+            break
269
+          case "A31003":
270
+            return "深圳医保3档"
271
+
272
+            break
273
+          case "A31004":
274
+            return "二档(少儿)"
275
+
276
+            break
277
+          case "A31005":
278
+            return "学生二档"
279
+
280
+            break
281
+          case "A31006":
282
+            return "大学生二档"
283
+
284
+            break
285
+          case "A32001":
286
+            return "在职公务员"
287
+            break
288
+          case "A32002":
289
+            return "在职驻深公务员"
290
+
291
+            break
292
+          case "A39301":
293
+            return "家属统筹医疗"
294
+
295
+            break
296
+          case "A41001":
297
+            return "工伤在职"
298
+
299
+            break
300
+          case "A51001":
301
+            return "生育在职"
302
+
303
+            break
304
+          case "A52001":
305
+            return "生育医疗一档"
306
+
307
+            break
308
+          case "A52002":
309
+            return "生育医疗一档"
310
+
311
+            break
312
+          case "C31001":
313
+            return "一档医疗退休"
314
+
315
+            break
316
+          case "C31002":
317
+            return "二档医疗退休"
318
+            break
319
+
320
+        }
321
+
322
+
323
+
324
+      },
325
+      getValue(item) {
326
+        return this.getItemName(item.aka111) + ': ' + item.bka058 + '元'
327
+      },
328
+      getItemName(number) {
329
+        switch (number) {
330
+          case '01':
331
+            return '床位费'
332
+            break
333
+          case '02':
334
+            return '西药费'
335
+
336
+            break
337
+          case '03':
338
+            return '中药费'
339
+
340
+            break
341
+          case '04':
342
+            return '中成药费'
343
+
344
+            break
345
+          case '05':
346
+            return '中草药费'
347
+
348
+            break
349
+          case '06':
350
+            return '检查费'
351
+
352
+            break
353
+          case '07':
354
+            return '治疗费'
355
+
356
+            break
357
+          case '08':
358
+            return '放射费'
359
+
360
+            break
361
+          case '09':
362
+            return '手术费'
363
+
364
+            break
365
+          case '10':
366
+            return '化验费'
367
+
368
+            break
369
+          case '11':
370
+            return '输血费'
371
+
372
+            break
373
+          case '12':
374
+            return '输氧费'
375
+
376
+            break
377
+          case '13':
378
+            return '其它费'
379
+
380
+            break
381
+          case '14':
382
+            return '麻醉费'
383
+
384
+            break
385
+          case '15':
386
+            return '材料费'
387
+
388
+            break
389
+          case '16':
390
+            return '特殊检查费'
391
+
392
+            break
393
+          case '17':
394
+            return '特殊治疗费'
395
+
396
+            break
397
+          case '18':
398
+            return '诊疗费(诊查费)'
399
+
400
+            break
401
+          case '19':
402
+            return '护理费'
403
+
404
+            break
405
+          case '20':
406
+            return '诊金'
407
+
408
+            break
409
+          case '21':
410
+            return '检查费(CT)'
411
+
412
+            break
413
+          case '22':
414
+            return '检查费(MRT)'
415
+
416
+            break
417
+          case '23':
418
+            return '检查费(其他)'
419
+
420
+            break
421
+          case '24':
422
+            return '特需服务费'
423
+
424
+            break
425
+          case '25':
426
+            return '杂费'
427
+
428
+            break
429
+          case '26':
430
+            return '挂号费'
431
+            break
432
+          case '99':
433
+            return '诊疗费'
434
+            break
435
+
436
+        }
437
+
438
+      },
439
+      getChargePrint(record_date, patient_id, prescription_id) {
440
+        var params = {
441
+          record_date: record_date,
442
+          patient_id: patient_id,
443
+          prescription_id: prescription_id
444
+        }
445
+        console.log('params', params)
446
+        getChargePrint(params).then(response => {
447
+          if (response.data.state == 1) {
448
+            var list = response.data.data.list
449
+            console.log('list9999999999', list)
450
+            this.list = list
451
+            var prescription = response.data.data.prescription
452
+            console.log('prescription', prescription)
453
+            this.prescription = prescription
454
+            var patient = response.data.data.patient
455
+            console.log('patient', patient)
456
+            this.patient = patient
457
+            var histpatient = response.data.data.hisPatient
458
+            console.log('hispatient', histpatient)
459
+          }
460
+        })
461
+      },
462
+      getTime(value, temp) {
463
+        if (value != undefined) {
464
+            return uParseTime(value, temp)
465
+        }
466
+        return ''
467
+      },
468
+    },
469
+    mounted() {
470
+      this.org_id = this.$store.getters.xt_user.org_id
471
+      if (this.org_id == 9504 || this.org_id == 10028 || this.org_id == 10138) {
472
+        var xtuser = this.$store.getters.xt_user
473
+        this.orgname = xtuser.org.org_name
474
+        var form = {
475
+          'order_id': this.paramsObj.order_id,
476
+          'patient_id': this.paramsObj.patient_id,
477
+          'record_time': this.paramsObj.record_date,
478
+          'admin_user_id': this.$store.getters.xt_user.user.id
479
+        }
480
+        var that = this
481
+        axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
482
+          params: form
483
+        })
484
+          .then(function(response) {
485
+            if (response.data.state == 0) {
486
+              // that.$message.error(response.data.msg)
487
+              return false
488
+            } else {
489
+              if (response.data.data.failed_code == -10) {
490
+                // that.$message.error(response.data.data.msg)
491
+                that.$confirm(response.data.data.msg, '医保错误信息', {
492
+                  confirmButtonText: '确 定',
493
+                  type: 'warning'
494
+                }).then(() => {
495
+
496
+                }).catch(() => {
497
+                })
498
+              } else {
499
+                that.result = response.data.data.result
500
+
501
+                that.org_code = response.data.data.org_code
502
+                that.patient_name = response.data.data.patient_name
503
+                that.doctor_code = response.data.data.doctor_code
504
+                that.doctor_name = response.data.data.doctor_name
505
+                that.name_arr = []
506
+                that.spec_arr = []
507
+                that.count_arr = []
508
+                that.price_arr = []
509
+                that.total_arr = []
510
+                for (let i = 0; i < that.result.transBody.outputlist1.length; i++) {
511
+                  that.name_arr.push(that.result.transBody.outputlist1[i].ake006)
512
+                  that.spec_arr.push(that.result.transBody.outputlist1[i].aka074)
513
+                  that.count_arr.push(that.result.transBody.outputlist1[i].akc226)
514
+                  that.price_arr.push(that.result.transBody.outputlist1[i].akc225)
515
+                  that.total_arr.push(that.result.transBody.outputlist1[i].akc264)
516
+                }
517
+
518
+              }
519
+
520
+            }
521
+          })
522
+          .catch(function(error) {
523
+
524
+          })
525
+
526
+      } else {
527
+        var record_date = this.paramsObj.record_date
528
+        console.log('record_date', record_date)
529
+        var patient_id = this.paramsObj.patient_id
530
+        console.log('patient_id', patient_id)
531
+        var prescription_id = this.paramsObj.prescription_id
532
+        this.getChargePrint(record_date, patient_id, prescription_id)
533
+        var xtuser = this.$store.getters.xt_user
534
+        this.orgname = xtuser.org.org_name
535
+
536
+      }
537
+
538
+    },
539
+    watch: {
540
+      paramsObj: {//深度监听,可监听到对象、数组的变化
541
+        handler(val, oldVal) {
542
+          this.paramsObj = val
543
+          this.patient_id = this.paramsObj.patient_id
544
+          var record_date = this.paramsObj.record
545
+          this.record_date = record_date
546
+          var prescription_id = this.paramsObj.prescription_id
547
+          this.prescription_id = prescription_id
548
+
549
+        },
550
+        deep: true
551
+      }
552
+    }
553
+  }
554
+</script>
555
+
556
+
557
+<style lang="scss" scoped>
558
+    .prescription-print {
559
+        -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
560
+        -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
561
+        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
562
+        margin-bottom: 20px;
563
+        padding: 20px 10px;
564
+    }
565
+
566
+    .printTitle {
567
+        font-size: 22px;
568
+        text-align: center;
569
+        font-weight: bold;
570
+    }
571
+
572
+    .infoMain {
573
+        display: flex;
574
+        flex-wrap: wrap;
575
+        padding: 0 10px;
576
+        margin-top: 10px;
577
+    }
578
+
579
+    .infoMain .infoP {
580
+        width: 33%;
581
+        line-height: 24px;
582
+    }
583
+
584
+    .chargeBox {
585
+        border: 1px solid #000;
586
+    }
587
+
588
+    .chargeUl {
589
+        display: flex;
590
+        justify-content: space-between;
591
+        text-align: center;
592
+    }
593
+
594
+    .chargeUl p {
595
+        height: 40px;
596
+        line-height: 40px;
597
+    }
598
+
599
+    .chargeP {
600
+        height: 40px;
601
+        line-height: 40px;
602
+    }
603
+
604
+    .moneyBox {
605
+        display: flex;
606
+        justify-content: space-between;
607
+        padding: 0 10px;
608
+        background: #eee;
609
+        height: 40px;
610
+        align-items: center;
611
+        border: 1px solid #000;
612
+        border-top: none
613
+    }
614
+
615
+    .actionBar {
616
+        display: flex;
617
+        justify-content: space-between;
618
+        line-height: 24px;
619
+        padding: 0 10px;
620
+    }
621
+
622
+    .actionBar div {
623
+        width: 150px;
624
+    }
625
+
626
+    table {
627
+
628
+    td {
629
+        padding: 10px 5px;
630
+    }
631
+
632
+    }
633
+</style>

+ 107 - 236
src/xt_pages/outpatientCharges/summary.vue 查看文件

@@ -6,7 +6,8 @@
6 6
         <div class="app-container">
7 7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8 8
                 <div>
9
-                    <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction" @keyup.enter.native='searchAction'
9
+                    <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
10
+                              @keyup.enter.native='searchAction'
10 11
                               class="filter-item"/>
11 12
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12 13
                                @click="searchAction">
@@ -98,7 +99,6 @@
98 99
                 </el-table-column>
99 100
 
100 101
 
101
-
102 102
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
103 103
                     <template slot-scope="scope">
104 104
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
@@ -117,8 +117,7 @@
117 117
                 <el-table-column align="center" prop="name" label="操作">
118 118
                     <template slot-scope="scope">
119 119
                         <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
120
-                        <el-button size="mini" type="primary" @click="toPrint(scope.row)"
121
-                                   v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10138)  || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
120
+                        <el-button size="mini" type="primary" @click="toPrint(scope.row)">
122 121
                             结算单
123 122
                         </el-button>
124 123
                         <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
@@ -173,15 +172,15 @@
173 172
             <allListPrint :paramsObj='paramsObj'></allListPrint>
174 173
         </el-dialog>
175 174
 
176
-        <el-dialog
177
-                class="centerDialog"
178
-                width="1200px"
179
-                title="打印"
180
-                :visible.sync="statementVisible9504">
181
-            <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
182
-            <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
183
-            <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
184
-        </el-dialog>
175
+        <!--<el-dialog-->
176
+        <!--class="centerDialog"-->
177
+        <!--width="1200px"-->
178
+        <!--title="打印"-->
179
+        <!--:visible.sync="statementVisible9504">-->
180
+        <!--&lt;!&ndash;<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>&ndash;&gt;-->
181
+        <!--&lt;!&ndash;<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>&ndash;&gt;-->
182
+        <!--<new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>-->
183
+        <!--</el-dialog>-->
185 184
 
186 185
         <el-dialog
187 186
                 class="centerDialog"
@@ -258,92 +257,31 @@
258 257
     methods: {
259 258
       getMedType(med_type) {
260 259
         var med_type = parseInt(med_type)
261
-        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
262
-          switch (med_type) {
263
-            case 11:
264
-              return '普通门诊'
265
-
266
-              break
267
-            case 12:
268
-              return '家庭通道'
269
-
270
-              break
271
-            case 13:
272
-              return '门诊大病'
273
-
274
-              break
275
-
276
-            case 14:
277
-              return '重疾特药'
278
-              break
279
-
280
-            case 15:
281
-              return '门诊慢病'
282
-
283
-              break
284
-            case 16:
285
-              return '门诊特检'
286
-
287
-              break
288
-            case 17:
289
-              return '健康体检'
290
-
291
-              break
292
-            case 18:
293
-              return '预防接种'
294
-
295
-              break
296
-            case 19:
297
-              return '门诊输血'
298
-
299
-              break
300
-            case 91:
301
-              return '新冠肺炎门诊'
302
-              break
303
-            case 1111:
304
-              return '精一' + '处方'
305
-              break
306
-            case 1112:
307
-              return '精二' + '处方'
308
-              break
309
-          }
310
-
311
-        } else {
312
-
313
-          switch (med_type) {
314
-            case 11:
315
-              return '普通门诊'
316
-
317
-              break
318
-            case 12:
319
-              return '门诊挂号'
320
-
321
-              break
322
-            case 13:
323
-              return '急诊'
324
-
325
-              break
326
-
327
-            case 14:
328
-              return '门诊特殊病'
329
-              break
330
-
331
-            case 15:
332
-              return '门诊统筹'
333
-
334
-              break
335
-            case 16:
336
-              return '门诊慢性病'
337
-
338
-              break
339
-            case 21:
340
-              return '普通住院'
341
-              break
342
-
343
-          }
344
-
260
+        switch (med_type) {
261
+          case 11:
262
+            return '普通门诊'
263
+            break
264
+          case 12:
265
+            return '门诊挂号'
266
+            break
267
+          case 13:
268
+            return '急诊'
269
+            break
270
+          case 14:
271
+            return '门诊特殊病'
272
+            break
273
+
274
+          case 15:
275
+            return '门诊统筹'
276
+
277
+            break
278
+          case 16:
279
+            return '门诊慢性病'
280
+            break
281
+          case 21:
282
+            return '普通住院'
283
+            break
345 284
         }
346
-
347 285
       },
348 286
       uploadInfo(row) {
349 287
         var that = this
@@ -402,8 +340,8 @@
402 340
           }).then(() => {
403 341
             let params = {
404 342
               'order_id': row.id,
405
-              'patient_id':  row.patient_id,
406
-              'record_time':this.getTimes(row.settle_accounts_date),
343
+              'patient_id': row.patient_id,
344
+              'record_time': this.getTimes(row.settle_accounts_date)
407 345
             }
408 346
             Refund(params).then(response => {
409 347
               if (response.data.state == 0) {
@@ -419,149 +357,80 @@
419 357
 
420 358
         } else {
421 359
 
422
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
423
-            var that = this
424
-            this.$confirm('是否退费', '退费', {
425
-              confirmButtonText: '确 定',
426
-              cancelButtonText: '取 消',
427
-              type: 'warning'
428
-            }).then(() => {
429
-              let params = {
430
-                'order_id': row.id,
431
-                'patient_id': row.patient_id,
432
-                'record_time': that.getTimes(row.settle_accounts_date),
433
-                'admin_user_id': that.$store.getters.xt_user.user.id
434
-              }
435
-              axios.get('http://127.0.0.1:9532/api/refund/post', {
436
-                params: params
437
-              })
438
-                .then(function(response) {
439
-                  if (response.data.state == 0) {
440
-                    that.$message.error(response.data.msg)
441
-                    return false
442
-                  } else {
443
-                    if (response.data.data.failed_code == -10) {
444
-                      // that.$message.error(response.data.data.msg)
445
-                      that.$confirm(response.data.data.msg, '医保错误信息', {
446
-                        confirmButtonText: '确 定',
447
-                        type: 'warning'
448
-                      }).then(() => {
449
-
450
-                      }).catch(() => {
451
-                      })
452
-                    } else {
453
-                      that.$message({ message: '退费成功', type: 'success', duration: 5000 })
454
-                      that.getHisOrderList()
455
-
456
-                    }
457
-                  }
458
-                })
459
-                .catch(function(error) {
460
-                })
461
-            }).catch(() => {
462
-            })
463
-
464
-          } else if (this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
465
-            var that = this
466
-            this.$confirm('是否退费', '退费', {
467
-              confirmButtonText: '确 定',
468
-              cancelButtonText: '取 消',
469
-              type: 'warning'
470
-            }).then(() => {
471
-              let params = {
472
-                'order_id': row.id,
473
-                'patient_id': row.patient_id,
474
-                'record_time': this.getTimes(row.settle_accounts_date),
475
-                'admin_user_id': this.$store.getters.xt_user.user.id
476
-              }
477
-              axios.get('http://127.0.0.1:9532/sz/api/refund/get', {
478
-                params: params
479
-              })
480
-                .then(function(response) {
481
-                  if (response.data.state == 0) {
482
-                    that.$message.error(response.data.msg)
483
-                    return false
484
-                  } else {
485
-                    if (response.data.data.failed_code == -10) {
486
-                      that.$confirm(response.data.data.msg, '医保错误信息', {
487
-                        confirmButtonText: '确 定',
488
-                        type: 'warning'
489
-                      }).then(() => {
490
-
491
-                      }).catch(() => {
492
-                      })
493
-
494
-                    } else {
495
-                      that.$message({ message: '退费成功', type: 'success', duration: 5000 })
496
-                      that.getHisOrderList()
497
-                    }
498
-                  }
499
-                })
500
-                .catch(function(error) {
501
-                })
502
-
503
-            }).catch(() => {
360
+          var that = this
361
+          this.$confirm('是否退费', '退费', {
362
+            confirmButtonText: '确 定',
363
+            cancelButtonText: '取 消',
364
+            type: 'warning'
365
+          }).then(() => {
366
+            let params = {
367
+              'order_id': row.id,
368
+              'patient_id': row.patient_id,
369
+              'record_time': that.getTimes(row.settle_accounts_date),
370
+              'admin_user_id': that.$store.getters.xt_user.user.id
371
+            }
372
+            axios.get('http://127.0.0.1:9532/api/refund/post', {
373
+              params: params
504 374
             })
505
-
506
-          } else {
507
-            this.$confirm('是否退费', '退费', {
508
-              confirmButtonText: '确 定',
509
-              cancelButtonText: '取 消',
510
-              type: 'warning'
511
-            }).then(() => {
512
-              let params = {
513
-                'order_id': row.id,
514
-                'patient_id':  row.patient_id,
515
-                'record_time':this.getTimes(row.settle_accounts_date),
516
-
517
-              }
518
-              Refund(params).then(response => {
375
+              .then(function(response) {
519 376
                 if (response.data.state == 0) {
520
-                  this.$message.error(response.data.msg)
377
+                  that.$message.error(response.data.msg)
521 378
                   return false
522 379
                 } else {
523
-                  this.$message({ message: '退费成功', type: 'success' })
524
-                  this.getHisOrderList()
380
+                  if (response.data.data.failed_code == -10) {
381
+                    // that.$message.error(response.data.data.msg)
382
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
383
+                      confirmButtonText: '确 定',
384
+                      type: 'warning'
385
+                    }).then(() => {
386
+
387
+                    }).catch(() => {
388
+                    })
389
+                  } else {
390
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
391
+                    that.getHisOrderList()
392
+
393
+                  }
525 394
                 }
526 395
               })
527
-            }).catch(() => {
528
-            })
529
-          }
396
+              .catch(function(error) {
397
+              })
398
+          }).catch(() => {
399
+          })
530 400
         }
531 401
       }, toPrint(row) {
532
-        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
533
-          if (row.mdtrt_id.indexOf('H') > -1) {
534
-            this.statementVisible9504 = true
535
-            let obj = {
536
-              order_id: row.id,
537
-              patient_id: row.patient_id,
538
-              record_time: this.getTimes(row.settle_accounts_date),
539
-              admin_user_id: this.$store.getters.xt_user.user.id
540
-            }
541
-            this.orderObj9504 = obj
542
-          } else {
543
-
544
-            this.statementVisible9504 = true
545
-            let obj = {
546
-              order_id: row.id,
547
-              patient_id: row.patient_id,
548
-              record_time: this.getTimes(row.settle_accounts_date),
549
-              admin_user_id: this.$store.getters.xt_user.user.id,
550
-              balance_accounts_type: 2
551
-            }
552
-            this.orderObj9504 = obj
553
-          }
554
-
555
-        } else {
556
-          this.statementVisible = true
557
-          let obj = {
558
-            order_id: row.id,
559
-            settle_type: row.settle_type,
560
-            start_time: row.settle_start_time,
561
-            end_time: row.settle_end_time
562
-          }
563
-          this.orderObj = obj
402
+        // if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
403
+        //   if (row.mdtrt_id.indexOf('H') > -1) {
404
+        //     this.statementVisible9504 = true
405
+        //     let obj = {
406
+        //       order_id: row.id,
407
+        //       patient_id: row.patient_id,
408
+        //       record_time: this.getTimes(row.settle_accounts_date),
409
+        //       admin_user_id: this.$store.getters.xt_user.user.id
410
+        //     }
411
+        //     this.orderObj9504 = obj
412
+        //   } else {
413
+        //
414
+        //     this.statementVisible9504 = true
415
+        //     let obj = {
416
+        //       order_id: row.id,
417
+        //       patient_id: row.patient_id,
418
+        //       record_time: this.getTimes(row.settle_accounts_date),
419
+        //       admin_user_id: this.$store.getters.xt_user.user.id,
420
+        //       balance_accounts_type: 2
421
+        //     }
422
+        //     this.orderObj9504 = obj
423
+        //   }
424
+        //
425
+        // } else {
426
+        this.statementVisible = true
427
+        let obj = {
428
+          order_id: row.id,
429
+          settle_type: row.settle_type,
430
+          start_time: row.settle_start_time,
431
+          end_time: row.settle_end_time
564 432
         }
433
+        this.orderObj = obj
565 434
 
566 435
       },
567 436
       settlementPrint(row) {
@@ -819,7 +688,7 @@
819 688
         let paramsObj = {
820 689
           order_id: obj.id,
821 690
           patient_id: obj.patient_id,
822
-          number:obj.mdtrt_id,
691
+          number: obj.mdtrt_id,
823 692
           name: obj.patient.name,
824 693
           age: obj.age,
825 694
           gend: obj.gend,
@@ -828,7 +697,9 @@
828 697
         this.invoiceParams = paramsObj
829 698
         this.invoiceVisible = true
830 699
       }
831
-    }, created() {
700
+    }
701
+    ,
702
+    created() {
832 703
 
833 704
       this.fetchAllAdminUsers()
834 705
       this.getDoctorList()

+ 11 - 10
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue 查看文件

@@ -253,7 +253,7 @@
253 253
                 single_dose: prescription.doctor_advice[b].single_dose,
254 254
                 delivery_way: prescription.doctor_advice[b].delivery_way,
255 255
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
256
-                retail_price: prescription.doctor_advice[b].price.toString(),
256
+                // retail_price: prescription.doctor_advice[b].price.toString(),
257 257
                 remark: prescription.doctor_advice[b].remark,
258 258
                 day:prescription.doctor_advice[b].day,
259 259
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
@@ -262,8 +262,15 @@
262 262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
263 263
                 id:prescription.doctor_advice[b].drug_id,
264 264
                 drug:prescription.doctor_advice[b].drug,
265
-
266 265
               };
266
+              if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
267
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
268
+              } else if(obj.prescribing_number_unit == prescription.doctor_advice[b].drug.max_unit){
269
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.retail_price
270
+              } else {
271
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
272
+              }
273
+
267 274
               tempAdvice.push(obj)
268 275
 
269 276
             }
@@ -281,27 +288,21 @@
281 288
                 execution_frequency: prescription.project[b].execution_frequency,
282 289
                 number_days: prescription.project[b].day,
283 290
                 total:prescription.project[b].count,
284
-                price:prescription.project[b].price,
285 291
                 remark:prescription.project[b].remark,
286 292
                 unit: prescription.project[b].unit,
287 293
                 type: prescription.project[b].type
288
-
289 294
                 // medical_code:prescription.project[b].project.medical_code,
290 295
               };
291
-              console.log(prescription.project[b].type)
292 296
               if(prescription.project[b].type == 2){
293
-                console.log("pre")
294
-
295 297
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
296 298
                 obj['medical_code'] =  prescription.project[b].project.medical_code
297 299
                 obj['project_name'] =  prescription.project[b].project.project_name
298
-
300
+                obj['price'] = prescription.project[b].project.price
299 301
               }else if(prescription.project[b].type == 3){
300
-                console.log("pre2")
301
-
302 302
                 obj['statistical_classification'] = ""
303 303
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
304 304
                 obj['project_name'] =  prescription.project[b].good_info.good_name
305
+                obj['price'] = prescription.project[b].good_info.packing_price
305 306
               }
306 307
 
307 308
               tempProject.push(obj)

+ 62 - 55
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -48,7 +48,7 @@
48 48
 
49 49
                     <el-form-item label="诊断:" prop="name" label-position="right" style="width:66.6%;">
50 50
 
51
-                        <el-select style="width:100%;" v-model="diagnose" placeholder="" multiple>
51
+                        <el-select style="width:100%;"  v-model="diagnose" placeholder="" multiple filterable>
52 52
                             <el-option
53 53
                                     v-for="(item,index) in diagnoses"
54 54
                                     :key="index"
@@ -127,15 +127,8 @@
127 127
                                         placeholder="选择日期">
128 128
                                 </el-date-picker>
129 129
 
130
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >
131
-                                    <el-option
132
-                                            v-for="(item,index) in medical_care"
133
-                                            :key="index"
134
-                                            :label="item.label"
135
-                                            :value="item.value">
136
-                                    </el-option>
137
-                                </el-select>
138
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-else @change="changevalue" >
130
+
131
+                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"   @change="changevalue" >
139 132
                                     <el-option
140 133
                                             v-for="(item,index) in register"
141 134
                                             :key="index"
@@ -1305,12 +1298,9 @@
1305 1298
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1306 1299
             ':' + (min < 10 ? '0' + min : min)
1307 1300
           this.prescriptions[i]['pre_time'] = nowTime
1308
-          if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1309 1301
 
1310
-            this.prescriptions[i]['med_type'] = 13
1311
-          }else{
1312 1302
             this.prescriptions[i]['med_type'] = 14
1313
-          }
1303
+
1314 1304
 
1315 1305
           this.prescriptions[i].name = '处方' + (i + 1)
1316 1306
           if (i == 0) {
@@ -1370,12 +1360,9 @@
1370 1360
           this.prescriptions[i]['pre_time'] = nowTime
1371 1361
 
1372 1362
 
1373
-          if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1374 1363
 
1375
-            this.prescriptions[i]['med_type'] = 13
1376
-          }else{
1377 1364
             this.prescriptions[i]['med_type'] = 14
1378
-          }
1365
+
1379 1366
 
1380 1367
           if (i == 0) {
1381 1368
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
@@ -1911,6 +1898,16 @@
1911 1898
         }
1912 1899
 
1913 1900
 
1901
+        if (this.curPrescriptions.project.length == 0 && this.curPrescriptions.advices.length == 0) {
1902
+          this.curStatus = 1
1903
+          this.customTabIndex = 1
1904
+          this.rightTab = 1
1905
+          this.showOne = true
1906
+          this.showTwo = false
1907
+        }
1908
+
1909
+
1910
+
1914 1911
 
1915 1912
         if (info.prescription_status == 0) {
1916 1913
           this.order_status = ''
@@ -2313,12 +2310,10 @@
2313 2310
 
2314 2311
 
2315 2312
         }
2316
-        if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2317
-          obj.med_type = 13
2318
-        }else{
2313
+
2319 2314
           obj.med_type = 14
2320 2315
 
2321
-        }
2316
+
2322 2317
         this.prescriptions.push(obj)
2323 2318
 
2324 2319
 
@@ -2520,44 +2515,56 @@
2520 2515
         this.$refs.additionalCharges.show()
2521 2516
       },
2522 2517
       selectDrugs(selection, row) {
2518
+        console.log('selection',selection)
2519
+        console.log('row',row)
2520
+        if(row.total <= 0){
2521
+          if (selection) {
2522
+            selection.forEach(row => {
2523
+              if(row.total <= 0){
2524
+                this.$refs.multipleTable.toggleRowSelection(row);
2525
+              }
2526
+            });
2527
+          } else {
2528
+            this.$refs.multipleTable.clearSelection();
2529
+          }
2530
+          this.$message.error(row.drug_name + '库存不足')
2531
+          return
2532
+        }
2523 2533
         this.curDrugs = selection
2524 2534
       },
2525 2535
 
2526 2536
       comfirm() {
2537
+        console.log(this.curPrescriptions.advices)
2538
+        console.log(this.curPrescriptions.project)
2539
+        console.log(this.curPrescriptions.advices.length)
2540
+        console.log(this.curPrescriptions.project.length)
2541
+
2542
+        if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
2543
+          if(this.$store.getters.xt_user.org_id == 10138) {
2544
+            for (let i = 0; i < this.curDrugs.length; i++) {
2545
+              if (this.curPrescriptions.med_type == 13 && this.curDrugs[i].is_special_diseases != 1) {
2546
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2547
+                return
2548
+              }
2549
+
2550
+            }
2551
+          }
2552
+        }
2553
+
2554
+
2555
+        if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0){
2556
+          if(this.$store.getters.xt_user.org_id == 10138) {
2557
+            for (let i = 0; i < this.curDrugs.length; i++) {
2558
+              if (this.curPrescriptions.med_type == 13 && this.curDrugs[i].is_special_diseases != 1) {
2559
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2560
+                return
2561
+              }
2562
+
2563
+            }
2564
+          }
2565
+        }
2566
+
2527 2567
 
2528
-        // if(this.curStatus == 1  && this.rightTab == 2){
2529
-        //   for(let i = 0; i < this.curDrugs.length; i++){
2530
-        //     if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
2531
-        //
2532
-        //       if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
2533
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2534
-        //         return
2535
-        //       }
2536
-        //
2537
-        //       if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
2538
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2539
-        //         return
2540
-        //       }
2541
-        //
2542
-        //
2543
-        //     }else{
2544
-        //
2545
-        //       if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
2546
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2547
-        //         return
2548
-        //       }
2549
-        //
2550
-        //       if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
2551
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2552
-        //         return
2553
-        //       }
2554
-        //
2555
-        //
2556
-        //
2557
-        //     }
2558
-        //
2559
-        //   }
2560
-        // }
2561 2568
 
2562 2569
         // if (this.curPrescriptions.order_status == 2) {
2563 2570
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')

+ 12 - 3
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue 查看文件

@@ -310,7 +310,7 @@
310 310
                 single_dose: prescription.doctor_advice[b].single_dose,
311 311
                 delivery_way: prescription.doctor_advice[b].delivery_way,
312 312
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
313
-                retail_price: prescription.doctor_advice[b].price.toString(),
313
+                // retail_price: prescription.doctor_advice[b].price.toString(),
314 314
                 remark: prescription.doctor_advice[b].remark,
315 315
                 day:prescription.doctor_advice[b].day,
316 316
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
@@ -320,6 +320,14 @@
320 320
                 id:prescription.doctor_advice[b].drug_id,
321 321
                 drug:prescription.doctor_advice[b].drug,
322 322
               };
323
+
324
+              if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
325
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
326
+              } else if(obj.prescribing_number_unit == prescription.doctor_advice[b].drug.max_unit){
327
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.retail_price
328
+              } else {
329
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
330
+              }
323 331
               tempAdvice.push(obj)
324 332
 
325 333
             }
@@ -336,7 +344,7 @@
336 344
                 execution_frequency: prescription.project[b].execution_frequency,
337 345
                 number_days: prescription.project[b].day,
338 346
                 total:prescription.project[b].count.toString(),
339
-                price:prescription.project[b].price,
347
+                // price:prescription.project[b].price,
340 348
                 remark:prescription.project[b].remark,
341 349
                 unit: prescription.project[b].unit,
342 350
                 type: prescription.project[b].type
@@ -348,11 +356,12 @@
348 356
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
349 357
                 obj['medical_code'] =  prescription.project[b].project.medical_code
350 358
                 obj['project_name'] =  prescription.project[b].project.project_name
351
-
359
+                obj['price'] = prescription.project[b].project.price
352 360
               }else if(prescription.project[b].type == 3){
353 361
                 obj['statistical_classification'] = ""
354 362
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
355 363
                 obj['project_name'] =  prescription.project[b].good_info.good_name
364
+                obj['price'] = prescription.project[b].good_info.packing_price
356 365
               }
357 366
 
358 367
               tempProject.push(obj)

+ 208 - 96
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -256,13 +256,13 @@
256 256
                       type="primary"
257 257
                       >打印</el-button
258 258
                     >
259
-                  </template>  
259
+                  </template>
260 260
                   <div id='printMain'>
261 261
                     <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
262 262
                     <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
263 263
                     <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
264 264
                   </div>
265
-                
265
+
266 266
             </el-dialog>
267 267
             <span slot="footer" class="dialog-footer">
268 268
         <el-button @click="centerDialogVisible = false">取 消</el-button>
@@ -1457,7 +1457,7 @@
1457 1457
                       single_dose: prescription.advices[b].single_dose,
1458 1458
                       delivery_way: prescription.advices[b].delivery_way,
1459 1459
                       execution_frequency: prescription.advices[b].execution_frequency,
1460
-                      retail_price: prescription.advices[b].price.toString(),
1460
+                      // retail_price: prescription.advices[b].price.toString(),
1461 1461
                       remark: prescription.advices[b].remark,
1462 1462
                       day: prescription.advices[b].day,
1463 1463
                       prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -1467,6 +1467,32 @@
1467 1467
                       id: prescription.advices[b].drug_id,
1468 1468
                       drug:prescription.advices[b].drug
1469 1469
                     };
1470
+
1471
+                    console.log("看看数据6:")
1472
+                    console.log(obj.prescribing_number_unit)
1473
+                    console.log(prescription.advices[b].drug.min_unit)
1474
+                    console.log(prescription.advices[b].drug.max_unit)
1475
+
1476
+
1477
+                    if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
1478
+                      obj['retail_price'] =  prescription.advices[b].drug.min_price
1479
+                      console.log("1")
1480
+
1481
+                      console.log(obj.retail_price)
1482
+
1483
+
1484
+                    } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
1485
+                      obj['retail_price'] =  prescription.advices[b].drug.retail_price
1486
+                      console.log("2")
1487
+
1488
+                      console.log(obj.retail_price)
1489
+
1490
+                    } else {
1491
+                      console.log("3")
1492
+                      obj['retail_price'] =  prescription.advices[b].drug.min_price
1493
+                      console.log(obj.retail_price)
1494
+
1495
+                    }
1470 1496
                     tempAdvice.push(obj)
1471 1497
                   }
1472 1498
 
@@ -1482,7 +1508,6 @@
1482 1508
                       execution_frequency: prescription.project[b].execution_frequency,
1483 1509
                       number_days: prescription.project[b].day,
1484 1510
                       total: prescription.project[b].count.toString(),
1485
-                      price: prescription.project[b].price,
1486 1511
                       remark: prescription.project[b].remark,
1487 1512
                       medical_code: prescription.project[b].project.medical_code,
1488 1513
                       unit: prescription.project[b].project.unit,
@@ -1493,11 +1518,16 @@
1493 1518
                       obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1494 1519
                       obj['medical_code'] = prescription.project[b].project.medical_code
1495 1520
                       obj['project_name'] = prescription.project[b].project.project_name
1521
+                      obj['price'] = prescription.project[b].project.price
1522
+
1523
+
1496 1524
 
1497 1525
                     } else if (prescription.project[b].type == 3) {
1498 1526
                       obj['statistical_classification'] = ""
1499 1527
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1500 1528
                       obj['project_name'] = prescription.project[b].good_info.good_name
1529
+                      obj['price'] = prescription.project[b].good_info.packing_price
1530
+
1501 1531
                     }
1502 1532
                     tempProject.push(obj)
1503 1533
                   }
@@ -1509,7 +1539,7 @@
1509 1539
                   }else if(this.schedule.schedule_type == 3){
1510 1540
                     var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1511 1541
                   }
1512
-                  
1542
+
1513 1543
 
1514 1544
 
1515 1545
                   let index = i + 1;
@@ -1533,13 +1563,7 @@
1533 1563
                     obj.med_type = parseInt(prescription.med_type)
1534 1564
                   }
1535 1565
                   if(obj.med_type== 0 || obj.med_type == "") {
1536
-                    if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
1537
-                      obj.med_type = 13
1538
-
1539
-                    } else {
1540 1566
                       obj.med_type = 14
1541
-
1542
-                    }
1543 1567
                   }
1544 1568
                   this.prescriptions.push(obj)
1545 1569
                 }
@@ -1556,13 +1580,7 @@
1556 1580
                   med_type:"",
1557 1581
 
1558 1582
                 };
1559
-                if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1560
-                  obj.med_type = 13
1561
-                }else{
1562
-                  obj.med_type = 14
1563
-
1564
-                }
1565
-
1583
+                obj.med_type = 14
1566 1584
                 this.prescriptions.push(obj)
1567 1585
 
1568 1586
               }
@@ -1800,7 +1818,7 @@
1800 1818
                             single_dose: prescription.advices[b].single_dose,
1801 1819
                             delivery_way: prescription.advices[b].delivery_way,
1802 1820
                             execution_frequency: prescription.advices[b].execution_frequency,
1803
-                            retail_price: prescription.advices[b].price.toString(),
1821
+                            // retail_price: prescription.advices[b].price.toString(),
1804 1822
                             remark: prescription.advices[b].remark,
1805 1823
                             day: prescription.advices[b].day,
1806 1824
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -1809,8 +1827,35 @@
1809 1827
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1810 1828
                             id: prescription.advices[b].drug_id,
1811 1829
                             drug:prescription.advices[b].drug
1812
-
1813 1830
                           };
1831
+                          console.log("看看数据1:")
1832
+                          console.log(obj.prescribing_number_unit)
1833
+                          console.log(prescription.advices[b].drug.min_unit)
1834
+                          console.log(prescription.advices[b].drug.max_unit)
1835
+
1836
+
1837
+
1838
+
1839
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
1840
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
1841
+                            console.log("1")
1842
+
1843
+                            console.log(obj.retail_price)
1844
+
1845
+
1846
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
1847
+                            obj['retail_price'] =  prescription.advices[b].drug.retail_price
1848
+                            console.log("2")
1849
+
1850
+                            console.log(obj.retail_price)
1851
+
1852
+                          } else {
1853
+                            console.log("3")
1854
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
1855
+                            console.log(obj.retail_price)
1856
+
1857
+                          }
1858
+
1814 1859
                           tempAdvice.push(obj)
1815 1860
                         }
1816 1861
 
@@ -1826,7 +1871,6 @@
1826 1871
                             execution_frequency: prescription.project[b].execution_frequency,
1827 1872
                             number_days: prescription.project[b].day,
1828 1873
                             total: prescription.project[b].count.toString(),
1829
-                            price: prescription.project[b].price,
1830 1874
                             remark: prescription.project[b].remark,
1831 1875
                             medical_code: prescription.project[b].project.medical_code,
1832 1876
                             unit: prescription.project[b].project.unit,
@@ -1837,11 +1881,16 @@
1837 1881
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1838 1882
                             obj['medical_code'] = prescription.project[b].project.medical_code
1839 1883
                             obj['project_name'] = prescription.project[b].project.project_name
1884
+                            obj['price'] = prescription.project[b].project.price
1885
+
1886
+
1840 1887
 
1841 1888
                           } else if (prescription.project[b].type == 3) {
1842 1889
                             obj['statistical_classification'] = ""
1843 1890
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1844 1891
                             obj['project_name'] = prescription.project[b].good_info.good_name
1892
+                            obj['price'] = prescription.project[b].good_info.packing_price
1893
+
1845 1894
                           }
1846 1895
                           tempProject.push(obj)
1847 1896
                         }
@@ -1857,9 +1906,6 @@
1857 1906
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1858 1907
                         }
1859 1908
 
1860
-
1861
-
1862
-
1863 1909
                         let index = i + 1;
1864 1910
                         let obj = {
1865 1911
                           id: 0,
@@ -1878,18 +1924,13 @@
1878 1924
 
1879 1925
                         }else{
1880 1926
 
1881
-                          obj.med_type =  parseInt(prescription.med_type)
1927
+                          obj.med_type = parseInt(prescription.med_type)
1882 1928
                         }
1883
-
1884
-
1885 1929
                         if(obj.med_type== 0 || obj.med_type == "") {
1886
-                          if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
1887
-                            obj.med_type = 13
1888 1930
 
1889
-                          } else {
1890 1931
                             obj.med_type = 14
1891 1932
 
1892
-                          }
1933
+
1893 1934
                         }
1894 1935
                         this.prescriptions.push(obj)
1895 1936
                       }
@@ -1906,12 +1947,9 @@
1906 1947
                         med_type:"",
1907 1948
 
1908 1949
                       };
1909
-                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1910
-                        obj.med_type = 13
1911
-                      }else{
1950
+
1912 1951
                         obj.med_type = 14
1913 1952
 
1914
-                      }
1915 1953
                       this.prescriptions.push(obj)
1916 1954
 
1917 1955
 
@@ -2234,7 +2272,7 @@
2234 2272
                             single_dose: prescription.advices[b].single_dose,
2235 2273
                             delivery_way: prescription.advices[b].delivery_way,
2236 2274
                             execution_frequency: prescription.advices[b].execution_frequency,
2237
-                            retail_price: prescription.advices[b].price.toString(),
2275
+                            // retail_price: prescription.advices[b].price.toString(),
2238 2276
                             remark: prescription.advices[b].remark,
2239 2277
                             day: prescription.advices[b].day,
2240 2278
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -2243,8 +2281,30 @@
2243 2281
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2244 2282
                             id: prescription.advices[b].drug_id,
2245 2283
                             drug:prescription.advices[b].drug
2246
-
2247 2284
                           };
2285
+                          console.log("看看数据2:")
2286
+                          console.log(obj.prescribing_number_unit)
2287
+                          console.log(prescription.advices[b].drug.min_unit)
2288
+                          console.log(prescription.advices[b].drug.max_unit)
2289
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
2290
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2291
+                            console.log("1")
2292
+
2293
+                            console.log(obj.retail_price)
2294
+
2295
+
2296
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
2297
+                            obj['retail_price'] =  prescription.advices[b].drug.retail_price
2298
+                            console.log("2")
2299
+
2300
+                            console.log(obj.retail_price)
2301
+
2302
+                          } else {
2303
+                            console.log("3")
2304
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2305
+                            console.log(obj.retail_price)
2306
+
2307
+                          }
2248 2308
                           tempAdvice.push(obj)
2249 2309
                         }
2250 2310
 
@@ -2260,7 +2320,6 @@
2260 2320
                             execution_frequency: prescription.project[b].execution_frequency,
2261 2321
                             number_days: prescription.project[b].day,
2262 2322
                             total: prescription.project[b].count.toString(),
2263
-                            price: prescription.project[b].price,
2264 2323
                             remark: prescription.project[b].remark,
2265 2324
                             medical_code: prescription.project[b].project.medical_code,
2266 2325
                             unit: prescription.project[b].project.unit,
@@ -2271,11 +2330,16 @@
2271 2330
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2272 2331
                             obj['medical_code'] = prescription.project[b].project.medical_code
2273 2332
                             obj['project_name'] = prescription.project[b].project.project_name
2333
+                            obj['price'] = prescription.project[b].project.price
2334
+
2335
+
2274 2336
 
2275 2337
                           } else if (prescription.project[b].type == 3) {
2276 2338
                             obj['statistical_classification'] = ""
2277 2339
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2278 2340
                             obj['project_name'] = prescription.project[b].good_info.good_name
2341
+                            obj['price'] = prescription.project[b].good_info.packing_price
2342
+
2279 2343
                           }
2280 2344
                           tempProject.push(obj)
2281 2345
                         }
@@ -2283,6 +2347,7 @@
2283 2347
 
2284 2348
                         var preTime = nowTime
2285 2349
 
2350
+
2286 2351
                         let index = i + 1;
2287 2352
                         let obj = {
2288 2353
                           id: 0,
@@ -2301,18 +2366,10 @@
2301 2366
 
2302 2367
                         }else{
2303 2368
 
2304
-                          obj.med_type =  parseInt(prescription.med_type)
2369
+                          obj.med_type = parseInt(prescription.med_type)
2305 2370
                         }
2306
-
2307
-
2308 2371
                         if(obj.med_type== 0 || obj.med_type == "") {
2309
-                          if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
2310
-                            obj.med_type = 13
2311
-
2312
-                          } else {
2313 2372
                             obj.med_type = 14
2314
-
2315
-                          }
2316 2373
                         }
2317 2374
                         this.prescriptions.push(obj)
2318 2375
                       }
@@ -2329,12 +2386,9 @@
2329 2386
                         med_type: "",
2330 2387
 
2331 2388
                       };
2332
-                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2333
-                        obj.med_type = 13
2334
-                      }else{
2389
+
2335 2390
                         obj.med_type = 14
2336 2391
 
2337
-                      }
2338 2392
                       this.prescriptions.push(obj)
2339 2393
 
2340 2394
                       // if(response.data.data.count <= 1 ){
@@ -2656,7 +2710,7 @@
2656 2710
                             single_dose: prescription.advices[b].single_dose,
2657 2711
                             delivery_way: prescription.advices[b].delivery_way,
2658 2712
                             execution_frequency: prescription.advices[b].execution_frequency,
2659
-                            retail_price: prescription.advices[b].price.toString(),
2713
+                            // retail_price: prescription.advices[b].price.toString(),
2660 2714
                             remark: prescription.advices[b].remark,
2661 2715
                             day: prescription.advices[b].day,
2662 2716
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -2665,8 +2719,30 @@
2665 2719
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2666 2720
                             id: prescription.advices[b].drug_id,
2667 2721
                             drug:prescription.advices[b].drug
2668
-
2669 2722
                           };
2723
+                          console.log("看看数据3:")
2724
+                          console.log(obj.prescribing_number_unit)
2725
+                          console.log(prescription.advices[b].drug.min_unit)
2726
+                          console.log(prescription.advices[b].drug.max_unit)
2727
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
2728
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2729
+                            console.log("1")
2730
+
2731
+                            console.log(obj.retail_price)
2732
+
2733
+
2734
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
2735
+                            obj['retail_price'] =  prescription.advices[b].drug.retail_price
2736
+                            console.log("2")
2737
+
2738
+                            console.log(obj.retail_price)
2739
+
2740
+                          } else {
2741
+                            console.log("3")
2742
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2743
+                            console.log(obj.retail_price)
2744
+
2745
+                          }
2670 2746
                           tempAdvice.push(obj)
2671 2747
                         }
2672 2748
 
@@ -2682,7 +2758,6 @@
2682 2758
                             execution_frequency: prescription.project[b].execution_frequency,
2683 2759
                             number_days: prescription.project[b].day,
2684 2760
                             total: prescription.project[b].count.toString(),
2685
-                            price: prescription.project[b].price,
2686 2761
                             remark: prescription.project[b].remark,
2687 2762
                             medical_code: prescription.project[b].project.medical_code,
2688 2763
                             unit: prescription.project[b].project.unit,
@@ -2693,11 +2768,16 @@
2693 2768
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2694 2769
                             obj['medical_code'] = prescription.project[b].project.medical_code
2695 2770
                             obj['project_name'] = prescription.project[b].project.project_name
2771
+                            obj['price'] = prescription.project[b].project.price
2772
+
2773
+
2696 2774
 
2697 2775
                           } else if (prescription.project[b].type == 3) {
2698 2776
                             obj['statistical_classification'] = ""
2699 2777
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2700 2778
                             obj['project_name'] = prescription.project[b].good_info.good_name
2779
+                            obj['price'] = prescription.project[b].good_info.packing_price
2780
+
2701 2781
                           }
2702 2782
                           tempProject.push(obj)
2703 2783
                         }
@@ -2727,13 +2807,8 @@
2727 2807
                           obj.med_type = parseInt(prescription.med_type)
2728 2808
                         }
2729 2809
                         if(obj.med_type== 0 || obj.med_type == "") {
2730
-                          if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
2731
-                            obj.med_type = 13
2732
-
2733
-                          } else {
2734 2810
                             obj.med_type = 14
2735 2811
 
2736
-                          }
2737 2812
                         }
2738 2813
                         this.prescriptions.push(obj)
2739 2814
                       }
@@ -2750,12 +2825,10 @@
2750 2825
                         med_type: "",
2751 2826
 
2752 2827
                       };
2753
-                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2754
-                        obj.med_type = 13
2755
-                      }else{
2828
+
2756 2829
                         obj.med_type = 14
2757 2830
 
2758
-                      }
2831
+
2759 2832
                       this.prescriptions.push(obj)
2760 2833
 
2761 2834
                       // if(response.data.data.count <= 1 ){
@@ -3140,7 +3213,7 @@
3140 3213
                           single_dose: prescription.advices[b].single_dose,
3141 3214
                           delivery_way: prescription.advices[b].delivery_way,
3142 3215
                           execution_frequency: prescription.advices[b].execution_frequency,
3143
-                          retail_price: prescription.advices[b].price.toString(),
3216
+                          // retail_price: prescription.advices[b].price.toString(),
3144 3217
                           remark: prescription.advices[b].remark,
3145 3218
                           day: prescription.advices[b].day,
3146 3219
                           prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -3149,8 +3222,30 @@
3149 3222
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3150 3223
                           id: prescription.advices[b].drug_id,
3151 3224
                           drug:prescription.advices[b].drug
3152
-
3153 3225
                         };
3226
+                        console.log("看看数据4:")
3227
+                        console.log(obj.prescribing_number_unit)
3228
+                        console.log(prescription.advices[b].drug.min_unit)
3229
+                        console.log(prescription.advices[b].drug.max_unit)
3230
+                        if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
3231
+                          obj['retail_price'] =  prescription.advices[b].drug.min_price
3232
+                          console.log("1")
3233
+
3234
+                          console.log(obj.retail_price)
3235
+
3236
+
3237
+                        } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
3238
+                          obj['retail_price'] =  prescription.advices[b].drug.retail_price
3239
+                          console.log("2")
3240
+
3241
+                          console.log(obj.retail_price)
3242
+
3243
+                        } else {
3244
+                          console.log("3")
3245
+                          obj['retail_price'] =  prescription.advices[b].drug.min_price
3246
+                          console.log(obj.retail_price)
3247
+
3248
+                        }
3154 3249
                         tempAdvice.push(obj)
3155 3250
                       }
3156 3251
 
@@ -3166,7 +3261,6 @@
3166 3261
                           execution_frequency: prescription.project[b].execution_frequency,
3167 3262
                           number_days: prescription.project[b].day,
3168 3263
                           total: prescription.project[b].count.toString(),
3169
-                          price: prescription.project[b].price,
3170 3264
                           remark: prescription.project[b].remark,
3171 3265
                           medical_code: prescription.project[b].project.medical_code,
3172 3266
                           unit: prescription.project[b].project.unit,
@@ -3177,11 +3271,16 @@
3177 3271
                           obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3178 3272
                           obj['medical_code'] = prescription.project[b].project.medical_code
3179 3273
                           obj['project_name'] = prescription.project[b].project.project_name
3274
+                          obj['price'] = prescription.project[b].project.price
3275
+
3276
+
3180 3277
 
3181 3278
                         } else if (prescription.project[b].type == 3) {
3182 3279
                           obj['statistical_classification'] = ""
3183 3280
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3184 3281
                           obj['project_name'] = prescription.project[b].good_info.good_name
3282
+                          obj['price'] = prescription.project[b].good_info.packing_price
3283
+
3185 3284
                         }
3186 3285
                         tempProject.push(obj)
3187 3286
                       }
@@ -3197,6 +3296,7 @@
3197 3296
                         preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
3198 3297
                       }
3199 3298
 
3299
+
3200 3300
                       let index = i + 1;
3201 3301
                       let obj = {
3202 3302
                         id: 0,
@@ -3218,14 +3318,10 @@
3218 3318
                         obj.med_type = parseInt(prescription.med_type)
3219 3319
                       }
3220 3320
                       if(obj.med_type== 0 || obj.med_type == "") {
3221
-                        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
3222
-                          obj.med_type = 13
3223 3321
 
3224
-                        } else {
3225 3322
                           obj.med_type = 14
3226 3323
 
3227 3324
                         }
3228
-                      }
3229 3325
                       this.prescriptions.push(obj)
3230 3326
                     }
3231 3327
 
@@ -3241,12 +3337,10 @@
3241 3337
                       med_type: "",
3242 3338
 
3243 3339
                     };
3244
-                    if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3245
-                      obj.med_type = 13
3246
-                    }else{
3340
+
3247 3341
                       obj.med_type = 14
3248 3342
 
3249
-                    }
3343
+
3250 3344
                     this.prescriptions.push(obj)
3251 3345
 
3252 3346
                     // if(response.data.data.count <= 1 ){
@@ -3530,7 +3624,7 @@
3530 3624
                   }
3531 3625
 
3532 3626
                   var preTime = "";
3533
-                  
3627
+
3534 3628
 
3535 3629
                   if (prescription.pre_time == 0) {
3536 3630
                     // preTime = nowTime
@@ -3576,7 +3670,7 @@
3576 3670
                         single_dose: prescription.advices[b].single_dose,
3577 3671
                         delivery_way: prescription.advices[b].delivery_way,
3578 3672
                         execution_frequency: prescription.advices[b].execution_frequency,
3579
-                        retail_price: prescription.advices[b].price.toString(),
3673
+                        // retail_price: prescription.advices[b].price.toString(),
3580 3674
                         remark: prescription.advices[b].remark,
3581 3675
                         day: prescription.advices[b].day,
3582 3676
                         prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -3585,8 +3679,30 @@
3585 3679
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3586 3680
                         id: prescription.advices[b].drug_id,
3587 3681
                         drug:prescription.advices[b].drug
3588
-
3589 3682
                       };
3683
+                      console.log("看看数据5:")
3684
+                      console.log(obj.prescribing_number_unit)
3685
+                      console.log(prescription.advices[b].drug.min_unit)
3686
+                      console.log(prescription.advices[b].drug.max_unit)
3687
+                      if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
3688
+                        obj['retail_price'] =  prescription.advices[b].drug.min_price
3689
+                        console.log("1")
3690
+
3691
+                        console.log(obj.retail_price)
3692
+
3693
+
3694
+                      } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
3695
+                        obj['retail_price'] =  prescription.advices[b].drug.retail_price
3696
+                        console.log("2")
3697
+
3698
+                        console.log(obj.retail_price)
3699
+
3700
+                      } else {
3701
+                        console.log("3")
3702
+                        obj['retail_price'] =  prescription.advices[b].drug.min_price
3703
+                        console.log(obj.retail_price)
3704
+
3705
+                      }
3590 3706
                       tempAdvice.push(obj)
3591 3707
                     }
3592 3708
 
@@ -3602,7 +3718,6 @@
3602 3718
                         execution_frequency: prescription.project[b].execution_frequency,
3603 3719
                         number_days: prescription.project[b].day,
3604 3720
                         total: prescription.project[b].count.toString(),
3605
-                        price: prescription.project[b].price,
3606 3721
                         remark: prescription.project[b].remark,
3607 3722
                         medical_code: prescription.project[b].project.medical_code,
3608 3723
                         unit: prescription.project[b].project.unit,
@@ -3613,11 +3728,16 @@
3613 3728
                         obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3614 3729
                         obj['medical_code'] = prescription.project[b].project.medical_code
3615 3730
                         obj['project_name'] = prescription.project[b].project.project_name
3731
+                        obj['price'] = prescription.project[b].project.price
3732
+
3733
+
3616 3734
 
3617 3735
                       } else if (prescription.project[b].type == 3) {
3618 3736
                         obj['statistical_classification'] = ""
3619 3737
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3620 3738
                         obj['project_name'] = prescription.project[b].good_info.good_name
3739
+                        obj['price'] = prescription.project[b].good_info.packing_price
3740
+
3621 3741
                       }
3622 3742
                       tempProject.push(obj)
3623 3743
                     }
@@ -3652,16 +3772,11 @@
3652 3772
 
3653 3773
                     }else{
3654 3774
 
3655
-                      obj.med_type =  parseInt(prescription.med_type)
3775
+                      obj.med_type = parseInt(prescription.med_type)
3656 3776
                     }
3657 3777
                     if(obj.med_type== 0 || obj.med_type == "") {
3658
-                      if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
3659
-                        obj.med_type = 13
3660
-
3661
-                      } else {
3662 3778
                         obj.med_type = 14
3663 3779
 
3664
-                      }
3665 3780
                     }
3666 3781
                     this.prescriptions.push(obj)
3667 3782
                   }
@@ -3679,12 +3794,9 @@
3679 3794
 
3680 3795
 
3681 3796
                   };
3682
-                  if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3683
-                    obj.med_type = 13
3684
-                  }else{
3797
+
3685 3798
                     obj.med_type = 14
3686 3799
 
3687
-                  }
3688 3800
                   this.prescriptions.push(obj)
3689 3801
 
3690 3802
                   // if(response.data.data.count <= 1 ){
@@ -3932,7 +4044,7 @@
3932 4044
               this.tableData2 = arr2
3933 4045
               this.tableData4 = arr4
3934 4046
               this.tableData3 = [arr3[0]]
3935
-              
4047
+
3936 4048
             }else{
3937 4049
               var list = response.data.data.list
3938 4050
               let arr = []
@@ -3945,10 +4057,10 @@
3945 4057
               }
3946 4058
               console.log('arrrrrrrrrr',arr)
3947 4059
               this.selecting_schs = arr
3948
-              
4060
+
3949 4061
               this.savePrint()
3950 4062
             }
3951
-            
4063
+
3952 4064
           }
3953 4065
         })
3954 4066
       },
@@ -4009,7 +4121,7 @@
4009 4121
           };
4010 4122
           this.paramsObj = obj1;
4011 4123
         }
4012
-        
4124
+
4013 4125
         //治疗
4014 4126
         var arr2 = [];
4015 4127
         if(this.selecting_schs2.length > 0){
@@ -4039,10 +4151,10 @@
4039 4151
           };
4040 4152
           this.paramsObj3 = obj3;
4041 4153
         }
4042
-          
4043
-        
4044
-        
4045
-        
4154
+
4155
+
4156
+
4157
+
4046 4158
         this.innerVisible = true
4047 4159
 
4048 4160
         // if(this.index == 20){

+ 1 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue 查看文件

@@ -210,7 +210,7 @@
210 210
           this.$message.error('请选择病人')
211 211
           return
212 212
         }
213
-        this.$router.push('/outpatientDoctorStation/prescriptionTemplatedetail?id=' + 0 + '&patient_id=' + this.patient_id)
213
+        this.$router.push('/outpatientDoctorStation/prescriptionTemplatedetail?id=' + 0 + '&patient_id=' + this.patient_id+ '&patient_name=' + this.patient_name)
214 214
 
215 215
       }
216 216
     },

+ 135 - 128
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue 查看文件

@@ -3,8 +3,8 @@
3 3
 
4 4
         <div style="height: calc(100% - 0px);display: flex;flex-direction: column;">
5 5
             <div style="display:flex;justify-content: space-between;align-items:center;margin:10px 0;padding:0 10px;color:#606266;">
6
-              <div style="font-size:14px;">姓名:{{ $route.query.patient_name }}</div>
7
-              <el-button size="small" @click="save" type="primary">保存</el-button>
6
+                <div style="font-size:14px;">姓名:{{ $route.query.patient_name }}</div>
7
+                <el-button size="small" @click="save" type="primary">保存</el-button>
8 8
             </div>
9 9
 
10 10
             <div class="mainCenter" style="padding:0 10px;" v-loading="loading">
@@ -38,15 +38,16 @@
38 38
                                     :name="item.name"
39 39
                             >
40 40
 
41
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >
42
-                                    <el-option
43
-                                            v-for="(item,index) in medical_care"
44
-                                            :key="index"
45
-                                            :label="item.label"
46
-                                            :value="item.value">
47
-                                    </el-option>
48
-                                </el-select>
49
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-else @change="changevalue" >
41
+                                <!--<el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >-->
42
+                                <!--<el-option-->
43
+                                <!--v-for="(item,index) in medical_care"-->
44
+                                <!--:key="index"-->
45
+                                <!--:label="item.label"-->
46
+                                <!--:value="item.value">-->
47
+                                <!--</el-option>-->
48
+                                <!--</el-select>-->
49
+                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
50
+                                           @change="changevalue">
50 51
                                     <el-option
51 52
                                             v-for="(item,index) in register"
52 53
                                             :key="index"
@@ -131,74 +132,74 @@
131 132
                             </el-tabs>
132 133
                         </div>
133 134
                         <div style="height:100%;" v-show="showTwo">
134
-                        <div style="height:100%;" v-show="showTwo">
135
-                            <el-tabs class="rightTabs" v-model="activeName">
136
-                                <el-tab-pane label="项目列表" name="1">
137
-                                    <div style="margin-bottom:5px;">
138
-                                        <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
139
-                                        <el-input style="width:50%;" @input="searchProjectAction"
140
-                                                  @keyup.enter.native='searchProjectAction'
141
-                                                  v-model.trim="search_project_keyword"
142
-                                                  placeholder="请输入项目名称"></el-input>
143
-                                        <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
144
-                                                   @change="changeClass">
145
-                                            <el-option
146
-                                                    label="全部"
147
-                                                    value="0">
148
-                                            </el-option>
149
-                                            <el-option
150
-                                                    v-for="(item, index) in getDictionaryDataConfig('system','cost_classify')"
151
-                                                    :key="index"
152
-                                                    :label="item.name"
153
-                                                    :value="item.id">
154
-                                            </el-option>
155
-                                        </el-select>
156
-                                    </div>
157
-                                    <div style="width: 100%;flex:1;overflow-y: auto;">
158
-                                        <el-table ref="tables"
159
-                                                  :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
160
-                                                  :data="tabProject" border @select='selectChange'
161
-                                                  :row-style="{ color: '#303133' }"
162
-                                                  @select-all="changeAllGoodInfoTableDataTwo"
163
-                                                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
164
-                                                  highlight-current-row>
165
-                                            <el-table-column type="selection" width="40"
166
-                                                             align="center"></el-table-column>
167
-                                            <el-table-column prop="name" label="名称">
168
-                                                <template slot-scope="scope">{{ scope.row.project_name }}</template>
169
-                                            </el-table-column>
170
-                                            <el-table-column label="规格" width="60">
171
-                                                <template slot-scope="scope">{{ scope.row.single_dose }}</template>
172
-                                            </el-table-column>
173
-                                            <el-table-column label="单价" width="40">
174
-                                                <template slot-scope="scope">{{ scope.row.price }}</template>
175
-                                            </el-table-column>
176
-                                        </el-table>
177
-                                    </div>
178
-                                </el-tab-pane>
179
-                                <el-tab-pane label="项目组套" name="2">
180
-                                    <div style="width: 100%;flex:1;overflow-y: auto;">
181
-                                        <el-table :data="tabPrjectTeam" border ref="tabProjectTeam"
182
-                                                  :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
183
-                                                  :row-style="{ color: '#303133' }"
184
-                                                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
185
-                                                  highlight-current-row
186
-                                                  @select='selectTeam'>
187
-                                            <el-table-column type="selection" width="40"
188
-                                                             align="center"></el-table-column>
189
-                                            <el-table-column prop="name" label="名称">
190
-                                                <template slot-scope="scope">{{scope.row.project_team}}</template>
191
-                                            </el-table-column>
192
-                                        </el-table>
193
-                                    </div>
194
-                                </el-tab-pane>
195
-                            </el-tabs>
196
-                        </div>
135
+                            <div style="height:100%;" v-show="showTwo">
136
+                                <el-tabs class="rightTabs" v-model="activeName">
137
+                                    <el-tab-pane label="项目列表" name="1">
138
+                                        <div style="margin-bottom:5px;">
139
+                                            <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
140
+                                            <el-input style="width:50%;" @input="searchProjectAction"
141
+                                                      @keyup.enter.native='searchProjectAction'
142
+                                                      v-model.trim="search_project_keyword"
143
+                                                      placeholder="请输入项目名称"></el-input>
144
+                                            <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
145
+                                                       @change="changeClass">
146
+                                                <el-option
147
+                                                        label="全部"
148
+                                                        value="0">
149
+                                                </el-option>
150
+                                                <el-option
151
+                                                        v-for="(item, index) in getDictionaryDataConfig('system','cost_classify')"
152
+                                                        :key="index"
153
+                                                        :label="item.name"
154
+                                                        :value="item.id">
155
+                                                </el-option>
156
+                                            </el-select>
157
+                                        </div>
158
+                                        <div style="width: 100%;flex:1;overflow-y: auto;">
159
+                                            <el-table ref="tables"
160
+                                                      :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
161
+                                                      :data="tabProject" border @select='selectChange'
162
+                                                      :row-style="{ color: '#303133' }"
163
+                                                      @select-all="changeAllGoodInfoTableDataTwo"
164
+                                                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
165
+                                                      highlight-current-row>
166
+                                                <el-table-column type="selection" width="40"
167
+                                                                 align="center"></el-table-column>
168
+                                                <el-table-column prop="name" label="名称">
169
+                                                    <template slot-scope="scope">{{ scope.row.project_name }}</template>
170
+                                                </el-table-column>
171
+                                                <el-table-column label="规格" width="60">
172
+                                                    <template slot-scope="scope">{{ scope.row.single_dose }}</template>
173
+                                                </el-table-column>
174
+                                                <el-table-column label="单价" width="40">
175
+                                                    <template slot-scope="scope">{{ scope.row.price }}</template>
176
+                                                </el-table-column>
177
+                                            </el-table>
178
+                                        </div>
179
+                                    </el-tab-pane>
180
+                                    <el-tab-pane label="项目组套" name="2">
181
+                                        <div style="width: 100%;flex:1;overflow-y: auto;">
182
+                                            <el-table :data="tabPrjectTeam" border ref="tabProjectTeam"
183
+                                                      :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
184
+                                                      :row-style="{ color: '#303133' }"
185
+                                                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
186
+                                                      highlight-current-row
187
+                                                      @select='selectTeam'>
188
+                                                <el-table-column type="selection" width="40"
189
+                                                                 align="center"></el-table-column>
190
+                                                <el-table-column prop="name" label="名称">
191
+                                                    <template slot-scope="scope">{{scope.row.project_team}}</template>
192
+                                                </el-table-column>
193
+                                            </el-table>
194
+                                        </div>
195
+                                    </el-tab-pane>
196
+                                </el-tabs>
197
+                            </div>
197 198
                         </div>
198 199
                     </el-tabs>
199 200
 
200 201
 
201
-                <template>
202
+                    <template>
202 203
 
203 204
 
204 205
                         <div class="comfirmBox">
@@ -290,7 +291,7 @@
290 291
         crumbs: [
291 292
           { path: false, name: '门诊医生站' },
292 293
           { path: false, name: '处方模版' },
293
-          { path: false, name: '模版详情' },
294
+          { path: false, name: '模版详情' }
294 295
         ],
295 296
         tempForm: {
296 297
           name: '',
@@ -394,6 +395,7 @@
394 395
         }
395 396
 
396 397
         for (let i = 0; i < this.prescriptions.length; i++) {
398
+          console.log(this.prescriptions[i].med_type)
397 399
           if (this.prescriptions[i].med_type == 0 || this.prescriptions[i].med_type == '') {
398 400
             this.$message.error('处方医疗类型不能为空')
399 401
             return
@@ -409,6 +411,9 @@
409 411
         }
410 412
 
411 413
         for (let i = 0; i < this.prescriptions.length; i++) {
414
+
415
+          this.prescriptions[i].med_type = parseInt(this.prescriptions[i].med_type)
416
+
412 417
           if (this.prescriptions[i].advices.length > 0 && this.prescriptions[i].project.length == 0) {
413 418
             this.prescriptions[i]['type'] = 1
414 419
           }
@@ -436,7 +441,7 @@
436 441
         createdTemplate(params, data).then(response => {
437 442
           if (response.data.state == 1) {
438 443
             this.$message.success('保存成功')
439
-          }else{
444
+          } else {
440 445
             this.$message.error(response.data.msg)
441 446
           }
442 447
         })
@@ -545,7 +550,7 @@
545 550
         } else {
546 551
           let arr = []
547 552
           for (let i = 0; i < this.allProject.length; i++) {
548
-            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 ) {
553
+            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
549 554
               arr = arr.concat(this.allProject[i])
550 555
             }
551 556
           }
@@ -1042,7 +1047,8 @@
1042 1047
           '-' +
1043 1048
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1044 1049
           ':' + (min < 10 ? '0' + min : min)
1045
-        this.prescriptions.push({
1050
+
1051
+        let obj = {
1046 1052
           id: 0,
1047 1053
           name: newTabName,
1048 1054
           order_status: 0,
@@ -1050,9 +1056,19 @@
1050 1056
           project: [],
1051 1057
           addition: [],
1052 1058
           pre_time: this.prescriptions[0].pre_time
1059
+
1053 1060
           // pre_time: nowTime
1054 1061
 
1055
-        })
1062
+        }
1063
+
1064
+
1065
+
1066
+          obj.med_type = 14
1067
+
1068
+
1069
+
1070
+        this.prescriptions.push(obj)
1071
+
1056 1072
         this.editableTabsValue = newTabName
1057 1073
         this.curPrescriptions = this.prescriptions[this.prescriptions.length - 1]
1058 1074
         this.curStatus = 0
@@ -1263,40 +1279,29 @@
1263 1279
         //   this.$refs.multipleTable.clearSelection()
1264 1280
         //   return
1265 1281
         // }
1266
-        // if(this.curStatus == 1  && this.rightTab == 2){
1267
-        //   for(let i = 0; i < this.curDrugs.length; i++){
1268
-        //     if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
1269
-        //
1270
-        //       if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
1271
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1272
-        //         return
1273
-        //       }
1274
-        //
1275
-        //       if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
1276
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1277
-        //         return
1278
-        //       }
1279
-        //
1280
-        //
1281
-        //     }else{
1282
-        //
1283
-        //       if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
1284
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1285
-        //         return
1286
-        //       }
1287
-        //
1288
-        //       if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
1289
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1290
-        //         return
1291
-        //       }
1292
-        //
1293
-        //
1294
-        //
1295
-        //     }
1296
-        //
1297
-        //   }
1298
-        // }
1282
+        if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1283
+          if (this.$store.getters.xt_user.org_id == 10138) {
1284
+            for (let i = 0; i < this.curDrugs.length; i++) {
1285
+              if (this.curPrescriptions.med_type == 13 && this.curDrugs[i].is_special_diseases != 1) {
1286
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1287
+                return
1288
+              }
1299 1289
 
1290
+            }
1291
+          }
1292
+        }
1293
+
1294
+        if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
1295
+          if (this.$store.getters.xt_user.org_id == 10138) {
1296
+            for (let i = 0; i < this.curDrugs.length; i++) {
1297
+              if (this.curPrescriptions.med_type == 13 && this.curDrugs[i].is_special_diseases != 1) {
1298
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1299
+                return
1300
+              }
1301
+
1302
+            }
1303
+          }
1304
+        }
1300 1305
         if (this.curStatus == 1 && this.rightTab == 2) {
1301 1306
           this.$message.error('改处方是药品,无法添加项目')
1302 1307
           this.teamList = []
@@ -1397,12 +1402,12 @@
1397 1402
                   single_dose: temp[b].single_dose,
1398 1403
                   delivery_way: temp[b].delivery_way,
1399 1404
                   execution_frequency: temp[b].execution_frequency,
1400
-                  retail_price: temp[b].retail_price.toString(),
1405
+                  retail_price: temp[b].prescribing_number_unit == temp[b].max_unit ? temp[b].retail_price.toString() : temp[b].min_price.toString(),
1401 1406
                   remark: '',
1402 1407
                   day: 1,
1403 1408
                   prescribing_number: temp[b].prescribing_number,
1404
-                  single_dose_unit: temp[b].min_unit,
1405
-                  prescribing_number_unit: temp[b].max_unit,
1409
+                  single_dose_unit: temp[b].dose_unit,
1410
+                  prescribing_number_unit: temp[b].prescribing_number_unit,
1406 1411
                   medical_insurance_number: temp[b].medical_insurance_number,
1407 1412
                   drug: temp[b]
1408 1413
                 }
@@ -1510,7 +1515,7 @@
1510 1515
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1511 1516
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1512 1517
                     id: prescription.advices[b].drug_id,
1513
-                    drug: prescription.advices[b].drug,
1518
+                    drug: prescription.advices[b].drug
1514 1519
                   }
1515 1520
                   tempAdvice.push(obj)
1516 1521
                 }
@@ -1556,26 +1561,22 @@
1556 1561
                   advices: tempAdvice,
1557 1562
                   project: tempProject,
1558 1563
                   addition: tempAddition,
1559
-                  order_status: 1,
1564
+                  order_status: 1
1560 1565
                   // pre_time: preTime
1561 1566
                 }
1562 1567
 
1563
-                if(prescription.med_type == "" || prescription.med_type == 0){
1568
+                if (prescription.med_type == '' || prescription.med_type == 0) {
1564 1569
 
1565
-                  obj['med_type'] = ""
1566
-                }else{
1570
+                  obj['med_type'] = ''
1571
+                } else {
1567 1572
 
1568 1573
                   obj['med_type'] = parseInt(prescription.med_type)
1569 1574
 
1570 1575
                 }
1571 1576
 
1572
-
1573 1577
                 this.prescriptions.push(obj)
1574 1578
               }
1575
-              if (this.prescriptions.length > 0) {
1576
-                this.curPrescriptions = this.prescriptions[0]
1577
-                console.log(  this.curPrescriptions)
1578
-              }
1579
+              this.curPrescriptions = this.prescriptions[0]
1579 1580
 
1580 1581
             } else {
1581 1582
               let obj = {
@@ -1585,8 +1586,14 @@
1585 1586
                 project: [],
1586 1587
                 addition: [],
1587 1588
                 order_status: 0,
1588
-                med_type:'',
1589
+                med_type: ''
1589 1590
               }
1591
+
1592
+
1593
+                obj.med_type = 14
1594
+
1595
+
1596
+
1590 1597
               this.prescriptions.push(obj)
1591 1598
               this.curPrescriptions = this.prescriptions[0]
1592 1599
             }
@@ -1673,7 +1680,7 @@
1673 1680
           }
1674 1681
         })
1675 1682
       },
1676
-      changevalue(val){
1683
+      changevalue(val) {
1677 1684
 
1678 1685
         this.$forceUpdate()
1679 1686
 

文件差異過大導致無法顯示
+ 539 - 597
src/xt_pages/outpatientRegistration/index.vue


+ 226 - 226
src/xt_pages/outpatientRegistration/registrationHistory.vue 查看文件

@@ -3,232 +3,232 @@
3 3
         <div class="position">
4 4
             <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
         </div>
6
-        <div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138"
7
-             class="app-container">
8
-            <div class="cell clearfix">
9
-                <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
10
-                <el-autocomplete
11
-                        style="margin:16px 5px"
12
-                        popper-class="my-autocomplete"
13
-                        v-model.trim="search_input"
14
-                        :fetch-suggestions="querySearchAsync"
15
-                        :trigger-on-focus="false"
16
-                        placeholder="病人名字或者透析号"
17
-                        @select="handleSelect"
18
-                >
19
-                    <i class="el-icon-search el-input__icon" slot="suffix"> </i>
20
-                    <template slot-scope="{ item }">
21
-                        <div class="name">{{ item.name }}</div>
22
-                    </template>
23
-                </el-autocomplete>
24
-                <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"
25
-                           @click="searchAction">搜索
26
-                </el-button>
27
-                <!-- <el-date-picker
28
-                v-model="value1"
29
-                @change="changeTime"
30
-                style="margin-right:10px;"
31
-                type="daterange"
32
-                range-separator="-"
33
-                start-placeholder="开始日期"
34
-                end-placeholder="结束日期">
35
-                </el-date-picker> -->
36
-                <el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
37
-                                placeholder="选择时间" v-model="start_time" style="width:200px"
38
-                                @change="changeStart"
39
-                >
40
-                </el-date-picker>
41
-                -
42
-                <el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
43
-                                placeholder="选择时间" v-model="end_time" style="width:200px"
44
-                                @change="changeEnd"
45
-                >
46
-                </el-date-picker>
47
-                <label class="title"><span class="name">挂号类型</span> : </label>
48
-                <el-select v-model="register_type" placeholder="请选择" style="width:150px;" @change="changeRegister">
49
-                    <el-option
50
-                            v-for="item in register"
51
-                            :key="item.value"
52
-                            :label="item.label"
53
-                            :value="item.value">
54
-                    </el-option>
55
-                </el-select>
56
-            </div>
57
-            <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
58
-                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
59
-                      highlight-current-row>
60
-                <el-table-column align="center" type="index" label="序号" width="60">
61
-                </el-table-column>
62
-                <el-table-column align="center" prop="name" label="时间" width="100">
63
-                    <template slot-scope="scope">{{getTime(scope.row.ctime,'{y}-{m}-{d} {h}:{i}:{s}')}}</template>
64
-                </el-table-column>
65
-                <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
66
-                    <template slot-scope="scope">{{scope.row.name }}</template>
67
-                </el-table-column>
68
-                <el-table-column align="center" prop="name" label="科室" width="80">
69
-                    <template slot-scope="scope">{{getDepartMent(scope.row.departments)}}</template>
70
-                </el-table-column>
71
-                <el-table-column align="center" prop="name" label="挂号类型" width="90">
72
-                    <template slot-scope="scope">
73
-                        <span v-if="scope.row.register_type == 1">普通</span>
74
-                        <span v-if="scope.row.register_type == 2">主治</span>
75
-                        <span v-if="scope.row.register_type == 3">主任</span>
76
-                        <span v-if="scope.row.register_type == 4">免收诊金</span>
77
-                        <span v-if="scope.row.register_type == 5">专家</span>
78
-                    </template>
79
-                </el-table-column>
80
-                <el-table-column align="center" prop="name" label="就诊号" width="80">
81
-                    <template slot-scope="scope">
82
-                        {{scope.row.number}}
83
-                    </template>
84
-                </el-table-column>
85
-                <el-table-column align="center" prop="name" label="证件号" width='180'>
86
-                    <template slot-scope="scope">{{ scope.row.id_card_no }}</template>
87
-                </el-table-column>
88
-                <el-table-column align="center" label="社保类型">
89
-                    <template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>
90
-                </el-table-column>
91
-                <el-table-column align="center" prop="name" label="医生" width="80">
92
-                    <template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>
93
-                </el-table-column>
94
-                <el-table-column align="center" prop="name" label="挂号费" width="70">
95
-                    <template slot-scope="scope">{{ scope.row.register_cost }}</template>
96
-                </el-table-column>
97
-                <el-table-column align="center" prop="name" label="诊疗费" width="70">
98
-                    <template slot-scope="scope">{{ scope.row.treatment_cost }}</template>
99
-                </el-table-column>
100
-                <el-table-column align="center" prop="name" label="工本费" width="70">
101
-                    <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
102
-                </el-table-column>
103
-                <el-table-column align="center" prop="name" label="结算类型" width="70">
104
-                    <template slot-scope="scope">{{getBanlance(scope.row.balance_accounts_type) }}</template>
105
-                </el-table-column>
106
-                <el-table-column align="center" prop="name" label="操作人" width="70">
107
-                    <template slot-scope="scope">{{creator}}</template>
108
-                </el-table-column>
109
-                <el-table-column align="center" prop="name" label="操作" width="180">
110
-                    <template slot-scope="scope">
111
-                        <!--<el-button size="mini" type="primary" v-if=" scope.row.record_date < startUnix" :disabled="true">已过号</el-button>-->
112
-                        <el-button size="mini" type="primary" v-if="scope.row.status == 1"
113
-                                   @click="toReturnSZPatient(scope.row)">退号
114
-                        </el-button>
115
-                        <el-button size="mini" type="primary" :disabled="true" v-if="scope.row.status == 0">已退号
116
-                        </el-button>
117
-
118
-                        <!--<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>-->
119
-                        <!--<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>-->
120
-                        <!--<el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>-->
121
-                    </template>
122
-                </el-table-column>
123
-            </el-table>
124
-
125
-            <el-pagination
126
-                    @size-change="handleSizeChange"
127
-                    @current-change="handleCurrentChange"
128
-                    :page-sizes="[10, 50, 100]"
129
-                    :page-size="10"
130
-                    background
131
-                    style="margin-top:20px;float: right"
132
-                    layout="total, sizes, prev, pager, next, jumper"
133
-                    :total="total"
134
-            >
135
-            </el-pagination>
136
-            <el-dialog
137
-                    title="挂号历史详情"
138
-                    :visible.sync="dialogVisible"
139
-                    width="1100px"
140
-                    :before-close="handleClose">
141
-                <div>
142
-                    <div class="formMain">
143
-                        <el-form class="basicForm" :model="form" ref="form" label-width="130px">
144
-                            <el-form-item label="患者姓名:" prop="name">
145
-                                <div>{{ form.name }}</div>
146
-                            </el-form-item>
147
-
148
-                            <el-form-item label="性别:" prop="gender">
149
-                                <div v-if="form.gender == 1">男</div>
150
-                                <div v-if="form.gender == 2">女</div>
151
-                            </el-form-item>
152
-
153
-                            <el-form-item label="年龄:" prop="age">
154
-                                <div>{{ form.age }}</div>
155
-                            </el-form-item>
156
-
157
-
158
-                            <el-form-item label="出生日期:" prop="birthday">
159
-                                <div>{{ getTime(form.birthday,'{y}-{m}-{d}') }}</div>
160
-                            </el-form-item>
161
-
162
-                            <el-form-item label="手机号码:" prop="phone">
163
-                                <div>{{ form.phone }}</div>
164
-                            </el-form-item>
165
-
166
-
167
-                            <el-form-item label="医疗类别:">
168
-                                <div>{{ getDictionaryDataConfig(form.medical_treatment_type) }}</div>
169
-                            </el-form-item>
170
-
171
-
172
-                            <el-form-item label="证件类型:">
173
-                                <div>{{ getCertificates(form.id_type) }}</div>
174
-                            </el-form-item>
175
-
176
-                            <el-form-item label="证件号码:" prop="idCard">
177
-                                {{ form.id_card_no }}
178
-                            </el-form-item>
179
-
180
-
181
-                            <el-form-item label="结算类型:">
182
-                                {{ getSettlement(form.balance_accounts_type) }}
183
-                            </el-form-item>
184
-
185
-
186
-                            <el-form-item label="社保类型:">
187
-                                <div>{{ getMedicalCare(form.social_type) }}</div>
188
-                            </el-form-item>
189
-                            <el-form-item class="specialFormItem" style="width:66.5%;" label="医保卡号:">
190
-                                <div>{{ form.medical_insurance_number }}</div>
191
-                            </el-form-item>
192
-                            <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
193
-                                <div>{{ getRegister(form.register_type) }}</div>
194
-                            </el-form-item>
195
-                            <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
196
-                                <div>{{ getDoctor(form.doctor) }}</div>
197
-                            </el-form-item>
198
-                            <el-form-item label="科室:" prop="department" :validate-event="is_Name">
199
-                                <div>{{ getDepartMent(form.departments) }}</div>
200
-                            </el-form-item>
201
-                            <!-- <el-form-item label="是否需要工本费:">
202
-                              <div v-if="form.is_need_cost_of_production == 1">是</div>
203
-                              <div v-else>否</div>
204
-                            </el-form-item> -->
205
-
206
-                            <el-form-item label="挂号费:">
207
-                                <div>{{ form.register_cost }}</div>
208
-                            </el-form-item>
209
-                            <el-form-item label="诊疗费:">
210
-                                <div>{{ form.treatment_cost }}</div>
211
-                            </el-form-item>
212
-                            <el-form-item label="工本费:">
213
-                                <div>{{ form.cost_of_production }}</div>
214
-                            </el-form-item>
215
-                            <el-form-item label="合计:">
216
-                                <div>{{ form.total }}</div>
217
-                            </el-form-item>
218
-                            <el-form-item>
219
-                                <!-- <el-input v-model="form.name"></el-input> -->
220
-                            </el-form-item>
221
-                        </el-form>
222
-                    </div>
223
-                </div>
224
-                <span slot="footer" class="dialog-footer">
225
-                <el-button @click="dialogVisible = false">取 消</el-button>
226
-                <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
227
-              </span>
228
-            </el-dialog>
229
-        </div>
230
-
231
-        <div v-else class="app-container">
6
+        <!--<div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138"-->
7
+             <!--class="app-container">-->
8
+            <!--<div class="cell clearfix">-->
9
+                <!--&lt;!&ndash; <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> &ndash;&gt;-->
10
+                <!--<el-autocomplete-->
11
+                        <!--style="margin:16px 5px"-->
12
+                        <!--popper-class="my-autocomplete"-->
13
+                        <!--v-model.trim="search_input"-->
14
+                        <!--:fetch-suggestions="querySearchAsync"-->
15
+                        <!--:trigger-on-focus="false"-->
16
+                        <!--placeholder="病人名字或者透析号"-->
17
+                        <!--@select="handleSelect"-->
18
+                <!--&gt;-->
19
+                    <!--<i class="el-icon-search el-input__icon" slot="suffix"> </i>-->
20
+                    <!--<template slot-scope="{ item }">-->
21
+                        <!--<div class="name">{{ item.name }}</div>-->
22
+                    <!--</template>-->
23
+                <!--</el-autocomplete>-->
24
+                <!--<el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"-->
25
+                           <!--@click="searchAction">搜索-->
26
+                <!--</el-button>-->
27
+                <!--&lt;!&ndash; <el-date-picker-->
28
+                <!--v-model="value1"-->
29
+                <!--@change="changeTime"-->
30
+                <!--style="margin-right:10px;"-->
31
+                <!--type="daterange"-->
32
+                <!--range-separator="-"-->
33
+                <!--start-placeholder="开始日期"-->
34
+                <!--end-placeholder="结束日期">-->
35
+                <!--</el-date-picker> &ndash;&gt;-->
36
+                <!--<el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"-->
37
+                                <!--placeholder="选择时间" v-model="start_time" style="width:200px"-->
38
+                                <!--@change="changeStart"-->
39
+                <!--&gt;-->
40
+                <!--</el-date-picker>-->
41
+                <!-- - -->
42
+                <!--<el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"-->
43
+                                <!--placeholder="选择时间" v-model="end_time" style="width:200px"-->
44
+                                <!--@change="changeEnd"-->
45
+                <!--&gt;-->
46
+                <!--</el-date-picker>-->
47
+                <!--<label class="title"><span class="name">挂号类型</span> : </label>-->
48
+                <!--<el-select v-model="register_type" placeholder="请选择" style="width:150px;" @change="changeRegister">-->
49
+                    <!--<el-option-->
50
+                            <!--v-for="item in register"-->
51
+                            <!--:key="item.value"-->
52
+                            <!--:label="item.label"-->
53
+                            <!--:value="item.value">-->
54
+                    <!--</el-option>-->
55
+                <!--</el-select>-->
56
+            <!--</div>-->
57
+            <!--<el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"-->
58
+                      <!--:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
59
+                      <!--highlight-current-row>-->
60
+                <!--<el-table-column align="center" type="index" label="序号" width="60">-->
61
+                <!--</el-table-column>-->
62
+                <!--<el-table-column align="center" prop="name" label="时间" width="100">-->
63
+                    <!--<template slot-scope="scope">{{getTime(scope.row.ctime,'{y}-{m}-{d} {h}:{i}:{s}')}}</template>-->
64
+                <!--</el-table-column>-->
65
+                <!--<el-table-column align="center" prop="dialysis_no" label="姓名" width="80">-->
66
+                    <!--<template slot-scope="scope">{{scope.row.name }}</template>-->
67
+                <!--</el-table-column>-->
68
+                <!--<el-table-column align="center" prop="name" label="科室" width="80">-->
69
+                    <!--<template slot-scope="scope">{{getDepartMent(scope.row.departments)}}</template>-->
70
+                <!--</el-table-column>-->
71
+                <!--<el-table-column align="center" prop="name" label="挂号类型" width="90">-->
72
+                    <!--<template slot-scope="scope">-->
73
+                        <!--<span v-if="scope.row.register_type == 1">普通</span>-->
74
+                        <!--<span v-if="scope.row.register_type == 2">主治</span>-->
75
+                        <!--<span v-if="scope.row.register_type == 3">主任</span>-->
76
+                        <!--<span v-if="scope.row.register_type == 4">免收诊金</span>-->
77
+                        <!--<span v-if="scope.row.register_type == 5">专家</span>-->
78
+                    <!--</template>-->
79
+                <!--</el-table-column>-->
80
+                <!--<el-table-column align="center" prop="name" label="就诊号" width="80">-->
81
+                    <!--<template slot-scope="scope">-->
82
+                        <!--{{scope.row.number}}-->
83
+                    <!--</template>-->
84
+                <!--</el-table-column>-->
85
+                <!--<el-table-column align="center" prop="name" label="证件号" width='180'>-->
86
+                    <!--<template slot-scope="scope">{{ scope.row.id_card_no }}</template>-->
87
+                <!--</el-table-column>-->
88
+                <!--<el-table-column align="center" label="社保类型">-->
89
+                    <!--<template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>-->
90
+                <!--</el-table-column>-->
91
+                <!--<el-table-column align="center" prop="name" label="医生" width="80">-->
92
+                    <!--<template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>-->
93
+                <!--</el-table-column>-->
94
+                <!--<el-table-column align="center" prop="name" label="挂号费" width="70">-->
95
+                    <!--<template slot-scope="scope">{{ scope.row.register_cost }}</template>-->
96
+                <!--</el-table-column>-->
97
+                <!--<el-table-column align="center" prop="name" label="诊疗费" width="70">-->
98
+                    <!--<template slot-scope="scope">{{ scope.row.treatment_cost }}</template>-->
99
+                <!--</el-table-column>-->
100
+                <!--<el-table-column align="center" prop="name" label="工本费" width="70">-->
101
+                    <!--<template slot-scope="scope">{{ scope.row.cost_of_production }}</template>-->
102
+                <!--</el-table-column>-->
103
+                <!--<el-table-column align="center" prop="name" label="结算类型" width="70">-->
104
+                    <!--<template slot-scope="scope">{{getBanlance(scope.row.balance_accounts_type) }}</template>-->
105
+                <!--</el-table-column>-->
106
+                <!--<el-table-column align="center" prop="name" label="操作人" width="70">-->
107
+                    <!--<template slot-scope="scope">{{creator}}</template>-->
108
+                <!--</el-table-column>-->
109
+                <!--<el-table-column align="center" prop="name" label="操作" width="180">-->
110
+                    <!--<template slot-scope="scope">-->
111
+                        <!--&lt;!&ndash;<el-button size="mini" type="primary" v-if=" scope.row.record_date < startUnix" :disabled="true">已过号</el-button>&ndash;&gt;-->
112
+                        <!--<el-button size="mini" type="primary" v-if="scope.row.status == 1"-->
113
+                                   <!--@click="toReturnSZPatient(scope.row)">退号-->
114
+                        <!--</el-button>-->
115
+                        <!--<el-button size="mini" type="primary" :disabled="true" v-if="scope.row.status == 0">已退号-->
116
+                        <!--</el-button>-->
117
+
118
+                        <!--&lt;!&ndash;<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>&ndash;&gt;-->
119
+                        <!--&lt;!&ndash;<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>&ndash;&gt;-->
120
+                        <!--&lt;!&ndash;<el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>&ndash;&gt;-->
121
+                    <!--</template>-->
122
+                <!--</el-table-column>-->
123
+            <!--</el-table>-->
124
+
125
+            <!--<el-pagination-->
126
+                    <!--@size-change="handleSizeChange"-->
127
+                    <!--@current-change="handleCurrentChange"-->
128
+                    <!--:page-sizes="[10, 50, 100]"-->
129
+                    <!--:page-size="10"-->
130
+                    <!--background-->
131
+                    <!--style="margin-top:20px;float: right"-->
132
+                    <!--layout="total, sizes, prev, pager, next, jumper"-->
133
+                    <!--:total="total"-->
134
+            <!--&gt;-->
135
+            <!--</el-pagination>-->
136
+            <!--<el-dialog-->
137
+                    <!--title="挂号历史详情"-->
138
+                    <!--:visible.sync="dialogVisible"-->
139
+                    <!--width="1100px"-->
140
+                    <!--:before-close="handleClose">-->
141
+                <!--<div>-->
142
+                    <!--<div class="formMain">-->
143
+                        <!--<el-form class="basicForm" :model="form" ref="form" label-width="130px">-->
144
+                            <!--<el-form-item label="患者姓名:" prop="name">-->
145
+                                <!--<div>{{ form.name }}</div>-->
146
+                            <!--</el-form-item>-->
147
+
148
+                            <!--<el-form-item label="性别:" prop="gender">-->
149
+                                <!--<div v-if="form.gender == 1">男</div>-->
150
+                                <!--<div v-if="form.gender == 2">女</div>-->
151
+                            <!--</el-form-item>-->
152
+
153
+                            <!--<el-form-item label="年龄:" prop="age">-->
154
+                                <!--<div>{{ form.age }}</div>-->
155
+                            <!--</el-form-item>-->
156
+
157
+
158
+                            <!--<el-form-item label="出生日期:" prop="birthday">-->
159
+                                <!--<div>{{ getTime(form.birthday,'{y}-{m}-{d}') }}</div>-->
160
+                            <!--</el-form-item>-->
161
+
162
+                            <!--<el-form-item label="手机号码:" prop="phone">-->
163
+                                <!--<div>{{ form.phone }}</div>-->
164
+                            <!--</el-form-item>-->
165
+
166
+
167
+                            <!--<el-form-item label="医疗类别:">-->
168
+                                <!--<div>{{ getDictionaryDataConfig(form.medical_treatment_type) }}</div>-->
169
+                            <!--</el-form-item>-->
170
+
171
+
172
+                            <!--<el-form-item label="证件类型:">-->
173
+                                <!--<div>{{ getCertificates(form.id_type) }}</div>-->
174
+                            <!--</el-form-item>-->
175
+
176
+                            <!--<el-form-item label="证件号码:" prop="idCard">-->
177
+                                <!--{{ form.id_card_no }}-->
178
+                            <!--</el-form-item>-->
179
+
180
+
181
+                            <!--<el-form-item label="结算类型:">-->
182
+                                <!--{{ getSettlement(form.balance_accounts_type) }}-->
183
+                            <!--</el-form-item>-->
184
+
185
+
186
+                            <!--<el-form-item label="社保类型:">-->
187
+                                <!--<div>{{ getMedicalCare(form.social_type) }}</div>-->
188
+                            <!--</el-form-item>-->
189
+                            <!--<el-form-item class="specialFormItem" style="width:66.5%;" label="医保卡号:">-->
190
+                                <!--<div>{{ form.medical_insurance_number }}</div>-->
191
+                            <!--</el-form-item>-->
192
+                            <!--<el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">-->
193
+                                <!--<div>{{ getRegister(form.register_type) }}</div>-->
194
+                            <!--</el-form-item>-->
195
+                            <!--<el-form-item label="医生:" prop="doctor" :validate-event="is_Name">-->
196
+                                <!--<div>{{ getDoctor(form.doctor) }}</div>-->
197
+                            <!--</el-form-item>-->
198
+                            <!--<el-form-item label="科室:" prop="department" :validate-event="is_Name">-->
199
+                                <!--<div>{{ getDepartMent(form.departments) }}</div>-->
200
+                            <!--</el-form-item>-->
201
+                            <!--&lt;!&ndash; <el-form-item label="是否需要工本费:">-->
202
+                              <!--<div v-if="form.is_need_cost_of_production == 1">是</div>-->
203
+                              <!--<div v-else>否</div>-->
204
+                            <!--</el-form-item> &ndash;&gt;-->
205
+
206
+                            <!--<el-form-item label="挂号费:">-->
207
+                                <!--<div>{{ form.register_cost }}</div>-->
208
+                            <!--</el-form-item>-->
209
+                            <!--<el-form-item label="诊疗费:">-->
210
+                                <!--<div>{{ form.treatment_cost }}</div>-->
211
+                            <!--</el-form-item>-->
212
+                            <!--<el-form-item label="工本费:">-->
213
+                                <!--<div>{{ form.cost_of_production }}</div>-->
214
+                            <!--</el-form-item>-->
215
+                            <!--<el-form-item label="合计:">-->
216
+                                <!--<div>{{ form.total }}</div>-->
217
+                            <!--</el-form-item>-->
218
+                            <!--<el-form-item>-->
219
+                                <!--&lt;!&ndash; <el-input v-model="form.name"></el-input> &ndash;&gt;-->
220
+                            <!--</el-form-item>-->
221
+                        <!--</el-form>-->
222
+                    <!--</div>-->
223
+                <!--</div>-->
224
+                <!--<span slot="footer" class="dialog-footer">-->
225
+                <!--<el-button @click="dialogVisible = false">取 消</el-button>-->
226
+                <!--<el-button type="primary" @click="dialogVisible = false">确 定</el-button>-->
227
+              <!--</span>-->
228
+            <!--</el-dialog>-->
229
+        <!--</div>-->
230
+
231
+        <div ]class="app-container">
232 232
             <div class="cell clearfix">
233 233
                 <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
234 234
                 <el-autocomplete

+ 116 - 9
src/xt_pages/user/dialysisSolution.vue 查看文件

@@ -533,13 +533,13 @@
533 533
             </el-form-item>
534 534
           </el-col>
535 535
 
536
-          
536
+
537 537
            <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
538 538
              <el-form-item label="吸氧流量(L/分):">
539 539
                 <el-input v-model="addPlan.oxygen_flow"></el-input>
540 540
              </el-form-item>
541 541
           </el-col>
542
-         
542
+
543 543
          <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
544 544
              <el-form-item label="吸氧时长(h):">
545 545
                 <el-input v-model="addPlan.oxygen_time"></el-input>
@@ -551,10 +551,63 @@
551 551
               <el-input v-model="addPlan.target_ktv"></el-input>
552 552
             </el-form-item>
553 553
           </el-col>
554
-        </el-row>
555 554
 
556
-    
557
-    
555
+
556
+          <el-col :span="8" v-if="isShows('透析管路')">
557
+            <el-form-item label="透析管路:">
558
+              <el-select v-model="addPlan.hemodialysis_pipelines" >
559
+                <el-option
560
+                        v-for="item in hemodialysisPipelinesOptions"
561
+                        :label="item.name"
562
+                        :key="item.id"
563
+                        :value="item.name"
564
+                ></el-option>
565
+              </el-select>
566
+            </el-form-item>
567
+          </el-col>
568
+
569
+          <el-col :span="8" v-if="isShows('透析管路支数')">
570
+            <el-form-item label="透析管路支数">
571
+              <el-input v-model="addPlan.hemodialysis_pipelines_count"></el-input>
572
+            </el-form-item>
573
+          </el-col>
574
+
575
+
576
+
577
+          <el-col :span="8" v-if="isShows('穿刺针')">
578
+            <el-form-item label="穿刺针:">
579
+              <el-input v-model="addPlan.puncture_needle" @focus="showInnerDialog('10')"></el-input>
580
+            </el-form-item>
581
+          </el-col>
582
+
583
+
584
+
585
+          <el-col :span="8" v-if="isShows('穿刺针支数')">
586
+            <el-form-item label="穿刺针支数">
587
+              <el-input v-model="addPlan.puncture_needle_count"></el-input>
588
+            </el-form-item>
589
+          </el-col>
590
+
591
+          <el-col :span="8" v-if="isShows('促红素')">
592
+            <el-form-item label="促红素:">
593
+              <el-select v-model="addPlan.epo" @change="changeBodyFluid">
594
+                <el-option
595
+                        v-for="item in epo"
596
+                        :label="item.name"
597
+                        :key="item.id"
598
+                        :value="item.name"
599
+                ></el-option>
600
+              </el-select>
601
+            </el-form-item>
602
+          </el-col>
603
+
604
+          <el-col :span="8" v-if="isShows('促红素支数')">
605
+            <el-form-item label="促红素支数">
606
+              <el-input v-model="addPlan.epo_count"></el-input>
607
+            </el-form-item>
608
+          </el-col>
609
+
610
+        </el-row>
558 611
 
559 612
 
560 613
         <el-row :gutter="24">
@@ -665,6 +718,9 @@ export default {
665 718
       callback()
666 719
     }
667 720
     return {
721
+      hemodialysisPipelinesOptions:[],
722
+      punctureNeedleOptions:[],
723
+      epoOptions:[],
668 724
       zhiShow:false,
669 725
       huShow:false,
670 726
       totalShow:false,
@@ -751,6 +807,14 @@ export default {
751 807
         oxygen_flow:"",
752 808
         oxygen_time:"",
753 809
 
810
+        hemodialysis_pipelines:'',
811
+        hemodialysis_pipelines_count:'',
812
+        puncture_needle:"",
813
+        puncture_needle_count:"",
814
+        epo:"",
815
+        epo_count:"",
816
+
817
+
754 818
       },
755 819
       childPlan: {
756 820
         mode: '',
@@ -966,7 +1030,7 @@ export default {
966 1030
 
967 1031
           break
968 1032
         case '8':
969
-         
1033
+
970 1034
           this.InnerDialogProps.values = this.plasmaSeparatorList
971 1035
           this.InnerDialogProps.titles = '血浆分离器'
972 1036
           this.InnerDialogProps.type = 'plasma_separator'
@@ -975,13 +1039,23 @@ export default {
975 1039
 
976 1040
           break
977 1041
          case '9':
978
-         
1042
+
979 1043
           this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
980 1044
           this.InnerDialogProps.titles = '胆红素吸附柱'
981 1045
           this.InnerDialogProps.type = 'bilirubin_adsorption_column'
982 1046
           this.InnerDialogProps.selected = this.addPlan.bilirubin_adsorption_column
983 1047
           this.InnerDialogProps.isShowTextArea = false
984 1048
 
1049
+          break
1050
+
1051
+        case '10':
1052
+
1053
+          this.InnerDialogProps.values = this.punctureNeedleOptions
1054
+          this.InnerDialogProps.titles = '穿刺针'
1055
+          this.InnerDialogProps.type = 'puncture_needle'
1056
+          this.InnerDialogProps.selected = this.addPlan.puncture_needle
1057
+          this.InnerDialogProps.isShowTextArea = false
1058
+
985 1059
           break
986 1060
       }
987 1061
     },
@@ -1004,6 +1078,9 @@ export default {
1004 1078
         case 'bilirubin_adsorption_column':
1005 1079
           this.addPlan.bilirubin_adsorption_column = val.value.join(',')
1006 1080
           break
1081
+        case 'puncture_needle':
1082
+          this.addPlan.puncture_needle = val.value.join(',')
1083
+          break
1007 1084
       }
1008 1085
     },
1009 1086
     innerDialogCancle: function() {
@@ -1315,8 +1392,7 @@ export default {
1315 1392
           }
1316 1393
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1317 1394
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1318
-          console.log("2233333",this.addPlan)
1319
-          
1395
+
1320 1396
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1321 1397
             if (response.data.state == 0) {
1322 1398
               this.$message.error(response.data.msg)
@@ -1440,6 +1516,9 @@ export default {
1440 1516
       this.addPlan.kalium = row.kalium.toString()
1441 1517
       this.addPlan.sodium = row.sodium.toString()
1442 1518
       this.addPlan.calcium = row.calcium.toString()
1519
+
1520
+
1521
+
1443 1522
       this.addPlan.bicarbonate = row.bicarbonate.toString()
1444 1523
       this.addPlan.glucose = row.glucose.toString()
1445 1524
       this.addPlan.dialysate_flow = row.dialysate_flow.toString()
@@ -1447,6 +1526,14 @@ export default {
1447 1526
       this.addPlan.conductivity = row.conductivity.toString()
1448 1527
       this.addPlan.remark = row.remark
1449 1528
 
1529
+      this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1530
+      this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1531
+      this.addPlan.puncture_needle  = row.puncture_needle
1532
+      this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1533
+      this.addPlan.epo  = row.epo
1534
+      this.addPlan.epo_count  = row.epo_count.toString()
1535
+
1536
+
1450 1537
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1451 1538
       this.addPlan.plasma_separator = row.plasma_separator.toString()
1452 1539
       this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
@@ -1553,6 +1640,15 @@ export default {
1553 1640
         ultrafiltration: '',
1554 1641
         blood_access: '',
1555 1642
 
1643
+
1644
+        hemodialysis_pipelines:'',
1645
+        hemodialysis_pipelines_count:'',
1646
+        puncture_needle:"",
1647
+        puncture_needle_count:"",
1648
+        epo:"",
1649
+        epo_count:"",
1650
+
1651
+
1556 1652
         dialysis_duration: '3.30',
1557 1653
         dialysis_duration_hour: '3',
1558 1654
         dialysis_duration_minute: '30',
@@ -1803,6 +1899,14 @@ export default {
1803 1899
               oxygen_time:"",
1804 1900
               oxygen_uptake:"",
1805 1901
               oxygen_flow:"",
1902
+
1903
+              hemodialysis_pipelines:'',
1904
+              hemodialysis_pipelines_count:'',
1905
+              puncture_needle:"",
1906
+              puncture_needle_count:"",
1907
+              epo:"",
1908
+              epo_count:"",
1909
+
1806 1910
             }
1807 1911
 
1808 1912
             for (const key in tempAddPlan) {
@@ -1884,6 +1988,9 @@ export default {
1884 1988
       })
1885 1989
       this.$router.back(-1)
1886 1990
     }
1991
+    this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
1992
+    this.punctureNeedleOptions =  getDataConfig('hemodialysis', 'puncture_needle')
1993
+    this.epoOptions =getDataConfig('hemodialysis', 'epo')
1887 1994
 
1888 1995
     this.GetDeviceData()
1889 1996
     this.fetchAllAdminUsers()

+ 99 - 41
src/xt_pages/user/templateSummary.vue 查看文件

@@ -50,34 +50,33 @@
50 50
             <el-col :span="14">
51 51
               <div class="record_content_panel">
52 52
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
53
-                <div>阶段小结时间:{{getTime(editObj.record_time)}}</div>  
54
-                <el-divider></el-divider>
55
-                <div>阶段小结概要:</div>  
56
-                <div>
57
-                  <span>干体重:{{editObj.drg_weight}}</span>
58
-                  <span>共透析:{{editObj.dialysis_count}}</span>
59
-                  <span>HD:{{editObj.hd_count}}</span>
53
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>  
54
+                <!-- <el-divider></el-divider> -->
55
+                <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
56
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
57
+                  <span style="margin-right:10px;line-height:20px;">干体重:{{editObj.drg_weight}}</span>
58
+                  <span style="margin-right:10px;line-height:20px;">共透析:{{editObj.dialysis_count}}</span>
59
+                  <span style="margin-right:10px;line-height:20px;">HD:{{editObj.hd_count}}</span>
60 60
                   <br>
61
-                  <span>HDF:{{editObj.hdf_count}}</span>
62
-                  <span>HP:{{editObj.hp_count}}</span>
63
-                  <span>其他:{{editObj.other_count}}</span>
61
+                  <span style="margin-right:10px;line-height:20px;">HDF:{{editObj.hdf_count}}</span>
62
+                  <span style="margin-right:10px;line-height:20px;">HP:{{editObj.hp_count}}</span>
63
+                  <span style="margin-right:10px;line-height:20px;">其他:{{editObj.other_count}}</span>
64 64
                    <br>
65
-                  <span>透析器:{{editObj.dialzer_apparatus}}</span>
66
-                  <span>抗凝剂:{{editObj.anticoagulant}}</span>
67
-                  <span>透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
65
+                  <span style="margin-right:10px;line-height:20px;">透析器:{{editObj.dialzer_apparatus}}</span>
66
+                  <span style="margin-right:10px;line-height:20px;">抗凝剂:{{editObj.anticoagulant}}</span>
67
+                  <span style="margin-right:10px;line-height:20px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
68 68
                   <br>
69
-                  <span>每次透析(小时):{{editObj.hour}}</span>
70
-                  <span>透前体重(kg):{{editObj.befor_weight}}</span>
71
-                  <span>透后体重(kg):{{editObj.after_weight}}</span>
69
+                  <span style="margin-right:10px;line-height:20px;">每次透析(小时):{{editObj.hour}}</span>
70
+                  <span style="margin-right:10px;line-height:20px;">透前体重(kg):{{editObj.befor_weight}}</span>
71
+                  <span style="margin-right:10px;line-height:20px;">透后体重(kg):{{editObj.after_weight}}</span>
72 72
                   <br>
73
-                  <span>透前血压(mmHg):{{editObj.befor_pressure}}</span>
74
-                  <span>透后血压(mmHg):{{editObj.after_pressure}}</span>
73
+                  <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
74
+                  <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
75 75
                 </div>
76
-                <el-divider></el-divider>
77
-                <div>阶段小结总结:{{editObj.template_inspection_content}}</div>  
78
-                <el-divider></el-divider>
79
-                <div>阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>  
80
-                <div></div>
76
+                <!-- <el-divider></el-divider> -->
77
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:{{editObj.template_inspection_content}}</div>  
78
+                <!-- <el-divider></el-divider> -->
79
+                <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
81 80
               </div>
82 81
             </el-col>
83 82
           </el-row>
@@ -269,7 +268,7 @@
269 268
                         :value="item.value">
270 269
                         </el-option>
271 270
                      </el-select>
272
-                     <el-input tyep="text" v-model="form.template_summary_content"></el-input>
271
+                     <el-input style="margin:10px 0;" type="text" v-model="form.template_summary_content"></el-input>
273 272
                   </el-row>
274 273
                   <el-row>
275 274
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
@@ -281,12 +280,22 @@
281 280
                         :value="item.value">
282 281
                         </el-option>
283 282
                      </el-select>
284
-                     <el-input tyep="text" v-model="form.template_plan_content"></el-input>
283
+                     <el-input style="margin:10px 0;" type="text" v-model="form.template_plan_content"></el-input>
285 284
                   </el-row>
286 285
                   <el-row>
287 286
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
288 287
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
289
-                     <el-input tyep="text" v-model="form.template_inspection_content"></el-input>
288
+                     <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
289
+                     <div class="borderBox">
290
+                       <div v-for="item in form.template_inspection_content">
291
+                        <p>{{ item.project_name }}</p>
292
+                        <div style="display:flex;flex-wrap: wrap;">
293
+                          <div v-for="it in item.arr" style="width:33%;">
294
+                            {{ it.item_name }} {{ it.inspect_value }}
295
+                          </div>
296
+                        </div>
297
+                      </div>
298
+                     </div>
290 299
                   </el-row>
291 300
                   <el-row>
292 301
                     <el-col :span="8">
@@ -509,7 +518,7 @@
509 518
                         :value="item.value">
510 519
                         </el-option>
511 520
                      </el-select>
512
-                     <el-input tyep="text" v-model="form.template_summary_content"></el-input>
521
+                     <el-input style="margin:10px 0;" type="text" v-model="form.template_summary_content"></el-input>
513 522
                   </el-row>
514 523
                   <el-row>
515 524
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
@@ -521,12 +530,22 @@
521 530
                         :value="item.value">
522 531
                         </el-option>
523 532
                      </el-select>
524
-                     <el-input tyep="text" v-model="form.template_plan_content"></el-input>
533
+                     <el-input style="margin:10px 0;" type="text" v-model="form.template_plan_content"></el-input>
525 534
                   </el-row>
526 535
                   <el-row>
527 536
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
528 537
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
529
-                     <el-input tyep="text" v-model="form.template_inspection_content"></el-input>
538
+                     <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
539
+                     <div class="borderBox">
540
+                       <div v-for="item in form.template_inspection_content">
541
+                        <p>{{ item.project_name }}</p>
542
+                        <div style="display:flex;flex-wrap: wrap;">
543
+                          <div v-for="it in item.arr" style="width:33%;">
544
+                            {{ it.item_name }} {{ it.inspect_value }}
545
+                          </div>
546
+                        </div>
547
+                      </div>
548
+                     </div>
530 549
                   </el-row>
531 550
                   <el-row>
532 551
                     <el-col :span="8">
@@ -1093,13 +1112,15 @@
1093 1112
         getInspectionItemList(params).then(response=>{
1094 1113
            if(response.data.state == 1){
1095 1114
              var list = response.data.data.list
1096
-             console.log("选择检验检查",list)
1097
-             var str = ""
1098
-             for(let i=0;i<list.length;i++){
1099
-               str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
1100
-             }
1115
+             
1116
+            //  var str = ""
1117
+            //  for(let i=0;i<list.length;i++){
1118
+            //    str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
1119
+            //  }
1120
+            let arr = this.unique(list,'project_name')
1121
+            console.log("选择检验检查",arr)
1101 1122
            
1102
-             this.form.template_inspection_content = str
1123
+            this.form.template_inspection_content = arr
1103 1124
             this.dialogVisibleInspection = false
1104 1125
             this.projectList = []
1105 1126
             this.inspectDataList = []
@@ -1212,7 +1233,7 @@
1212 1233
           return uParseTime(val, '{y}-{m}-{d}')
1213 1234
          }
1214 1235
       },
1215
-     showInnerDialog: function(val) {
1236
+      showInnerDialog: function(val) {
1216 1237
         this.InnerDialogProps.visibility = true
1217 1238
         switch (val) {
1218 1239
            case '7': // 透析器
@@ -1249,7 +1270,7 @@
1249 1270
           break
1250 1271
         }
1251 1272
       },
1252
-     innerDialogCancle: function() {
1273
+      innerDialogCancle: function() {
1253 1274
         this.InnerDialogProps.visibility = false
1254 1275
       },
1255 1276
       getCurrentRecordDetailOne(){
@@ -1304,14 +1325,14 @@
1304 1325
          }
1305 1326
        }
1306 1327
       },
1307
-     changeTempalte(){
1328
+      changeTempalte(){
1308 1329
        for(let i=0;i<this.planList.length;i++){
1309 1330
          if(this.form.template_plan_id == this.planList[i].value){
1310 1331
            this.form.template_plan_content = this.planList[i].content
1311 1332
          }
1312 1333
        }
1313
-     },
1314
-     editCreation(){
1334
+      },
1335
+      editCreation(){
1315 1336
         var params = {
1316 1337
             id:this.form.id,
1317 1338
             title:this.form.title,
@@ -1353,7 +1374,33 @@
1353 1374
             this.edit_show_dialog = false
1354 1375
           }
1355 1376
         })
1356
-     }
1377
+      },
1378
+      unique(data, key) {
1379
+        let lastData = [];
1380
+        data.forEach(item => {
1381
+          let status = lastData.some(project_name => project_name[key] == item[key]);
1382
+          console.log('status',status)
1383
+          if (!status) {
1384
+            // item.value0 = item.value;
1385
+            let obj = {
1386
+              project_name:'',
1387
+              arr:[]
1388
+            }
1389
+            obj.project_name = item.project_name
1390
+            obj.arr.push(item);
1391
+            lastData.push(obj);
1392
+            console.log('item',item)
1393
+          } else {
1394
+            lastData.forEach((project_name, index) => {
1395
+              if (project_name[key] === item[key]) {
1396
+                console.log('item222',item)
1397
+                project_name.arr.push(item);
1398
+              }
1399
+            });
1400
+          }
1401
+        });
1402
+        return lastData;
1403
+      }
1357 1404
     },
1358 1405
   //  watch: {
1359 1406
   //   inspectionList: function() {
@@ -1367,6 +1414,17 @@
1367 1414
 </script>
1368 1415
 
1369 1416
 <style rel="stylesheet/css" lang="scss" scoped>
1417
+  .borderBox{
1418
+    border: 1px solid #DCDFE6;
1419
+    padding: 10px;
1420
+    margin-top: 10px;
1421
+    border-radius: 4px;
1422
+    p{
1423
+      font-weight: bold;
1424
+      font-size: 20px;
1425
+      margin: 10px 0;
1426
+    }
1427
+  }
1370 1428
   .container {
1371 1429
     margin-left: 180px;
1372 1430
     padding: 20px;