瀏覽代碼

修改不显示医生签名bug

csx 6 年之前
父節點
當前提交
62b544038a
共有 1 個文件被更改,包括 159 次插入169 次删除
  1. 159 169
      src/xt_pages/dialysis/dialysisPrintOrder.vue

+ 159 - 169
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -501,8 +501,9 @@
501 501
                   <td width="70">医生签名:</td>
502 502
                   <td width="100">
503 503
                     <div class="under-line">
504
-                      <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">{{getAdminUser(prescription.prescription_doctor)}}</span>
505
-                      <img class="es-img" :src="setAdminUserES(prescription.prescription_doctor)"
504
+                      <span v-if="advices.length == 0"></span>
505
+                      <span v-else-if="setAdminUserES(advices[0][0].advice_doctor) == ''">{{getAdminUser(advices[0][0].advice_doctor)}}</span>
506
+                      <img class="es-img" :src="setAdminUserES(advices[0][0].advice_doctor)"
506 507
                            alt="" srcset="" v-else>
507 508
 
508 509
                       <!-- {{getXuserName(prescription.prescription_doctor)}} -->
@@ -963,7 +964,7 @@
963 964
               <span></span>
964 965
             </td>
965 966
           </tr>
966
-          
967
+
967 968
           <!-- 使整个表有5行以上 -->
968 969
           <template v-if="advices.length < 5">
969 970
           <tr v-for="(num) in (5 - advices.length)" :key="'5_' + num">
@@ -1002,16 +1003,16 @@
1002 1003
 </template>
1003 1004
 
1004 1005
 <script>
1005
-  import {getDialysisRecord} from '@/api/dialysis';
1006
-  import {getDataConfig} from '@/utils/data';
1007
-  import {jsGetAge, uParseTime} from "@/utils/tools";
1008
-  import LabelBox from './printItem/LabelBox'
1009
-  import print from "print-js";
1006
+  import { getDialysisRecord } from '@/api/dialysis'
1007
+import { getDataConfig } from '@/utils/data'
1008
+import { jsGetAge, uParseTime } from '@/utils/tools'
1009
+import LabelBox from './printItem/LabelBox'
1010
+  import print from 'print-js'
1010 1011
 
1011
-  export default {
1012
+export default {
1012 1013
     name: 'dialysisPrintOrder',
1013 1014
     components: {
1014
-      LabelBox,
1015
+      LabelBox
1015 1016
     },
1016 1017
     data() {
1017 1018
       return {
@@ -1038,29 +1039,29 @@
1038 1039
 
1039 1040
         queryParams: {
1040 1041
           xtdate: '',
1041
-          xtno: '',
1042
+          xtno: ''
1042 1043
         },
1043 1044
         patientInfo: {
1044 1045
           birth: '',
1045 1046
           age: '',
1046 1047
           DialysisSchedule: {
1047
-            device_number: {number: ""},
1048
-            device_zone: {name: ""},
1048
+            device_number: { number: '' },
1049
+            device_zone: { name: '' }
1049 1050
           },
1050 1051
           gender: 0
1051 1052
         },
1052 1053
         predialysis: {
1053
-          internal_fistula: "",
1054
-          internal_fistula_skin: "",
1055
-          catheter: "",
1056
-          blood_access_part_opera_name: '',
1054
+          internal_fistula: '',
1055
+          internal_fistula_skin: '',
1056
+          catheter: '',
1057
+          blood_access_part_opera_name: ''
1057 1058
         },
1058 1059
         afterdialysis: {
1059
-          complications_index: "",
1060
+          complications_index: ''
1060 1061
         },
1061 1062
         prescription: {
1062 1063
           dialysate_formulation_name: '',
1063
-          device: {},
1064
+          device: {}
1064 1065
         },
1065 1066
         advices: [],
1066 1067
         users: [],
@@ -1068,22 +1069,21 @@
1068 1069
         summary: {},
1069 1070
         receiverTreatmentAccess: {},
1070 1071
 
1071
-
1072 1072
         AlPanel: {
1073 1073
           id: 0,
1074
-          name: "",
1074
+          name: '',
1075 1075
           type: 1,
1076 1076
           shouji: 2,
1077 1077
           weichi: 2,
1078 1078
           zongliang: 2,
1079 1079
           gaimingcheng: -1,
1080 1080
           gaijiliang: -1,
1081
-          shouji_unit: "mg",
1082
-          weichi_unit: "mg/h",
1083
-          zongliang_unit: "mg",
1084
-          gaimingcheng_unit: "",
1085
-          gaijiliang_unit: ""
1086
-        },
1081
+          shouji_unit: 'mg',
1082
+          weichi_unit: 'mg/h',
1083
+          zongliang_unit: 'mg',
1084
+          gaimingcheng_unit: '',
1085
+          gaijiliang_unit: ''
1086
+        }
1087 1087
 
1088 1088
       }
1089 1089
     },
@@ -1105,20 +1105,20 @@
1105 1105
         if (value != undefined) {
1106 1106
           return uParseTime(value, temp)
1107 1107
         }
1108
-        return ""
1108
+        return ''
1109 1109
       },
