Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

See999 4 years ago
parent
commit
63af94d5e7

+ 3 - 0
src/utils/data.js View File

@@ -3,6 +3,9 @@ import store from '@/store'
3 3
 export function getDataConfig(module, field) {
4 4
   var storeConfigList = store.getters.configlist
5 5
   var moduleConfig = storeConfigList[module]
6
+  if (moduleConfig == undefined) {
7
+    return false
8
+  }
6 9
   if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
7 10
     var Aresult = []
8 11
     for (var j = 0; j < moduleConfig.length; j++) {

+ 99 - 99
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

@@ -125,230 +125,230 @@
125 125
 </template>
126 126
 
127 127
 <script>
128
-import { getDataConfig } from "@/utils/data";
129
-import { postTreatmentsummary } from "@/api/dialysis";
130
-import { uParseTime } from "@/utils/tools";
131
-import store from "@/store";
132
-import request from "@/utils/request";
128
+import { getDataConfig } from '@/utils/data'
129
+import { postTreatmentsummary } from '@/api/dialysis'
130
+import { uParseTime } from '@/utils/tools'
131
+import store from '@/store'
132
+import request from '@/utils/request'
133 133
 
134 134
 export default {
135
-  name: "treatmentSummaryDialog",
135
+  name: 'treatmentSummaryDialog',
136 136
 
137 137
   props: {
138 138
     treatment_summary: {
139 139
       // 治疗小结
140 140
       type: Object,
141 141
       default: () => {
142
-        return { id: 0 };
142
+        return { id: 0 }
143 143
       }
144 144
     },
145 145
     patient: {
146 146
       // 患者信息
147 147
       type: Object,
148 148
       default: () => {
149
-        return { id: 0 };
149
+        return { id: 0 }
150 150
       }
151 151
     }
152 152
   },
153 153
   data() {
154 154
     return {
155
-      showTxt: "",
155
+      showTxt: '',
156 156
       hasPermission: true,
157
-      value: "",
158
-      value2: "",
159
-      value3: "",
160
-      value4: "",
157
+      value: '',
158
+      value2: '',
159
+      value3: '',
160
+      value4: '',
161 161
       isVisibility: false,
162
-      record_date: "",
162
+      record_date: '',
163 163
       education: [],
164 164
       summary: [],
165 165
       nursingRecord: [],
166 166
       specialRecord: [],
167 167
       treatmentSummary: {
168
-        mission: "",
169
-        dialysis_summary: "",
170
-        sj_nurse: "",
171
-        zl_nurse: "",
172
-        hd_nurse: "",
173
-        xj_nurse: "",
174
-        zl_doctor: "",
175
-        nursing_record: "",
176
-        special_record: ""
168
+        mission: '',
169
+        dialysis_summary: '',
170
+        sj_nurse: '',
171
+        zl_nurse: '',
172
+        hd_nurse: '',
173
+        xj_nurse: '',
174
+        zl_doctor: '',
175
+        nursing_record: '',
176
+        special_record: ''
177 177
       }
178
-    };
178
+    }
179 179
   },
180 180
   methods: {
181 181
     show(record) {
182
-      this.isVisibility = true;
183
-      this.record = record;
184
-      console.log("治疗小结", record);
185
-      this.getPermission();
182
+      this.isVisibility = true
183
+      this.record = record
184
+      console.log('治疗小结', record)
185
+      this.getPermission()
186 186
     },
187 187
     hide() {
188
-      this.isVisibility = false;
188
+      this.isVisibility = false
189 189
     },
190 190
     dialysisAfterTeachSelectChange: function(values) {
191
-      if (this.treatmentSummary.mission == "") {
192
-        this.treatmentSummary.mission = values;
191
+      if (this.treatmentSummary.mission == '') {
192
+        this.treatmentSummary.mission = values
193 193
       } else {
194 194
         if (this.treatmentSummary.mission.indexOf(values) == -1) {
195 195
           if (
196 196
             this.treatmentSummary.mission
197 197
               .charAt(this.treatmentSummary.mission.length - 1)
198
-              .indexOf("。") == -1
198
+              .indexOf('。') == -1
199 199
           ) {
200 200
             this.treatmentSummary.mission =
201
-              this.treatmentSummary.mission + "," + values;
201
+              this.treatmentSummary.mission + ',' + values
202 202
           } else {
203 203
             this.treatmentSummary.mission =
204
-              this.treatmentSummary.mission + values;
204
+              this.treatmentSummary.mission + values
205 205
           }
206 206
         }
207 207
       }
208 208
     },
209 209
     dialysisSummarySelectChange: function(values) {
210
-      if (this.treatmentSummary.dialysis_summary == "") {
211
-        this.treatmentSummary.dialysis_summary = values;
210
+      if (this.treatmentSummary.dialysis_summary == '') {
211
+        this.treatmentSummary.dialysis_summary = values
212 212
       } else {
213 213
         if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
214 214
           if (
215 215
             this.treatmentSummary.dialysis_summary
216 216
               .charAt(this.treatmentSummary.dialysis_summary.length - 1)
217
-              .indexOf("。") == -1
217
+              .indexOf('。') == -1
218 218
           ) {
219 219
             this.treatmentSummary.dialysis_summary =
220
-              this.treatmentSummary.dialysis_summary + "," + values;
220
+              this.treatmentSummary.dialysis_summary + ',' + values
221 221
           } else {
222 222
             this.treatmentSummary.dialysis_summary =
223
-              this.treatmentSummary.dialysis_summary + "," + values;
223
+              this.treatmentSummary.dialysis_summary + ',' + values
224 224
             this.treatmentSummary.dialysis_summary =
225
-              this.treatmentSummary.dialysis_summary + values;
225
+              this.treatmentSummary.dialysis_summary + values
226 226
           }
227 227
         }
228 228
       }
229 229
     },
230 230
     dialysisNusingRecordSelectChange: function(values) {
231
-      if (this.treatmentSummary.nursing_record == "") {
232
-        this.treatmentSummary.nursing_record = values;
231
+      if (this.treatmentSummary.nursing_record == '') {
232
+        this.treatmentSummary.nursing_record = values
233 233
       } else {
234 234
         if (this.treatmentSummary.nursing_record.indexOf(values) == -1) {
235 235
           if (
236 236
             this.treatmentSummary.nursing_record
237 237
               .charAt(this.treatmentSummary.nursing_record.length - 1)
238
-              .indexOf("。") == -1
238
+              .indexOf('。') == -1
239 239
           ) {
240 240
             this.treatmentSummary.nursing_record =
241
-              this.treatmentSummary.nursing_record + "," + values;
241
+              this.treatmentSummary.nursing_record + ',' + values
242 242
           } else {
243 243
             this.treatmentSummary.nursing_record =
244
-              this.treatmentSummary.nursing_record + "," + values;
244
+              this.treatmentSummary.nursing_record + ',' + values
245 245
             this.treatmentSummary.nursing_record =
246
-              this.treatmentSummary.nursing_record + values;
246
+              this.treatmentSummary.nursing_record + values
247 247
           }
248 248
         }
249 249
       }
250 250
     },
251 251
     dialysisSpecialRecordSelectChange(values) {
252
-      if (this.treatmentSummary.special_record == "") {
253
-        this.treatmentSummary.special_record = values;
252
+      if (this.treatmentSummary.special_record == '') {
253
+        this.treatmentSummary.special_record = values
254 254
       } else {
255 255
         if (this.treatmentSummary.special_record.indexOf(values) == -1) {
256 256
           if (
257 257
             this.treatmentSummary.special_record
258 258
               .charAt(this.treatmentSummary.special_record.length - 1)
259
-              .indexOf("。") == -1
259
+              .indexOf('。') == -1
260 260
           ) {
261 261
             this.treatmentSummary.special_record =
262
-              this.treatmentSummary.special_record + "," + values;
262
+              this.treatmentSummary.special_record + ',' + values
263 263
           } else {
264 264
             this.treatmentSummary.special_record =
265
-              this.treatmentSummary.special_record + "," + values;
265
+              this.treatmentSummary.special_record + ',' + values
266 266
             this.treatmentSummary.special_record =
267
-              this.treatmentSummary.special_record + values;
267
+              this.treatmentSummary.special_record + values
268 268
           }
269 269
         }
270 270
       }
271 271
     },
272 272
     handleCancle: function() {
273
-      this.isVisibility = false;
273
+      this.isVisibility = false
274 274
     },
275 275
     handleComfirm: function() {
276
-      const ParamsQuery = this.treatmentSummary;
277
-      ParamsQuery["patient"] = this.patient.id;
278
-      ParamsQuery["record_date"] = this.record_date;
279
-      ParamsQuery["mode"] = "1";
276
+      const ParamsQuery = this.treatmentSummary
277
+      ParamsQuery['patient'] = this.patient.id
278
+      ParamsQuery['record_date'] = this.record_date
279
+      ParamsQuery['mode'] = '1'
280 280
       if (this.treatment_summary.id > 0) {
281
-        ParamsQuery["mode"] = "2";
281
+        ParamsQuery['mode'] = '2'
282 282
         if (
283 283
           this.treatment_summary.creater != this.$store.getters.xt_user.user.id
284 284
         ) {
285
-          ParamsQuery["mode"] = "3";
285
+          ParamsQuery['mode'] = '3'
286 286
         }
287 287
       }
288 288
       postTreatmentsummary(ParamsQuery).then(response => {
289 289
         if (response.data.state == 0) {
290
-          this.$message.error(response.data.msg);
291
-          return false;
290
+          this.$message.error(response.data.msg)
291
+          return false
292 292
         } else {
293 293
           this.$notify({
294
-            title: "成功",
295
-            message: "提交成功",
296
-            type: "success",
294
+            title: '成功',
295
+            message: '提交成功',
296
+            type: 'success',
297 297
             duration: 2000
298
-          });
298
+          })
299 299
 
300
-          const summary_resp = response.data.data.summary;
300
+          const summary_resp = response.data.data.summary
301 301
           // prop
302
-          var treatment_summary = this.treatment_summary;
302
+          var treatment_summary = this.treatment_summary
303 303
           for (var index in summary_resp) {
304 304
             // treatment_summary[index] = summary_resp[index];
305
-            this.$set(treatment_summary, index, summary_resp[index]);
305
+            this.$set(treatment_summary, index, summary_resp[index])
306 306
           }
307 307
 
308
-          this.hide();
308
+          this.hide()
309 309
         }
310
-      });
310
+      })
311 311
     },
312 312
     getPermission() {
313 313
       request
314
-        .get("/api/func_per/get", {
314
+        .get('/api/func_per/get', {
315 315
           params: {
316
-            create_url: "/api/dialysis/treatmentsummary?mode=1",
317
-            modify_url: "/api/dialysis/treatmentsummary?mode=2",
318
-            modify_other_url: "/api/dialysis/treatmentsummary?mode=3",
316
+            create_url: '/api/dialysis/treatmentsummary?mode=1',
317
+            modify_url: '/api/dialysis/treatmentsummary?mode=2',
318
+            modify_other_url: '/api/dialysis/treatmentsummary?mode=3',
319 319
             module: 9
320 320
           }
321 321
         })
322 322
         .then(res => {
323 323
           if (res.data.state == 0) {
324
-            this.hasPermission = false;
324
+            this.hasPermission = false
325 325
           } else if (res.data.state == 1) {
326
-            if (this.record.id != "" && this.record.creater != 0) {
327
-              //有数据
326
+            if (this.record.id != '' && this.record.creater != 0) {
327
+              // 有数据
328 328
               if (this.record.creater == this.$store.getters.user.admin.id) {
329
-                //创建人是自己
329
+                // 创建人是自己
330 330
                 if (res.data.data.is_has_modify == false) {
331
-                  this.hasPermission = false;
332
-                  this.showTxt = "你没有修改治疗小结权限";
331
+                  this.hasPermission = false
332
+                  this.showTxt = '你没有修改治疗小结权限'
333 333
                 }
334 334
               } else {
335
-                //创建人不是自己
335
+                // 创建人不是自己
336 336
                 if (res.data.data.is_has_modify_other == false) {
337
-                  this.hasPermission = false;
338
-                  this.showTxt = "你没有修改他人治疗小结权限";
337
+                  this.hasPermission = false
338
+                  this.showTxt = '你没有修改他人治疗小结权限'
339 339
                 }
340 340
               }
341
-            } else if (this.record.id == "" || this.record.creater == 0) {
341
+            } else if (this.record.id == '' || this.record.creater == 0) {
342 342
               if (res.data.data.is_has_create == false) {
343
-                this.hasPermission = false;
344
-                this.showTxt = "你没有新增治疗小结权限";
343
+                this.hasPermission = false
344
+                this.showTxt = '你没有新增治疗小结权限'
345 345
               }
346 346
             }
347 347
           }
348
-        });
348
+        })
349 349
     },
350 350
     isShow(name) {
351
-      var filedList = store.getters.xt_user.fileds;
351
+      var filedList = store.getters.xt_user.fileds
352 352
 
353 353
       for (let i = 0; i < filedList.length; i++) {
354 354
         if (
@@ -356,34 +356,34 @@ export default {
356 356
           filedList[i].filed_name_cn == name &&
357 357
           filedList[i].is_show == 1
358 358
         ) {
359
-          return true;
359
+          return true
360 360
         }
361 361
       }
362
-      return false;
362
+      return false
363 363
     }
364 364
   },
365 365
   watch: {
366 366
     isVisibility(val) {},
367
-    "treatment_summary.id": function() {
367
+    'treatment_summary.id': function() {
368 368
       if (this.treatment_summary.id > 0) {
369 369
         for (var index in this.treatmentSummary) {
370
-          this.treatmentSummary[index] = this.treatment_summary[index];
370
+          this.treatmentSummary[index] = this.treatment_summary[index]
371 371
         }
372 372
       }
373 373
     }
374 374
   },
375 375
   created() {
376
-    this.education = getDataConfig("education", "education");
377
-    this.summary = getDataConfig("summary", "summary");
376
+    this.education = getDataConfig('education', 'education')
377
+    this.summary = getDataConfig('summary', 'summary')
378 378
 
379
-    this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
379
+    this.nursingRecord = getDataConfig('nursing_record', 'nursing_record')
380 380
 
381
-    this.specialRecord = getDataConfig("special_record", "special_record");
381
+    this.specialRecord = getDataConfig('special_record', 'special_record')
382 382
 
383
-    var date = this.$route.query && this.$route.query.date;
384
-    this.record_date = uParseTime(date, "{y}-{m}-{d}");
383
+    var date = this.$route.query && this.$route.query.date
384
+    this.record_date = uParseTime(date, '{y}-{m}-{d}')
385 385
   }
386
-};
386
+}
387 387
 </script>
388 388
 
389 389
 <style scoped>

File diff suppressed because it is too large
+ 482 - 489
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


+ 8 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue View File

@@ -340,7 +340,7 @@
340 340
             <td width="50" style="text-align:left;border:none;">
341 341
               <div>
342 342
                 <span class="under_line" style="width:50px;display:inline-block">
343
-                  {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
343
+                  {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "" }}
344 344
                 </span>次/分
345 345
               </div>
346 346
             </td>
@@ -375,18 +375,18 @@
375 375
             校对护士
376 376
             <span style="display: inline-block;width:100px;text-align: left;">
377 377
               &nbsp;
378
-              <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
379
-                {{ getAdminUser(check == null ? 0 : check.modifier) }}
380
-              </span>
378
+              <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''"> {{ getAdminUser(check == null ? 0 : check.modifier) }} </span>
381 379
               <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
382 380
             </span>
383 381
             医生签名
384 382
             <span style="display: inline-block;width:100px;text-align: left;">
385 383
               &nbsp;
386
-              <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
384
+              <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater)) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater)) }} </span>
385
+              <img style="height:20px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater))" alt="" srcset="" v-else />
386
+              <!-- <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
387 387
               <span v-if="doctorForm.url !== ''">
