|
@@ -14,8 +14,10 @@
|
14
|
14
|
</template>
|
15
|
15
|
|
16
|
16
|
<div class='dialysisPage' style="padding-top:40px;">
|
17
|
|
- <printOne v-if="org_id != 10106" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
|
18
|
|
- <printTwo v-if="org_id == 10106" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
|
|
17
|
+ <printOne v-if="org_id != 10106 && this.paramsObj.balance_accounts_type != 2" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
|
|
18
|
+ <printTwo v-if="org_id == 10106 && this.paramsObj.balance_accounts_type != 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
|
|
19
|
+ <!--<printThree v-if="org_id == 0 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printThree>-->
|
|
20
|
+ <print-three v-if="org_id == 0 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
|
19
|
21
|
</div>
|
20
|
22
|
</div>
|
21
|
23
|
</template>
|
|
@@ -23,13 +25,17 @@
|
23
|
25
|
<script>
|
24
|
26
|
import printOne from './listTemplate/printOne'
|
25
|
27
|
import printTwo from './listTemplate/printTwo'
|
26
|
|
- import { getHisOrderDetail } from '@/api/his/his'
|
|
28
|
+ // import printThree from './listTemplate/printThree'
|
|
29
|
+
|
|
30
|
+ import { getHisOrderDetail,getPrivateExpensesOrder } from '@/api/his/his'
|
27
|
31
|
import { uParseTime } from '@/utils/tools'
|
28
|
32
|
import axios from 'axios'
|
|
33
|
+ import PrintThree from './listTemplate/printThree'
|
29
|
34
|
|
30
|
35
|
export default {
|
31
|
36
|
name: 'listPrint',
|
32
|
37
|
components: {
|
|
38
|
+ PrintThree,
|
33
|
39
|
printOne,
|
34
|
40
|
printTwo
|
35
|
41
|
},
|
|
@@ -42,8 +48,7 @@
|
42
|
48
|
patient:{},
|
43
|
49
|
order:{},
|
44
|
50
|
admin:{},
|
45
|
|
-
|
46
|
|
-
|
|
51
|
+ order_infos:null,
|
47
|
52
|
info:null,
|
48
|
53
|
p_admin:{},
|
49
|
54
|
charge_admin:{},
|
|
@@ -53,8 +58,17 @@
|
53
|
58
|
created() {
|
54
|
59
|
this.getInfo(this.paramsObj.id)
|
55
|
60
|
this.org_id = this.$store.getters.xt_user.org_id
|
56
|
|
- if(this.org_id == 10106){
|
57
|
|
- this.getInfo10106(this.paramsObj.id)
|
|
61
|
+ if(this.org_id == 0){
|
|
62
|
+ if(this.paramsObj.balance_accounts_type == 2){
|
|
63
|
+
|
|
64
|
+ this.getInfoPrivateExpenses10106(this.paramsObj.id)
|
|
65
|
+
|
|
66
|
+ }else{
|
|
67
|
+ this.getInfo10106(this.paramsObj.id)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+ }
|
58
|
72
|
}
|
59
|
73
|
|
60
|
74
|
},
|
|
@@ -204,6 +218,28 @@
|
204
|
218
|
// scanStyles: false
|
205
|
219
|
// });
|
206
|
220
|
// }
|
|
221
|
+ },getInfoPrivateExpenses10106(order_id){
|
|
222
|
+ let params = {
|
|
223
|
+ order_id: order_id,
|
|
224
|
+ admin_user_id:this.$store.getters.xt_user.user.id
|
|
225
|
+ }
|
|
226
|
+
|
|
227
|
+ getPrivateExpensesOrder(params).then(response => {
|
|
228
|
+ if (response.data.state == 0) {
|
|
229
|
+ this.$message.error(response.data.msg)
|
|
230
|
+ return false
|
|
231
|
+ } else {
|
|
232
|
+ this.info = response.data.data.info
|
|
233
|
+ this.info['org_name'] = response.data.data.org_name
|
|
234
|
+ this.info['date'] = response.data.data.date
|
|
235
|
+ this.info['number'] = response.data.data.number
|
|
236
|
+ this.info['name'] = response.data.data.name
|
|
237
|
+ this.p_admin = response.data.data.printor_admin
|
|
238
|
+ this.charge_admin = response.data.data.charge_admin
|
|
239
|
+ this.order_infos = response.data.data
|
|
240
|
+ }
|
|
241
|
+ })
|
|
242
|
+
|
207
|
243
|
},
|
208
|
244
|
getInfo10106(order_id) {
|
209
|
245
|
if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
|