1110 1110
       printThisPage() {
1111
-        var ptime = Math.round(new Date().getTime() / 1000);
1112
-        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
1111
+        var ptime = Math.round(new Date().getTime() / 1000)
1112
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
1113 1113
 
1114
-        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:15px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;}';
1114
+        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:15px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;}'
1115 1115
 
1116 1116
         printJS({
1117
-          printable: "dialysis-print-box",
1118
-          type: "html",
1117
+          printable: 'dialysis-print-box',
1118
+          type: 'html',
1119 1119
           style: style,
1120 1120
           scanStyles: false
1121
-        });
1121
+        })
1122 1122
       }, getNumber() {
1123 1123
         if (this.dialysisOrder != null) {
1124 1124
           return this.patientInfo.DialysisSchedule.device_zone.name + this.dialysisOrder.DeviceNumber.number
@@ -1129,23 +1129,23 @@
1129 1129
 
1130 1130
       getXuserName(id) {
1131 1131
         if (id <= 0) {
1132
-          return "";
1132
+          return ''
1133 1133
         }
1134
-        var name = "";
1135
-        if (this.users == null || typeof (this.users.length) == "undefined") {
1136
-          return name;
1134
+        var name = ''
1135
+        if (this.users == null || typeof (this.users.length) === 'undefined') {
1136
+          return name
1137 1137
         }
1138
-        var leng = this.users.length;
1138
+        var leng = this.users.length
1139 1139
         if (leng == 0) {
1140
-          return name;
1140
+          return name
1141 1141
         }
1142 1142
         for (let index = 0; index < leng; index++) {
1143 1143
           if (this.users[index].id == id) {
1144
-            name = this.users[index].name;
1145
-            break;
1144
+            name = this.users[index].name
1145
+            break
1146 1146
           }
1147 1147
         }
1148
-        return name;
1148
+        return name
1149 1149
       },
1150 1150
       setAdminUserES(id) {
1151 1151
         console.log(id)
@@ -1153,251 +1153,241 @@
1153 1153
           return ''
1154 1154
         }
1155 1155
         if (id in this.operatorMaps) {
1156
-          return this.operatorMaps[id].url;
1156
+          return this.operatorMaps[id].url
1157 1157
         } else {
1158
-          return '';
1158
+          return ''
1159 1159
         }
1160 1160
       },
1161 1161
       modeName(mode_id) {
1162
-        return typeof (this.modeOptions[mode_id]) != 'undefined' && typeof (this.modeOptions[mode_id].name) != 'undefined' ? this.modeOptions[mode_id].name : '';
1162
+        return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
1163 1163
       },
1164 1164
       getDialysisRecord() {
1165 1165
         getDialysisRecord(this.queryParams).then(response => {
1166 1166
           if (response.data.state == 1) {
1167
-            this.adminUser = response.data.data.users;
1168
-            this.users = response.data.data.users;
1169
-            this.patientInfo = response.data.data.patientInfo;
1170
-            this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}');
1171
-            this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-');
1167
+            this.adminUser = response.data.data.users
1168
+            this.users = response.data.data.users
1169
+            this.patientInfo = response.data.data.patientInfo
1170
+            this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
1171
+            this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
1172 1172
             if (response.data.data.patientInfo.first_dialysis_date != 0) {
1173
-              this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}');
1173
+              this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
1174 1174
             } else {
1175
-              this.patientInfo.first_dialysis_date = '';
1175
+              this.patientInfo.first_dialysis_date = ''
1176 1176
             }
1177 1177
 
1178
-            this.predialysis = response.data.data.PredialysisEvaluation;
1179
-            this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id);
1180
-            this.afterdialysis = response.data.data.AssessmentAfterDislysis;
1181
-            this.operators = response.data.data.operators;
1182
-            this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder;
1178
+            this.predialysis = response.data.data.PredialysisEvaluation
1179
+            this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
1180
+            this.afterdialysis = response.data.data.AssessmentAfterDislysis
1181
+            this.operators = response.data.data.operators
1182
+            this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
1183 1183
 
1184 1184
             if (this.operators.length > 0) {
1185
-              var operatorsLen = this.operators.length;
1185
+              var operatorsLen = this.operators.length
1186 1186
               for (var index = 0; index < operatorsLen; index++) {
1187
-                this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index]);
1187
+                this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
1188 1188
               }
1189 1189
             }
1190 1190
 
1191
-            this.afterdialysis.txqnx = -1;
1191
+            this.afterdialysis.txqnx = -1
1192 1192
             if (this.afterdialysis.cruor.indexOf('0度') > -1) {
1193
-              this.afterdialysis.txqnx = 0;
1193
+              this.afterdialysis.txqnx = 0
1194 1194
             }
1195 1195
             if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
1196
-              this.afterdialysis.txqnx = 1;
1196
+              this.afterdialysis.txqnx = 1
1197 1197
             }
