|
@@ -1,299 +1,352 @@
|
1
|
1
|
<template>
|
|
2
|
+ <div>
|
|
3
|
+ <div class="print_btn">
|
|
4
|
+ <el-button type="primary" @click="printtpage">打印</el-button>
|
|
5
|
+ </div>
|
2
|
6
|
<div id="list-print" class="list-print">
|
3
|
|
- <div >
|
4
|
|
- <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单</div>
|
5
|
|
- <div class="listInfo">
|
6
|
|
- <div>患者姓名:{{patient.name}}</div>
|
7
|
|
- <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
|
8
|
|
- <div>结算类别:{{getType(his_patient.balance_accounts_type)}}</div>
|
9
|
|
- <div>发票号码:</div>
|
10
|
|
- </div>
|
11
|
|
- <div class="listInfo">
|
12
|
|
- <div>住院/门诊号:</div>
|
13
|
|
- <div>科室:{{getDepartment(his_patient.departments)}}</div>
|
14
|
|
- <div>就诊流水号:{{his_patient.number}}</div>
|
15
|
|
- </div>
|
16
|
|
- <div class="listInfo">
|
17
|
|
- <div>总费用:{{getAllPice()}}</div>
|
18
|
|
- <div>个人支付:{{getActPay()}}</div>
|
19
|
|
- <div>基金支付记账:{{getFundPaySumamt()}}</div>
|
20
|
|
- <div>补充医疗支付记账:{{getHifesPay()}}</div>
|
21
|
|
- </div>
|
22
|
|
- <div class="listInfo">
|
23
|
|
- <div>救助支付金额:{{getMafPay()}}</div>
|
24
|
|
- </div>
|
25
|
|
- <table class="listTable" border="1">
|
26
|
|
- <tr>
|
27
|
|
- <td style="width:19%;text-align:center">序号</td>
|
28
|
|
- <td style="width:10%;text-align:center">处方日期</td>
|
29
|
|
- <td style="width:31%;text-align:center">费用编码</td>
|
30
|
|
- <td style="width:14%;text-align:center">项目名称</td>
|
31
|
|
- <td style="width:10%;text-align:center" >规格</td>
|
32
|
|
- <td style="width:6%;text-align:center" >数量</td>
|
33
|
|
- <td style="width:10%;text-align:center">单价(元)</td>
|
34
|
|
- <td style="width:10%;text-align:center">金额</td>
|
35
|
|
- </tr>
|
36
|
|
- <tr v-for="(item, index) in tableData" :key="index">
|
37
|
|
- <td style="width:19%;text-align:center" >{{index+1}}</td>
|
38
|
|
- <td style="width:10%;text-align:center" >
|
39
|
|
- <span v-if="item.record_date > 0">{{getTimes(item.record_date)}}</span>
|
40
|
|
- </td>
|
41
|
|
- <td style="width:31%;text-align:center" >{{item.number}}</td>
|
42
|
|
- <td style="width:14%;text-align:center" >
|
43
|
|
- <span v-if="item.advice_id > 0">{{item.advice.advice_name}}</span>
|
44
|
|
- <span v-if="item.project_id > 0">
|
45
|
|
- <span v-if="item.project.type == 2">{{item.project.project.project_name}}</span>
|
46
|
|
- <span v-if="item.project.type == 3">{item.project.good_info.good_name}}</span>
|
47
|
|
- </span>
|
48
|
|
- </td>
|
49
|
|
- <td style="width:10%;text-align:center" >
|
50
|
|
- <span v-if="item.advice_id > 0">{{item.advice.drug.dose}}{{item.advice.drug.dose_unit}}*{{item.advice.drug.min_number}}{{item.advice.drug.min_unit}}/{{item.advice.drug.max_unit}}</span>
|
51
|
|
- <span v-if="item.project_id > 0">
|
52
|
|
- <span v-if="item.project.type == 2">{{item.project.project.project_name}}</span>
|
53
|
|
- <span v-if="item.project.type == 3">{{item.project.good_info.specification_name}}</span>
|
54
|
|
- </span>
|
55
|
|
- </td>
|
56
|
|
- <td style="width:6%;text-align:center" >
|
57
|
|
- {{item.cnt}}
|
58
|
|
- </td>
|
59
|
|
- <td style="width:10%;text-align:center" >
|
60
|
|
- {{item.pric}}
|
61
|
|
- </td>
|
62
|
|
- <td style="width:10%;text-align:center" >
|
63
|
|
- {{item.total_price}}
|
64
|
|
- </td>
|
65
|
|
- </tr>
|
66
|
|
- </table>
|
67
|
|
- </div>
|
|
7
|
+ <div class="listTitle">
|
|
8
|
+ {{ $store.getters.xt_user.org.org_name }}费用清单
|
|
9
|
+ </div>
|
|
10
|
+ <div class="listInfo">
|
|
11
|
+ <div>患者姓名:{{ patient.name }}</div>
|
|
12
|
+ <div>性别:{{ patient.gender == 1 ? "男" : "女" }}</div>
|
|
13
|
+ <div>结算类别:{{ getType(his_patient.balance_accounts_type) }}</div>
|
|
14
|
+ <div style="min-width:300px;">发票号码:</div>
|
|
15
|
+ </div>
|
|
16
|
+ <div class="listInfo">
|
|
17
|
+ <div>住院/门诊号:</div>
|
|
18
|
+ <div>科室:{{ getDepartment(his_patient.departments) }}</div>
|
|
19
|
+ <div style="min-width:350px;">就诊流水号:{{ his_patient.number }}</div>
|
|
20
|
+ </div>
|
|
21
|
+ <div class="listInfo">
|
|
22
|
+ <div>总费用:{{ getAllPice() }}</div>
|
|
23
|
+ <div>个人支付:{{ getActPay() }}</div>
|
|
24
|
+ <div>基金支付记账:{{ getFundPaySumamt() }}</div>
|
|
25
|
+ <div style="min-width:300px;">补充医疗支付记账:{{ getHifesPay() }}</div>
|
|
26
|
+ </div>
|
|
27
|
+ <div class="listInfo">
|
|
28
|
+ <div>救助支付金额:{{ getMafPay() }}</div>
|
|
29
|
+ </div>
|
|
30
|
+ <table class="listTable" border="1">
|
|
31
|
+ <tr style="height:45px">
|
|
32
|
+ <td style="width: 5%; text-align: center">序号</td>
|
|
33
|
+ <td style="width: 13%; text-align: center">处方日期</td>
|
|
34
|
+ <td style="width: 20%; text-align: center">费用编码</td>
|
|
35
|
+ <td style="width: 17%; text-align: center">项目名称</td>
|
|
36
|
+ <td style="width: 10%; text-align: center">规格</td>
|
|
37
|
+ <td style="width: 13%; text-align: center">数量</td>
|
|
38
|
+ <td style="width: 11%; text-align: center">单价(元)</td>
|
|
39
|
+ <td style="width: 10%; text-align: center">金额</td>
|
|
40
|
+ </tr>
|
|
41
|
+ <tr v-for="(item, index) in tableData" :key="index">
|
|
42
|
+ <td style="width: 19%; text-align: center">{{ index + 1 }}</td>
|
|
43
|
+ <td style="width: 10%; text-align: center">
|
|
44
|
+ <span v-if="item.record_date > 0">{{
|
|
45
|
+ getTimes(item.record_date)
|
|
46
|
+ }}</span>
|
|
47
|
+ </td>
|
|
48
|
+ <td style="width: 31%; text-align: center">{{ item.number }}</td>
|
|
49
|
+ <td style="width: 14%; text-align: center">
|
|
50
|
+ <span v-if="item.advice_id > 0">{{ item.advice.advice_name }}</span>
|
|
51
|
+ <span v-if="item.project_id > 0">
|
|
52
|
+ <span v-if="item.project.type == 2">{{
|
|
53
|
+ item.project.project.project_name
|
|
54
|
+ }}</span>
|
|
55
|
+ <span v-if="item.project.type == 3"
|
|
56
|
+ >{item.project.good_info.good_name}}</span
|
|
57
|
+ >
|
|
58
|
+ </span>
|
|
59
|
+ </td>
|
|
60
|
+ <td style="width: 10%; text-align: center">
|
|
61
|
+ <span v-if="item.advice_id > 0"
|
|
62
|
+ >{{ item.advice.drug.dose }}{{ item.advice.drug.dose_unit }}*{{
|
|
63
|
+ item.advice.drug.min_number
|
|
64
|
+ }}{{ item.advice.drug.min_unit }}/{{
|
|
65
|
+ item.advice.drug.max_unit
|
|
66
|
+ }}</span
|
|
67
|
+ >
|
|
68
|
+ <span v-if="item.project_id > 0">
|
|
69
|
+ <span v-if="item.project.type == 2">{{
|
|
70
|
+ item.project.project.project_name
|
|
71
|
+ }}</span>
|
|
72
|
+ <span v-if="item.project.type == 3">{{
|
|
73
|
+ item.project.good_info.specification_name
|
|
74
|
+ }}</span>
|
|
75
|
+ </span>
|
|
76
|
+ </td>
|
|
77
|
+ <td style="width: 6%; text-align: center">
|
|
78
|
+ {{ item.cnt }}
|
|
79
|
+ </td>
|
|
80
|
+ <td style="width: 10%; text-align: center">
|
|
81
|
+ {{ item.pric }}
|
|
82
|
+ </td>
|
|
83
|
+ <td style="width: 10%; text-align: center">
|
|
84
|
+ {{ item.total_price }}
|
|
85
|
+ </td>
|
|
86
|
+ </tr>
|
|
87
|
+ </table>
|
68
|
88
|
</div>
|
|
89
|
+ </div>
|
69
|
90
|
</template>
|
70
|
91
|
|
71
|
92
|
<script>
|
72
|
|
- import { uParseTime } from '@/utils/tools'
|
73
|
|
- import { getHisSummaryDetailList } from '@/api/his/his_tools'
|
74
|
|
- export default {
|
75
|
|
- data(){
|
76
|
|
- return{
|
77
|
|
- patient:{},
|
78
|
|
- tableData:[],
|
79
|
|
- list:[],
|
80
|
|
- his_patient:{},
|
81
|
|
- hisDepatment:[],
|
82
|
|
- settlement: [
|
83
|
|
- {value: 1, label: '医保'},
|
84
|
|
- {value: 2, label: '自费'},
|
85
|
|
- {value: 3, label: '公费'},
|
86
|
|
- {value: 4, label: '农保'},
|
87
|
|
- {value: 5, label: '会员'},
|
88
|
|
- {value: 6, label: '职工'},
|
89
|
|
- {value: 7, label: '合同'},
|
90
|
|
- {value: 8, label: '医保自费'},
|
|
93
|
+import print from "print-js";
|
|
94
|
+import { uParseTime } from "@/utils/tools";
|
|
95
|
+import { getHisSummaryDetailList } from "@/api/his/his_tools";
|
|
96
|
+export default {
|
|
97
|
+ data() {
|
|
98
|
+ return {
|
|
99
|
+ patient: {},
|
|
100
|
+ tableData: [],
|
|
101
|
+ list: [],
|
|
102
|
+ his_patient: {},
|
|
103
|
+ hisDepatment: [],
|
|
104
|
+ settlement: [
|
|
105
|
+ { value: 1, label: "医保" },
|
|
106
|
+ { value: 2, label: "自费" },
|
|
107
|
+ { value: 3, label: "公费" },
|
|
108
|
+ { value: 4, label: "农保" },
|
|
109
|
+ { value: 5, label: "会员" },
|
|
110
|
+ { value: 6, label: "职工" },
|
|
111
|
+ { value: 7, label: "合同" },
|
|
112
|
+ { value: 8, label: "医保自费" },
|
|
113
|
+ ],
|
|
114
|
+ };
|
|
115
|
+ },
|
|
116
|
+ methods: {
|
|
117
|
+ printtpage() {
|
|
118
|
+ const style =
|
|
119
|
+ '@media print {.list-print{width:960px;margin:0 auto} .listTitle {font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo {display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;}.listTable {width: 100%;text-align: center;border-collapse: collapse;line-height: 25px;font-size: 14px;border-color: #000;text-align: left;} .listTable tr td {padding: 0 5px;}.tableBottom {font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne {margin-right: 40px;}';
|
|
120
|
+ printJS({
|
|
121
|
+ printable: "list-print",
|
|
122
|
+ type: "html",
|
|
123
|
+ style: style,
|
|
124
|
+ scanStyles: false,
|
|
125
|
+ });
|
|
126
|
+ },
|
91
|
127
|
|
92
|
|
- ],
|
93
|
|
- }
|
|
128
|
+ getNowTime: function () {
|
|
129
|
+ let dateTime;
|
|
130
|
+ let yy = new Date().getFullYear();
|
|
131
|
+ let mm = new Date().getMonth() + 1;
|
|
132
|
+ let dd = new Date().getDate();
|
|
133
|
+ let hh = new Date().getHours();
|
|
134
|
+ let mf =
|
|
135
|
+ new Date().getMinutes() < 10
|
|
136
|
+ ? "0" + new Date().getMinutes()
|
|
137
|
+ : new Date().getMinutes();
|
|
138
|
+ let ss =
|
|
139
|
+ new Date().getSeconds() < 10
|
|
140
|
+ ? "0" + new Date().getSeconds()
|
|
141
|
+ : new Date().getSeconds();
|
|
142
|
+ dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
|
|
143
|
+ return dateTime;
|
94
|
144
|
},
|
95
|
|
- methods:{
|
96
|
|
- getNowTime: function () {
|
97
|
|
- let dateTime;
|
98
|
|
- let yy = new Date().getFullYear();
|
99
|
|
- let mm = new Date().getMonth() + 1;
|
100
|
|
- let dd = new Date().getDate();
|
101
|
|
- let hh = new Date().getHours();
|
102
|
|
- let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
|
103
|
|
- :
|
104
|
|
- new Date().getMinutes();
|
105
|
|
- let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
|
106
|
|
- :
|
107
|
|
- new Date().getSeconds();
|
108
|
|
- dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
|
109
|
|
- return dateTime
|
110
|
|
- },
|
111
|
|
- getTimes(time) {
|
112
|
|
- return uParseTime(time, '{y}-{m}-{d}')
|
113
|
|
- },
|
114
|
|
- getHisSummaryDetailList() {
|
115
|
|
- let start_time = this.$route.query.start_time
|
116
|
|
- let end_time = this.$route.query.end_time
|
117
|
|
- let params = {
|
118
|
|
- patient_id:this.$route.query.patient_id,
|
119
|
|
- start_time: start_time,
|
120
|
|
- end_time: end_time,
|
121
|
|
- type: this.$route.query.type,
|
122
|
|
- keyword:this.$route.query.keyword,
|
123
|
|
- }
|
124
|
|
- getHisSummaryDetailList(params).then(response=>{
|
125
|
|
- if(response.data.state == 1){
|
126
|
|
- var list = response.data.data.list
|
127
|
|
- this.list = list
|
128
|
|
- this.patient = response.data.data.patient
|
129
|
|
-
|
130
|
|
- this.his_patient = response.data.data.his_patient
|
131
|
|
- console.log("his_patinet233232322323232323",this.his_patient)
|
|
145
|
+ getTimes(time) {
|
|
146
|
+ return uParseTime(time, "{y}-{m}-{d}");
|
|
147
|
+ },
|
|
148
|
+ getHisSummaryDetailList() {
|
|
149
|
+ let start_time = this.$route.query.start_time;
|
|
150
|
+ let end_time = this.$route.query.end_time;
|
|
151
|
+ let params = {
|
|
152
|
+ patient_id: this.$route.query.patient_id,
|
|
153
|
+ start_time: start_time,
|
|
154
|
+ end_time: end_time,
|
|
155
|
+ type: this.$route.query.type,
|
|
156
|
+ keyword: this.$route.query.keyword,
|
|
157
|
+ };
|
|
158
|
+ getHisSummaryDetailList(params).then((response) => {
|
|
159
|
+ if (response.data.state == 1) {
|
|
160
|
+ var list = response.data.data.list;
|
|
161
|
+ this.list = list;
|
|
162
|
+ this.patient = response.data.data.patient;
|
|
163
|
+
|
|
164
|
+ this.his_patient = response.data.data.his_patient;
|
|
165
|
+ console.log("his_patinet233232322323232323", this.his_patient);
|
132
|
166
|
|
133
|
|
- this.hisDepatment = response.data.data.hisDepatment
|
134
|
|
- console.log("部门23233232322323",this.hisDepatment)
|
135
|
|
- this.tableData = []
|
136
|
|
- for(let i=0;i<list.length;i++){
|
137
|
|
- for(let j=0;j<list[i].orders.length;j++){
|
138
|
|
- for(let z=0;z<list[i].orders[j].order_info.length;z++){
|
139
|
|
- list[i].orders[j].order_info[z].record_date = list[i].orders[j].settle_accounts_date
|
140
|
|
- list[i].orders[j].order_info[z].number = list[i].orders[j].number
|
141
|
|
- this.tableData.push(list[i].orders[j].order_info[z])
|
142
|
|
- }
|
|
167
|
+ this.hisDepatment = response.data.data.hisDepatment;
|
|
168
|
+ console.log("部门23233232322323", this.hisDepatment);
|
|
169
|
+ this.tableData = [];
|
|
170
|
+ for (let i = 0; i < list.length; i++) {
|
|
171
|
+ for (let j = 0; j < list[i].orders.length; j++) {
|
|
172
|
+ for (let z = 0; z < list[i].orders[j].order_info.length; z++) {
|
|
173
|
+ list[i].orders[j].order_info[z].record_date =
|
|
174
|
+ list[i].orders[j].settle_accounts_date;
|
|
175
|
+ list[i].orders[j].order_info[z].number =
|
|
176
|
+ list[i].orders[j].number;
|
|
177
|
+ this.tableData.push(list[i].orders[j].order_info[z]);
|
|
178
|
+ }
|
143
|
179
|
}
|
144
|
180
|
}
|
145
|
|
- var obj = {index:"合计",total_price:0,record_date:"0"}
|
146
|
|
- for(let i=0;i<this.tableData.length;i++){
|
147
|
|
- this.tableData[i].index = i+1
|
148
|
|
- this.tableData[i].total_price = 0
|
149
|
|
- this.tableData[i].total_price = (this.tableData[i].cnt * this.tableData[i].pric).toFixed(2)
|
150
|
|
- obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)
|
|
181
|
+ var obj = { index: "合计", total_price: 0, record_date: "0" };
|
|
182
|
+ for (let i = 0; i < this.tableData.length; i++) {
|
|
183
|
+ this.tableData[i].index = i + 1;
|
|
184
|
+ this.tableData[i].total_price = 0;
|
|
185
|
+ this.tableData[i].total_price = (
|
|
186
|
+ this.tableData[i].cnt * this.tableData[i].pric
|
|
187
|
+ ).toFixed(2);
|
|
188
|
+ obj.total_price += this.tableData[i].cnt * this.tableData[i].pric;
|
151
|
189
|
}
|
152
|
|
- obj.total_price = (obj.total_price).toFixed(2)
|
153
|
|
- this.tableData.push(obj)
|
154
|
|
- if(this.$route.query.keyword!=""){
|
155
|
|
- for(let i=0;i<this.tableData.length;i++){
|
156
|
|
- if(this.tableData[i].index!="合计"){
|
157
|
|
- if(this.tableData[i].advice_id > 0){
|
158
|
|
- if(this.tableData[i].advice.advice_name.indexOf(this.$route.query.keyword) > -1){
|
159
|
|
- new_arr.push(this.tableData[i])
|
160
|
|
- }
|
|
190
|
+ obj.total_price = obj.total_price.toFixed(2);
|
|
191
|
+ this.tableData.push(obj);
|
|
192
|
+ if (this.$route.query.keyword != "") {
|
|
193
|
+ for (let i = 0; i < this.tableData.length; i++) {
|
|
194
|
+ if (this.tableData[i].index != "合计") {
|
|
195
|
+ if (this.tableData[i].advice_id > 0) {
|
|
196
|
+ if (
|
|
197
|
+ this.tableData[i].advice.advice_name.indexOf(
|
|
198
|
+ this.$route.query.keyword
|
|
199
|
+ ) > -1
|
|
200
|
+ ) {
|
|
201
|
+ new_arr.push(this.tableData[i]);
|
|
202
|
+ }
|
161
|
203
|
}
|
162
|
|
- if(this.tableData[i].project_id >0){
|
163
|
|
- if(this.tableData[i].project.type == 2){
|
164
|
|
- if(this.tableData[i].project.project.project_name.indexOf(this.$route.query.keyword) > -1){
|
165
|
|
- new_arr.push(this.tableData[i])
|
|
204
|
+ if (this.tableData[i].project_id > 0) {
|
|
205
|
+ if (this.tableData[i].project.type == 2) {
|
|
206
|
+ if (
|
|
207
|
+ this.tableData[i].project.project.project_name.indexOf(
|
|
208
|
+ this.$route.query.keyword
|
|
209
|
+ ) > -1
|
|
210
|
+ ) {
|
|
211
|
+ new_arr.push(this.tableData[i]);
|
166
|
212
|
}
|
167
|
213
|
}
|
168
|
|
- if(this.tableData[i].project.type == 3){
|
169
|
|
- if(this.tableData[i].project.good_info.good_name.indexOf(this.$route.query.keyword)> - 1){
|
170
|
|
- new_arr.push(this.tableData[i])
|
|
214
|
+ if (this.tableData[i].project.type == 3) {
|
|
215
|
+ if (
|
|
216
|
+ this.tableData[i].project.good_info.good_name.indexOf(
|
|
217
|
+ this.$route.query.keyword
|
|
218
|
+ ) > -1
|
|
219
|
+ ) {
|
|
220
|
+ new_arr.push(this.tableData[i]);
|
171
|
221
|
}
|
172
|
222
|
}
|
173
|
223
|
}
|
174
|
224
|
}
|
175
|
225
|
}
|
176
|
|
- if(this.$route.query.keyword!=""){
|
177
|
|
- this.tableData.push(obj)
|
|
226
|
+ if (this.$route.query.keyword != "") {
|
|
227
|
+ this.tableData.push(obj);
|
178
|
228
|
}
|
179
|
|
- this.tableData = new_arr
|
|
229
|
+ this.tableData = new_arr;
|
180
|
230
|
}
|
181
|
|
- console.log("tabledata32233223323232",this.tableData)
|
182
|
|
- }
|
183
|
|
- })
|
|
231
|
+ console.log("tabledata32233223323232", this.tableData);
|
|
232
|
+ }
|
|
233
|
+ });
|
184
|
234
|
},
|
185
|
|
- getAllPice(){
|
186
|
|
- var total_price = 0
|
187
|
|
- for(let i=0;i<this.tableData.length;i++){
|
188
|
|
- if(this.tableData[i].index =="合计"){
|
189
|
|
- total_price = this.tableData[i].total_price
|
|
235
|
+ getAllPice() {
|
|
236
|
+ var total_price = 0;
|
|
237
|
+ for (let i = 0; i < this.tableData.length; i++) {
|
|
238
|
+ if (this.tableData[i].index == "合计") {
|
|
239
|
+ total_price = this.tableData[i].total_price;
|
190
|
240
|
}
|
191
|
241
|
}
|
192
|
|
- return total_price
|
|
242
|
+ return total_price;
|
193
|
243
|
},
|
194
|
|
- getActPay(){
|
195
|
|
- console.log("hh23h323223323",this.list)
|
196
|
|
- var act_pay = 0
|
197
|
|
- for(let i=0;i<this.list.length;i++){
|
198
|
|
- for(let j=0;j<this.list[i].orders.length;j++){
|
199
|
|
- act_pay +=this.list[i].orders[j].acct_pay
|
|
244
|
+ getActPay() {
|
|
245
|
+ console.log("hh23h323223323", this.list);
|
|
246
|
+ var act_pay = 0;
|
|
247
|
+ for (let i = 0; i < this.list.length; i++) {
|
|
248
|
+ for (let j = 0; j < this.list[i].orders.length; j++) {
|
|
249
|
+ act_pay += this.list[i].orders[j].acct_pay;
|
200
|
250
|
}
|
201
|
251
|
}
|
202
|
|
- return act_pay
|
|
252
|
+ return act_pay;
|
203
|
253
|
},
|
204
|
|
- getFundPaySumamt(){
|
205
|
|
- var fund_pay_sumamt = 0
|
206
|
|
- for(let i=0;i<this.list.length;i++){
|
207
|
|
- for(let j=0;j<this.list[i].orders.length;j++){
|
208
|
|
- fund_pay_sumamt +=this.list[i].orders[j].fund_pay_sumamt
|
|
254
|
+ getFundPaySumamt() {
|
|
255
|
+ var fund_pay_sumamt = 0;
|
|
256
|
+ for (let i = 0; i < this.list.length; i++) {
|
|
257
|
+ for (let j = 0; j < this.list[i].orders.length; j++) {
|
|
258
|
+ fund_pay_sumamt += this.list[i].orders[j].fund_pay_sumamt;
|
209
|
259
|
}
|
210
|
260
|
}
|
211
|
|
- return fund_pay_sumamt
|
|
261
|
+ return fund_pay_sumamt;
|
212
|
262
|
},
|
213
|
|
- getHifesPay(){
|
214
|
|
- var hifes_pay = 0
|
215
|
|
- for(let i=0;i<this.list.length;i++){
|
216
|
|
- for(let j=0;j<this.list[i].orders.length;j++){
|
217
|
|
- hifes_pay +=this.list[i].orders[j].hifes_pay
|
|
263
|
+ getHifesPay() {
|
|
264
|
+ var hifes_pay = 0;
|
|
265
|
+ for (let i = 0; i < this.list.length; i++) {
|
|
266
|
+ for (let j = 0; j < this.list[i].orders.length; j++) {
|
|
267
|
+ hifes_pay += this.list[i].orders[j].hifes_pay;
|
218
|
268
|
}
|
219
|
269
|
}
|
220
|
|
- return hifes_pay
|
|
270
|
+ return hifes_pay;
|
221
|
271
|
},
|
222
|
|
- getMafPay(){
|
223
|
|
- var maf_pay = 0
|
224
|
|
- for(let i=0;i<this.list.length;i++){
|
225
|
|
- for(let j=0;j<this.list[i].orders.length;j++){
|
226
|
|
- maf_pay +=this.list[i].orders[j].maf_pay
|
|
272
|
+ getMafPay() {
|
|
273
|
+ var maf_pay = 0;
|
|
274
|
+ for (let i = 0; i < this.list.length; i++) {
|
|
275
|
+ for (let j = 0; j < this.list[i].orders.length; j++) {
|
|
276
|
+ maf_pay += this.list[i].orders[j].maf_pay;
|
227
|
277
|
}
|
228
|
278
|
}
|
229
|
|
- return maf_pay
|
|
279
|
+ return maf_pay;
|
230
|
280
|
},
|
231
|
|
- getDepartment(id){
|
232
|
|
- var name = ""
|
233
|
|
- for(let i=0;i<this.hisDepatment.length;i++){
|
234
|
|
- if(id == this.hisDepatment[i].id){
|
235
|
|
- name = this.hisDepatment[i].name
|
|
281
|
+ getDepartment(id) {
|
|
282
|
+ var name = "";
|
|
283
|
+ for (let i = 0; i < this.hisDepatment.length; i++) {
|
|
284
|
+ if (id == this.hisDepatment[i].id) {
|
|
285
|
+ name = this.hisDepatment[i].name;
|
236
|
286
|
}
|
237
|
287
|
}
|
238
|
|
- return name
|
|
288
|
+ return name;
|
239
|
289
|
},
|
240
|
|
- getType(id){
|
241
|
|
- var name = ""
|
242
|
|
- for(let i=0;i<this.settlement.length;i++){
|
243
|
|
- if(id == this.settlement[i].value){
|
244
|
|
- name = this.settlement[i].label
|
|
290
|
+ getType(id) {
|
|
291
|
+ var name = "";
|
|
292
|
+ for (let i = 0; i < this.settlement.length; i++) {
|
|
293
|
+ if (id == this.settlement[i].value) {
|
|
294
|
+ name = this.settlement[i].label;
|
245
|
295
|
}
|
246
|
296
|
}
|
247
|
|
- return name
|
248
|
|
- }
|
|
297
|
+ return name;
|
249
|
298
|
},
|
250
|
|
- created(){
|
251
|
|
- this.getHisSummaryDetailList()
|
252
|
|
- }
|
253
|
|
-
|
254
|
|
- }
|
255
|
|
-
|
256
|
|
-
|
|
299
|
+ },
|
|
300
|
+ created() {
|
|
301
|
+ this.getHisSummaryDetailList();
|
|
302
|
+ },
|
|
303
|
+};
|
257
|
304
|
</script>
|
258
|
305
|
|
259
|
306
|
<style lang="scss" scoped>
|
260
|
|
-.list-print{
|
261
|
|
- -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
262
|
|
- -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
263
|
|
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
264
|
|
- margin-bottom: 20px;
|
265
|
|
- padding:20px 10px;
|
|
307
|
+.list-print {
|
|
308
|
+ -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
|
309
|
+ 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
|
310
|
+ -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
|
311
|
+ 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
312
|
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
313
|
+ margin-bottom: 20px;
|
|
314
|
+ padding: 20px 10px;
|
266
|
315
|
}
|
267
|
|
-.listTitle{
|
268
|
|
- font-size: 24px;
|
269
|
|
- text-align: center;
|
270
|
|
- font-weight: bold;
|
271
|
|
- margin-bottom: 10px;
|
|
316
|
+.listTitle {
|
|
317
|
+ font-size: 24px;
|
|
318
|
+ text-align: center;
|
|
319
|
+ font-weight: bold;
|
|
320
|
+ margin-bottom: 10px;
|
272
|
321
|
}
|
273
|
|
-.listInfo{
|
274
|
|
- display: flex;
|
275
|
|
- font-size: 16px;
|
276
|
|
- justify-content: space-between;
|
277
|
|
- margin: 10px 0;
|
|
322
|
+.listInfo {
|
|
323
|
+ display: flex;
|
|
324
|
+ font-size: 16px;
|
|
325
|
+ justify-content: space-between;
|
|
326
|
+ margin: 10px 0;
|
278
|
327
|
}
|
279
|
|
-.listTable{
|
280
|
|
- width: 100%;
|
281
|
|
- text-align: center;
|
282
|
|
- border-collapse: collapse;
|
283
|
|
- line-height: 40px;
|
284
|
|
- font-size: 14px;
|
285
|
|
- border-color: #000;
|
286
|
|
- text-align: left;
|
|
328
|
+.listTable {
|
|
329
|
+ width: 100%;
|
|
330
|
+ text-align: center;
|
|
331
|
+ border-collapse: collapse;
|
|
332
|
+ line-height: 25px;
|
|
333
|
+ font-size: 14px;
|
|
334
|
+ border-color: #000;
|
|
335
|
+ text-align: left;
|
287
|
336
|
}
|
288
|
337
|
.listTable tr td {
|
289
|
|
- padding: 0 5px;
|
|
338
|
+ padding: 0 5px;
|
|
339
|
+}
|
|
340
|
+.tableBottom {
|
|
341
|
+ font-size: 16px;
|
|
342
|
+ display: flex;
|
|
343
|
+ margin-top: 20px;
|
290
|
344
|
}
|
291
|
|
-.tableBottom{
|
292
|
|
- font-size: 16px;
|
293
|
|
- display: flex;
|
294
|
|
- margin-top: 20px;
|
|
345
|
+.tableBottomOne {
|
|
346
|
+ margin-right: 40px;
|
295
|
347
|
}
|
296
|
|
-.tableBottomOne{
|
297
|
|
- margin-right: 40px;
|
|
348
|
+.print_btn {
|
|
349
|
+ display: flex;
|
|
350
|
+ justify-content: flex-end;
|
298
|
351
|
}
|
299
|
352
|
</style>
|