Commit f0a91113 authored by xinzhedeai's avatar xinzhedeai

日期最低范围限制处理 操作完成 跳转页面刷新页面

parent bbe6a048
...@@ -47,12 +47,12 @@ ...@@ -47,12 +47,12 @@
<van-cell-group :class="{'disable-van-cell': disabled}"> <van-cell-group :class="{'disable-van-cell': disabled}">
<van-cell is-link @click="showPopup('showPopup4hdInspectDate1')" >作业起始时间*<span class="formValue">{{form.startTime}}</span></van-cell> <van-cell is-link @click="showPopup('showPopup4hdInspectDate1')" >作业起始时间*<span class="formValue">{{form.startTime}}</span></van-cell>
<van-popup v-model="showPopup4hdInspectDate1" position="bottom"> <van-popup v-model="showPopup4hdInspectDate1" position="bottom">
<van-datetime-picker v-model="hdInspectDateModel1" type="date" title="选择年月日" @confirm="confirm4hdInspectDate1" @cancel="showPopup4hdInspectDate1=false" /> <van-datetime-picker v-model="hdInspectDateModel1" type="date" :min-date="minDate" title="选择年月日" @confirm="confirm4hdInspectDate1" @cancel="showPopup4hdInspectDate1=false" />
</van-cell-group> </van-cell-group>
<van-cell-group :class="{'disable-van-cell': disabled}"> <van-cell-group :class="{'disable-van-cell': disabled}">
<van-cell is-link @click="showPopup('showPopup4hdInspectDate2')" >作业结束时间*<span class="formValue">{{form.endTime}}</span></van-cell> <van-cell is-link @click="showPopup('showPopup4hdInspectDate2')" >作业结束时间*<span class="formValue">{{form.endTime}}</span></van-cell>
<van-popup v-model="showPopup4hdInspectDate2" position="bottom"> <van-popup v-model="showPopup4hdInspectDate2" position="bottom">
<van-datetime-picker v-model="hdInspectDateModel2" type="date" title="选择年月日" @confirm="confirm4hdInspectDate2" @cancel="showPopup4hdInspectDate2=false" /> <van-datetime-picker v-model="hdInspectDateModel2" :min-date="minDate" type="date" title="选择年月日" @confirm="confirm4hdInspectDate2" @cancel="showPopup4hdInspectDate2=false" />
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<van-cell-group :class="{'disable-van-cell': disabled}"> <van-cell-group :class="{'disable-van-cell': disabled}">
<van-cell is-link @click="showPopup('showPopup4hdRectificationDate')">报告时间<span class="formValue">{{form.uploadDate}}</span></van-cell> <van-cell is-link @click="showPopup('showPopup4hdRectificationDate')">报告时间<span class="formValue">{{form.uploadDate}}</span></van-cell>
<van-popup v-model="showPopup4hdRectificationDate" position="bottom"> <van-popup v-model="showPopup4hdRectificationDate" position="bottom">
<van-datetime-picker v-model="hdRectificationDateModel" type="date" title="选择年月日" @confirm="confirm4hdRectificationDate" @cancel="showPopup4hdRectificationDate=false" /> <van-datetime-picker v-model="hdRectificationDateModel" type="date" :min-date="minDate" title="选择年月日" @confirm="confirm4hdRectificationDate" @cancel="showPopup4hdRectificationDate=false" />
</van-popup> </van-popup>
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
......
...@@ -7,6 +7,7 @@ window.addEventListener("load", function() { ...@@ -7,6 +7,7 @@ window.addEventListener("load", function() {
el: '#app', el: '#app',
data() { data() {
return { return {
minDate: new Date(2024, 6, 29),
uploading: false, uploading: false,
previewUrl: BASE_URL, previewUrl: BASE_URL,
form: { form: {
...@@ -281,7 +282,8 @@ window.addEventListener("load", function() { ...@@ -281,7 +282,8 @@ window.addEventListener("load", function() {
vant.Toast({ vant.Toast({
message: '操作成功', message: '操作成功',
}) })
history.back() // history.back()
gemhoUtil.navigatePage('./dw-list.html', '操作完成,跳转中...')
} }
}) })
}, },
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<van-cell-group :class="{'disable-van-cell': disabled}"> <van-cell-group :class="{'disable-van-cell': disabled}">
<van-cell @click="showPopup('showPopup4completionDate')">完成时间*<span class="formValue">{{form.completionDate}}</span></van-cell> <van-cell @click="showPopup('showPopup4completionDate')">完成时间*<span class="formValue">{{form.completionDate}}</span></van-cell>
<van-popup v-model="showPopup4completionDate" position="bottom"> <van-popup v-model="showPopup4completionDate" position="bottom">
<van-datetime-picker v-model="completionDate" type="date" title="选择年月日" @confirm="confirm4completionDate" @cancel="showPopup4completionDate=false" /> <van-datetime-picker v-model="completionDate" :min-date="minDate" type="date" title="选择年月日" @confirm="confirm4completionDate" @cancel="showPopup4completionDate=false" />
</van-popup> </van-popup>
</van-cell-group> </van-cell-group>
......
...@@ -7,6 +7,7 @@ window.addEventListener("load", function() { ...@@ -7,6 +7,7 @@ window.addEventListener("load", function() {
el: '#app', el: '#app',
data() { data() {
return { return {
minDate: new Date(2024, 6, 29),
previewUrl: BASE_URL, previewUrl: BASE_URL,
form: { form: {
id: "", id: "",
...@@ -92,7 +93,8 @@ window.addEventListener("load", function() { ...@@ -92,7 +93,8 @@ window.addEventListener("load", function() {
// if (!this.form.id) { // 添加时则 // if (!this.form.id) { // 添加时则
// location.reload() // location.reload()
// } // }
history.back() // history.back()
gemhoUtil.navigatePage('./emergency.html', '操作完成,跳转中...')
}else{ }else{
this.submit() this.submit()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment