From 729a21721954b155df5687667117a74139074500 Mon Sep 17 00:00:00 2001
From: fengyuan_yang <1976974459@qq.com>
Date: Sun, 4 Feb 2024 10:02:24 +0800
Subject: [PATCH] =?UTF-8?q?2024-02-04=20=E6=AD=A3=E5=BC=8F=E6=8F=90?=
=?UTF-8?q?=E4=BA=A42?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../reportWorkOrder/reportCheckOrder.vue | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/views/modules/reportWorkOrder/reportCheckOrder.vue b/src/views/modules/reportWorkOrder/reportCheckOrder.vue
index 10de63e..5feb1ed 100644
--- a/src/views/modules/reportWorkOrder/reportCheckOrder.vue
+++ b/src/views/modules/reportWorkOrder/reportCheckOrder.vue
@@ -127,11 +127,11 @@
-
-
-
@@ -385,7 +385,7 @@
saveData: {
deep: true,
handler: function (newV, oldV) {
- this.saveData.workTime = Math.ceil(Math.floor(this.dayjs(this.saveData.endDate).diff(this.saveData.startDate, 'seconds') / 30) / 2)
+ this.saveData.workTime = Math.ceil(Math.floor(this.dayjs(this.saveData.endDate2).diff(this.saveData.startDate2, 'seconds') / 30) / 2)
}
},
searchData: {
@@ -642,8 +642,8 @@
buNo: '',
orderNo: '',
planOperatorName: '',
- startDate: '',
- endDate: '',
+ startDate2: '',
+ endDate2: '',
workTime: '',
remark: '',
mesUser: '',
@@ -1268,8 +1268,8 @@
checkResult: '',
functionType: 'A',
propertiesCode: row.propertiesCode,
- startDate: new Date(),
- endDate: ''
+ startDate2: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
+ endDate2: ''
}
this.getInspectionFormData()
this.queryHistoryRecord()
@@ -1282,11 +1282,11 @@
this.$message.warning('请选择点检结论!')
return
}
- if (this.saveData.startDate === ''|| this.saveData.startDate == null) {
+ if (this.saveData.startDate2 === ''|| this.saveData.startDate2 == null) {
this.$message.warning('请输入开始时间!')
return
}
- if (this.saveData.endDate === ''|| this.saveData.endDate == null) {
+ if (this.saveData.endDate2 === ''|| this.saveData.endDate2 == null) {
this.$message.warning('请输入结束时间!')
return
}