Browse Source

新增页面赋值当前时间

hella_online_20240829
parent
commit
c2c5695b8c
  1. 9
      src/views/qms/inspectionQ1/index.vue
  2. 8
      src/views/qms/inspectionQ2/index.vue
  3. 7
      src/views/qms/inspectionQ3/index.vue

9
src/views/qms/inspectionQ1/index.vue

@ -181,6 +181,15 @@ const handleFinish = async (id: number) => {
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
if (type=='create') {
nextTick(() => {
    basicFormRef.value.formRef.setValues({
handleTime: new Date().getTime(),
claimTime: new Date().getTime()
    })
  })
}
 
} }
// form // form

8
src/views/qms/inspectionQ2/index.vue

@ -189,6 +189,14 @@ const handleFinish = async (id: number) => {
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
if (type=='create') {
nextTick(() => {
    basicFormRef.value.formRef.setValues({
handleTime: new Date().getTime(),
claimTime: new Date().getTime()
    })
  })
}
} }
// form // form

7
src/views/qms/inspectionQ3/index.vue

@ -183,6 +183,13 @@ const handleFinish = async (id: number) => {
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
if (type=='create') {
nextTick(() => {
    basicFormRef.value.formRef.setValues({
handleTime: new Date().getTime()
    })
  })
}
} }
// form // form

Loading…
Cancel
Save