From 0a03169b9b9758a926dec35735e989f52e4d217f Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期一, 25 九月 2023 17:46:46 +0800 Subject: [PATCH] 维修休班管理页面按照新需求优化功能 1、编辑机床维修时间的日期选择器选择时间时取消秒针选择以及将分钟选择步距调整为5分钟 2、点击左侧树组件中的具体设备名称后点击新增按钮时可将树组件选择的设备反填到设备组选项中(个人优化将已选择的设备组反选在选择设备弹窗中的多选框中) 3、编辑机床维修时间的日期选择器的可选时间修改为最早可以选到当日前一天,目前为最早选到当日 --- src/views/mdc/base/modules/shift/ShiftInfoModel.vue | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/views/mdc/base/modules/shift/ShiftInfoModel.vue b/src/views/mdc/base/modules/shift/ShiftInfoModel.vue index 68407de..1ed89ef 100644 --- a/src/views/mdc/base/modules/shift/ShiftInfoModel.vue +++ b/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:'娑堟伅', @@ -247,6 +249,7 @@ message:'娑堟伅', description:"淇濆瓨澶辫触锛�" }); + that.confirmLoading = false that.close() }else{ formData.shiftSubStatus = 1 @@ -261,7 +264,7 @@ obj.then((res) => { if (res.success) { // that.$message.success("淇濆瓨鎴愬姛") - that.$notification.warning({ + that.$notification.success({ message:'娑堟伅', description:"淇濆瓨鎴愬姛" }); @@ -291,7 +294,7 @@ obj.then((res) => { if (res.success) { // that.$message.success - that.$notification.warning({ + that.$notification.success({ message:'娑堟伅', description:"淇濆瓨鎴愬姛" }); -- Gitblit v1.9.3