Ver Fonte

排班-修复4504

zhonghuizhen há 11 meses atrás
pai
commit
3dcff6b723

+ 6 - 1
src/views/business/​scheduleManage/edit.vue

@@ -1182,6 +1182,11 @@ export default {
             return { staffScheduleDetailPoList: result, overview }
         },
         handleSave (type) {
+            const valid = this.validateForm()
+            if (!valid) {
+                this.$message.warning('请完善必填信息后再操作!')
+                return
+            }
             const { staffScheduleDetailPoList, overview } = this.dealData(this.scheduleData) || {}
             const { dateRange, title, config, approver, scheduleType, status, scheduleShift, scheduleStaff, scheduleRule, id, oldScheduleId } = this.formData
             const { first, second } = this.$store.getters.level || {}
@@ -1477,7 +1482,7 @@ export default {
             }
             if (this.historyStack.length === 0) {
                 this.$message.warning('已无更多可撤销操作')
-                // return
+                return
             }
             // 取出最近的历史记录
             const history = this.historyStack.pop()

+ 1 - 1
src/views/business/​scheduleManage/list.vue

@@ -109,7 +109,7 @@ export default {
                         { key: 'edit', label: '编辑', type: 'primary', icon: 'ibps-icon-edit', hidden: (row) => {
                             return !this.isRoleFilter() && this.$store.getters.userId !== row.createBy
                         } },
-                        { key: 'preview', label: '查', type: 'primary', icon: 'ibps-icon-eye', hidden: false }
+                        { key: 'preview', label: '查', type: 'primary', icon: 'ibps-icon-eye', hidden: false }
                         // { key: 'report', label: '实验报告', type: 'success', icon: 'ibps-icon-file-text-o' }
                     ]
                 }