|
@@ -1,7 +1,7 @@ |
|
|
<!-- |
|
|
<!-- |
|
|
* @Author: Do not edit |
|
|
* @Author: Do not edit |
|
|
* @Date: 2024-01-09 13:48:42 |
|
|
* @Date: 2024-01-09 13:48:42 |
|
|
* @LastEditTime: 2024-04-28 16:55:37 |
|
|
|
|
|
|
|
|
* @LastEditTime: 2024-04-29 16:35:33 |
|
|
* @LastEditors: DY |
|
|
* @LastEditors: DY |
|
|
* @Description: |
|
|
* @Description: |
|
|
--> |
|
|
--> |
|
@@ -134,14 +134,15 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
addRecord (value) { |
|
|
addRecord (value) { |
|
|
const now = new Date() // 创建一个表示当前时间的Date对象 |
|
|
|
|
|
const formattedTime = `${now.getFullYear()}-${(now.getMonth() + 1).toString().padStart(2, '0')}-${now.getDate().toString().padStart(2, '0')} ${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}:${now.getSeconds().toString().padStart(2, '0')}` |
|
|
|
|
|
|
|
|
const now = new Date().getTime() // 创建一个表示当前时间的Date对象 |
|
|
|
|
|
// const formattedTime = `${now.getFullYear()}-${(now.getMonth() + 1).toString().padStart(2, '0')}-${now.getDate().toString().padStart(2, '0')} ${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}:${now.getSeconds().toString().padStart(2, '0')}` |
|
|
// console.log(formattedTime) |
|
|
// console.log(formattedTime) |
|
|
if (!this.isCancel) { |
|
|
if (!this.isCancel) { |
|
|
createInspection({ |
|
|
createInspection({ |
|
|
...this.listQuery, |
|
|
...this.listQuery, |
|
|
inspectionDetId: value.detId, |
|
|
inspectionDetId: value.detId, |
|
|
checkTime: formattedTime |
|
|
|
|
|
|
|
|
checkTime: now, |
|
|
|
|
|
source: 1 |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
if (res.data.code === 0) { |
|
|
if (res.data.code === 0) { |
|
|
// this.typeList.forEach(element => { |
|
|
// this.typeList.forEach(element => { |
|
@@ -160,7 +161,7 @@ export default { |
|
|
deleteByCancel({ |
|
|
deleteByCancel({ |
|
|
...this.listQuery, |
|
|
...this.listQuery, |
|
|
inspectionDetId: value.detId, |
|
|
inspectionDetId: value.detId, |
|
|
checkTime: formattedTime |
|
|
|
|
|
|
|
|
checkTime: now |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
if (res.data.code === 0) { |
|
|
if (res.data.code === 0) { |
|
|
// this.typeList.forEach(element => { |
|
|
// this.typeList.forEach(element => { |
|
@@ -192,6 +193,8 @@ export default { |
|
|
this.count = this.typeList[0][0].sunCount |
|
|
this.count = this.typeList[0][0].sunCount |
|
|
if (this.typeList[0][0]?.resetMethod === 1) { |
|
|
if (this.typeList[0][0]?.resetMethod === 1) { |
|
|
this.showReset = true |
|
|
this.showReset = true |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showReset = false |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.typeList = [] |
|
|
this.typeList = [] |
|
|