28169 пре 9 месеци
родитељ
комит
dbf07beab6

+ 60 - 35
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue Прегледај датотеку

@@ -131,7 +131,7 @@
131 131
                 {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
132 132
               </div>
133 133
             </div>
134
-            <div class="inline_block" style="flex: 1">
134
+            <div class="inline_block" style="flex: 1" v-if="org_id!=10677">
135 135
               透析次数:
136 136
               <div
137 137
                 class="under_line"
@@ -413,23 +413,7 @@
413 413
                         </div>
414 414
                       </div>
415 415
 
416
-                      <div
417
-                        class="inline_block"
418
-                        style="margin-left: 10px; flex: 1"
419
-                      >
420
-                        导管:
421
-                        <div
422
-                          class="under_line"
423
-                          style="width: 120px; text-align: center"
424
-                        >
425
-                          {{
426
-                            record.assessment_before_dislysis &&
427
-                            record.assessment_before_dislysis.catheter
428
-                              ? record.assessment_before_dislysis.catheter
429
-                              : "/"
430
-                          }}
431
-                        </div>
432
-                      </div>
416
+                     
433 417
                       <div
434 418
                         class="inline_block"
435 419
                         style="margin-left: 10px; flex: 1"
@@ -468,6 +452,29 @@
468 452
                         </div>
469 453
                       </div>
470 454
                     </div>
455
+                    <div
456
+                      class="row"
457
+                      style="padding: 2px 0; line-height: 23px; display: flex"
458
+                    >
459
+                    <div
460
+                        class="inline_block"
461
+                        style="margin-left:1px; flex: 1"
462
+                      >
463
+                        导管:
464
+                        <div
465
+                          class="under_line"
466
+                          style="width: 400px; text-align: center"
467
+                        >
468
+                          {{
469
+                            record.assessment_before_dislysis &&
470
+                            record.assessment_before_dislysis.catheter
471
+                              ? record.assessment_before_dislysis.catheter
472
+                              : "/"
473
+                          }}
474
+                        </div>
475
+                      </div>
476
+
477
+                    </div>
471 478
                     <div
472 479
                       class="row"
473 480
                       style="padding: 2px 0; line-height: 23px; display: flex"
@@ -930,17 +937,28 @@
930 937
                         kg
931 938
                       </div>
932 939
                       <div class="inline_block" style="flex: 1" v-if=" org_id!=10469">
933
-                        计划超滤量:
940
+                        处方脱水量:
934 941
                         <div
935 942
                           class="under_line"
936 943
                           style="width: 100px; text-align: center"
937 944
                         >
945
+                        <span v-if="org_id!=10677">
938 946
                           {{
939 947
                             record.prescription &&
940 948
                             record.prescription.target_ultrafiltration
941 949
                               ? record.prescription.target_ultrafiltration
942 950
                               : "/"
943 951
                           }}
952
+                        </span>
953
+                        <span v-if="org_id==10677">
954
+                          {{
955
+                            record.prescription &&
956
+                            record.prescription.prescription_water
957
+                              ? record.prescription.prescription_water
958
+                              : "/"
959
+                          }}
960
+                        </span>
961
+                        
944 962
                         </div>
945 963
                          <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id==10460">ml</span>
946 964
                          <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471 && org_id!=10460">L</span>
@@ -1419,18 +1437,21 @@
1419 1437
                                 ? monitor_record.systolic_blood_pressure + "/"
1420 1438
                                 : ""
1421 1439
                             }}
