瀏覽代碼

二维码页面修改

xiaoming_global 6 年之前
父節點
當前提交
9204e28d1b
共有 1 個文件被更改,包括 21 次插入22 次删除
  1. 21 22
      src/xt_pages/user/components/PatientDetail.vue

+ 21 - 22
src/xt_pages/user/components/PatientDetail.vue 查看文件

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