瀏覽代碼

Merge branch '2022-10-17_vue_schedule_branch' of http://git.shengws.com/csx/Vue_New into 20220812

28169 2 年之前
父節點
當前提交
77b2ba3da7

+ 351 - 351
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue 查看文件

@@ -1,375 +1,375 @@
1 1
 <template>
2
-  <div id='invoice-print'>
2
+    <div id='invoice-print'>
3 3
 
4
-      <div style="display:flex;justify-content: space-between;">
4
+        <div style="display:flex;justify-content: space-between;">
5 5
 
6
-          <div style="position: absolute;top:5px;left:30px">
7
-              <!-- 发票代码 -->
6
+            <div style="position: absolute;top:5px;left:30px">
7
+                <!-- 发票代码 -->
8 8
 
9
+            </div>
10
+
11
+            <div  style="position: absolute;top:40px;left:300px"></div>
12
+
13
+            <div style="position: absolute;top:40px;left:560px"></div>
14
+        </div>
15
+
16
+        <div style="display:flex;justify-content: space-between;">
17
+            <!-- 机构名称 -->
18
+            <div style="position: absolute;top:70px;left:40px">机构名称:赤峰费森血液透析中心</div>
19
+            <!-- 单据号 -->
20
+            <!-- <div  style="position: absolute;top:70px;left:200px">单据号:{{ list.number }}</div> -->
21
+            <!-- <div></div> -->
22
+            <!-- 发票序号 -->
23
+            <!-- <div  style="position: absolute;left:560px;top:70px;">
24
+
25
+            </div> -->
26
+          <div  style="position: absolute;left:400px;top:70px;" v-if="insutype == '390'">
27
+            类别:城乡居民基本医疗保险
28
+          </div>
29
+          <div  style="position: absolute;left:400px;top:70px;" v-else-if ="insutype == '310'">
30
+            类别:职工基本医疗保险
9 31
           </div>
32
+        </div>
10 33
 
