|
|
|
@ -95,8 +95,8 @@ |
|
|
|
@confirm="onOperatingTermConfirm" |
|
|
|
@cancel="cancelSelectDate" |
|
|
|
/> --> |
|
|
|
<van-calendar v-model:show="data.showOperatingTermPicker" type="range" |
|
|
|
:min-date="data.minDate" :max-date="data.maxDate"@confirm="onOperatingTermConfirm" /> |
|
|
|
<van-calendar v-model:show="data.showOperatingTermPicker" type="range" |
|
|
|
:min-date="data.minDate" :max-date="data.maxDate" @confirm="onOperatingTermConfirm" /> |
|
|
|
</van-popup> |
|
|
|
<van-field |
|
|
|
v-model="submitData.businessScope" |
|
|
|
@ -130,7 +130,7 @@ const data = reactive({ |
|
|
|
showTypePicker: false, |
|
|
|
columns: [], |
|
|
|
showDatePicker:false, |
|
|
|
currentDate:ref(['2024', '01']), |
|
|
|
currentDate: [], |
|
|
|
minDate: new Date(2020, 0, 1), |
|
|
|
maxDate: new Date(2125, 5, 1), |
|
|
|
columnsType :['year', 'month','day'], |
|
|
|
@ -210,6 +210,14 @@ const selectDate = () =>{ |
|
|
|
console.log(data.showDatePicker) |
|
|
|
} |
|
|
|
|
|
|
|
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] |
|
|
|
} |
|
|
|
|
|
|
|
const selectOperatingTermDate = () =>{ |
|
|
|
data.showOperatingTermPicker = true; |
|
|
|
console.log(data.showOperatingTermPicker) |
|
|
|
@ -238,8 +246,9 @@ const cancelSelectDate = () =>{ |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
currentDate(); |
|
|
|
|
|
|
|
getDict({"dictType": "enterpriseType"},success =>{ |
|
|
|
console.log(success); |
|
|
|
success.data.forEach(res =>{ |
|
|
|
console.log(res) |
|
|
|
var obj = { text: res.dictLabel, value: res.dictValue }; |
|
|
|
|