From c36436dd7eb1f11b49dd5708ef579c7b71395178 Mon Sep 17 00:00:00 2001
From: fengyuan_yang <1976974459@qq.com>
Date: Sun, 4 Feb 2024 09:57:15 +0800
Subject: [PATCH] =?UTF-8?q?2024-02-04=20=E7=B3=BB=E7=BB=9F=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
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 cb9b7c2..f64a319 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: '',
@@ -1276,8 +1276,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()
@@ -1290,11 +1290,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
}