Browse Source

长沙南雅打印单问题修改

28169 2 years ago
parent
commit
85029fc0f5

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

491
         })
491
         })
492
       },
492
       },
493
       getNextScheduleWeekDay() {
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
         const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
500
         const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
495
         const end = moment().weekday(7).format('YYYY-MM-DD')
501
         const end = moment().weekday(7).format('YYYY-MM-DD')
496
         var zone = this.zone
502
         var zone = this.zone
532
         getNextScheduleWeekDayOne(params).then(response => {
538
         getNextScheduleWeekDayOne(params).then(response => {
533
           this.scheduleData = []
539
           this.scheduleData = []
534
           if (response.data.state == 1) {
540
           if (response.data.state == 1) {
541
+            loading.close()
535
             var scheduleData = response.data.data.schedule
542
             var scheduleData = response.data.data.schedule
536
 
543
 
537
             for (let i = 0; i < scheduleData.length; i++) {
544
             for (let i = 0; i < scheduleData.length; i++) {

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

4233
 
4233
 
4234
     },
4234
     },
4235
     submitAction() {
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
       var template
4242
       var template
4237
       if (this.form.firstWeek == 1) {
4243
       if (this.form.firstWeek == 1) {
4238
         template = this.first_template
4244
         template = this.first_template
4262
       }
4268
       }
4263
       synchroSchedule(params).then(response => {
4269
       synchroSchedule(params).then(response => {
4264
         if (response.data.state == 1) {
4270
         if (response.data.state == 1) {
4271
+          loading.close()
4265
           var msg = response.data.data.msg
4272
           var msg = response.data.data.msg
4266
           this.$message.success("同步成功!")
4273
           this.$message.success("同步成功!")
4267
           this.newVisible = false
4274
           this.newVisible = false