|
@@ -1,11 +1,10 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="app-container ">
|
3
|
|
-
|
4
|
3
|
<el-form ref="form" :rules="rules" :model="form" label-width="134px" class="clearfix" id="patient-info" >
|
5
|
|
- <div style="float:right;z-index:999; position: absolute;right: 0;">
|
6
|
|
- <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="$router.push('/patients/patient/'+patientID+'/edit')" style="margin:0 0 6px 0;z-index:1;">修改</el-button>
|
7
|
|
- <el-button type="primary" @click="printThisInfo()" style="margin:0 6px 6px 0;z-index:1;">打印</el-button>
|
8
|
|
- <el-button type="primary" @click="printCard()" style="margin:0 6px 6px 0;z-index:1;">打印签到卡</el-button>
|
|
4
|
+ <div style="float:right;z-index:999;position: absolute;right: 0;">
|
|
5
|
+ <el-button type="primary" @click="printCard()" style="margin:0 6px 6px 0;z-index:1;">打印签到卡</el-button>
|
|
6
|
+ <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="$router.push('/patients/patient/'+patientID+'/edit')" style="margin:0 0 6px 0;z-index:1;">修改</el-button>
|
|
7
|
+ <el-button type="primary" @click="printThisInfo()" style="margin:0 6px 6px 0;z-index:1;">打印</el-button>
|
9
|
8
|
</div>
|
10
|
9
|
<div class="dataTitle">一般资料</div>
|
11
|
10
|
<el-row >
|
|
@@ -36,7 +35,7 @@
|
36
|
35
|
</el-col>
|
37
|
36
|
<el-col :span="8">
|
38
|
37
|
<el-form-item label="透析号 : " class="is-required">
|
39
|
|
- <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:110px;float:left;margin-right: 1%;" ></el-input>
|
|
38
|
+ <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:110px;float:left;margin-right: 1%;" ></el-input>
|
40
|
39
|
<el-button disabled type="primary">自动生成</el-button>
|
41
|
40
|
</el-form-item>
|
42
|
41
|
</el-col>
|
|
@@ -44,7 +43,7 @@
|
44
|
43
|
<el-form-item label="出生日期 : " class="is-required" prop="birth" >
|
45
|
44
|
<el-date-picker v-model="form.birth" type="date" disabled placeholder="选择日期" :suffix-icon="'el-icon-menu'" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
|
46
|
45
|
</el-form-item>
|
47
|
|
- </el-col>
|
|
46
|
+ </el-col>
|
48
|
47
|
<el-col :span="8">
|
49
|
48
|
<el-form-item label="本人电话: " class="is-required" prop="phone">
|
50
|
49
|
<el-input v-model="form.phone" maxlength="20" disabled></el-input>
|
|
@@ -77,7 +76,7 @@
|
77
|
76
|
<el-input v-model="form.homeAddress" disabled></el-input>
|
78
|
77
|
</el-form-item>
|
79
|
78
|
</el-col>
|
80
|
|
-
|
|
79
|
+
|
81
|
80
|
<div v-show="!generic_info_fold">
|
82
|
81
|
<el-col :span="8" >
|
83
|
82
|
<el-form-item label="别名 : " prop="alias" >
|
|
@@ -98,7 +97,7 @@
|
98
|
97
|
</el-col>
|
99
|
98
|
<el-col :span="8">
|
100
|
99
|
<el-form-item label="子女情况 : " style="width:80%;float:left;" prop="children">
|
101
|
|
- <el-input maxlength="5" v-model="form.children" disabled></el-input>
|
|
100
|
+ <el-input maxlength="5" v-model="form.children" disabled></el-input>
|
102
|
101
|
</el-form-item>
|
103
|
102
|
<el-form-item label="孩 " style="width:20%;float:left;" label-width="50px">
|
104
|
103
|
</el-form-item>
|
|
@@ -221,7 +220,7 @@
|
221
|
220
|
<el-checkbox v-for="item in contagionList" v-if="item.type==2" :label="item.id" :key="item.id" :value="item.id" disabled>{{item.name}}</el-checkbox>
|
222
|
221
|
</el-checkbox-group>
|
223
|
222
|
</el-form-item>
|
224
|
|
- </el-col>
|
|
223
|
+ </el-col>
|
225
|
224
|
<el-col :span="24">
|
226
|
225
|
<el-form-item label="慢性病 : " prop="diseases">
|
227
|
226
|
<el-checkbox-group v-model="form.diseases">
|
|
@@ -408,13 +407,13 @@
|
408
|
407
|
</div>
|
409
|
408
|
<div align="center" style="margin-bottom:20px;font-size:25px">
|
410
|
409
|
透析号:<span> {{ patientPrint.dialysis_no }}</span>
|
411
|
|
- </div>
|
|
410
|
+ </div>
|
412
|
411
|
<div>
|
413
|
412
|
<div id="qrcode" align="center"></div>
|
414
|
|
- </div>
|
|
413
|
+ </div>
|
415
|
414
|
</div>
|
416
|
415
|
</div>
|
417
|
|
- </div>
|
|
416
|
+ </div>
|
418
|
417
|
</template>
|
419
|
418
|
|
420
|
419
|
<script>
|
|
@@ -868,7 +867,7 @@ export default {
|
868
|
867
|
this.patientPrint.education_level = ''
|
869
|
868
|
}
|
870
|
869
|
if (patietInfo.profession > 0) {
|
871
|
|
- var eLen = this.professionOptions.length
|
|
870
|
+ var eLen = this.professionOptions.length
|
872
|
871
|
for (let index = 0; index < eLen; index++) {
|
873
|
872
|
if (this.professionOptions[index].id === patietInfo.profession) {
|
874
|
873
|
this.patientPrint.profession = this.professionOptions[index].name
|
|
@@ -891,7 +890,7 @@ export default {
|
891
|
890
|
this.patientPrint.dialysis_age = ''
|
892
|
891
|
}
|
893
|
892
|
if (patietInfo.induction_period > 0) {
|
894
|
|
- var eLen = this.inductionOptions.length
|
|
893
|
+ var eLen = this.inductionOptions.length
|
895
|
894
|
for (let index = 0; index < eLen; index++) {
|
896
|
895
|
if (this.inductionOptions[index].id === patietInfo.induction_period) {
|
897
|
896
|
this.patientPrint.induction_period = this.inductionOptions[index].name
|
|
@@ -902,7 +901,7 @@ export default {
|
902
|
901
|
this.patientPrint.induction_period = ''
|
903
|
902
|
}
|
904
|
903
|
if (patietInfo.attending_doctor_id > 0) {
|
905
|
|
- var eLen = this.adminUserOptions.length
|
|
904
|
+ var eLen = this.adminUserOptions.length
|
906
|
905
|
for (let index = 0; index < eLen; index++) {
|
907
|
906
|
if (this.adminUserOptions[index].id === patietInfo.attending_doctor_id) {
|
908
|
907
|
this.patientPrint.attending_doctor_id = this.adminUserOptions[index].name
|
|
@@ -913,7 +912,7 @@ export default {
|
913
|
912
|
this.patientPrint.attending_doctor_id = ''
|
914
|
913
|
}
|
915
|
914
|
if (patietInfo.head_nurse_id > 0) {
|
916
|
|
- var eLen = this.adminUserOptions.length
|
|
915
|
+ var eLen = this.adminUserOptions.length
|
917
|
916
|
for (let index = 0; index < eLen; index++) {
|
918
|
917
|
if (this.adminUserOptions[index].id === patietInfo.head_nurse_id) {
|
919
|
918
|
this.patientPrint.head_nurse_id = this.adminUserOptions[index].name
|
|
@@ -926,12 +925,12 @@ export default {
|
926
|
925
|
|
927
|
926
|
if (contagionsArr.length > 0) {
|
928
|
927
|
var contagionsIdArr = {}
|
929
|
|
- var alen = contagionsArr.length
|
|
928
|
+ var alen = contagionsArr.length
|
930
|
929
|
for (let index = 0; index < alen; index++) {
|
931
|
930
|
contagionsIdArr[contagionsArr[index]] = 1
|
932
|
931
|
}
|
933
|
932
|
var printContagions = []
|
934
|
|
- var clen = this.contagionList.length
|
|
933
|
+ var clen = this.contagionList.length
|
935
|
934
|
for (let index = 0; index < clen; index++) {
|
936
|
935
|
if (this.contagionList[index].id in contagionsIdArr) {
|
937
|
936
|
printContagions.push(this.contagionList[index].name)
|
|
@@ -961,7 +960,7 @@ export default {
|
961
|
960
|
}
|
962
|
961
|
|
963
|
962
|
if (patietInfo.registrars_id > 0) {
|
964
|
|
- var eLen = this.adminUserOptions.length
|
|
963
|
+ var eLen = this.adminUserOptions.length
|
965
|
964
|
for (let index = 0; index < eLen; index++) {
|
966
|
965
|
if (this.adminUserOptions[index].id === patietInfo.registrars_id) {
|
967
|
966
|
this.patientPrint.registrars = this.adminUserOptions[index].name
|
|
@@ -1186,7 +1185,7 @@ export default {
|
1186
|
1185
|
/* 打印表格的样式 */
|
1187
|
1186
|
.print_main_content {
|
1188
|
1187
|
background-color: white;
|
1189
|
|
- width:960px;
|
|
1188
|
+ width:960px;
|
1190
|
1189
|
margin:0 auto;
|
1191
|
1190
|
padding: 0 0 20px 0;
|
1192
|
1191
|
}
|
|
@@ -1231,4 +1230,4 @@ export default {
|
1231
|
1230
|
.print_footnote_panel .proj .proj_title {
|
1232
|
1231
|
font-weight: 500;
|
1233
|
1232
|
}
|
1234
|
|
-</style>
|
|
1233
|
+</style>
|