1198 1198
             if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
1199
-              this.afterdialysis.txqnx = 2;
1199
+              this.afterdialysis.txqnx = 2
1200 1200
             }
1201 1201
             if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
1202
-              this.afterdialysis.txqnx = 3;
1202
+              this.afterdialysis.txqnx = 3
1203 1203
             }
1204 1204
 
1205
-
1206
-            this.afterdialysis.complications = this.afterdialysis.complication.split(',');
1207
-            this.afterdialysis.complications_other = [];
1208
-            this.afterdialysis.complications_index = [];
1209
-            var acllen = this.afterdialysis.complications.length;
1205
+            this.afterdialysis.complications = this.afterdialysis.complication.split(',')
1206
+            this.afterdialysis.complications_other = []
1207
+            this.afterdialysis.complications_index = []
1208
+            var acllen = this.afterdialysis.complications.length
1210 1209
             for (let index = 0; index < acllen; index++) {
1211 1210
               if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
1212
-                this.afterdialysis.complications_index.push(this.afterdialysis.complications[index]);
1211
+                this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
1213 1212
               } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
1214
-                this.afterdialysis.complications_other.push(this.afterdialysis.complications[index]);
1213
+                this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
1215 1214
               }
1216 1215
             }
1217
-            this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',');
1218
-
1216
+            this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
1219 1217
 
1220
-            this.prescription = response.data.data.dialysisPrescription;
1221
-            this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess;
1218
+            this.prescription = response.data.data.dialysisPrescription
1219
+            this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
1222 1220
 
1223
-            this.prescription.mode = this.modeName(this.prescription.mode_id);
1224
-            var rwLen = this.replacementWays.length;
1225
-            this.prescription.replacement = "";
1221
+            this.prescription.mode = this.modeName(this.prescription.mode_id)
1222
+            var rwLen = this.replacementWays.length
1223
+            this.prescription.replacement = ''
1226 1224
             for (let index = 0; index < rwLen; index++) {
1227 1225
               if (this.replacementWays[index].id == this.prescription.replacement_way) {
1228
-                this.prescription.replacement = this.replacementWays[index].name;
1229
-                break;
1226
+                this.prescription.replacement = this.replacementWays[index].name
1227
+                break
1230 1228
               }
1231 1229
             }
1232 1230
 
1233
-            this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation);
1231
+            this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
1234 1232
 
1235
-
1236
-            var paLen = this.perfusionApparatus.length;
1237
-            this.prescription.perfusion_apparatus_name = "";
1233
+            var paLen = this.perfusionApparatus.length
1234
+            this.prescription.perfusion_apparatus_name = ''
1238 1235
             for (let index = 0; index < paLen; index++) {
1239 1236
               if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
1240
-                this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name;
1241
-                break;
1237
+                this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
1238
+                break
1242 1239
               }
1243 1240
             }
1244 1241
 
1245
-            var acLen = this.anticoagulantsConfit.length;
1246
-            var thisALID = this.prescription.anticoagulant;
1247
-            this.prescription.anticoagulant_name = "";
1242
+            var acLen = this.anticoagulantsConfit.length
1243
+            var thisALID = this.prescription.anticoagulant
1244
+            this.prescription.anticoagulant_name = ''
1248 1245
 
1249
-            if (typeof (this.anticoagulantsConfit[thisALID]) != 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
1250
-              this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name;
1251
-              this.AlPanel = this.anticoagulantsConfit[thisALID];
1246
+            if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
1247
+              this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
1248
+              this.AlPanel = this.anticoagulantsConfit[thisALID]
1252 1249
             }
1253 1250
 
1254
-            this.advices = response.data.data.advices;
1255
-            this.monitors = response.data.data.monitors;
1256
-            this.summary = response.data.data.summary;
1251
+            this.advices = response.data.data.advices
1252
+            this.monitors = response.data.data.monitors
1253
+            this.summary = response.data.data.summary
1257 1254
 
