Browse Source

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

陈少旭 1 year ago
parent
commit
3c769f10b2

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -3292,9 +3292,9 @@ export default {
3292 3292
             var delghTwo = 0;
3293 3293
             if (
3294 3294
               this.records[recordIndex].advices &&
3295
-              this.records[recordIndex].advices.length < 20
3295
+              this.records[recordIndex].advices.length < 10
3296 3296
             ) {
3297
-              delghTwo = 20 - this.records[recordIndex].advices.length;
3297
+              delghTwo = 10 - this.records[recordIndex].advices.length;
3298 3298
             } else {
3299 3299
               delghTwo = 0;
3300 3300
             }

+ 2 - 2
src/xt_pages/outpatientCharges/invoicePrint.vue View File

@@ -33,12 +33,12 @@
33 33
       </div>
34 34
     </div>
35 35
 
36
-    <div class="app-container" style="" v-if="org_id == 10217 || org_id == 0">
36
+    <div class="app-container" style="" v-if="org_id == 10217 ">
37 37
       <div class='dialysisPage'>
38 38
         <printSix :paramsObj="invoiceParams"></printSix>
39 39
       </div>
40 40
     </div>
41
-    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10375 ">
41
+    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10375 || org_id == 0">
42 42
       <div class='dialysisPage'>
43 43
         <print-ten :paramsObj="invoiceParams"></print-ten>
44 44
       </div>

+ 13 - 14
src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue View File

@@ -1,7 +1,6 @@
1
-
2 1
 <template>
3 2
   <div id='invoice-print' >
4
-    <div v-for='(i,index) in pageArr.length' :key="index" :style="{'position':index == pageArr.length - 1 ? 'relative' : 'static'}">
3
+    <div v-for='(i,index) in pageArr.length' :key="index" >
5 4
       <div :style="{position: 'absolute',top:(0 + (index * 420))  + 'px',left:152+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
6 5
       <div :style="{position: 'absolute',top:(18 + (index * 420))  + 'px',left:117+ 'px',}">{{ list.order_number }}</div>
7 6
       <div >
@@ -17,7 +16,7 @@
17 16
           <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
18 17
           <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
19 18
       </div>
20
-      <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:247+ 'px'}">
19
+      <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:270+ 'px'}">
21 20
           <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
22 21
               <span style="display:inline-block;width:200px;">
23 22
                   <span v-if="item.advice.id == 0">
@@ -44,7 +43,7 @@
44 43
       </div>
45 44
       <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:121+ 'px'}">{{ zhongwen }}</div>
46 45
       <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:(350 + (index * 420))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
46
+      <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(320 + (index * 420))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
48 47
           <div style="display:flex;">
49 48
             <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
50 49
             <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
@@ -71,28 +70,28 @@
71 70
 
72 71
       </div>
73 72
       <div v-if="index != pageArr.length - 1">
74
-          <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
75
-          <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
76
-          <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:435+ 'px'}">
73
+          <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
74
+          <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
75
+          <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
77 76
               <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
78 77
           </div>
79
-          <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:479+ 'px'}">
78
+          <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:479+ 'px'}">
80 79
               <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
81 80
           </div>
82
-          <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:500+ 'px'}">
81
+          <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:500+ 'px'}">
83 82
               <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
84 83
           </div>
85 84
       </div>
86 85
       <div v-if="index == pageArr.length - 1">
87
-        <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
88
-        <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
89
-        <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:435+ 'px'}">
86
+        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
87
+        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
88
+        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
90 89
           <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
91 90
         </div>
92
-        <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:479+ 'px'}">
91
+        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:479+ 'px'}">
93 92
           <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
94 93
         </div>
95
-        <div :style="{position: 'absolute',top:(405 + (index * 420))  + 'px',left:500+ 'px'}">
94
+        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:500+ 'px'}">
96 95
           <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
97 96
         </div>
98 97
       </div>

+ 113 - 101
src/xt_pages/outpatientCharges/invoiceTemplate/printTen.vue View File