11
-          <div  style="position: absolute;top:40px;left:300px"></div>
34
+        <div style="display:flex;justify-content: space-between;">
35
+            <!-- 姓名 -->
36
+            <div style="position: absolute;top:90px;left:40px;"> 姓名:{{ paramsObj.name }}</div>
37
+            <!-- 个人电脑编号 -->
38
+            <div style="position: absolute;top:90px;left:220px;">个人编号:{{psn_no}}</div>
39
+            <!-- 科室 -->
40
+            <div style="position: absolute;top:90px;left:530px;">科室:{{'血液透析室'}}</div>
41
+            <!-- 床号 -->
42
+            <div style="position: absolute;top:90px;left:700px;">床号:</div>
43
+        </div>
44
+
45
+        <div style="display:flex;justify-content: space-between;">
46
+            <!-- 住院号 -->
47
+            <div style="position: absolute;top:120px;left:40px;"> 住院号:{{ number?number:'' }}</div>
48
+            <!-- 入院日期 -->
49
+            <div style="position: absolute;top:120px;left:280px;">入院日期:{{in_hosptial_time?in_hosptial_time.split(' ')[0]:''}}</div>
50
+            <!-- 出院日期 -->
51
+            <div style="position: absolute;top:120px;left:460px;">出院日期:{{out_hosptial_time?out_hosptial_time.split(' ')[0]:''}}</div>
52
+            <!-- 住院天数 -->
53
+          <div style="position: absolute;top:120px;left:640px;">住院天数:{{getDay(in_hosptial_time.split(' ')[0] ,out_hosptial_time.split(' ')[0])}}</div>
54
+        </div>
55
+
56
+        <!-- <div style="display:flex;justify-content: space-between;">
57
+            <div style="position: absolute;top:110px;left:260px;">{{ (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
58
+            <div style="position: absolute;top:110px;left:440px;">{{ list.psn_cash_money  }}</div>
59
+            <div style="position: absolute;top:110px;left:580px;">门特</div>
60
+        </div> -->
61
+
62
+
63
+        <div style="display:flex;justify-content: space-between;">
64
+            <div style="position: absolute;top:160px;left:40px">西药费</div>
65
+            <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal?list.westernMedicineCostTotal:'0.00' }}</div>
66
+            <div style="position: absolute;top:160px;left:220px">检查费</div>
67
+            <div style="position: absolute;top:160px;left:290px">{{ list.checkCostTotal?list.checkCostTotal:'0.00' }}</div>
68
+            <div style="position: absolute;top:160px;left:400px">材料费</div>
69
+            <div style="position: absolute;top:160px;left:470px">{{list.materialCostTotal?list.materialCostTotal:"0.00"}}</div>
70
+            <div style="position: absolute;top:160px;left:580px">麻醉费</div>
71
+            <div style="position: absolute;top:160px;left:650px">0.00</div>
72
+        </div>
73
+        <div style="display:flex;justify-content: space-between;">
74
+            <div style="position: absolute;top:190px;left:40px">中成药费</div>
75
+            <div style="position: absolute;top:190px;left:110px">{{list.chineseTraditionalMedicineCostTotal?list.chineseTraditionalMedicineCostTotal:'0.00'}}</div>
76
+            <div style="position: absolute;top:190px;left:220px">治疗费</div>
77
+            <div style="position: absolute;top:190px;left:290px">{{list.treatCostTotal?list.treatCostTotal:'0.00'}}</div>
78
+            <div style="position: absolute;top:190px;left:400px">护理费</div>
79
+            <div style="position: absolute;top:190px;left:470px">0.00</div>
80
+            <div style="position: absolute;top:190px;left:580px">床位费</div>
81
+            <div style="position: absolute;top:190px;left:650px">0.00</div>
82
+        </div>
83
+        <div style="display:flex;justify-content: space-between;">
84
+            <div style="position: absolute;top:220px;left:40px">中草药费</div>
85
+            <div style="position: absolute;top:220px;left:110px">0.00</div>
86
+            <div style="position: absolute;top:220px;left:220px">手术费</div>
87
+            <div style="position: absolute;top:220px;left:290px">{{ list.operationCostTotal?list.operationCostTotal:'0.00' }}</div>
88
+            <div style="position: absolute;top:220px;left:400px">输血费</div>
89
+            <div style="position: absolute;top:220px;left:470px">0.00</div>
90
+            <div style="position: absolute;top:220px;left:580px">取暖费</div>
91
+            <div style="position: absolute;top:220px;left:650px">0.00</div>
92
+        </div>
93
+        <div style="display:flex;justify-content: space-between;">
94
+            <div style="position: absolute;top:250px;left:40px">高压氧费</div>
95
+            <div style="position: absolute;top:250px;left:110px">0.00</div>
96
+            <div style="position: absolute;top:250px;left:220px">化验费</div>
97
+            <div style="position: absolute;top:250px;left:290px">{{ list.laboratoryCostTotal?list.laboratoryCostTotal:'0.00' }}</div>
98
+            <div style="position: absolute;top:250px;left:400px">氧气费</div>
99
+            <div style="position: absolute;top:250px;left:470px">0.00</div>
100
+            <div style="position: absolute;top:250px;left:580px">其他费</div>
101
+            <div style="position: absolute;top:250px;left:650px">{{ list.otherCostTotal?list.otherCostTotal:'0.00' }}</div>
102
+        </div>
12 103
 
13
-          <div style="position: absolute;top:40px;left:560px"></div>
14
-      </div>
104
+        <div>
105
+            <span>
106
+            <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span>
107
+            <!-- <span  style="position: absolute;top:280px;left:180px">
108
+                <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
109
+                    {{ zhongwen.substring(0,1) }}十万
110
+                </span>
111
+                <span v-else>零十万</span>
112
+            </span>
113
+            <span  style="position: absolute;top:280px;left:230px">
114
+                <span v-if="zhongwen.indexOf('万') > -1">
115
+                    {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}万
116
+                </span>
117
+                <span v-else>零万</span>
118
+            </span>
119
+            <span  style="position: absolute;top:280px;left:270px">
120
+                <span v-if="zhongwen.indexOf('仟') > -1">
121
+                    {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}仟
122
+                </span>
123
+                <span v-else>零仟</span>
124
+            </span>
125
+            <span  style="position: absolute;top:280px;left:310px">
126
+                <span v-if="zhongwen.indexOf('佰') > -1">
127
+                    {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}佰
128
+                </span>
129
+                <span v-else>零佰</span>
130
+            </span>
131
+            <span style="position: absolute;top:280px;left:350px">
132
+                <span v-if="zhongwen.indexOf('拾') > -1">
133
+                {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
134
+
135
+                </span>
136
+                <span v-else>零拾</span>
137
+            </span>
138
+            <span  style="position: absolute;top:280px;left:390px">
139
+                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
140
+                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
141
+                </span>
142
+                <span v-else>零元</span>
143
+            </span>
144
+            <span  style="position: absolute;top:280px;left:430px">
145
+                <span v-if="zhongwen.indexOf('角') > -1">
146
+                    {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}角
147
+                </span>
148
+                <span v-else>零角</span>
149
+            </span>
150
+            <span  style="position: absolute;top:280px;left:470px">
151
+                <span v-if="zhongwen.indexOf('分') > -1">
152
+                    {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}分
153
+                </span>
154
+                <span v-else>零分</span>
155
+            </span> -->
156
+            <span style="position: absolute;top:280px;left:170px;letter-spacing: 15px;">{{zhongwen}}</span>
157
+            </span>
158
+            <span style="position: absolute;top:280px;left:615px">合计:{{ list.order.medfee_sumamt }}</span>
159
+        </div>
15 160
 
16
-      <div style="display:flex;justify-content: space-between;">
17
-          <!-- 机构名称 -->
18
-          <div style="position: absolute;top:70px;left:40px">机构名称:赤峰费森血液透析中心</div>
19
-          <!-- 单据号 -->
20
-          <!-- <div  style="position: absolute;top:70px;left:200px">单据号:{{ list.number }}</div> -->
21
-          <!-- <div></div> -->
22
-          <!-- 发票序号 -->
23
-          <!-- <div  style="position: absolute;left:560px;top:70px;">
24 161
 
25
-          </div> -->
26
-        <div  style="position: absolute;left:400px;top:70px;" v-if="insutype == '390'">
27
-          类别:城乡居民基本医疗保险
162
+        <div style="position: absolute;top:310px;left:40px">
163
+            <!-- 个人账户支付 -->
164
+          个人账户支付:{{list.order.acct_pay?list.order.acct_pay:'0.00'}}
28 165
         </div>
29
-        <div  style="position: absolute;left:400px;top:70px;" v-else-if ="insutype == '310'">
30
-          类别:职工基本医疗保险
166
+        <div style="position: absolute;top:310px;left:250px">
167
+            <!-- 统筹支付 -->
168
+          统筹支付:{{list.order.hifp_pay?list.order.hifp_pay:'0.00'}}
31 169
         </div>
32
-      </div>
33
-
34
-      <div style="display:flex;justify-content: space-between;">
35
-          <!-- 姓名 -->
36
-          <div style="position: absolute;top:90px;left:40px;"> 姓名:{{ paramsObj.name }}</div>
37
-          <!-- 个人电脑编号 -->
38
-          <div style="position: absolute;top:90px;left:220px;">个人编号:{{psn_no}}</div>
39
-          <!-- 科室 -->
40
-          <div style="position: absolute;top:90px;left:530px;">科室:{{'血液透析室'}}</div>
41
-          <!-- 床号 -->
42
-          <div style="position: absolute;top:90px;left:700px;">床号:</div>
43
-      </div>
44
-
45
-      <div style="display:flex;justify-content: space-between;">
46
-          <!-- 住院号 -->
47
-          <div style="position: absolute;top:120px;left:40px;"> 住院号:{{ number?number:'' }}</div>
48
-          <!-- 入院日期 -->
49
-          <div style="position: absolute;top:120px;left:280px;">入院日期:{{in_hosptial_time?in_hosptial_time.split(' ')[0]:''}}</div>
50
-          <!-- 出院日期 -->
51
-          <div style="position: absolute;top:120px;left:460px;">出院日期:{{out_hosptial_time?out_hosptial_time.split(' ')[0]:''}}</div>
52
-          <!-- 住院天数 -->
53
-        <div style="position: absolute;top:120px;left:640px;">住院天数:{{getDay(in_hosptial_time.split(' ')[0] ,out_hosptial_time.split(' ')[0])}}</div>
54
-      </div>
55
-
56
-      <!-- <div style="display:flex;justify-content: space-between;">
57
-          <div style="position: absolute;top:110px;left:260px;">{{ (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
58
-          <div style="position: absolute;top:110px;left:440px;">{{ list.psn_cash_money  }}</div>
59
-          <div style="position: absolute;top:110px;left:580px;">门特</div>
60
-      </div> -->
61
-
62
-
63
-      <div style="display:flex;justify-content: space-between;">
64
-          <div style="position: absolute;top:160px;left:40px">西药费</div>
65
-          <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal?list.westernMedicineCostTotal:'0.00' }}</div>
66
-          <div style="position: absolute;top:160px;left:220px">检查费</div>
67
-          <div style="position: absolute;top:160px;left:290px">{{ list.checkCostTotal?list.checkCostTotal:'0.00' }}</div>
68
-          <div style="position: absolute;top:160px;left:400px">材料费</div>
69
-          <div style="position: absolute;top:160px;left:470px">{{list.materialCostTotal?list.materialCostTotal:"0.00"}}</div>
70
-          <div style="position: absolute;top:160px;left:580px">麻醉费</div>
71
-          <div style="position: absolute;top:160px;left:650px">0.00</div>
72
-      </div>
73
-      <div style="display:flex;justify-content: space-between;">
74
-          <div style="position: absolute;top:190px;left:40px">中成药费</div>
75
-          <div style="position: absolute;top:190px;left:110px">{{list.chineseTraditionalMedicineCostTotal?list.chineseTraditionalMedicineCostTotal:'0.00'}}</div>
76
-          <div style="position: absolute;top:190px;left:220px">治疗费</div>
77
-          <div style="position: absolute;top:190px;left:290px">{{list.treatCostTotal?list.treatCostTotal:'0.00'}}</div>
78
-          <div style="position: absolute;top:190px;left:400px">护理费</div>
79
-          <div style="position: absolute;top:190px;left:470px">0.00</div>
80
-          <div style="position: absolute;top:190px;left:580px">床位费</div>
81
-          <div style="position: absolute;top:190px;left:650px">0.00</div>
82
-      </div>
83
-      <div style="display:flex;justify-content: space-between;">
84
-          <div style="position: absolute;top:220px;left:40px">中草药费</div>
85
-          <div style="position: absolute;top:220px;left:110px">0.00</div>
86
-          <div style="position: absolute;top:220px;left:220px">手术费</div>
87
-          <div style="position: absolute;top:220px;left:290px">{{ list.operationCostTotal?list.operationCostTotal:'0.00' }}</div>
88
-          <div style="position: absolute;top:220px;left:400px">输血费</div>
89
-          <div style="position: absolute;top:220px;left:470px">0.00</div>
90
-          <div style="position: absolute;top:220px;left:580px">取暖费</div>
91
-          <div style="position: absolute;top:220px;left:650px">0.00</div>
92
-      </div>
93
-      <div style="display:flex;justify-content: space-between;">
94
-          <div style="position: absolute;top:250px;left:40px">高压氧费</div>
95
-          <div style="position: absolute;top:250px;left:110px">0.00</div>
96
-          <div style="position: absolute;top:250px;left:220px">化验费</div>
97
-          <div style="position: absolute;top:250px;left:290px">{{ list.laboratoryCostTotal?list.laboratoryCostTotal:'0.00' }}</div>
98
-          <div style="position: absolute;top:250px;left:400px">氧气费</div>
99
-          <div style="position: absolute;top:250px;left:470px">0.00</div>
100
-          <div style="position: absolute;top:250px;left:580px">其他费</div>
101
-          <div style="position: absolute;top:250px;left:650px">{{ list.otherCostTotal?list.otherCostTotal:'0.00' }}</div>
102
-      </div>
103
-
104
-      <div>
105
-          <span>
106
-          <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span>
107
-          <!-- <span  style="position: absolute;top:280px;left:180px">
108
-              <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
109
-                  {{ zhongwen.substring(0,1) }}十万
110
-              </span>
111
-              <span v-else>零十万</span>
112
-          </span>
113
-          <span  style="position: absolute;top:280px;left:230px">
114
-              <span v-if="zhongwen.indexOf('万') > -1">
115
-                  {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}万
116
-              </span>
117
-              <span v-else>零万</span>
118
-          </span>
119
-          <span  style="position: absolute;top:280px;left:270px">
120
-              <span v-if="zhongwen.indexOf('仟') > -1">
121
-                  {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}仟
122
-              </span>
123
-              <span v-else>零仟</span>
124
-          </span>
125
-          <span  style="position: absolute;top:280px;left:310px">
126
-              <span v-if="zhongwen.indexOf('佰') > -1">
127
-                  {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}佰
128
-              </span>
129
-              <span v-else>零佰</span>
130
-          </span>
131
-          <span style="position: absolute;top:280px;left:350px">
132
-              <span v-if="zhongwen.indexOf('拾') > -1">
133
-              {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
134
-
135
-              </span>
136
-              <span v-else>零拾</span>
137
-          </span>
138
-          <span  style="position: absolute;top:280px;left:390px">
139
-              <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
140
-                  {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
141
-              </span>
142
-              <span v-else>零元</span>
143
-          </span>
144
-          <span  style="position: absolute;top:280px;left:430px">
145
-              <span v-if="zhongwen.indexOf('角') > -1">
146
-                  {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}角
147
-              </span>
148
-              <span v-else>零角</span>
149
-          </span>
150
-          <span  style="position: absolute;top:280px;left:470px">
151
-              <span v-if="zhongwen.indexOf('分') > -1">
152
-                  {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}分
153
-              </span>
154
-              <span v-else>零分</span>
155
-          </span> -->
156
-          <span style="position: absolute;top:280px;left:170px;letter-spacing: 15px;">{{zhongwen}}</span>
157
-          </span>
158
-          <span style="position: absolute;top:280px;left:615px">合计:{{ list.order.medfee_sumamt }}</span>
159
-      </div>
160
-
161
-
162
-      <div style="position: absolute;top:310px;left:40px">
163
-          <!-- 个人账户支付 -->
164
-        个人账户支付:{{list.order.acct_pay?list.order.acct_pay:'0.00'}}
165
-      </div>
166
-      <div style="position: absolute;top:310px;left:250px">
167
-          <!-- 统筹支付 -->
168
-        统筹支付:{{list.order.hifp_pay?list.order.hifp_pay:'0.00'}}
169
-      </div>
170
-
171
-      <div style="position: absolute;top:310px;left:400px">
172
-        现金支付:{{list.order.psn_cash_pay?list.order.psn_cash_pay:'0.00'}}
173
-        <!-- 现金支付 -->
174
-      </div>
175
-      <div style="position: absolute;top:310px;left:560px">
176
-        职工大额补助:{{list.order.hifob_pay?list.order.hifob_pay:'0.00'}}
177
-      </div>
178
-
179
-      <div style="position: absolute;top:340px;left:40px">
180
-        公务员补助:{{list.order.cvlserv_pay?list.order.cvlserv_pay:'0.00'}}
181
-        <!-- 公务员补助 -->
182
-      </div>
183
-      <div style="position: absolute;top:340px;left:250px">
184
-        医疗救助:{{list.order.maf_pay?list.order.maf_pay:'0.00'}}
185
-        <!-- 医疗救助 -->
186
-      </div>
187
-      <!-- 大病 -->
188
-      <div style="position: absolute;top:340px;left:400px">
189
-        大病补助:{{list.order.hifmi_pay?list.order.hifmi_pay:'0.00'}}
190
-      </div>
191
-      <!-- 其他基金支付 -->
192
-      <div style="position: absolute;top:340px;left:560px">
193
-        预交押金:{{(parseFloat(pre_pay_money) + parseFloat(list.order.decimal)).toFixed(2)}}
194
-      </div>
195
-      <div style="position: absolute;top:370px;left:40px">
196
-          <!-- 预交款合计 -->
197
-        押金支付:{{list.order.decimal}}
198
-      </div>
199
-      <div style="position: absolute;top:370px;left:250px">
200
-          <!-- 补交款 -->
201
-        实付:{{(parseFloat(list.order.psn_cash_pay) - parseFloat(list.order.decimal)).toFixed(2)}}
202
-      </div>
203
-      <div style="position: absolute;top:370px;left:480px">
204
-          <!-- 应退款 -->
205
-          应退款:{{parseFloat(pre_pay_money)}}
206
-      </div>
207
-      <div>
208
-          <div style="position: absolute;top:400px;left:40px">
209
-              <!-- 开票日期 -->
210
-            开票日期:{{printDate}}
211 170
 
212
-          </div>
213
-          <div style="position: absolute;top:400px;left:280px">
214
-              <!-- 结算日期: -->
215
-            结算日期:{{list.order.setl_time?list.order.setl_time.split(' ')[0]:''}}
216
-          </div>
217
-          <div style="position: absolute;top:400px;left:500px">
218
-             经手人:<!-- 经手人: -->
219
-            {{list.admin_user_name}}
220
-          </div>
221
-      </div>
171
+        <div style="position: absolute;top:310px;left:400px">
172
+          现金支付:{{list.order.psn_cash_pay?list.order.psn_cash_pay:'0.00'}}
173
+          <!-- 现金支付 -->
174
+        </div>
175
+        <div style="position: absolute;top:310px;left:560px">
176
+          职工大额补助:{{list.order.hifob_pay?list.order.hifob_pay:'0.00'}}
177
+        </div>
222 178
 
223
-      <div>
224
-          <div style="position: absolute;top:600px;left:40px">
225
-              <!-- 开票人: -->
226
-          </div>
227
-      </div>
228
-  </div>
179
+        <div style="position: absolute;top:340px;left:40px">
180
+          公务员补助:{{list.order.cvlserv_pay?list.order.cvlserv_pay:'0.00'}}
181
+          <!-- 公务员补助 -->
182
+        </div>
183
+        <div style="position: absolute;top:340px;left:250px">
184
+          医疗救助:{{list.order.maf_pay?list.order.maf_pay:'0.00'}}
185
+          <!-- 医疗救助 -->
186
+        </div>
187
+        <!-- 大病 -->
188
+        <div style="position: absolute;top:340px;left:400px">
189
+          大病补助:{{list.order.hifmi_pay?list.order.hifmi_pay:'0.00'}}
190
+        </div>
191
+        <!-- 其他基金支付 -->
192
+        <div style="position: absolute;top:340px;left:560px">
193
+          预交押金:{{(parseFloat(pre_pay_money) + parseFloat(list.order.decimal)).toFixed(2)}}
194
+        </div>
195
+        <div style="position: absolute;top:370px;left:40px">
196
+            <!-- 预交款合计 -->
197
+          押金支付:{{list.order.decimal}}
198
+        </div>
199
+        <div style="position: absolute;top:370px;left:250px">
200
+            <!-- 补交款 -->
201
+          实付:{{(parseFloat(list.order.psn_cash_pay) - parseFloat(list.order.decimal)).toFixed(2)}}
202
+        </div>
203
+        <div style="position: absolute;top:370px;left:480px">
204
+            <!-- 应退款 -->
205
+            应退款:{{parseFloat(pre_pay_money)}}
206
+        </div>
207
+        <div>
208
+            <div style="position: absolute;top:400px;left:40px">
209
+                <!-- 开票日期 -->
210
+              开票日期:{{printDate}}
211
+
212
+            </div>
213
+            <div style="position: absolute;top:400px;left:280px">
214
+                <!-- 结算日期: -->
215
+              结算日期:{{list.order.setl_time?list.order.setl_time.split(' ')[0]:''}}
216
+            </div>
217
+            <div style="position: absolute;top:400px;left:500px">
218
+               经手人:<!-- 经手人: -->
219
+              {{list.admin_user_name}}
220
+            </div>
221
+        </div>
222
+
223
+        <div>
224
+            <div style="position: absolute;top:600px;left:40px">
225
+                <!-- 开票人: -->
226
+            </div>
227
+        </div>
228
+    </div>
229 229
 </template>
230 230
 
231 231
 <script>
232 232
 import { getInvoice } from '@/api/project/project'
233 233
 export default {
234
-  props:{
235
-      paramsObj:Object
236
-  },
237
-  data(){
238
-      return{
239
-          list:null,
240
-          printDate:'',
241
-          zhongwen:'',
242
-          totalPrice:0.0,
243
-          org_id:'',
244
-          org_name:'',
245
-        psn_no:"",
246
-        in_hosptial_time:'',
247
-        out_hosptial_time:'',
248
-        number:'',
249
-        insutype:'',
250
-        pre_pay_money:"",
251
-      }
252
-  },
253
-  mounted(){
254
-      console.log('paramsObj',this.paramsObj)
255
-      let params = {
256
-          order_id: this.paramsObj.order_id,
257
-          patient_id: this.paramsObj.patient_id,
258
-      }
259
-      this.getInvoice(params)
260
-      // var data = new Date();
261
-      // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
262
-      // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
263
-      // this.printDate = data.getFullYear() + "-" + month + "-" + date;
264
-      // this.smalltoBIG(982732.21)
265
-      this.org_id = this.$store.getters.xt_user.org_id
266
-      this.org_name = this.$store.getters.xt_user.org.org_name
267
-  },
268
-  methods:{
269
-    getDay(dateString1,dateString2){
270
-      var  startDate = Date.parse(dateString1);
271
-      var  endDate = Date.parse(dateString2);
272
-      if (startDate>endDate){
273
-        return 0;
274
-      }
275
-      if (startDate==endDate){
276
-        return 1;
277
-      }
278
-      var days=(endDate - startDate)/(1*24*60*60*1000);
279
-      return  days;
280
-
234
+    props:{
235
+        paramsObj:Object
281 236
     },
282
-      getInvoice(params){
283
-          getInvoice(params).then((res) => {
284
-              console.log('res',res)
285
-              this.list = res.data.data
286
-              console.log(this.list)
287
-            console.log(this.list.his_hospital_record)
288
-
289
-            this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
290
-                                  this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
291
-              this.smalltoBIG( this.list.order.medfee_sumamt)
292
-              // var data = new Date(res.data.data.date * 1000);
293
-              var data = new Date(this.paramsObj.setl_time);
294
-              var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
295
-              var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
296
-              this.printDate = data.getFullYear() + "-" + month + "-" + date;
297
-
298
-            if(this.list.his.id > 0){
299
-              this.in_hosptial_time = this.getTime()
300
-              this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
301
-            }else{
302
-              this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
303
-              this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
304
-            }
305
-            this.insutype = this.list.order.insutype
306
-            this.id_card_no = this.list.his_hospital_record.id_card_no
307
-            this.number = this.list.his_hospital_record.number
308
-            this.psn_no = this.list.his_hospital_record.psn_no
309
-            this.pre_pay_money = this.list.pre_pay_money
310
-
311
-            this.balance_accounts_type = this.list.his_hospital_record.balance_accounts_type
312
-            this.gend= this.list.his_hospital_record.gend
313
-          })
314
-      },
315
-      smalltoBIG(n) {
316
-          // let fraction = ['角', '分'];
317
-          // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
318
-          // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
319
-          // let head = price < 0 ? '欠' : '';
320
-          // price = Math.abs(price);
321
-          // let upper = '';
322
-          // for (let i = 0; i < fraction.length; i++) {
323
-          // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
324
-          // }
325
-          // upper = upper || '整';
326
-          // price = Math.floor(price);
327
-          // for (let i = 0; i < unit[0].length && price > 0; i++) {
328
-          // let p = '';
329
-          // for (let j = 0; j < unit[1].length && price > 0; j++) {
330
-          //     p = digit[price % 10] + unit[1][j] + p;
331
-          //     price = Math.floor(price / 10);
332
-          // }
333
-          // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
334
-          // }
335
-          // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
336
-          // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
337
-          if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
338
-              return "数据非法";  //判断数据是否大于0
339
-          }
340
-
341
-          var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
342
-          n += "00";
343
-
344
-          var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
345
-
346
-          if (indexpoint >= 0){
347
-
348
-              n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
349
-          }
350
-
351
-          unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
352
-          for (var i=0; i < n.length; i++){
353
-              str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
354
-          }
355
-
356
-          this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
357
-          //console.log(this.zhongwen)
358
-      },
237
+    data(){
238
+        return{
239
+            list:null,
240
+            printDate:'',
241
+            zhongwen:'',
242
+            totalPrice:0.0,
243
+            org_id:'',
244
+            org_name:'',
245
+          psn_no:"",
246
+          in_hosptial_time:'',
247
+          out_hosptial_time:'',
248
+          number:'',
249
+          insutype:'',
250
+          pre_pay_money:"",
251
+        }
252
+    },
253
+    mounted(){
254
+        console.log('paramsObj',this.paramsObj)
255
+        let params = {
256
+            order_id: this.paramsObj.order_id,
257
+            patient_id: this.paramsObj.patient_id,
258
+        }
259
+        this.getInvoice(params)
260
+        // var data = new Date();
261
+        // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
262
+        // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
263
+        // this.printDate = data.getFullYear() + "-" + month + "-" + date;
264
+        // this.smalltoBIG(982732.21)
265
+        this.org_id = this.$store.getters.xt_user.org_id
266
+        this.org_name = this.$store.getters.xt_user.org.org_name
267
+    },
268
+    methods:{
269
+      getDay(dateString1,dateString2){
270
+        var  startDate = Date.parse(dateString1);
271
+        var  endDate = Date.parse(dateString2);
272
+        if (startDate>endDate){
273
+          return 0;
274
+        }
275
+        if (startDate==endDate){
276
+          return 1;
277
+        }
278
+        var days=(endDate - startDate)/(1*24*60*60*1000);
279
+        return  days;
359 280
 
360
-  },
361
-  watch:{
362
-      paramsObj:{//深度监听,可监听到对象、数组的变化
363
-          handler(val, oldVal){
364
-              let params = {
365
-                  order_id: val.order_id,
366
-                  patient_id: val.patient_id,
281
+      },
282
+        getInvoice(params){
283
+            getInvoice(params).then((res) => {
284
+                console.log('res',res)
285
+                this.list = res.data.data
286
+                console.log(this.list)
287
+              console.log(this.list.his_hospital_record)
288
+
289
+              this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
290
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
291
+                this.smalltoBIG( this.list.order.medfee_sumamt)
292
+                // var data = new Date(res.data.data.date * 1000);
293
+                var data = new Date(this.paramsObj.setl_time);
294
+                var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
295
+                var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
296
+                this.printDate = data.getFullYear() + "-" + month + "-" + date;
297
+
298
+              if(this.list.his.id > 0){
299
+                this.in_hosptial_time = this.getTime()
300
+                this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
301
+              }else{
302
+                this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
303
+                this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
367 304
               }
368
-              this.getInvoice(params)
305
+              this.insutype = this.list.order.insutype
306
+              this.id_card_no = this.list.his_hospital_record.id_card_no
307
+              this.number = this.list.his_hospital_record.number
308
+              this.psn_no = this.list.his_hospital_record.psn_no
309
+              this.pre_pay_money = this.list.pre_pay_money
310
+
311
+              this.balance_accounts_type = this.list.his_hospital_record.balance_accounts_type
312
+              this.gend= this.list.his_hospital_record.gend
313
+            })
314
+        },
315
+        smalltoBIG(n) {
316
+            // let fraction = ['角', '分'];
317
+            // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
318
+            // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
319
+            // let head = price < 0 ? '欠' : '';
320
+            // price = Math.abs(price);
321
+            // let upper = '';
322
+            // for (let i = 0; i < fraction.length; i++) {
323
+            // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
324
+            // }
325
+            // upper = upper || '整';
326
+            // price = Math.floor(price);
327
+            // for (let i = 0; i < unit[0].length && price > 0; i++) {
328
+            // let p = '';
329
+            // for (let j = 0; j < unit[1].length && price > 0; j++) {
330
+            //     p = digit[price % 10] + unit[1][j] + p;
331
+            //     price = Math.floor(price / 10);
332
+            // }
333
+            // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
334
+            // }
335
+            // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
336
+            // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
337
+            if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
338
+                return "数据非法";  //判断数据是否大于0
339
+            }
340
+
341
+            var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
342
+            n += "00";
343
+
344
+            var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
345
+
346
+            if (indexpoint >= 0){
369 347
 
370
-          },
371
-          deep:true
372
-      }
373
-  }
348
+                n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
349
+            }
350
+
351
+            unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
352
+            for (var i=0; i < n.length; i++){
353
+                str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
354
+            }
355
+
356
+            this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
357
+            console.log(this.zhongwen)
358
+        },
359
+
360
+    },
361
+    watch:{
362
+        paramsObj:{//深度监听,可监听到对象、数组的变化
363
+            handler(val, oldVal){
364
+                let params = {
365
+                    order_id: val.order_id,
366
+                    patient_id: val.patient_id,
367
+                }
368
+                this.getInvoice(params)
369
+
370
+            },
371
+            deep:true
372
+        }
373
+    }
374 374
 }
375 375
 </script>

+ 1 - 0
src/xt_pages/outpatientCharges/invoiceTemplate/printOne.vue 查看文件

@@ -163,6 +163,7 @@ export default {
163 163
                 var data = new Date(res.data.data.date * 1000);
164 164
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
165 165
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
166
+
166 167
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
167 168
             })
168 169
         },

+ 22 - 3
src/xt_pages/outpatientCharges/listTemplate/listPrintTwo.vue 查看文件

@@ -21,6 +21,7 @@
21 21
         <TR>
22 22
           <TD colspan="1">患者姓名:{{ patient.name }}</TD>
23 23
           <TD>性别:{{ patient.gender == 1 ? "男" : "女" }}</TD>
24
+          <TD>年龄:{{ getAge(patient.id_card_no)?getAge(patient.id_card_no)+'岁':''}}</TD>
24 25
           <TD
25 26
             >结算类型:{{
26 27
               order.is_medicine_insurance == 1 ? "医保" : "自费"
@@ -98,7 +99,7 @@
98 99
       </TBODY>
99 100
     </table>
100 101
     <!-- <div class="allListTitle">
101
-      
102
+
102 103
     </div> -->
103 104
     <!-- <div class="allListInfo">
104 105
       <div style="text-align: left">患者姓名:{{ patient.name }}</div>
@@ -108,7 +109,7 @@
108 109
       <div style="text-align: left">
109 110
         结算类型:{{ order.is_medicine_insurance == 1 ? "医保" : "自费" }}
110 111
       </div>
111
-    </div> 
112
+    </div>
112 113
 
113 114
      <div class="allListInfo">
114 115
       <div style="text-align: left">住院/门诊号:{{ order.mdtrt_id }}</div>
@@ -122,7 +123,7 @@
122 123
       <div style="text-align: left">
123 124
         基金支付记账:{{ order.fund_pay_sumamt }}
124 125
       </div>
125
-    </div> 
126
+    </div>
126 127
 
127 128
     <div class="allListInfo">
128 129
       <div style="text-align: left">补充医疗支付记账:0.00</div>
@@ -175,6 +176,24 @@ export default {
175 176
     };
176 177
   },
177 178
   methods: {
179
+    getAge(val){
180
+      var thisLen = val.length;
181
+      var birth = "";
182
+      if (thisLen == 15) {
183
+        birth = "19" + val.substr(6, 6);
184
+      } else {
185
+        birth = val.substr(6, 8);
186
+      }
187
+      var birthTwo =
188
+        birth.substr(0, 4) +
189
+        "-" +
190
+        birth.substr(4, 2) +
191
+        "-" +
192
+        birth.substr(6, 2);
193
+      var age = jsGetAge(birthTwo, "-");
194
+      return age;
195
+    },
196
+
178 197
     getNowTime: function () {
179 198
       let dateTime;
180 199
       let yy = new Date().getFullYear();

+ 17 - 8
src/xt_pages/workforce/template.vue 查看文件

@@ -225,7 +225,7 @@
225 225
       </el-form>
226 226
       <div slot="footer" class="dialog-footer">
227 227
         <el-button @click="newVisible=false">取 消</el-button>
228
-        <el-button type="primary" @click="submitAction('form')">保 存</el-button>
228
+        <el-button  v-loading="syncLoading" type="primary" @click="submitAction('form')">保 存</el-button>
229 229
       </div>
230 230
     </el-dialog>
231 231
   </div>
@@ -329,6 +329,7 @@ export default {
329 329
       fourWeekData:[],
330 330
       tableList: [],
331 331
       newVisible: false,
332
+      syncLoading:false,
332 333
       weekList: [],
333 334
       currentFirstDate1: '',
334 335
       weekNum: '',
@@ -4259,13 +4260,21 @@ export default {
4259 4260
         copy_startime: copy_startime,
4260 4261
         copy_endtime: copy_endtime,
4261 4262
       }
4262
-      synchroSchedule(params).then(response => {
4263
-        if (response.data.state == 1) {
4264
-          var msg = response.data.data.msg
4265
-          this.$message.success("同步成功!")
4266
-          this.newVisible = false
4267
-        }
4268
-      })
4263
+      if(!this.syncLoading){
4264
+        this.syncLoading = true
4265
+        synchroSchedule(params).then(response => {
4266
+          if (response.data.state == 1) {
4267
+            var msg = response.data.data.msg
4268
+            this.syncLoading = false
4269
+            this.$message.success("同步成功!")
4270
+            this.newVisible = false
4271
+          }else{
4272
+            this.syncLoading = false
4273
+          }
4274
+        })
4275
+      }
4276
+
4277
+
4269 4278
 
4270 4279
     },
4271 4280
     getPatientScheduleTemplate() {