1258 1255
             if (this.monitors.length < 8) {
1259
-              var nl = 8 - this.monitors.length;
1256
+              var nl = 8 - this.monitors.length
1260 1257
               for (let index = 0; index < nl; index++) {
1261
-                this.monitors.push([]);
1258
+                this.monitors.push([])
1262 1259
               }
1263 1260
             }
1264
-            this.jilurow = this.monitors.length + 1;
1265
-
1261
+            this.jilurow = this.monitors.length + 1
1266 1262
 
1267
-            var childMap = {};
1263
+            var childMap = {}
1268 1264
             for (const index in this.advices) {
1269 1265
               if (this.advices[index].parent_id == 0) {
1270
-                continue;
1266
+                continue
1271 1267
               }
1272 1268
               if (!(this.advices[index].parent_id in childMap)) {
1273
-                childMap[this.advices[index].parent_id] = [];
1269
+                childMap[this.advices[index].parent_id] = []
1274 1270
               }
1275
-              childMap[this.advices[index].parent_id].push(this.advices[index]);
1271
+              childMap[this.advices[index].parent_id].push(this.advices[index])
1276 1272
             }
1277 1273
 
1278
-
1279
-            var advices = [];
1274
+            var advices = []
1280 1275
             for (const index in this.advices) {
1281 1276
               if (this.advices[index].parent_id > 0) {
1282
-                continue;
1277
+                continue
1283 1278
               }
1284 1279
               var item = this.advices[index]
1285 1280
               if (item.id in childMap) {
1286
-                item.children = childMap[item.id];
1281
+                item.children = childMap[item.id]
1287 1282
               } else {
1288
-                item.children = [];
1283
+                item.children = []
1289 1284
               }
1290
-              advices.push(item);
1285
+              advices.push(item)
1291 1286
             }
1292 1287
 
1293
-            var leftAdvice = [];
1294
-            var rightAdvice = [];
1295
-            var adlen = advices.length;
1288
+            var leftAdvice = []
1289
+            var rightAdvice = []
1290
+            var adlen = advices.length
1296 1291
 
1297
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen+1) / 2
1292
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
1298 1293
             for (var i = 0; i < halfLen; i++) {
1299
-              leftAdvice.push(advices[i]);
1300
-              rightAdvice.push(advices[i + halfLen]);
1294
+              leftAdvice.push(advices[i])
1295
+              rightAdvice.push(advices[i + halfLen])
1301 1296
             }
1302 1297
             if (halfLen < 5) {
1303
-              var nl = 5 - leftAdvice.length;
1298
+              var nl = 5 - leftAdvice.length
1304 1299
               for (let index = 0; index < nl; index++) {
1305
-                leftAdvice.push([]);
1300
+                leftAdvice.push([])
1306 1301
               }
1307
-              var nl = 5 - rightAdvice.length;
1302
+              var nl = 5 - rightAdvice.length
1308 1303
               for (let index = 0; index < nl; index++) {
1309
-                rightAdvice.push([]);
1304
+                rightAdvice.push([])
1310 1305
               }
1311 1306
             }
1312 1307
 
1313
-            this.advices = [];
1308
+            this.advices = []
1314 1309
             for (var i = 0; i < halfLen; i++) {
1315
-              var item = [];
1316
-              item.push(leftAdvice[i]);
1317
-              item.push(rightAdvice[i]);
1318
-              this.advices.push(item);
1310
+              var item = []
1311
+              item.push(leftAdvice[i])
1312
+              item.push(rightAdvice[i])
1313
+              this.advices.push(item)
1319 1314
             }
1320 1315
           } else {
1321
-            this.$message.error("请求数据失败");
1322
-            return false;
1316
+            this.$message.error('请求数据失败')
1317
+            return false
1323 1318
           }
1324
-
1325
-        });
1319
+        })
1326 1320
       },
1327 1321
       bloodAccessParOperaName(id) {
1328 1322
         if (id in this.bloodAccessParOpera) {
1329
-          return this.bloodAccessParOpera[id].name;
1323
+          return this.bloodAccessParOpera[id].name
1330 1324
         }
1331
-        return '';
1325
+        return ''
1332 1326
       },
1333 1327
       dialysateFormulationName(id) {
1334 1328
         if (id in this.dialysateFormulationOptions) {
1335
-          return this.dialysateFormulationOptions[id].name;
1329
+          return this.dialysateFormulationOptions[id].name
1336 1330
         }
1337
-        return '';
1331
+        return ''
1338 1332
       }