1422
-                            {{
1440
+                            <span v-if="monitor_record.operate_time>0">{{
1423 1441
                               monitor_record.diastolic_blood_pressure
1424 1442
                                 ? monitor_record.diastolic_blood_pressure
1425 1443
                                 : "拒测"
1426 1444
                             }}
1445
+                            </span> 
1427 1446
                           </td>
1428 1447
                           <td>
1448
+                            <span v-if="monitor_record.operate_time>0">
1429 1449
                             {{
1430 1450
                               monitor_record.pulse_frequency
1431 1451
                                 ? monitor_record.pulse_frequency
1432 1452
                                 : "拒测"
1433 1453
                             }}
1454
+                            </span>
1434 1455
                           </td>
1435 1456
                           <td v-if="org_id!=10489">
1436 1457
                             {{
@@ -1742,12 +1763,13 @@
1742 1763
                           <td style="font-size: 16px" colspan="2" width="45%">
1743 1764
                             医嘱内容
1744 1765
                           </td>
1745
-                          <td style="font-size: 16px" width="10%">医生签名</td>
1746 1766
                           <td style="font-size: 16px" width="10%">时间</td>
1767
+                          <td style="font-size: 16px" width="10%">医生签名</td>
1768
+                        
1747 1769
                           <td style="font-size: 16px" width="10%">
1748 1770
                             执行人签名
1749 1771
                           </td>
1750
-                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375">核对护士</td>
1772
+                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375 || org_id == 0 || org_id == 10677">核对人签名</td>
1751 1773
                         </tr>
1752 1774
                         <!-- <template v-for="group in doctor_advices" > -->
1753 1775
 
@@ -1786,8 +1808,9 @@
1786 1808
                                 }}{{ advice[0].prescribing_number_unit }}</span
1787 1809
                               >
1788 1810
                               <span v-if="advice[0].single_dose != 0">
1789
-                                {{ advice[0].single_dose
1790
-                                }}{{ advice[0].single_dose_unit }}</span
1811
+
1812
+                                <span v-if="advice[0].advice_name!='血液透析滤过'"> {{ advice[0].single_dose}}{{ advice[0].single_dose_unit }}</span>
1813
+                                </span
1791 1814
                               >
1792 1815
 
1793 1816
                               <span v-if="advice[0].parent_id == 0">{{
@@ -1805,6 +1828,12 @@
1805 1828
                               >
1806 1829
                             </td>
1807 1830
 
1831
+                            <td height="35px">
1832
+                              <span v-if="advice[0].execution_time">{{
1833
+                                getTime(advice[0].execution_time, " {h}:{i}")
1834
+                              }}</span>
1835
+                            </td>
1836
+
1808 1837
                             <td height="35px">
1809 1838
                               <span
1810 1839
                                 v-if="
@@ -1827,11 +1856,7 @@
1827 1856
                               />
1828 1857
                             </td>
1829 1858
 
1830
-                            <td height="35px">
1831
-                              <span v-if="advice[0].execution_time">{{
1832
-                                getTime(advice[0].execution_time, " {h}:{i}")
1833
-                              }}</span>
1834
-                            </td>
1859
+                          
1835 1860
 
1836 1861
                             <td height="35px">
1837 1862
                               <span
@@ -1857,7 +1882,7 @@
1857 1882
                               />
1858 1883
                             </td>
1859 1884
 
1860
-                            <td height="35px" v-if="org_id == 10375">
1885
+                            <td height="35px" v-if="org_id == 10375 || org_id == 0 || org_id ==10677">
1861 1886
                               <span
1862 1887
                                 v-if="
1863 1888
                                   setAdminUserES(
@@ -2004,7 +2029,7 @@
2004 2029
                   {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
2005 2030
                 </div>
2006 2031
               </div>
2007
-              <div class="inline_block" style="flex: 1">
2032
+              <div class="inline_block" style="flex: 1" v-if="org_id!=10677">
2008 2033
                 透析次数:
2009 2034
                 <div
2010 2035
                   class="under_line"
@@ -2972,17 +2997,17 @@
2972 2997
                           <span
2973 2998
                             v-if="
2974 2999
                               setAdminUserES(
2975
-                                record.dialysis_order.quality_nurse_id,
3000
+                                record.dialysis_order,
2976 3001
                                 'quality_nurse_id'
2977 3002
                               ) == ''
2978 3003
                             "
2979 3004
                             >{{
2980 3005
                               getAdminUser(
2981
-                                record.dialysis_order.quality_nurse_id,
3006
+                                record.dialysis_order,
2982 3007
                                 "quality_nurse_id"
2983 3008
                               )
2984 3009
                                 ? getAdminUser(
2985
-                                    record.dialysis_order.quality_nurse_id,
3010
+                                    record.dialysis_order,
2986 3011
                                     "quality_nurse_id"
2987 3012
                                   )
2988 3013
                                 : "/"
@@ -2992,7 +3017,7 @@
2992 3017
                             class="es-img"
2993 3018
                             :src="
2994 3019
                               setAdminUserES(
2995
-                                record.dialysis_order.quality_nurse_id,
3020
+                                record.dialysis_order,
2996 3021
                                 'quality_nurse_id'
2997 3022
                               )
2998 3023
                             "

+ 46 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue Прегледај датотеку

@@ -121,7 +121,7 @@
121 121
               {{ xtdate }}
122 122
             </div>
123 123
           </div>&nbsp;&nbsp;&nbsp;
124
-          <div class="inline_block" style="flex: 1">
124
+          <div class="inline_block" style="flex: 1" v-if="org_id!=10677">
125 125
             透析次数:
126 126
             <div
127 127
               class="under_line"
@@ -423,6 +423,9 @@
423 423
                         }}
424 424
                       </div>
425 425
                     </div>
426
+                  
427
+                  </div>
428
+                  <div  class="row" style="padding: 2px 0; line-height: 23px; display: flex">
426 429
                     <div
427 430
                       class="inline_block"
428 431
                       style="margin-left: 10px; flex: 1.4"
@@ -430,14 +433,13 @@
430 433
                       导管:
431 434
                       <div
432 435
                         class="under_line"
433
-                        style="width: 150px; text-align: center"
436
+                        style="width: 600px; text-align: center"
434 437
                       >
435 438
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
436 439
                       </div>
437 440
                     </div>
438 441
 
439 442
                   </div>
440
-
441 443
                   <div
442 444
                     class="row"
443 445
                     style="padding: 2px 0; line-height: 23px; display: flex"
@@ -925,16 +927,27 @@
925 927
                       kg
926 928
                     </div>
927 929
                     <div class="inline_block" style="flex: 1">
928
-                      计划超滤量:
930
+                      处方脱水量:
929 931
                       <div
930 932
                         class="under_line"
931 933
                         style="width: 100px; text-align: center"
932 934
                       >
935
+                       <span v-if="org_id!=10677">
933 936
                         {{
934 937
                           prescription.target_ultrafiltration
935 938
                             ? prescription.target_ultrafiltration
936 939
                             : "/"
937 940
                         }}
941
+                       </span>
942
+
943
+                       <span v-if="org_id ==10677">
944
+                        {{
945
+                          prescription.prescription_water
946
+                            ? prescription.prescription_water
947
+                            : "/"
948
+                        }}
949
+                       </span>
950
+                      
938 951
                       </div>
939 952
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
940 953
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
@@ -1530,10 +1543,13 @@
1530 1543
                         <td style="font-size: 16px" colspan="2" width="45%">
1531 1544
                           医嘱内容
1532 1545
                         </td>
1533
-                        <td style="font-size: 16px" width="10%">医生签名</td>
1534 1546
                         <td style="font-size: 16px" width="10%">时间</td>
1547
+                        <td style="font-size: 16px" width="10%">医生签名</td>
1548
+                      
1535 1549
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1536 1550
 
1551
+                        <td style="font-size: 16px" width="10%" v-if="org_id == 0 || org_id == 10677">核对人签名</td>
1552
+
1537 1553
                       </tr>
1538 1554
                       <tr
1539 1555
                         v-for="(advice, advice_index) in doctor_advices"
@@ -1562,10 +1578,11 @@
1562 1578
                             >&nbsp;&nbsp; {{ advice.prescribing_number
1563 1579
                             }}{{ advice.prescribing_number_unit }}</span
1564 1580
                           >
1565
-                          <span v-if="advice.single_dose != 0"
1566
-                            >{{ advice.single_dose
1567
-                            }}{{ advice.single_dose_unit }}</span
1568
-                          >
1581
+                          <span v-if="advice.single_dose != 0">
1582
+                            <span v-if="advice.advice_name!='血液透析滤过'">
1583
+                              {{ advice.single_dose}}{{ advice.single_dose_unit }}
1584
+                            </span>
1585
+                            </span>
1569 1586
                           <span v-if="advice.parent_id == 0">{{
1570 1587
                             advice.delivery_way
1571 1588
                           }}</span>
@@ -1580,6 +1597,12 @@
1580 1597
                           >
1581 1598
                         </td>
1582 1599
 
1600
+                        <td height="32px">
1601
+                          <span v-if="advice.execution_time">{{
1602
+                            getTime(advice.execution_time, "{h}:{i}")
1603
+                          }}</span>
1604
+                        </td>
1605
+
1583 1606
                         <td height="32px">
1584 1607
                           <span
1585 1608
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
@@ -1594,11 +1617,6 @@
1594 1617
                           />
1595 1618
                         </td>
1596 1619
 
1597
-                        <td height="32px">
1598
-                          <span v-if="advice.execution_time">{{
1599
-                            getTime(advice.execution_time, "{h}:{i}")
1600
-                          }}</span>
1601
-                        </td>
1602 1620
                         <td height="32px">
1603 1621
                           <span
1604 1622
                             v-if="setAdminUserES(advice.execution_staff) == ''"
@@ -1612,6 +1630,20 @@
1612 1630
                             v-else
1613 1631
                           />
1614 1632
                         </td>
1633
+
1634
+                        <td height="32px" v-if="org_id == 0 || org_id == 10677">
1635
+                          <span
1636
+                            v-if="setAdminUserES(advice.checker) == ''"
1637
+                            >{{ getAdminUser(advice.checker) }}</span
1638
+                          >
1639
+                          <img
1640
+                            style="height: 30px"
1641
+                            :src="setAdminUserES(advice.checker)"
1642
+                            alt=""
1643
+                            srcset=""
1644
+                            v-else
1645
+                          />
1646
+                        </td>
1615 1647
                       </tr>
1616 1648
                     </tbody>
1617 1649
                   </table>

+ 3 - 3
src/xt_pages/outpatientCharges/invoicePrint.vue Прегледај датотеку

@@ -15,9 +15,9 @@
15 15
       size="small" type="success"
16 16
       @click="showclick = !showclick">{{ showclick==false ? '白纸' : '发票' }}</el-button>
17 17
     </template>
18
-    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10633 && org_id != 10217 && org_id != 10485 && org_id != 10375 && org_id != 10567 && org_id != 10188 && org_id != 0"><!--&& org_id != 10188 && org_id != 0-->
18
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 && org_id != 10567 && org_id != 10188 && org_id != 10633 && org_id != 0"><!--&& org_id != 10188 && org_id != 0-->
19 19
         <div class='dialysisPage'>
20
-          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10633 && org_id != 10387&& org_id != 10210 && org_id != 10387 && org_id != 10480 " >
20
+          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387 && org_id != 10480 " >
21 21
             <printOne v-if="org_id != 10088 && org_id != 10510 && org_id != 0" :paramsObj="invoiceParams"></printOne>
22 22
             <printThree v-if="org_id == 10088 " :paramsObj="invoiceParams" :show="showclick"></printThree>
23 23
             <printfifteen v-if="org_id == 10510  " :paramsObj="invoiceParams"></printfifteen>
@@ -142,7 +142,7 @@
142 142
         return "";
143 143
       },
144 144
       printThisPage() {
145
-        if (this.org_id == 10217 || this.org_id == 10633){
145
+        if (this.org_id == 10217){
146 146
           const style =
147 147
             // '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.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}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
148 148
             '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.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;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}.actionBar{display: flex;justify-content: space-between; line-height: 24px;}.actionBar div{width:150px;}}';

+ 236 - 232
src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue Прегледај датотеку

@@ -1,248 +1,252 @@
1 1
 <template>
2
-  <div id='invoice-print' >
3
-    <div v-for='(i,index) in pageArr.length' :key="index" >
4
-      <div :style="{position: 'absolute',top:(0 + (index * 420))  + 'px',left:152+ 'px',}">大丰燕舞血液透析中心</div>
5
-      <div :style="{position: 'absolute',top:(18 + (index * 420))  + 'px',left:117+ 'px',}">{{ list.order_number }}</div>
6
-      <div >
7
-        <div :style="{position: 'absolute',top:(38 + (index * 420))  + 'px',left:92+ 'px',}">{{ paramsObj.name }}</div>
8
-        <div :style="{position: 'absolute',top:(38 + (index * 420))  + 'px',left:492+ 'px',}">{{ doctor_info.user_name }}  {{ doctor_info.doctor_number }} </div>
9
-      </div>
10
-      <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:76+ 'px',}">
11
-          <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
12
-          <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
13
-          <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
14
-          <div v-if="list.chineseTraditionalMedicineCostTotal">中成药 {{ list.chineseTraditionalMedicineCostTotal }}</div>
15
-          <div v-if="list.laboratoryCostTotal">化验费 {{ list.laboratoryCostTotal }}</div>
16
-          <div v-if="list.operationCostTotal">手术费 {{ list.operationCostTotal }}</div>
17
-          <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
18
-          <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
19
-      </div>
20
-      <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:270+ 'px'}">
21
-          <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
22
-              <span style="display:inline-block;width:200px;">
23
-                  <span v-if="item.advice.id == 0">
24
-                      <span v-if="item.project.type == 2"> {{ item.project.project.project_name }}</span>
25
-                      <span v-if="item.project.type == 3">{{ item.project.good_info.good_name }}</span>
26
-                  </span>
27
-                  <span v-else>{{ item.advice.advice_name }}</span>
28
-              </span>
29
-              <span style="display:inline-block;width:50px;">
30
-                  <span v-if="item.advice.id == 0">
31
-                      <span v-if="item.project.type == 2">{{ item.project.count }}{{ item.project.unit }}</span>
32
-                      <span v-if="item.project.type == 3">{{ item.project.count }}{{ item.project.unit }}</span>
33
-                  </span>
34
-                  <span v-else>{{ item.advice.prescribing_number }}{{ item.advice.prescribing_number_unit }}</span>
35
-              </span>
36
-              <span>
37
-                  <span v-if="item.advice.id == 0">
38
-                      <span v-if="item.project.type == 2">{{ (item.project.count * item.pric).toFixed(2) }}</span>
39
-                      <span v-if="item.project.type == 3">{{ (item.project.count * item.pric).toFixed(2) }}</span>
40
-                  </span>
41
-                  <span v-else>{{ (item.advice.prescribing_number * item.pric).toFixed(2) }}</span>
42
-              </span>
43
-          </div>
44
-      </div>
45
-      <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:121+ 'px'}">{{ zhongwen }}</div>
46
-      <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:490+ 'px'}">{{ list.medfee_sumamt }}</div>
47
-      <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(320 + (index * 420))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
48
-        <div style="display:flex;">
49
-          <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
50
-          <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
51
-          <div style="width:140px">统筹支出:{{ list.order.hifp_pay }}</div>
52
-          <div style="width:140px">大病支出:{{list.order.hifmi_pay}}</div>
53
-
2
+    <div id='invoice-print' >
3
+      <div v-for='(i,index) in pageArr.length' :key="index" >
4
+        <div v-if="org_id == 10217" :style="{position: 'absolute',top:(0 + (index * 420))  + 'px',left:152+ 'px',}">大丰燕舞血液透析中心</div>
5
+        <div v-if="org_id == 10633" :style="{position: 'absolute',top:(0 + (index * 420))  + 'px',left:152+ 'px',}">盱眙恒硕血液透析中心</div>
6
+        <div :style="{position: 'absolute',top:(18 + (index * 420))  + 'px',left:117+ 'px',}">{{ list.order_number }}</div>
7
+        <div >
8
+          <div :style="{position: 'absolute',top:(38 + (index * 420))  + 'px',left:92+ 'px',}">{{ paramsObj.name }}</div>
9
+          <div :style="{position: 'absolute',top:(38 + (index * 420))  + 'px',left:492+ 'px',}">{{ doctor_info.user_name }}  {{ doctor_info.doctor_number }} </div>
10
+        </div>
11
+        <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:76+ 'px',}">
12
+            <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
13
+            <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
14
+            <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
15
+            <div v-if="list.chineseTraditionalMedicineCostTotal">中成药 {{ list.chineseTraditionalMedicineCostTotal }}</div>
16
+            <div v-if="list.laboratoryCostTotal">化验费 {{ list.laboratoryCostTotal }}</div>
17
+            <div v-if="list.operationCostTotal">手术费 {{ list.operationCostTotal }}</div>
18
+            <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
19
+            <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
54 20
         </div>
55
-        <div style="display:flex;">
56
-          <div style="width:140px">个人账户支付:{{ list.order.acct_pay }}</div>
57
-          <div style="width:140px">现金支出:{{ list.order.psn_cash_pay }}</div>
58
-          <div style="width:140px">本次账户:0</div>
59
-          <div style="width:140px">上次账户:0</div>
21
+        <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:270+ 'px'}">
22
+            <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
23
+                <span style="display:inline-block;width:200px;">
24
+                    <span v-if="item.advice.id == 0">
25
+                        <span v-if="item.project.type == 2"> {{ item.project.project.project_name }}</span>
26
+                        <span v-if="item.project.type == 3">{{ item.project.good_info.good_name }}</span>
27
+                    </span>
28
+                    <span v-else>{{ item.advice.advice_name }}</span>
29
+                </span>
30
+                <span style="display:inline-block;width:50px;">
31
+                    <span v-if="item.advice.id == 0">
32
+                        <span v-if="item.project.type == 2">{{ item.project.count }}{{ item.project.unit }}</span>
33
+                        <span v-if="item.project.type == 3">{{ item.project.count }}{{ item.project.unit }}</span>
34
+                    </span>
35
+                    <span v-else>{{ item.advice.prescribing_number }}{{ item.advice.prescribing_number_unit }}</span>
36
+                </span>
37
+                <span>
38
+                    <span v-if="item.advice.id == 0">
39
+                        <span v-if="item.project.type == 2">{{ (item.project.count * item.pric).toFixed(2) }}</span>
40
+                        <span v-if="item.project.type == 3">{{ (item.project.count * item.pric).toFixed(2) }}</span>
41
+                    </span>
42
+                    <span v-else>{{ (item.advice.prescribing_number * item.pric).toFixed(2) }}</span>
43
+                </span>
44
+            </div>
60 45
         </div>
61
-        <div style="display:flex;">
62
-          <div style="width:140px">账户余额:{{ list.order.balc }}</div>
63
-          <div style="width:140px">其他支出:{{ list.order.oth_pay }}</div>
64
-          <div style="width:140px">大病补充保险支出:0</div>
65
-          <div style="width:140px">民政支出:0</div>
46
+        <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:121+ 'px'}">{{ zhongwen }}</div>
47
+        <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:490+ 'px'}">{{ list.medfee_sumamt }}</div>
48
+        <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(320 + (index * 420))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
49
+          <div style="display:flex;">
50
+            <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
51
+            <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
52
+            <div style="width:140px">统筹支出:{{ list.order.hifp_pay }}</div>
53
+            <div style="width:140px">大病支出:{{list.order.hifmi_pay}}</div>
54
+  
55
+          </div>
56
+          <div style="display:flex;">
57
+            <div style="width:140px">个人账户支付:{{ list.order.acct_pay }}</div>
58
+            <div style="width:140px">现金支出:{{ list.order.psn_cash_pay }}</div>
59
+            <div style="width:140px">本次账户:0</div>
60
+            <div style="width:140px">上次账户:0</div>
61
+          </div>
62
+          <div style="display:flex;">
63
+            <div style="width:140px">账户余额:{{ list.order.balc }}</div>
64
+            <div style="width:140px">其他支出:{{ list.order.oth_pay }}</div>
65
+            <div style="width:140px">大病补充保险支出:0</div>
66
+            <div style="width:140px">民政支出:0</div>
67
+          </div>
68
+          <div style="display:flex;">
69
+            <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>
70
+            <div style="width:280px">企业补充医疗保险基金支出:{{ list.order.hifes_pay }}</div>
71
+          </div>
72
+  
66 73
         </div>