388 388
                 <img class="es-img" style="height:30px;" :src="doctorForm.url" />
389
-              </span>
389
+              </span> -->
390 390
             </span>
391 391
             
392 392
             
@@ -670,7 +670,7 @@ export default {
670 670
         ? this.modeOptions[mode_id].name
671 671
         : ''
672 672
     },
673
-    getDialysisRecord() {
673
+    getDialysisRecords() {
674 674
       this.loading = true
675 675
 
676 676
       getDialysisRecord(this.queryParams).then(response => {
@@ -679,14 +679,12 @@ export default {
679 679
           this.adminUser = response.data.data.users
680 680
           this.users = response.data.data.users
681 681
           var patientInfo = response.data.data.patientInfo
682
-          console.log('烧腊店就拉萨讲道理看', patientInfo)
683 682
           if (patientInfo.gender === 1) {
684 683
             patientInfo.gender = '男'
685 684
           }
686 685
           if (patientInfo.gender === 2) {
687 686
             patientInfo.gender = '女'
688 687
           }
689
-          console.log('patientInfo', patientInfo)
690 688
           this.patientInfo = patientInfo
691 689
           this.patientInfo.birth = uParseTime(
692 690
             this.patientInfo.birthday,
@@ -1301,10 +1299,6 @@ export default {
1301 1299
     var vascularAccess = getDataConfig('hemodialysis', 'vascular_access')
1302 1300
     this.vascularAccess = vascularAccess
1303 1301
     // console.log("hhe", vascularAccess);
1304
-    console.log(
1305
-      '血管通路部位',
1306
-      getDataConfig('hemodialysis', 'vascular_access')
1307
-    )
1308 1302
 
1309 1303
     var bloodAccessParOpera = getDataConfig(
1310 1304
       'hemodialysis',
@@ -1334,7 +1328,7 @@ export default {
1334 1328
     ) {
1335 1329
       this.queryParams.xtdate = xtdate
1336 1330
       this.queryParams.xtno = xtno
1337
-      this.getDialysisRecord()
1331
+      this.getDialysisRecords()
1338 1332
     } else {
1339 1333
       this.$message.error('参数不齐')
1340 1334
       return false