|
@@ -1,112 +1,113 @@
|
1
|
1
|
<template>
|
2
|
|
- <div>
|
3
|
|
- <template>
|
4
|
|
- <el-button
|
5
|
|
- style="position:fixed;right:25px;z-index:999"
|
6
|
|
- :loading="loading"
|
7
|
|
- size="small"
|
8
|
|
- icon="el-icon-printer"
|
9
|
|
- @click="printThisPage"
|
10
|
|
- type="primary"
|
11
|
|
- >打印</el-button
|
12
|
|
- >
|
13
|
|
- </template>
|
14
|
|
-
|
15
|
|
- <div class='dialysisPage' style="padding-top:40px;">
|
16
|
|
- <printOne :info="info"></printOne>
|
17
|
|
- <!-- <printTwo :info="info" v-if="org_id == 9990"></printTwo> -->
|
18
|
|
- </div>
|
19
|
|
- </div>
|
|
2
|
+ <div>
|
|
3
|
+ <template>
|
|
4
|
+ <el-button
|
|
5
|
+ style="position:fixed;right:25px;z-index:999"
|
|
6
|
+ :loading="loading"
|
|
7
|
+ size="small"
|
|
8
|
+ icon="el-icon-printer"
|
|
9
|
+ @click="printThisPage"
|
|
10
|
+ type="primary"
|
|
11
|
+ >打印
|
|
12
|
+ </el-button
|
|
13
|
+ >
|
|
14
|
+ </template>
|
|
15
|
+
|
|
16
|
+ <div class='dialysisPage' style="padding-top:40px;">
|
|
17
|
+ <printOne :info="info"></printOne>
|
|
18
|
+ <!-- <printTwo :info="info" v-if="org_id == 9990"></printTwo> -->
|
|
19
|
+ </div>
|
|
20
|
+ </div>
|
20
|
21
|
</template>
|
21
|
22
|
|
22
|
23
|
<script>
|
23
|
24
|
|
24
|
25
|
|
25
|
|
-import { parseTime } from "@/utils";
|
26
|
|
-import { getDialysisRecord } from "@/api/dialysis";
|
27
|
|
-import { getDataConfig } from "@/utils/data";
|
28
|
|
-import { jsGetAge, uParseTime } from "@/utils/tools";
|
29
|
|
-import axios from 'axios'
|
30
|
|
-
|
31
|
|
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
32
|
|
-import print from "print-js";
|
33
|
|
-import printOne from "./statementTemplate/printOne"
|
34
|
|
-import printTwo from "./statementTemplate/printTwo"
|
35
|
|
-import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
|
36
|
|
-export default {
|
37
|
|
- name: "dialysisPrintOrder",
|
38
|
|
- components: {
|
39
|
|
- BreadCrumb,
|
40
|
|
- printOne,
|
41
|
|
- printTwo
|
42
|
|
- },
|
43
|
|
- props:{
|
44
|
|
- paramsObj:Object
|
45
|
|
- },
|
46
|
|
- data() {
|
47
|
|
- return {
|
48
|
|
- crumbs: [
|
49
|
|
- { path: false, name: '门诊医生站' },
|
50
|
|
- { path: false, name: '打印' }
|
51
|
|
- ],
|
52
|
|
- record_date:"",
|
53
|
|
- patientTableData:[],
|
54
|
|
- advicePrint:[],
|
55
|
|
- hisPatient:{},
|
56
|
|
- patient:{},
|
57
|
|
- search_input:"",
|
58
|
|
- loading:false,
|
59
|
|
- patient_id:0,
|
60
|
|
- prescription_id:0,
|
61
|
|
- ids:'',
|
62
|
|
- info:null,
|
63
|
|
- org_id:""
|
64
|
|
- };
|
65
|
|
- },
|
66
|
|
- methods:{
|
67
|
|
- printThisPage() {
|
68
|
|
- var ptime = Math.round(new Date().getTime() / 1000);
|
69
|
|
- this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
70
|
|
-
|
71
|
|
- const style =
|
72
|
|
- '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
|
73
|
|
- printJS({
|
74
|
|
- printable: "statement-print",
|
75
|
|
- type: "html",
|
76
|
|
- style: style,
|
77
|
|
- scanStyles: false
|
78
|
|
- });
|
79
|
|
-
|
80
|
|
- // if (this.org_template_info.template_id == 1) {
|
81
|
|
- // printJS({
|
82
|
|
- // printable: "dialysis-print-box",
|
83
|
|
- // type: "html",
|
84
|
|
- // style: style,
|
85
|
|
- // scanStyles: false
|
86
|
|
- // });
|
87
|
|
- // }
|
|
26
|
+ import { parseTime } from '@/utils'
|
|
27
|
+ import { getDialysisRecord } from '@/api/dialysis'
|
|
28
|
+ import { getDataConfig } from '@/utils/data'
|
|
29
|
+ import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
30
|
+ import axios from 'axios'
|
|
31
|
+
|
|
32
|
+ import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
33
|
+ import printOne from './statementTemplate/printOne'
|
|
34
|
+ import printTwo from './statementTemplate/printTwo'
|
|
35
|
+ import { getAllDoctorList, getAllHisPatientList, getPrescriptionPrint } from '@/api/project/project'
|
|
36
|
+
|
|
37
|
+ export default {
|
|
38
|
+ name: 'dialysisPrintOrder',
|
|
39
|
+ components: {
|
|
40
|
+ BreadCrumb,
|
|
41
|
+ printOne,
|
|
42
|
+ printTwo
|
|
43
|
+ },
|
|
44
|
+ props: {
|
|
45
|
+ paramsObj: Object
|
|
46
|
+ },
|
|
47
|
+ data() {
|
|
48
|
+ return {
|
|
49
|
+ crumbs: [
|
|
50
|
+ { path: false, name: '门诊医生站' },
|
|
51
|
+ { path: false, name: '打印' }
|
|
52
|
+ ],
|
|
53
|
+ record_date: '',
|
|
54
|
+ patientTableData: [],
|
|
55
|
+ advicePrint: [],
|
|
56
|
+ hisPatient: {},
|
|
57
|
+ patient: {},
|
|
58
|
+ search_input: '',
|
|
59
|
+ loading: false,
|
|
60
|
+ patient_id: 0,
|
|
61
|
+ prescription_id: 0,
|
|
62
|
+ ids: '',
|
|
63
|
+ info: null,
|
|
64
|
+ org_id: ''
|
|
65
|
+ }
|
88
|
66
|
},
|
89
|
|
- getAllDoctorList(){
|
90
|
|
- getAllDoctorList().then(response=>{
|
91
|
|
- if(response.data.state == 1){
|
92
|
|
- var doctor = response.data.data.doctor;
|
93
|
|
-
|
94
|
|
- this.doctorList = doctor
|
95
|
|
- }
|
96
|
|
- })
|
97
|
|
- },
|
98
|
|
- getAllHisPatientList(){
|
99
|
|
- const params = {
|
100
|
|
- record_date:this.record_date
|
101
|
|
- };
|
102
|
|
- getAllHisPatientList(params).then(response=>{
|
103
|
|
- if(response.data.state == 1){
|
104
|
|
- this.patientTableData = response.data.data.list;
|
105
|
|
- this.patientTableDataTwo = response.data.data.list;
|
106
|
|
-
|
107
|
|
- console.log('222', this.patientTableData);
|
108
|
|
- let cal_one = 0;
|
109
|
|
- let cal_two = 0;
|
|
67
|
+ methods: {
|
|
68
|
+ printThisPage() {
|
|
69
|
+ var ptime = Math.round(new Date().getTime() / 1000)
|
|
70
|
+ this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
71
|
+
|
|
72
|
+ const style =
|
|
73
|
+ '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}'
|
|
74
|
+ printJS({
|
|
75
|
+ printable: 'statement-print',
|
|
76
|
+ type: 'html',
|
|
77
|
+ style: style,
|
|
78
|
+ scanStyles: false
|
|
79
|
+ })
|
|
80
|
+
|
|
81
|
+ // if (this.org_template_info.template_id == 1) {
|
|
82
|
+ // printJS({
|
|
83
|
+ // printable: "dialysis-print-box",
|
|
84
|
+ // type: "html",
|
|
85
|
+ // style: style,
|
|
86
|
+ // scanStyles: false
|
|
87
|
+ // });
|
|
88
|
+ // }
|
|
89
|
+ },
|
|
90
|
+ getAllDoctorList() {
|
|
91
|
+ getAllDoctorList().then(response => {
|
|
92
|
+ if (response.data.state == 1) {
|
|
93
|
+ var doctor = response.data.data.doctor
|
|
94
|
+
|
|
95
|
+ this.doctorList = doctor
|
|
96
|
+ }
|
|
97
|
+ })
|
|
98
|
+ },
|
|
99
|
+ getAllHisPatientList() {
|
|
100
|
+ const params = {
|
|
101
|
+ record_date: this.record_date
|
|
102
|
+ }
|
|
103
|
+ getAllHisPatientList(params).then(response => {
|
|
104
|
+ if (response.data.state == 1) {
|
|
105
|
+ this.patientTableData = response.data.data.list
|
|
106
|
+ this.patientTableDataTwo = response.data.data.list
|
|
107
|
+
|
|
108
|
+ console.log('222', this.patientTableData)
|
|
109
|
+ let cal_one = 0
|
|
110
|
+ let cal_two = 0
|
110
|
111
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
111
|
112
|
if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
|
112
|
113
|
cal_one = cal_one + 1
|
|
@@ -118,324 +119,327 @@ export default {
|
118
|
119
|
// this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
119
|
120
|
// console.log(this.patientTableData[0])
|
120
|
121
|
// this.choosePatient(this.patientTableData[0])
|
121
|
|
- this.cal_one = cal_one;
|
|
122
|
+ this.cal_one = cal_one
|
122
|
123
|
this.cal_two = cal_two
|
123
|
|
- }
|
124
|
|
- })
|
125
|
|
- },
|
|
124
|
+ }
|
|
125
|
+ })
|
|
126
|
+ },
|
126
|
127
|
|
127
|
|
- changePatient(row){
|
128
|
|
- console.log("row",row);
|
129
|
|
- this.patient_id = row.patient_id;
|
130
|
|
- this.record_date = this.record_date;
|
131
|
|
- this.prescription_id = this.prescription_id
|
132
|
|
- // var params = {
|
133
|
|
- // patient_id:row.patient_id,
|
134
|
|
- // record_date:this.record_date,
|
135
|
|
- // prescription_id:this.prescription_id,
|
136
|
|
- // }
|
137
|
|
- // getPrescriptionPrint(params).then(response=>{
|
138
|
|
- // if(response.data.state == 1){
|
139
|
|
- // var advicePrint = response.data.data.advicePrint
|
140
|
|
- // console.log("adviceprint",advicePrint)
|
141
|
|
- // this.advicePrint = advicePrint
|
142
|
|
- // // var hisPatient = response.data.data.hisPatient
|
143
|
|
- // // console.log("hispatient",hisPatient)
|
144
|
|
- // // this.hisPatient = hisPatient
|
145
|
|
- // var patient = response.data.data.patient
|
146
|
|
- // console.log("patient",patient)
|
147
|
|
- // this.patient = patient
|
148
|
|
- // var doctorPorject = response.data.data.doctorPorject
|
149
|
|
- // console.log("doctorporject",doctorPorject)
|
150
|
|
- // }
|
151
|
|
- // })
|
152
|
|
- },
|
153
|
|
- searchAction(){
|
|
128
|
+ changePatient(row) {
|
|
129
|
+ console.log('row', row)
|
|
130
|
+ this.patient_id = row.patient_id
|
|
131
|
+ this.record_date = this.record_date
|
|
132
|
+ this.prescription_id = this.prescription_id
|
|
133
|
+ // var params = {
|
|
134
|
+ // patient_id:row.patient_id,
|
|
135
|
+ // record_date:this.record_date,
|
|
136
|
+ // prescription_id:this.prescription_id,
|
|
137
|
+ // }
|
|
138
|
+ // getPrescriptionPrint(params).then(response=>{
|
|
139
|
+ // if(response.data.state == 1){
|
|
140
|
+ // var advicePrint = response.data.data.advicePrint
|
|
141
|
+ // console.log("adviceprint",advicePrint)
|
|
142
|
+ // this.advicePrint = advicePrint
|
|
143
|
+ // // var hisPatient = response.data.data.hisPatient
|
|
144
|
+ // // console.log("hispatient",hisPatient)
|
|
145
|
+ // // this.hisPatient = hisPatient
|
|
146
|
+ // var patient = response.data.data.patient
|
|
147
|
+ // console.log("patient",patient)
|
|
148
|
+ // this.patient = patient
|
|
149
|
+ // var doctorPorject = response.data.data.doctorPorject
|
|
150
|
+ // console.log("doctorporject",doctorPorject)
|
|
151
|
+ // }
|
|
152
|
+ // })
|
|
153
|
+ },
|
|
154
|
+ searchAction() {
|
154
|
155
|
|
155
|
|
- },
|
156
|
|
- getInfo(order_id) {
|
157
|
|
- if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || 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 == 4 || this.$store.getters.xt_user.org_id == 9990) {
|
|
156
|
+ },
|
|
157
|
+ getInfo(order_id) {
|
158
|
158
|
|
159
|
|
- var that = this;
|
|
159
|
+ var that = this
|
160
|
160
|
|
161
|
161
|
axios.get('http://127.0.0.1:9532/api/settle/query', {
|
162
|
162
|
params: {
|
163
|
163
|
order_id: order_id,
|
164
|
|
- admin_user_id:this.$store.getters.xt_user.user.id,
|
|
164
|
+ admin_user_id: this.$store.getters.xt_user.user.id
|
165
|
165
|
|
166
|
166
|
}
|
167
|
167
|
})
|
168
|
|
- .then(function (response) {
|
|
168
|
+ .then(function(response) {
|
169
|
169
|
if (response.data.state == 0) {
|
170
|
|
- this.$message.error(response.data.msg);
|
|
170
|
+ this.$message.error(response.data.msg)
|
171
|
171
|
return false
|
172
|
172
|
} else {
|
173
|
|
- console.log("logloglog");
|
|
173
|
+ console.log('logloglog')
|
|
174
|
+
|
|
175
|
+ console.log(response.data.data.info)
|
|
176
|
+ that.info = response.data.data.info
|
|
177
|
+ console.log(that.info)
|
174
|
178
|
|
175
|
|
- console.log(response.data.data.info);
|
176
|
|
- that.info = response.data.data.info;
|
177
|
|
- console.log(that.info);
|
|
179
|
+ that.p_admin = response.data.data.printor_admin
|
|
180
|
+ that.charge_admin = response.data.data.charge_admin
|
|
181
|
+ that.order_infos = response.data.data
|
178
|
182
|
|
179
|
|
- that.p_admin = response.data.data.printor_admin;
|
180
|
|
- that.charge_admin = response.data.data.charge_admin;
|
181
|
|
- that.order_infos = response.data.data;
|
|
183
|
+ that.info['p_admin'] = that.p_admin
|
|
184
|
+ that.info['charge_admin'] = that.charge_admin
|
182
|
185
|
|
|
186
|
+ that.info['date'] = response.data.data.date
|
|
187
|
+ that.info['number'] = response.data.data.number
|
|
188
|
+ that.info['order_infos'] = response.data.data.order_infos
|
|
189
|
+ that.info['diagnosis'] = response.data.data.diagnosis
|
183
|
190
|
|
|
191
|
+ that.info['bed_cost_total'] = response.data.data.bedCostTotal
|
|
192
|
+ that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
|
|
193
|
+ that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
|
184
|
194
|
|
185
|
|
- that.info['p_admin'] = that.p_admin;
|
186
|
|
- that.info['charge_admin'] = that.charge_admin;
|
|
195
|
+ that.info['operation_cost_total'] = response.data.data.operationCostTotal
|
|
196
|
+ that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
|
|
197
|
+ that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
|
187
|
198
|
|
188
|
|
- that.info['date'] = response.data.data.date;
|
189
|
|
- that.info['number'] = response.data.data.number;
|
190
|
|
- that.info['order_infos'] = response.data.data.order_infos;
|
191
|
|
- that.info['diagnosis'] = response.data.data.diagnosis;
|
|
199
|
+ that.info['other_cost_total'] = response.data.data.otherCostTotal
|
|
200
|
+ that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
|
|
201
|
+ that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
|
192
|
202
|
|
|
203
|
+ that.info['material_cost_total'] = response.data.data.materialCostTotal
|
|
204
|
+ that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
|
|
205
|
+ that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
|
193
|
206
|
|
194
|
|
- that.info['bed_cost_total'] = response.data.data.bedCostTotal;
|
195
|
|
- that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
|
196
|
|
- that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
|
|
207
|
+ that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
|
|
208
|
+ that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
|
|
209
|
+ that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
|
197
|
210
|
|
198
|
|
- that.info['operation_cost_total'] = response.data.data.operationCostTotal;
|
199
|
|
- that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
|
200
|
|
- that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
|
|
211
|
+ that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
|
|
212
|
+ that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
|
|
213
|
+ that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
|
201
|
214
|
|
202
|
|
- that.info['other_cost_total'] = response.data.data.otherCostTotal;
|
203
|
|
- that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
|
204
|
|
- that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
|
|
215
|
+ that.info['check_cost_total'] = response.data.data.checkCostTotal
|
|
216
|
+ that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
|
|
217
|
+ that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
|
205
|
218
|
|
206
|
|
- that.info['material_cost_total'] = response.data.data.materialCostTotal;
|
207
|
|
- that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
|
208
|
|
- that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
|
|
219
|
+ that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
|
|
220
|
+ that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
|
|
221
|
+ that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
|
209
|
222
|
|
210
|
|
- that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
|
211
|
|
- that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
|
212
|
|
- that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
|
|
223
|
+ that.info['treat_cost_total'] = response.data.data.treatCostTotal
|
|
224
|
+ that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
|
|
225
|
+ that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
|
|
226
|
+ that.info['date'] = response.data.data.date
|
|
227
|
+ that.info['number'] = response.data.data.number
|
|
228
|
+ that.info['order_infos'] = response.data.data.order_infos
|
|
229
|
+ that.info['diagnosis'] = response.data.data.diagnosis
|
213
|
230
|
|
214
|
|
- that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
|
215
|
|
- that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
216
|
|
- that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
|
231
|
+ }
|
|
232
|
+ })
|
|
233
|
+ .catch(function(error) {
|
217
|
234
|
|
|
235
|
+ })
|
|
236
|
+ }
|
218
|
237
|
|
219
|
|
- that.info['check_cost_total'] = response.data.data.checkCostTotal;
|
220
|
|
- that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
|
221
|
|
- that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
|
|
238
|
+ },
|
222
|
239
|
|
|
240
|
+ created() {
|
|
241
|
+ this.getInfo(this.paramsObj.order_id)
|
|
242
|
+ this.org_id = this.$store.getters.xt_user.org_id
|
|
243
|
+ },
|
|
244
|
+ watch: {
|
|
245
|
+ paramsObj: {//深度监听,可监听到对象、数组的变化
|
|
246
|
+ handler(val, oldVal) {
|
|
247
|
+ this.paramsObj = val
|
|
248
|
+ this.getInfo(this.paramsObj.order_id)
|
|
249
|
+
|
|
250
|
+ },
|
|
251
|
+ deep: true
|
|
252
|
+ }
|
|
253
|
+ }
|
223
|
254
|
|
224
|
|
- that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
|
225
|
|
- that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
|
226
|
|
- that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
|
|
255
|
+ }
|
|
256
|
+</script>
|
227
|
257
|
|
228
|
|
- that.info['treat_cost_total'] = response.data.data.treatCostTotal;
|
229
|
|
- that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
|
230
|
|
- that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
|
231
|
|
- that.info['date'] = response.data.data.date;
|
232
|
|
- that.info['number'] = response.data.data.number;
|
233
|
|
- that.info['order_infos'] = response.data.data.order_infos;
|
234
|
|
- that.info['diagnosis'] = response.data.data.diagnosis
|
|
258
|
+<style>
|
|
259
|
+ .dialysis-print-order {
|
|
260
|
+ width: 960px;
|
|
261
|
+ margin: 0 auto;
|
|
262
|
+ }
|
235
|
263
|
|
236
|
|
- }
|
237
|
|
- })
|
238
|
|
- .catch(function (error) {
|
|
264
|
+ .dialysis-print-order .order-yy-name {
|
|
265
|
+ margin: auto;
|
|
266
|
+ text-align: center;
|
|
267
|
+ font-size: 20px;
|
|
268
|
+ letter-spacing: 5px;
|
|
269
|
+ }
|
239
|
270
|
|
240
|
|
- });
|
241
|
|
- }
|
|
271
|
+ .dialysis-print-order .order-title {
|
|
272
|
+ margin: auto;
|
|
273
|
+ font-weight: 600;
|
|
274
|
+ text-align: center;
|
|
275
|
+ font-size: 22px;
|
|
276
|
+ padding: 10px;
|
242
|
277
|
}
|
243
|
278
|
|
244
|
|
- },
|
|
279
|
+ .dialysis-print-order .table-box {
|
|
280
|
+ width: 100%;
|
|
281
|
+ line-height: 23px;
|
|
282
|
+ font-size: 14px;
|
|
283
|
+ }
|
245
|
284
|
|
246
|
|
- created() {
|
247
|
|
- this.getInfo(this.paramsObj.order_id);
|
248
|
|
- this.org_id = this.$store.getters.xt_user.org_id
|
249
|
|
- },
|
250
|
|
- watch:{
|
251
|
|
- paramsObj:{//深度监听,可监听到对象、数组的变化
|
252
|
|
- handler(val, oldVal){
|
253
|
|
- this.paramsObj = val;
|
254
|
|
- this.getInfo(this.paramsObj.order_id)
|
|
285
|
+ .dialysis-print-order .print-table {
|
|
286
|
+ width: 100%;
|
|
287
|
+ text-align: center;
|
|
288
|
+ border-collapse: collapse;
|
|
289
|
+ line-height: 40px;
|
|
290
|
+ font-size: 14px;
|
|
291
|
+ border-color: #000;
|
|
292
|
+ }
|
255
|
293
|
|
256
|
|
- },
|
257
|
|
- deep:true
|
|
294
|
+ .dialysis-print-order .print-table-no {
|
|
295
|
+ width: 100%;
|
|
296
|
+ text-align: center;
|
|
297
|
+ border-collapse: collapse;
|
|
298
|
+ font-size: 14px;
|
258
|
299
|
}
|
259
|
|
- }
|
260
|
300
|
|
261
|
|
-};
|
262
|
|
-</script>
|
|
301
|
+ .dialysis-print-order .under-line {
|
|
302
|
+ border-bottom: 1px solid #999;
|
|
303
|
+ width: 95%;
|
|
304
|
+ text-align: center;
|
|
305
|
+ margin-left: 2px;
|
|
306
|
+ }
|
263
|
307
|
|
264
|
|
-<style>
|
265
|
|
-.dialysis-print-order {
|
266
|
|
- width: 960px;
|
267
|
|
- margin: 0 auto;
|
268
|
|
-}
|
269
|
|
-
|
270
|
|
-.dialysis-print-order .order-yy-name {
|
271
|
|
- margin: auto;
|
272
|
|
- text-align: center;
|
273
|
|
- font-size: 20px;
|
274
|
|
- letter-spacing: 5px;
|
275
|
|
-}
|
276
|
|
-
|
277
|
|
-.dialysis-print-order .order-title {
|
278
|
|
- margin: auto;
|
279
|
|
- font-weight: 600;
|
280
|
|
- text-align: center;
|
281
|
|
- font-size: 22px;
|
282
|
|
- padding: 10px;
|
283
|
|
-}
|
284
|
|
-
|
285
|
|
-.dialysis-print-order .table-box {
|
286
|
|
- width: 100%;
|
287
|
|
- line-height: 23px;
|
288
|
|
- font-size: 14px;
|
289
|
|
-}
|
290
|
|
-
|
291
|
|
-.dialysis-print-order .print-table {
|
292
|
|
- width: 100%;
|
293
|
|
- text-align: center;
|
294
|
|
- border-collapse: collapse;
|
295
|
|
- line-height: 40px;
|
296
|
|
- font-size: 14px;
|
297
|
|
- border-color: #000;
|
298
|
|
-}
|
299
|
|
-
|
300
|
|
-.dialysis-print-order .print-table-no {
|
301
|
|
- width: 100%;
|
302
|
|
- text-align: center;
|
303
|
|
- border-collapse: collapse;
|
304
|
|
- font-size: 14px;
|
305
|
|
-}
|
306
|
|
-
|
307
|
|
-.dialysis-print-order .under-line {
|
308
|
|
- border-bottom: 1px solid #999;
|
309
|
|
- width: 95%;
|
310
|
|
- text-align: center;
|
311
|
|
- margin-left: 2px;
|
312
|
|
-}
|
313
|
|
-
|
314
|
|
-.dialysis-print-order .title-box {
|
315
|
|
- text-align: center;
|
316
|
|
- font-size: 16px;
|
317
|
|
-}
|
318
|
|
-
|
319
|
|
-.dialysis-print-order .radio-lebel-box {
|
320
|
|
- font-weight: 400;
|
321
|
|
- cursor: pointer;
|
322
|
|
-}
|
323
|
|
-
|
324
|
|
-.dialysis-print-order .radio-no {
|
325
|
|
- opacity: 0;
|
326
|
|
- outline: none;
|
327
|
|
- position: absolute;
|
328
|
|
- margin: 0;
|
329
|
|
- width: 0;
|
330
|
|
- height: 0;
|
331
|
|
- z-index: -1;
|
332
|
|
-}
|
333
|
|
-
|
334
|
|
-.dialysis-print-order .radio-inner {
|
335
|
|
- white-space: nowrap;
|
336
|
|
- cursor: pointer;
|
337
|
|
- outline: none;
|
338
|
|
- display: inline-block;
|
339
|
|
- line-height: 1;
|
340
|
|
- position: relative;
|
341
|
|
- vertical-align: middle;
|
342
|
|
-}
|
343
|
|
-
|
344
|
|
-.dialysis-print-order .radio-fang {
|
345
|
|
- display: inline-block;
|
346
|
|
- position: relative;
|
347
|
|
- border: 1px solid #000;
|
348
|
|
- box-sizing: border-box;
|
349
|
|
- width: 14px;
|
350
|
|
- height: 14px;
|
351
|
|
- background-color: #fff;
|
352
|
|
- z-index: 1;
|
353
|
|
- transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
|
354
|
|
- background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
|
355
|
|
-}
|
356
|
|
-
|
357
|
|
-.dialysis-print-order .is-checked-radio::after {
|
358
|
|
- content: "√";
|
359
|
|
- font-size: 15px;
|
360
|
|
-}
|
361
|
|
-
|
362
|
|
-.dialysis-print-order .print-table-no tr td {
|
363
|
|
- padding: 8px 5px;
|
364
|
|
- line-height: 25px;
|
365
|
|
-}
|
366
|
|
-
|
367
|
|
-.dialysis-print-order .print-table tr td {
|
368
|
|
- padding: 1px 1px;
|
369
|
|
- /*line-height: 25px;*/
|
370
|
|
-}
|
371
|
|
-
|
372
|
|
-.es-img {
|
373
|
|
- height: 30px;
|
374
|
|
-}
|
375
|
|
-
|
376
|
|
-.advice-name {
|
377
|
|
- text-align: left;
|
378
|
|
-}
|
379
|
|
-
|
380
|
|
-.advice-children {
|
381
|
|
- display: flex;
|
382
|
|
-}
|
383
|
|
-
|
384
|
|
-.title-box-pro {
|
385
|
|
- border: 0 #fff;
|
386
|
|
- line-height: 25px;
|
387
|
|
- height: 25px;
|
388
|
|
- text-align: left;
|
389
|
|
- padding-left: 10px !important;
|
390
|
|
-}
|
391
|
|
-.title-box-pro-tr {
|
392
|
|
- border: 0 #fff;
|
393
|
|
-}
|
394
|
|
-.text-align-left {
|
395
|
|
- text-align: left !important;
|
396
|
|
- padding-left: 10px !important;
|
397
|
|
- font-size: 14px !important;
|
398
|
|
- line-height: 25px;
|
399
|
|
-}
|
400
|
|
-.print-table-tr-new td {
|
401
|
|
- line-height: 20px !important;
|
402
|
|
-}
|
403
|
|
-.border-top-solid {
|
404
|
|
- border: solid 1px #000;
|
405
|
|
-}
|
406
|
|
-.print-template-two tr {
|
407
|
|
- line-height: 30px;
|
408
|
|
-}
|
409
|
|
-
|
410
|
|
-.table-box1 {
|
411
|
|
- border: 1px solid #000;
|
412
|
|
- width: 100%;
|
413
|
|
- line-height: 30px;
|
414
|
|
- font-size: 14px;
|
415
|
|
- border-collapse: collapse;
|
416
|
|
-}
|
417
|
|
-.table-box1 tr {
|
418
|
|
- border-bottom: 1px solid #000;
|
419
|
|
-}
|
|
308
|
+ .dialysis-print-order .title-box {
|
|
309
|
+ text-align: center;
|
|
310
|
+ font-size: 16px;
|
|
311
|
+ }
|
|
312
|
+
|
|
313
|
+ .dialysis-print-order .radio-lebel-box {
|
|
314
|
+ font-weight: 400;
|
|
315
|
+ cursor: pointer;
|
|
316
|
+ }
|
|
317
|
+
|
|
318
|
+ .dialysis-print-order .radio-no {
|
|
319
|
+ opacity: 0;
|
|
320
|
+ outline: none;
|
|
321
|
+ position: absolute;
|
|
322
|
+ margin: 0;
|
|
323
|
+ width: 0;
|
|
324
|
+ height: 0;
|
|
325
|
+ z-index: -1;
|
|
326
|
+ }
|
|
327
|
+
|
|
328
|
+ .dialysis-print-order .radio-inner {
|
|
329
|
+ white-space: nowrap;
|
|
330
|
+ cursor: pointer;
|
|
331
|
+ outline: none;
|
|
332
|
+ display: inline-block;
|
|
333
|
+ line-height: 1;
|
|
334
|
+ position: relative;
|
|
335
|
+ vertical-align: middle;
|
|
336
|
+ }
|
|
337
|
+
|
|
338
|
+ .dialysis-print-order .radio-fang {
|
|
339
|
+ display: inline-block;
|
|
340
|
+ position: relative;
|
|
341
|
+ border: 1px solid #000;
|
|
342
|
+ box-sizing: border-box;
|
|
343
|
+ width: 14px;
|
|
344
|
+ height: 14px;
|
|
345
|
+ background-color: #fff;
|
|
346
|
+ z-index: 1;
|
|
347
|
+ transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
|
|
348
|
+ background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
|
|
349
|
+ }
|
|
350
|
+
|
|
351
|
+ .dialysis-print-order .is-checked-radio::after {
|
|
352
|
+ content: "√";
|
|
353
|
+ font-size: 15px;
|
|
354
|
+ }
|
|
355
|
+
|
|
356
|
+ .dialysis-print-order .print-table-no tr td {
|
|
357
|
+ padding: 8px 5px;
|
|
358
|
+ line-height: 25px;
|
|
359
|
+ }
|
|
360
|
+
|
|
361
|
+ .dialysis-print-order .print-table tr td {
|
|
362
|
+ padding: 1px 1px;
|
|
363
|
+ /*line-height: 25px;*/
|
|
364
|
+ }
|
|
365
|
+
|
|
366
|
+ .es-img {
|
|
367
|
+ height: 30px;
|
|
368
|
+ }
|
|
369
|
+
|
|
370
|
+ .advice-name {
|
|
371
|
+ text-align: left;
|
|
372
|
+ }
|
|
373
|
+
|
|
374
|
+ .advice-children {
|
|
375
|
+ display: flex;
|
|
376
|
+ }
|
|
377
|
+
|
|
378
|
+ .title-box-pro {
|
|
379
|
+ border: 0 #fff;
|
|
380
|
+ line-height: 25px;
|
|
381
|
+ height: 25px;
|
|
382
|
+ text-align: left;
|
|
383
|
+ padding-left: 10px !important;
|
|
384
|
+ }
|
|
385
|
+
|
|
386
|
+ .title-box-pro-tr {
|
|
387
|
+ border: 0 #fff;
|
|
388
|
+ }
|
|
389
|
+
|
|
390
|
+ .text-align-left {
|
|
391
|
+ text-align: left !important;
|
|
392
|
+ padding-left: 10px !important;
|
|
393
|
+ font-size: 14px !important;
|
|
394
|
+ line-height: 25px;
|
|
395
|
+ }
|
|
396
|
+
|
|
397
|
+ .print-table-tr-new td {
|
|
398
|
+ line-height: 20px !important;
|
|
399
|
+ }
|
|
400
|
+
|
|
401
|
+ .border-top-solid {
|
|
402
|
+ border: solid 1px #000;
|
|
403
|
+ }
|
|
404
|
+
|
|
405
|
+ .print-template-two tr {
|
|
406
|
+ line-height: 30px;
|
|
407
|
+ }
|
|
408
|
+
|
|
409
|
+ .table-box1 {
|
|
410
|
+ border: 1px solid #000;
|
|
411
|
+ width: 100%;
|
|
412
|
+ line-height: 30px;
|
|
413
|
+ font-size: 14px;
|
|
414
|
+ border-collapse: collapse;
|
|
415
|
+ }
|
|
416
|
+
|
|
417
|
+ .table-box1 tr {
|
|
418
|
+ border-bottom: 1px solid #000;
|
|
419
|
+ }
|
420
|
420
|
</style>
|
421
|
421
|
|
422
|
422
|
<style lang="scss">
|
423
|
423
|
|
424
|
|
-.newContainer{
|
425
|
|
- .dialysisPage::-webkit-scrollbar {
|
426
|
|
- height: 15px;
|
427
|
|
- }
|
|
424
|
+ .newContainer {
|
428
|
425
|
|
429
|
|
- .el-date-editor{
|
430
|
|
- .el-input__inner{
|
431
|
|
- padding-right:0px;
|
|
426
|
+ .dialysisPage::-webkit-scrollbar {
|
|
427
|
+ height: 15px;
|
|
428
|
+ }
|
|
429
|
+
|
|
430
|
+ .el-date-editor {
|
|
431
|
+
|
|
432
|
+ .el-input__inner {
|
|
433
|
+ padding-right: 0px;
|
|
434
|
+ }
|
|
435
|
+
|
|
436
|
+ }
|
|
437
|
+ .el-table td, .el-table th {
|
|
438
|
+ text-align: center;
|
|
439
|
+ }
|
|
440
|
+
|
|
441
|
+ }
|
|
442
|
+ .newContainer::-webkit-scrollbar {
|
|
443
|
+ height: 15px !important;
|
432
|
444
|
}
|
433
|
|
- }
|
434
|
|
- .el-table td, .el-table th{
|
435
|
|
- text-align: center;
|
436
|
|
- }
|
437
|
|
-}
|
438
|
|
-.newContainer::-webkit-scrollbar{
|
439
|
|
- height: 15px !important;
|
440
|
|
-}
|
441
|
445
|
</style>
|