@@ -1,116 +1,128 @@
1 1
 <template>
2 2
   <div id='invoice-print' style="position: relative;">
3
-    <div style="border: 1px solid black;padding: 5px;width:600px;min-height:390px;">
4
-      <div style="display: flex;width: 575px;margin-bottom: 5px; position: absolute; top: 70px;left: 522px;">
3
+    
4
+      <div style="display: flex;width: 575px;margin-bottom: 5px; position: relative;left: 506px;">
5 5
         {{printDate}}
6 6
       </div>
7
-      <div style="display: flex; justify-content: space-between;width: 573px;">
8
-        <div style="position: absolute;top: 85px;">
9
-          <span>{{paramsObj.name}}</span>
10
-          <span></span>
11
-          <span style="margin-left: 60px;" v-if="list.gender == 1">女</span>
12
-          <span style="margin-left: 60px;" v-else-if="list.gender == 2">男</span>
13
-
14
-          <span></span>
7
+      
8
+        <div style="display: flex; justify-content: space-between;width: 573px;border: 1px solid black; position: relative;padding: 5px;">
9
+          <div >
10
+            <span>姓名:{{paramsObj.name}}</span>
11
+            <span style="margin-left: 60px;">性别:</span>
12
+            <span style="" v-if="list.gender == 1">女</span>
13
+            <span style="" v-else-if="list.gender == 2">男</span>
14
+          </div>
15
+          <div>
16
+            <span style="margin-right: 60px;">NO:</span>
17
+          </div>
15 18
         </div>
16
-        <div style="position: absolute;top: 85px;left: 351px;">
17
-          <span style="margin-right: 60px;"></span>
19
+        <div style="display: flex;justify-content: space-around;width: 573px;  padding: 5px;border-left: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;">
20
+          <div>项目</div>
21
+          <div>金额</div>
22
+          <div>项目</div>
23
+          <div>金额</div>
24
+          <div>项目</div>
25
+          <div>金额</div>
18 26
         </div>
19
-      </div>
20
-      <div style="display:flex;justify-content: space-between;">
21
-        <div style="position: absolute;top:120px;left:80px">西药费</div>
22
-        <div style="position: absolute;top:120px;left:171px">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
23
-        <div style="position: absolute;top:120px;left:262px">检查费</div>
24
-        <div style="position: absolute;top:120px;left:353px">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
25
-        <div style="position: absolute;top:120px;left:444px">治疗费</div>
26
-        <div style="position: absolute;top:120px;left:535px">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
27
-      </div>
27
+        <div style="border: 1px solid black; border-top: none; width: 573px;min-height: 220px;">
28
+          <div style="display:flex;justify-content: space-around;">
29
+            
30
+            <div style="">西药费</div>
31
+            <div style="">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
32
+            <div style="">检查费</div>
33
+            <div style="">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
34
+            <div style="">治疗费</div>
35
+            <div style="position:  relative;left: 16px;">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
36
+          </div>
28 37
 
29
-      <div style="display:flex;justify-content: space-between;">
30
-        <div style="position: absolute;top:140px;left:80px">床位费</div>
31
-        <div style="position: absolute;top:140px;left:171px">{{ list.bedCostTotal ? list.bedCostTotal.toFixed(2) : '' }}</div>
32
-        <div style="position: absolute;top:140px;left:262px">中成药</div>
33
-        <div style="position: absolute;top:140px;left:353px">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
34
-        <div style="position: absolute;top:140px;left:444px">化验费</div>
35
-        <div style="position: absolute;top:140px;left:535px">{{ list.laboratoryCostTotal ? list.laboratoryCostTotal.toFixed(2) : '' }}</div>
36
-      </div>
38
+          <div style="display:flex;justify-content: space-around;">
39
+           
40
+            <div style="">床位费</div>
41
+            <div style="">{{ list.bedCostTotal ? list.bedCostTotal.toFixed(2) : '' }}</div>
42
+            <div style="position:  relative;left: -15px;">中成药</div>
43
+            <div style="">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
44
+            <div style="position:  relative;left: -16px;">化验费</div>
45
+            <div style="">{{ list.laboratoryCostTotal ? list.laboratoryCostTotal.toFixed(2) : '' }}</div>
46
+          </div>
37 47
 
