lius
2023-09-19 d63c782054456b1c34e2a8298fa3703fd4c9d00f
班制班次页面时间问题和部分提示问题
已修改4个文件
26 ■■■■ 文件已修改
src/views/mdc/base/modules/shift/ShiftInfo.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/shift/ShiftInfoModel.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/shift/ShiftSystem.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/shift/ShiftSystemModel.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/shift/ShiftInfo.vue
@@ -154,7 +154,7 @@
        deleteAction(that.url.deleteBatch, {id: record}).then((res) => {
          if (res.success) {
            // that.$message.success(res.message);
            that.$notification.warning({
            that.$notification.success({
              message:'消息',
              description:res.message
            });
@@ -173,7 +173,7 @@
        putAction(this.url.changeStatus, { id: id, status: status }).then((res) => {
          if (res.success) {
            // _this.$message.success('操作成功!')
            _this.$notification.warning({
            _this.$notification.success({
              message:'消息',
              description:"操作成功"
            });
src/views/mdc/base/modules/shift/ShiftInfoModel.vue
@@ -232,11 +232,13 @@
            formData.isDaySpan = that.isDaySpan
            console.log(formData.isDaySpan);
            if(formData.isDaySpan == false){
              let startTime = moment(formData.startDate).format('HH:mm:ss');
              let endTime = moment(formData.endDate).format('HH:mm:ss');
              let startTimeOne = startTime.replace(/:/g,'');
              let endTimeOne = endTime.replace(/:/g,'');
              if(startTimeOne>endTimeOne){
              formData.startDate = moment(formData.startDate).format('HH:mm:ss');
              formData.endDate = moment(formData.endDate).format('HH:mm:ss');
              formData.sleepStartDate = moment(formData.sleepStartDate).format('HH:mm:ss');
              formData.sleepEndDate = moment(formData.sleepEndDate).format('HH:mm:ss');
              let startTimeOne = formData.startDate.replace(/:/g,'');
              let endTimeOne = formData.endDate.replace(/:/g,'');
              if(startTimeOne > endTimeOne){
                // that.$message.warning("非跨天班次结束时间不能小于等于开始时间!")
                that.$notification.warning({
                  message:'消息',
@@ -262,7 +264,7 @@
                obj.then((res) => {
                  if (res.success) {
                    // that.$message.success("保存成功")
                    that.$notification.warning({
                    that.$notification.success({
                      message:'消息',
                      description:"保存成功"
                    });
@@ -292,7 +294,7 @@
              obj.then((res) => {
                if (res.success) {
                  // that.$message.success
                  that.$notification.warning({
                  that.$notification.success({
                    message:'消息',
                    description:"保存成功"
                  });
src/views/mdc/base/modules/shift/ShiftSystem.vue
@@ -133,7 +133,7 @@
        postAction(this.url.changeDefaultShift,qs.stringify({id:record.id})).then((res) =>{
            if(res.success){
              // this.$message.success(res.message);
              this.$notification.warning({
              this.$notification.success({
                message:'消息',
                description:res.message
              });
@@ -156,7 +156,7 @@
        deleteAction(that.url.deleteBatch, {id: record}).then((res) => {
          if (res.success) {
            // that.$message.success(res.message);
            that.$notification.warning({
            that.$notification.success({
              message:'消息',
              description:res.message
            });
src/views/mdc/base/modules/shift/ShiftSystemModel.vue
@@ -122,7 +122,7 @@
            obj.then((res) => {
              if (res.success) {
                // that.$message.success(res.message)
                that.$notification.warning({
                that.$notification.success({
                  message:'消息',
                  description:res.message
                });