|
@@ -254,7 +254,7 @@ export default {
|
254
|
254
|
var scheduals = [];
|
255
|
255
|
for (let index = 0; index < this.scheduals.length; index++) {
|
256
|
256
|
const schedual = this.scheduals[index];
|
257
|
|
- if (schedual.assessment_before_dislysis == null) {
|
|
257
|
+ if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0) {
|
258
|
258
|
if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
|
259
|
259
|
continue
|
260
|
260
|
}
|
|
@@ -270,7 +270,7 @@ export default {
|
270
|
270
|
var scheduals = [];
|
271
|
271
|
for (let index = 0; index < this.scheduals.length; index++) {
|
272
|
272
|
const schedual = this.scheduals[index];
|
273
|
|
- if (schedual.assessment_before_dislysis == null && schedual.prescription == null) {
|
|
273
|
+ if (schedual.prescription == null || schedual.prescription.creater == 0) {
|
274
|
274
|
if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
|
275
|
275
|
continue
|
276
|
276
|
}
|
|
@@ -306,7 +306,7 @@ export default {
|
306
|
306
|
var scheduals = [];
|
307
|
307
|
for (let index = 0; index < this.scheduals.length; index++) {
|
308
|
308
|
const schedual = this.scheduals[index];
|
309
|
|
- if (schedual.assessment_before_dislysis == null) {
|
|
309
|
+ if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0) {
|
310
|
310
|
scheduals.push(schedual);
|
311
|
311
|
}
|
312
|
312
|
}
|
|
@@ -316,7 +316,7 @@ export default {
|
316
|
316
|
var scheduals = [];
|
317
|
317
|
for (let index = 0; index < this.scheduals.length; index++) {
|
318
|
318
|
const schedual = this.scheduals[index];
|
319
|
|
- if (schedual.assessment_before_dislysis == null && schedual.prescription == null) {
|
|
319
|
+ if (schedual.prescription == null || schedual.prescription.creater == 0) {
|
320
|
320
|
scheduals.push(schedual);
|
321
|
321
|
}
|
322
|
322
|
}
|
|
@@ -358,16 +358,16 @@ export default {
|
358
|
358
|
this.requestScheduals();
|
359
|
359
|
},
|
360
|
360
|
mounted() {
|
361
|
|
- // this.timer = window.setInterval(() => {
|
362
|
|
- // setTimeout(this.requestScheduals(), 0);
|
363
|
|
- // }, 30000);
|
|
361
|
+ this.timer = window.setInterval(() => {
|
|
362
|
+ setTimeout(this.requestScheduals(), 0);
|
|
363
|
+ }, 30000);
|
364
|
364
|
},
|
365
|
365
|
beforeDestroy() {
|
366
|
366
|
clearInterval(this.timer);
|
367
|
367
|
this.timer = null;
|
368
|
|
- // this.$once('hook:beforeDestroy', () => {
|
369
|
|
- // clearInterval(this.timer);
|
370
|
|
- // })
|
|
368
|
+ this.$once('hook:beforeDestroy', () => {
|
|
369
|
+ clearInterval(this.timer);
|
|
370
|
+ })
|
371
|
371
|
},
|
372
|
372
|
methods: {
|
373
|
373
|
processScheduals: function(scheduals) {
|
|
@@ -381,12 +381,12 @@ export default {
|
381
|
381
|
schedualMap[schedual.device_number.zone.id] = [];
|
382
|
382
|
}
|
383
|
383
|
if (this.select_index == 1) {
|
384
|
|
- if(schedual.assessment_before_dislysis == null && schedual.prescription == null){
|
|
384
|
+ if(schedual.prescription == null || schedual.prescription.creater == 0){
|
385
|
385
|
schedualMap[schedual.device_number.zone.id].push(schedual);
|
386
|
386
|
prescription_count++
|
387
|
387
|
}
|
388
|
388
|
} else if (this.select_index == 2){
|
389
|
|
- if(schedual.assessment_before_dislysis == null ){
|
|
389
|
+ if(schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weighing_before == 0){
|
390
|
390
|
schedualMap[schedual.device_number.zone.id].push(schedual);
|
391
|
391
|
assessment_before_dislysis_count++
|
392
|
392
|
}
|
|
@@ -464,7 +464,7 @@ export default {
|
464
|
464
|
},
|
465
|
465
|
|
466
|
466
|
requestScheduals() {
|
467
|
|
- this.loading = true;
|
|
467
|
+ // this.loading = true;
|
468
|
468
|
var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
|
469
|
469
|
getWaitingScheduals({ date: date })
|
470
|
470
|
.then(rs => {
|