Browse Source

feat: update 时间问题

master
TengXF 4 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, year: true,
month: true, month: true,
day: true, day: true,
hour: false, hour: true,
minute: false, minute: true,
second: false, second: true,
timestamp: true, timestamp: true,
}) })
const form = ref({ const form = ref({
@ -200,9 +200,9 @@
// //
function selectReworkTime(index){ function selectReworkTime(index){
console.log(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.reworkStr = dateStr
form.value.reworkTime = index.timestamp form.value.reworkTime = index.timestamp + '000'
console.log(form.value.reworkTime) console.log(form.value.reworkTime)
showReworkTime.value = false showReworkTime.value = false
} }

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

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

Loading…
Cancel
Save