Browse Source

长沙南雅打印单问题修改

28169 2 years ago
parent
commit
85029fc0f5

+ 7 - 0
src/xt_pages/workforce/remind_print_setting_one.vue View File

@@ -491,6 +491,12 @@
491 491
         })
492 492
       },
493 493
       getNextScheduleWeekDay() {
494
+       const loading = this.$loading({
495
+          lock: true,
496
+          text: 'Loading',
497
+          spinner: 'el-icon-loading',
498
+          background: 'rgba(0, 0, 0, 0.7)'
499
+        })
494 500
         const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
495 501
         const end = moment().weekday(7).format('YYYY-MM-DD')
496 502
         var zone = this.zone
@@ -532,6 +538,7 @@
532 538
         getNextScheduleWeekDayOne(params).then(response => {
533 539
           this.scheduleData = []
534 540
           if (response.data.state == 1) {
541
+            loading.close()
535 542
             var scheduleData = response.data.data.schedule
536 543
 
537 544
             for (let i = 0; i < scheduleData.length; i++) {

+ 7 - 0
src/xt_pages/workforce/template.vue View File

@@ -4233,6 +4233,12 @@ export default {
4233 4233
 
4234 4234
     },
4235 4235
     submitAction() {
4236
+     const loading = this.$loading({
4237
+        lock: true,
4238
+        text: 'Loading',
4239
+        spinner: 'el-icon-loading',
4240
+        background: 'rgba(0, 0, 0, 0.7)'
4241
+      })
4236 4242
       var template
4237 4243
       if (this.form.firstWeek == 1) {
4238 4244
         template = this.first_template
@@ -4262,6 +4268,7 @@ export default {
4262 4268
       }
4263 4269
       synchroSchedule(params).then(response => {
4264 4270
         if (response.data.state == 1) {
4271
+          loading.close()
4265 4272
           var msg = response.data.data.msg
4266 4273
           this.$message.success("同步成功!")
4267 4274
           this.newVisible = false