67
-        <div style="display:flex;">
68
-          <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>
69
-          <div style="width:280px">企业补充医疗保险基金支出:{{ list.order.hifes_pay }}</div>
74
+        <div v-if="index != pageArr.length - 1">
75
+            <div v-if="org_id == 10217" :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">大丰燕舞血液透析中心</div>
76
+            <div v-if="org_id == 10633" :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">盱眙恒硕血液透析中心</div>
77
+            <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
78
+            <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
79
+                <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
80
+            </div>
81
+            <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:479+ 'px'}">
82
+                <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
83
+            </div>
84
+            <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:500+ 'px'}">
85
+                <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
86
+            </div>
70 87
         </div>
71
-
72
-      </div>
73
-      <div v-if="index != pageArr.length - 1">
74
-          <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">大丰燕舞血液透析中心</div>
88
+        <div v-if="index == pageArr.length - 1">
89
+          <div v-if="org_id == 10217" :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">大丰燕舞血液透析中心</div>
90
+          <div v-if="org_id == 10633" :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">盱眙恒硕血液透析中心</div>
75 91
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
76 92
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
77
-              <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
93
+            <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
78 94
           </div>
79 95
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:479+ 'px'}">
80
-              <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
96
+            <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
81 97
           </div>
82 98
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:500+ 'px'}">
83
-              <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
99
+            <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
84 100
           </div>