38
-      <div style="display:flex;justify-content: space-between;">
39
-        <div style="position: absolute;top:160px;left:80px">手术费</div>
40
-        <div style="position: absolute;top:160px;left:171px">{{ list.operationCostTotal ? list.operationCostTotal.toFixed(2) : '' }}</div>
41
-        <div style="position: absolute;top:160px;left:262px">中成药</div>
42
-        <div style="position: absolute;top:160px;left:353px">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
43
-        <div style="position: absolute;top:160px;left:444px">其他费</div>
44
-        <div style="position: absolute;top:160px;left:535px">{{ list.otherCostTotal ? list.otherCostTotal.toFixed(2) : '' }}</div>
45
-      </div>
48
+          <div style="display:flex;justify-content: space-around;">
49
+            <div style="">手术费</div>
50
+            <div style="">{{ list.operationCostTotal ? list.operationCostTotal.toFixed(2) : '' }}</div>
51
+            <div style="position:  relative;left: -15px;">中成药</div>
52
+            <div style="">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
53
+            <div style="position:  relative;left: -16px;">其他费</div>
54
+            <div style="">{{ list.otherCostTotal ? list.otherCostTotal.toFixed(2) : '' }}</div>
55
+          </div>
46 56
 
47
-      <div style="display:flex;justify-content: space-between;">
48
-        <div style="position: absolute;top:180px;left:80px">诊察费</div>
49
-        <div style="position: absolute;top:180px;left:171px">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
50
-        <div style="position: absolute;top:180px;left:262px">材料费</div>
51
-        <div style="position: absolute;top:180px;left:353px">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
52
-      </div>
53
-
54
-      <div>
55
-        <span>
56
-        <span  style="position: absolute;top:230px;left:120px">
57
-          <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
58
-                      {{ zhongwen.substring(0,1) }}
59
-                  </span>
60
-                  <span v-else>零</span>
57
+          <div style="display:flex;justify-content: space-around;">
58
+            <div style="position:  relative;left: -24px;">诊察费</div>
59
+            <div style="position:  relative;left: -75px;">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
60
+            <div style="position:  relative;left: -115px;">材料费</div>
61
+            <div style="position:  relative;left: -169px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
62
+          </div>
63
+        </div>
64
+        <div style="border: 1px solid black;border-top:none;padding: 5px;width: 573px;">
65
+          
66
+          <div style="border-right: 1px solid black;display: inline-block;width: 360px;">
67
+            <span>合计(大写):</span>
68
+            <span  style="">
69
+              <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
70
+                          {{ zhongwen.substring(0,1) }}
71
+                      </span>
72
+                      <span v-else>零</span>
61 73
 
