|
|
|
@ -214,6 +214,7 @@ |
|
|
|
<van-popup v-model:show="data.showTimePicker" position="bottom" :style="{ height: '30%' }" > |
|
|
|
<van-date-picker |
|
|
|
type="time" |
|
|
|
v-model="data.currentDate" |
|
|
|
@confirm="onConfirm" |
|
|
|
@cancel="data.showTimePicker = false" |
|
|
|
/> |
|
|
|
@ -448,6 +449,14 @@ |
|
|
|
data.deptChecked=true; |
|
|
|
} |
|
|
|
} |
|
|
|
const currentDate =() => { |
|
|
|
const now = new Date(); |
|
|
|
const year = now.getFullYear(); |
|
|
|
const month = (now.getMonth() + 1).toString().padStart(2, '0'); |
|
|
|
const day = now.getDate().toString().padStart(2, '0'); |
|
|
|
data.currentDate = [year, month, day] |
|
|
|
data.minDate = new Date(year, month-1, day); |
|
|
|
} |
|
|
|
|
|
|
|
const dataFillIn = (id) => { |
|
|
|
getByIdToDataFillIn(id,success =>{ |
|
|
|
@ -682,7 +691,7 @@ |
|
|
|
nameCorrect(); |
|
|
|
// 数据填充 |
|
|
|
dataFillIn(route?.query?.id); |
|
|
|
|
|
|
|
currentDate() |
|
|
|
|
|
|
|
|
|
|
|
// getLinkageByValueAndParentId("check_item", "100"); |
|
|
|
|