85
-      </div>
86
-      <div v-if="index == pageArr.length - 1">
87
-        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">大丰燕舞血液透析中心</div>
88
-        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
89
-        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
90
-          <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
91 101
         </div>
92
-        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:479+ 'px'}">
93
-          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
94
-        </div>
95
-        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:500+ 'px'}">
96
-          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
97
-        </div>
98
-      </div>
99
-  </div>
100
-  </div>
101
-</template>
102
-
103
-<script>
104
-import { getInvoice } from '@/api/project/project'
105
-import { uParseTime } from '@/utils/tools'
106
-export default {
107
-  props:{
108
-      paramsObj:Object
109
-  },
110
-  data(){
111
-      return{
112
-          list:{},
113
-          printDate:'',
114
-          zhongwen:'',
115
-          totalPrice:0.0,
116
-          org_id:'',
117
-          org_name:'',
118
-          page:1,
119
-          pageArr:[],
120
-          doctor_info:{},
121
-      }
122
-  },
123
-  created(){
124
-      console.log('paramsObj',this.paramsObj)
125
-      let params = {
126
-          order_id: this.paramsObj.order_id,
127
-          patient_id: this.paramsObj.patient_id,
128
-      }
129
-      this.getInvoice(params)
130
-      // var data = new Date();
131
-      // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
132
-      // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
133
-      // this.printDate = data.getFullYear() + "-" + month + "-" + date;
134
-      // this.smalltoBIG(982732.21)
135
-      this.org_id = this.$store.getters.xt_user.org_id
136
-      this.org_name = this.$store.getters.xt_user.org.org_name
137
-  },
138
-  methods:{
139
-      getInvoice(params){
140
-          getInvoice(params).then((res) => {
141
-              // console.log('res',res)
142
-              this.list = res.data.data
143
-              // console.log(this.list,'表单内容打印记得注释')
144
-              this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
145
-                                  this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
146
-              this.smalltoBIG(this.list.medfee_sumamt)
147
-              var data = new Date(res.data.data.date * 1000);
148
-              var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
149
-              var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
150
-              this.printDate = data.getFullYear() + "-" + month + "-" + date;
151
-              this.pageArr = []
152
-              this.getPage()
153
-              this.pageArr.push(10)
154
-              console.log('pageArr',this.pageArr.length)
155
-              this.doctor_info = res.data.data.doctor_info
156
-              console.log("doc_ON2O2O2O",this.doctor_info)
157
-          })
158
-      },
159
-      smalltoBIG(n) {
160
-          // let fraction = ['角', '分'];
161
-          // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
162
-          // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
163
-          // let head = price < 0 ? '欠' : '';
164
-          // price = Math.abs(price);
165
-          // let upper = '';
166
-          // for (let i = 0; i < fraction.length; i++) {
167
-          // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
168
-          // }
169
-          // upper = upper || '整';
170
-          // price = Math.floor(price);
171
-          // for (let i = 0; i < unit[0].length && price > 0; i++) {
172
-          // let p = '';
173
-          // for (let j = 0; j < unit[1].length && price > 0; j++) {
174
-          //     p = digit[price % 10] + unit[1][j] + p;
175
-          //     price = Math.floor(price / 10);
176
-          // }
177
-          // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
178
-          // }
179
-          // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
180
-          // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
181
-          if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
182
-              return "数据非法";  //判断数据是否大于0
183
-          }
184
-
185
-          var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
186
-          n += "00";
187
-
188
-          var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
189
-
190
-          if (indexpoint >= 0){
191
-
192
-              n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
193
-          }
194
-
195
-          unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
196
-          for (var i=0; i < n.length; i++){
197
-              str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
198
-          }
199
-          console.log("str",str)
200
-          if(str == '零元零角零分'){
201
-              this.zhongwen = '零'
202
-          }else{
203
-              this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
204
-          }
205
-
206
-          console.log(this.zhongwen)
207
-      },
208
-      getTime(value, temp) {
209
-          if (value == 0) {
210
-              return ''
211
-          }
212
-          if (value != undefined) {
213
-              return uParseTime(value, temp)
214
-          }
215
-          return ''
216
-      },
217
-      getPage(){
218
-      if(this.list.order_info.length <= 10){
219
-          this.page = 1
220
-          this.pageArr.push(this.list.order_info.length)
221
-      }else if(this.list.order_info.length > 10){
222
-          this.page = parseInt(this.list.order_info.length / 10)
223
-          let num = this.list.order_info.length % 10
224
-          for (var i=0;i<this.page;i++){
225
-              this.pageArr.push(10)
226
-          }
227
-          if(num != 0){
228
-              this.pageArr.push(num)
229
-          }
102
+    </div>
103
+    </div>
104
+  </template>
105
+  
106
+  <script>
107
+  import { getInvoice } from '@/api/project/project'
108
+  import { uParseTime } from '@/utils/tools'
109
+  export default {
110
+    props:{
111
+        paramsObj:Object
112
+    },
113
+    data(){
114
+        return{
115
+            list:{},
116
+            printDate:'',
117
+            zhongwen:'',
118
+            totalPrice:0.0,
119
+            org_id:'',
120
+            org_name:'',
121
+            page:1,
122
+            pageArr:[],
123
+            doctor_info:{},
124
+        }
125
+    },
126
+    created(){
127
+        console.log('paramsObj',this.paramsObj)
128
+        let params = {
129
+            order_id: this.paramsObj.order_id,
130
+            patient_id: this.paramsObj.patient_id,
131
+        }
132
+        this.getInvoice(params)
133
+        // var data = new Date();
134
+        // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
135
+        // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
136
+        // this.printDate = data.getFullYear() + "-" + month + "-" + date;
137
+        // this.smalltoBIG(982732.21)
138
+        this.org_id = this.$store.getters.xt_user.org_id
139
+        this.org_name = this.$store.getters.xt_user.org.org_name
140
+    },
141
+    methods:{
142
+        getInvoice(params){
143
+            getInvoice(params).then((res) => {
144
+                // console.log('res',res)
145
+                this.list = res.data.data
146
+                // console.log(this.list,'表单内容打印记得注释')
147
+                this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
148
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
149
+                this.smalltoBIG(this.list.medfee_sumamt)
150
+                var data = new Date(res.data.data.date * 1000);
151
+                var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
152
+                var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
153
+                this.printDate = data.getFullYear() + "-" + month + "-" + date;
154
+                this.pageArr = []
155
+                this.getPage()
156
+                this.pageArr.push(10)
157
+                console.log('pageArr',this.pageArr.length)
158
+                this.doctor_info = res.data.data.doctor_info
159
+                console.log("doc_ON2O2O2O",this.doctor_info)
160
+            })
161
+        },
162
+        smalltoBIG(n) {
163
+            // let fraction = ['角', '分'];
164
+            // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
165
+            // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
166
+            // let head = price < 0 ? '欠' : '';
167
+            // price = Math.abs(price);
168
+            // let upper = '';
169
+            // for (let i = 0; i < fraction.length; i++) {
170
+            // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
171
+            // }
172
+            // upper = upper || '整';
173
+            // price = Math.floor(price);
174
+            // for (let i = 0; i < unit[0].length && price > 0; i++) {
175
+            // let p = '';
176
+            // for (let j = 0; j < unit[1].length && price > 0; j++) {
177
+            //     p = digit[price % 10] + unit[1][j] + p;
178
+            //     price = Math.floor(price / 10);
179
+            // }
180
+            // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
181
+            // }
182
+            // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
183
+            // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
184
+            if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
185
+                return "数据非法";  //判断数据是否大于0
186
+            }
187
+  
188
+            var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
189
+            n += "00";
190
+  
191
+            var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
192
+  
193
+            if (indexpoint >= 0){
194
+  
195
+                n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
196
+            }
197
+  
198
+            unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
199
+            for (var i=0; i < n.length; i++){
200
+                str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
201
+            }
202
+            console.log("str",str)
203
+            if(str == '零元零角零分'){
204
+                this.zhongwen = '零'
205
+            }else{
206
+                this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
207
+            }
208
+  
209
+            console.log(this.zhongwen)
210
+        },
211
+        getTime(value, temp) {
212
+            if (value == 0) {
213
+                return ''
214
+            }
215
+            if (value != undefined) {
216
+                return uParseTime(value, temp)
217
+            }
218
+            return ''
219
+        },
220
+        getPage(){
221
+        if(this.list.order_info.length <= 10){
222
+            this.page = 1
223
+            this.pageArr.push(this.list.order_info.length)
224
+        }else if(this.list.order_info.length > 10){
225
+            this.page = parseInt(this.list.order_info.length / 10)
226
+            let num = this.list.order_info.length % 10
227
+            for (var i=0;i<this.page;i++){
228
+                this.pageArr.push(10)
229
+            }
230
+            if(num != 0){
231
+                this.pageArr.push(num)
232
+            }
233
+        }
230 234
       }
235
+  
236
+    },
237
+    watch:{
238
+        paramsObj:{//深度监听,可监听到对象、数组的变化
239
+            handler(val, oldVal){
240
+                let params = {
241
+                    order_id: val.order_id,
242
+                    patient_id: val.patient_id,
243
+                }
244
+                this.getInvoice(params)
245
+  
246
+            },
247
+            deep:true
248
+        }
231 249
     }
232
-
233
-  },
234
-  watch:{
235
-      paramsObj:{//深度监听,可监听到对象、数组的变化
236
-          handler(val, oldVal){
237
-              let params = {
238
-                  order_id: val.order_id,
239
-                  patient_id: val.patient_id,
240
-              }
241
-              this.getInvoice(params)
242
-
243
-          },
244
-          deep:true
245
-      }
246 250
   }
247
-}
248
-</script>
251
+  </script>
252
+  

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Прегледај датотеку

@@ -315,7 +315,7 @@ export default {
315 315
       if (
316 316
         this.$store.getters.xt_user.org_id == 10138 ||
317 317
         this.$store.getters.xt_user.org_id == 4 ||
318
-        this.$store.getters.xt_user.org_id == 10278 ||   this.$store.getters.xt_user.org_id == 10610
318
+        this.$store.getters.xt_user.org_id == 10278 ||   this.$store.getters.xt_user.org_id == 10610 ||  this.$store.getters.xt_user.org_id == 10537
319 319
       ) {
320 320
         setTimeout(() => {
321 321
           const style =

+ 20 - 21
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Прегледај датотеку

@@ -2013,12 +2013,12 @@ export default {
2013 2013
 
2014 2014
 
2015 2015
               var preTime = nowTime
2016
-              if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 && this.$store.getters.xt_user.org.id != 0) {
2016
+              if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2017 2017
                 if (prescription.pre_time == 0) {
2018 2018
                   if (this.schedule.schedule_type == 1) {
2019
-                    if (this.org_id == 10028) {
2019
+                    if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0) {
2020 2020
                       preTime = this.record_date + ' ' + '6:30'
2021
-                    } else if(this.org_id == 10206  || this.org_id == 0){
2021
+                    } else if(this.org_id == 10206 ){
2022 2022
                       preTime = this.record_date + ' ' + '6:00'
2023 2023
                     } else {
2024 2024
                       preTime = this.record_date + ' ' + '7:00'
@@ -2209,15 +2209,14 @@ export default {
2209 2209
                   tempProject.push(obj)
2210 2210
                 }
2211 2211
                 var preTime = nowTime
2212
-                if (this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2212
+                if (this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
2213 2213
                   if (this.schedule.schedule_type == 1) {
2214
-                    if (this.org_id == 10028) {
2214
+                    if (this.org_id == 10028 ||  this.org_id == 10571 || this.org_id == 0) {
2215 2215
                       preTime = this.record_date + ' ' + '6:30'
2216
-                    } else if(this.org_id == 10206  || this.org_id == 0) {
2216
+                    } else if(this.org_id == 10206  ) {
2217 2217
                       preTime = this.record_date+ ' ' + '6:00'
2218 2218
                     } else {
2219 2219
                       preTime = this.record_date + ' ' + '7:00'
2220
-
2221 2220
                     }
2222 2221
                     // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2223 2222
                   } else if (this.schedule.schedule_type == 2) {
@@ -2591,9 +2590,9 @@ export default {
2591 2590
                     if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2592 2591
                       if (prescription.pre_time == 0) {
2593 2592
                         if (this.schedule.schedule_type == 1) {
2594
-                          if (this.org_id == 10028) {
2593
+                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0) {
2595 2594
                             preTime = this.record_date + ' ' + '6:30'
2596
-                          } else if(this.org_id == 10206 || this.org_id == 0){
2595
+                          } else if(this.org_id == 10206 ){
2597 2596
                             preTime = this.record_date + ' ' + '6:00'
2598 2597
                           } else {
2599 2598
                             preTime = this.record_date + ' ' + '7:00'
@@ -2779,9 +2778,9 @@ export default {
2779 2778
                       // var preTime = ''
2780 2779
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2781 2780
                         if (this.schedule.schedule_type == 1) {
2782
-                          if (this.org_id == 10028) {
2781
+                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0) {
2783 2782
                             preTime = this.record_date + ' ' + '6:30'
2784
-                          } else if(this.org_id == 10206  || this.org_id == 0){
2783
+                          } else if(this.org_id == 10206){
2785 2784
                             preTime = this.record_date + ' ' + '6:00'
2786 2785
                           } else {
2787 2786
                             preTime = this.record_date + ' ' + '7:00'
@@ -4474,12 +4473,12 @@ export default {
4474 4473
 
4475 4474
                     var preTime = nowTime
4476 4475
 
4477
-                    if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4476
+                    if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
4478 4477
                       if (prescription.pre_time == 0) {
4479 4478
                         if (this.schedule.schedule_type == 1) {
4480
-                          if (this.org_id == 10028) {
4479
+                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0) {
4481 4480
                             preTime = this.record_date + ' ' + '6:30'
4482
-                          } else if(this.org_id == 10206 || this.org_id == 0){
4481
+                          } else if(this.org_id == 10206){
4483 4482
 
4484 4483
                             preTime = this.record_date + ' ' + '6:00'
4485 4484
 
@@ -4666,11 +4665,11 @@ export default {
4666 4665
 
4667 4666
                       // var preTime = nowTime
4668 4667
                       var preTime = nowTime
4669
-                      if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4668
+                      if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
4670 4669
                         if (this.schedule.schedule_type == 1) {
4671
-                          if (this.org_id == 10028) {
4670
+                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0) {
4672 4671
                             preTime = this.record_date + ' ' + '6:30'
4673
-                          } else if(this.org_id == 10206  || this.org_id == 0){
4672
+                          } else if(this.org_id == 10206){
4674 4673
                             preTime = this.record_date+ ' ' + '6:00'
4675 4674
                           } else {
4676 4675
                             preTime = this.record_date + ' ' + '7:00'
@@ -5104,9 +5103,9 @@ export default {
5104 5103
                       if (prescription.pre_time == 0) {
5105 5104
                         // preTime = nowTime
5106 5105
                         if (this.schedule.schedule_type == 1) {
5107
-                          if (this.org_id == 10028) {
5106
+                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0) {
5108 5107
                             preTime = this.record_date + ' ' + '6:30'
5109
-                          } else if(this.org_id == 10206 || this.org_id == 0){
5108
+                          } else if(this.org_id == 10206){
5110 5109
                             preTime = this.record_date + ' ' + '6:00'
5111 5110
                           } else {
5112 5111
                             preTime = this.record_date + ' ' + '7:00'
@@ -5292,9 +5291,9 @@ export default {
5292 5291
                       // var preTime = ''
5293 5292
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
5294 5293
                         if (this.schedule.schedule_type == 1) {
5295
-                          if (this.org_id == 10028) {
5294
+                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0) {
5296 5295
                             preTime = this.record_date + ' ' + '6:30'
5297
-                          } else if(this.org_id == 10206 ||  this.org_id == 0){
5296
+                          } else if(this.org_id == 10206){
5298 5297
                             preTime = this.record_date + ' ' + '6:00'
5299 5298
                           } else {
5300 5299
                             preTime = this.record_date + ' ' + '7:00'

+ 2 - 2
src/xt_pages/outpatientDoctorStation/template/prineight.vue Прегледај датотеку

@@ -62,7 +62,7 @@
62 62
                 临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
63 63
               </div>
64 64
               <div style="flex: 1;">
65
-                过敏史:
65
+                过敏史:{{ item.patient.allergic_history }}
66 66
               </div>
67 67
             </div>
68 68
             <div style="flex: 2;margin: 10px 0;">住址/电话:{{ item.patient.home_address }}&nbsp;<span>{{ item.patient.phone }}</span></div>
@@ -148,7 +148,7 @@
148 148
                       临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
149 149
                     </div>
150 150
                     <div style="flex: 1;">
151
-                      过敏史:
151
+                      过敏史:{{ item.patient.allergic_history }}
152 152
                     </div>
153 153
                   </div>
154 154
                   <div style="width: 100%;margin: 10px 0;padding: 0 10px;">地址/电话:{{ item.patient.home_address }}&nbsp;<span>{{ item.patient.phone }}</span></div>

+ 69 - 13
src/xt_pages/outpatientTool/detailPrint.vue Прегледај датотеку

@@ -4,7 +4,7 @@
4 4
       <el-button type="primary" @click="printtpage">打印</el-button>
5 5
     </div>
6 6
     <div id="list-print" class="list-print">
7
-      <table class="listTable"
7
+      <!-- <table class="listTable"
8 8
         border="0"
9 9
         cellspacing="0"
10 10
         style="font-size: 14px"
@@ -16,15 +16,15 @@
16 16
             ></tr
17 17
           >
18 18
           <tr>
19
-            <td>患者姓名:{{ patient.name }}</td>
20
-            <td>性别:{{ patient.gender == 1 ? "男" : "女" }}</td>
21
-            <td>身份证:{{patient.id_card_no}}</td>
19
+            <td style="width: 10%;">患者姓名:{{ patient.name }}</td>
20
+            <td style="width: 5%;">性别:{{ patient.gender == 1 ? "男" : "女" }}</td>
21
+            <td style="width: 30%;">身份证:{{patient.id_card_no}}</td>
22 22
 
23
-            <TD>年龄:{{ getAge(patient.id_card_no)?getAge(patient.id_card_no)+'岁':''}}</TD>
24
-            <td>结算类别:
23
+            <TD style="width: 8%;">年龄:{{ getAge(patient.id_card_no)?getAge(patient.id_card_no)+'岁':''}}</TD>
24
+            <td style="width: 8%;">结算类别:
25 25
             <span v-if="his_patient!=null&&his_patient.balance_accounts_type >0"> {{ getType(his_patient.balance_accounts_type) }} </span>
26 26
             <span v-if="his_record_patient!=null&&his_record_patient.balance_accounts_type >0">{{getType(his_record_patient.balance_accounts_type)}}</span></td>
27
-            <td>发票号码:{{order.fa_piao_number}}</td>
27
+            <td style="width: 30%;">发票号码:{{order.fa_piao_number}}</td>
28 28
           </tr>
29 29
           <tr>
30 30
             <td>住院/门诊号:
@@ -41,14 +41,11 @@
41 41
             <td>总费用:{{ getAllPice() }}</td>
42 42
             <td>个人支付金额:
43 43
              {{getPsnCashPay()}}
44
-            <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
45
-            <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
46 44
             </td>
47 45
 
48 46
             <td>个人账户支付金额:
49 47
               {{getActPay()}}
50
-              <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
51
-              <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
48
+
52 49
             </td>
53 50
             <td>基金支付记账:{{ getFundPaySumamt() }}</td>
54 51
             <td>补充医疗支付记账:{{ getHifesPay() }}</td>
@@ -59,8 +56,67 @@
59 56
             </td>
60 57
           </tr>
61 58
         </thead>
62
-      </table>
63
-
59
+      </table> -->
60
+      <div style="text-align: center;font-size: 20px;font-weight: 200;margin-bottom: 10px;">
61
+        {{ $store.getters.xt_user.org.org_name }}费用清单
62
+      </div>
63
+      <div style="display: flex;font-size: 16px;">
64
+        <div style="">
65
+          患者姓名:{{ patient.name }}
66
+        </div>
67
+        <div style="margin: 0 10px;">
68
+          性别:{{ patient.gender == 1 ? "男" : "女" }}
69
+        </div>
70
+        <div style="">
71
+          身份证:{{patient.id_card_no}}
72
+        </div> &nbsp;
73
+        <div style="margin: 0 10px;">
74
+          年龄:{{ getAge(patient.id_card_no)?getAge(patient.id_card_no)+'岁':''}}
75
+        </div> &nbsp;
76
+        <div style="">
77
+          结算类别:
78
+          <span v-if="his_patient!=null&&his_patient.balance_accounts_type >0"> {{ getType(his_patient.balance_accounts_type) }} </span>
79
+          <span v-if="his_record_patient!=null&&his_record_patient.balance_accounts_type >0">{{getType(his_record_patient.balance_accounts_type)}}</span>
80
+        </div> &nbsp;
81
+        <div style="margin-left: 10px;">
82
+          发票号码:{{order.fa_piao_number}}
83
+        </div>
84
+      </div>
85
+      <div style="display: flex;font-size: 16px;margin: 10px 0;">
86
+        <div >
87
+          住院/门诊号:
88
+          <span v-if="his_patient!=null && his_patient.number!=''">{{his_patient.number}}</span>
89
+          <span v-if="his_record_patient!=null && his_record_patient.ipt_otp_no!=''">{{his_record_patient.ipt_otp_no}}</span>
90
+        </div>
91
+        <div style="margin: 0 10px;">
92
+          科室:
93
+          <span v-if="his_patient!=null && his_patient.departments >0"> {{ getDepartment(his_patient.departments) }}</span>
94
+          <span v-if="his_record_patient!=null && his_record_patient.departments > 0">{{ getDepartment(his_record_patient.departments) }}</span>
95
+        </div>
96
+        <div>
97
+          就诊流水号:
98
+          <span v-if="his_patient!=null && his_patient.number!=''"> {{ his_patient.number }}</span>
99
+          <span v-if="his_record_patient!=null && his_record_patient.number!=''">{{his_record_patient.number}}</span>
100
+        </div>
101
+      </div>
102
+      <div style="display: flex;font-size: 16px;margin-bottom: 10px;">
103
+        <div >
104
+          总费用:{{ getAllPice() }}
105
+        </div>
106
+        <div style="margin: 0 10px;">
107
+          个人支付金额:
108
+             {{getPsnCashPay()}}
109
+        </div>
110
+        <div>
111
+          基金支付记账:{{ getFundPaySumamt() }}
112
+        </div>
113
+        <div style="margin: 0 10px;">
114
+          补充医疗支付记账:{{ getHifesPay() }}
115
+        </div>
116
+        <div>
117
+          救助支付金额:{{ getMafPay() }}
118
+        </div>
119
+      </div>
64 120
       <!-- <div class="listTitle">
65 121
         {{ $store.getters.xt_user.org.org_name }}费用清单
66 122
       </div> -->

+ 2 - 2
src/xt_pages/role/admin.vue Прегледај датотеку

@@ -227,12 +227,12 @@
227 227
           @click="toAutoDrug">自动生成</el-button> -->
228 228
 
229 229
 
230
-         <!-- <el-button
230
+         <el-button
231 231
           type="primary"
232 232
           size="small"
233 233
           icon="el-icon-circle-plus-outline"
234 234
           style="float:left"
235
-          @click="toAutoDiagnose">自动脚本</el-button> -->
235
+          @click="toAutoDiagnose">自动脚本</el-button>
236 236
 
237 237
         <!-- <el-button
238 238
           type="primary"

+ 2 - 2
src/xt_pages/user/dialysisRecord.vue Прегледај датотеку

@@ -330,7 +330,7 @@
330 330
           @size-change="handleSizeChange"
331 331
           @current-change="handleCurrentChange"
332 332
           :current-page="queryParams.page"
333
-          :page-sizes="[10, 20, 50, 100]"
333
+          :page-sizes="[20, 40, 60,80, 100]"
334 334
           :page-size="10"
335 335
           background
336 336
           style="margin-top:20px;"
@@ -544,7 +544,7 @@ export default {
544 544
         end_time: "",
545 545
         page: 1,
546 546
         patient_id: 0,
547
-        limit: 10
547
+        limit: 20,
548 548
       },
549 549
       recordData: [],
550 550
       dateOptions: [