62
-        </span>
63
-        <span  style="position: absolute;top:230px;left:140px">
64
-            <span v-if="zhongwen.indexOf('万') > -1">
65
-                      {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
66
-                  </span>
67
-                  <span v-else>零</span>
74
+            </span>
75
+            <span  style="">
76
+                <span v-if="zhongwen.indexOf('万') > -1">
77
+                          {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
78
+                      </span>
79
+                      <span v-else>零</span>
68 80
 
69
-        </span>
70
-        <span  style="position: absolute;top:230px;left:160px">
71
-          <span v-if="zhongwen.indexOf('仟') > -1">
72
-                      {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
73
-                  </span>
74
-                  <span v-else>零</span>
81
+            </span>
82
+            <span  style="">
83
+              <span v-if="zhongwen.indexOf('仟') > -1">
84
+                          {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
85
+                      </span>
86
+                      <span v-else>零</span>
75 87
 
76
-        </span>
77
-        <span  style="position: absolute;top:230px;left:180px">
78
-            <span v-if="zhongwen.indexOf('佰') > -1">
79
-                      {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
80
-                  </span>
81
-                  <span v-else>零</span>
88
+            </span>
89
+            <span  style="">
90
+                <span v-if="zhongwen.indexOf('佰') > -1">
91
+                          {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
92
+                      </span>
93
+                      <span v-else>零</span>
82 94
 
83
-        </span>
84
-        <span style="position: absolute;top:230px;left:200px">
85
-            <span v-if="zhongwen.indexOf('拾') > -1">
86
-                      {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
87
-                  </span>
88
-                  <span v-else>零</span>
95
+            </span>
96
+            <span style="">
97
+                <span v-if="zhongwen.indexOf('拾') > -1">
98
+                          {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
99
+                      </span>
100
+                      <span v-else>零</span>
89 101
 
90
-        </span>
91
-        <span  style="position: absolute;top:230px;left:220px">
92
-            <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
93
-                      {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
94
-                  </span>
95
-                  <span v-else>零</span>
96
-        </span>
97
-        <span  style="position: absolute;top:230px;left:240px">
98
-            <span v-if="zhongwen.indexOf('角') > -1">
99
-                      {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
100
-                  </span>
101
-                  <span v-else>零</span>
102
-        </span>
103
-        <span  style="position: absolute;top:230px;left:260px">
104
-          <span v-if="zhongwen.indexOf('分') > -1">
105
-                      {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
106
-                  </span>
107
-                  <span v-else>零</span>
108
-        </span>
109
-        </span>
110
-        <span style="position: absolute;top:230px;left:450px">¥:{{totalPrice.toFixed(2)}}</span>
111
-      </div>
112
-
113
-      <div style="border-bottom: 1px solid black;position: absolute;top:250px;left:110;width:573px;font-Size:12px">
102
+            </span>
103
+            <span  style="">
104
+                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
105
+                          {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
106
+                      </span>
107
+                      <span v-else>零</span>
108
+            </span>
109
+            <span  style="">
110
+                <span v-if="zhongwen.indexOf('角') > -1">
111
+                          {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
112
+                      </span>
113
+                      <span v-else>零</span>
114
+            </span>
115
+            <span  style="">
116
+              <span v-if="zhongwen.indexOf('分') > -1">
117
+                          {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
118
+                      </span>
119
+                      <span v-else>零</span>
120
+            </span>
121
+          </div>
122
+          <span style="position: relative;top:0px;left:0px">¥:{{totalPrice.toFixed(2)}}</span>
123
+        </div>
124
+      
125
+      <div style="border-bottom: 1px solid black;width:573px;font-Size:12px">
114 126
         <div  style="display:flex;margin: 3px 0px;">
115 127
           <div style="width:140px">医保:门慢统筹:{{list.order.hifp_pay}}</div>
116 128
           <div style="width:140px">大病保险:{{list.order.hifmi_pay}}</div>
@@ -123,7 +135,7 @@
123 135
           <div style="width:140px">个账余额:{{list.order.balc}}</div>
124 136
         </div>
125 137
       </div>
126
-      <div style="position: absolute;top:290px;left:110;width:573px;font-Size:12px">
138
+      <div style="width:573px;font-Size:12px">
127 139
         <div style="display:flex;margin: 3px 0px;">
128 140
           <div style="width:140px">现金支付:{{list.order.psn_cash_pay}}</div>
129 141
           <div style="width:140px">预存扣减:</div>
@@ -134,7 +146,7 @@
134 146
           <div style="width:140px">收款人:{{list.admin_user_name}}</div>
135 147
         </div>
136 148
       </div>
137
-    </div>
149
+   
138 150
   </div>
139 151
 </template>
140 152
 <script>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

@@ -40,7 +40,7 @@
40 40
                 <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
41 41
             </div>
42 42
 
43
-            <div class="prescriptionBox" style="min-height: 425px;">
43
+            <div class="prescriptionBox" style="min-height: 420px;">
44 44
                 <table style="width:100%;text-align:center;line-height:25px;">
45 45
                     <tr>
46 46
                         <td>序号</td>