Browse Source

feat: update 时间问题

master
TengXF 6 months ago
parent
commit
8cab722039
  1. 10
      src/pages/mes/reworkBatch/create.vue
  2. 10
      src/pages/mes/reworkSingle/create.vue

10
src/pages/mes/reworkBatch/create.vue

@ -115,9 +115,9 @@
year: true,
month: true,
day: true,
hour: false,
minute: false,
second: false,
hour: true,
minute: true,
second: true,
timestamp: true,
})
const form = ref({
@ -200,9 +200,9 @@
//
function selectReworkTime(index){
console.log(index)
const dateStr = `${index.year}-${index.month}-${index.day}`
const dateStr = `${index.year}-${index.month}-${index.day} ${index.hour}:${index.minute}:${index.second}`
form.value.reworkStr = dateStr
form.value.reworkTime = index.timestamp
form.value.reworkTime = index.timestamp + '000'
console.log(form.value.reworkTime)
showReworkTime.value = false
}

10
src/pages/mes/reworkSingle/create.vue

@ -103,9 +103,9 @@
year: true,
month: true,
day: true,
hour: false,
minute: false,
second: false,
hour: true,
minute: true,
second: true,
timestamp: true,
})
const form = ref({
@ -191,9 +191,9 @@
}
//
function selectReworkTime(index){
const dateStr = `${index.year}-${index.month}-${index.day}`
const dateStr = `${index.year}-${index.month}-${index.day} ${index.hour}:${index.minute}:${index.second}`
form.value.reworkStr = dateStr
form.value.reworkTime = index.timestamp
form.value.reworkTime = index.timestamp + '000'
console.log(form.value.reworkTime)
showReworkTime.value = false
}

Loading…
Cancel
Save