1339 1333
     },
1340 1334
     watch: {
1341
-      "patientInfo.gender": function () {
1342
-
1335
+      'patientInfo.gender': function() {
1343 1336
         if (this.patientInfo.gender == 1) {
1344
-          this.patientInfo_gender_1 = true;
1345
-          this.patientInfo_gender_2 = false;
1337
+          this.patientInfo_gender_1 = true
1338
+          this.patientInfo_gender_2 = false
1346 1339
         } else if (this.patientInfo.gender == 2) {
1347
-          this.patientInfo_gender_2 = true;
1348
-          this.patientInfo_gender_1 = false;
1340
+          this.patientInfo_gender_2 = true
1341
+          this.patientInfo_gender_1 = false
1349 1342
         } else {
1350
-          this.patientInfo_gender_2 = false;
1351
-          this.patientInfo_gender_1 = false;
1343
+          this.patientInfo_gender_2 = false
1344
+          this.patientInfo_gender_1 = false
1352 1345
         }
1353 1346
       },
1354
-      "patientInfo.source": function () {
1355
-
1347
+      'patientInfo.source': function() {
1356 1348
         if (this.patientInfo.source == 1) {
1357
-          this.patientInfo_source_1 = true;
1358
-          this.patientInfo_source_2 = false;
1349
+          this.patientInfo_source_1 = true
1350
+          this.patientInfo_source_2 = false
1359 1351
         } else if (this.patientInfo.source == 2) {
1360
-          this.patientInfo_source_2 = true;
1361
-          this.patientInfo_source_1 = false;
1352
+          this.patientInfo_source_2 = true
1353
+          this.patientInfo_source_1 = false
1362 1354
         } else {
1363
-
1364
-          this.patientInfo_source_2 = false;
1365
-          this.patientInfo_source_1 = false;
1355
+          this.patientInfo_source_2 = false
1356
+          this.patientInfo_source_1 = false
1366 1357
         }
1367 1358
       }
1368 1359
 
1369
-
1370 1360
     },
1371 1361
     created() {
1372
-      var xtuser = this.$store.getters.xt_user;
1373
-      this.orgname = xtuser.org.org_name;
1362
+      var xtuser = this.$store.getters.xt_user
1363
+      this.orgname = xtuser.org.org_name
1374 1364
       // this.orgname = "遂溪方济医院";
1375
-      this.modeOptions = this.$store.getters.treatment_mode;
1376
-      this.replacementWays = this.$store.getters.replacement_ways;
1377
-      this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1378
-      this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1365
+      this.modeOptions = this.$store.getters.treatment_mode
1366
+      this.replacementWays = this.$store.getters.replacement_ways
1367
+      this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1368
+      this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1379 1369
 
1380 1370
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1381 1371
 
1382
-      var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc');
1372
+      var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1383 1373
       for (var key in bloodAccessParOpera) {
1384
-        this.bloodAccessParOpera[bloodAccessParOpera[key].id] = bloodAccessParOpera[key];
1374
+        this.bloodAccessParOpera[bloodAccessParOpera[key].id] = bloodAccessParOpera[key]
1385 1375
       }
1386 1376
 
1387
-      var dialysateFormulationOptions = getDataConfig("hemodialysis", "dialysate_formulation");
1377
+      var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
1388 1378
       for (var key in dialysateFormulationOptions) {
1389
-        this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] = dialysateFormulationOptions[key];
1379
+        this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] = dialysateFormulationOptions[key]
1390 1380
       }
1391 1381
 
1392
-      const xtdate = this.$route.query && this.$route.query.xtdate;
1393
-      const xtno = this.$route.query && this.$route.query.xtno;
1394
-      if (typeof (xtdate) == "string" && xtdate.length > 0 && typeof (xtno) == "string" && xtno.length > 0) {
1395
-        this.queryParams.xtdate = xtdate;
1396
-        this.queryParams.xtno = xtno;
1397
-        this.getDialysisRecord();
1382
+      const xtdate = this.$route.query && this.$route.query.xtdate
1383
+      const xtno = this.$route.query && this.$route.query.xtno
1384
+      if (typeof (xtdate) === 'string' && xtdate.length > 0 && typeof (xtno) === 'string' && xtno.length > 0) {
1385
+        this.queryParams.xtdate = xtdate
1386
+        this.queryParams.xtno = xtno
1387
+        this.getDialysisRecord()
1398 1388
       } else {
1399
-        this.$message.error("参数不齐");
1400
-        return false;
1389
+        this.$message.error('参数不齐')
1390
+        return false
1401 1391
       }
1402 1392
     }
1403 1393