2023-12-21
This commit is contained in:
@@ -187,8 +187,7 @@
|
|||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="item_text">起始日期:</span>
|
<span class="item_text">起始日期:</span>
|
||||||
<el-date-picker v-model="batchInfo.startDate" @change="selectbatchInfo1" type="date"
|
<el-date-picker v-model="batchInfo.startDate" @change="selectbatchInfo1" type="date"
|
||||||
placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" class="item_input"
|
placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" class="item_input">
|
||||||
:picker-options="pickerOptions">
|
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
@@ -420,11 +419,45 @@
|
|||||||
},
|
},
|
||||||
selectbatchInfo1(val) {
|
selectbatchInfo1(val) {
|
||||||
console.log('selectbatchInfo1:', val)
|
console.log('selectbatchInfo1:', val)
|
||||||
this.batchInfo.startDate = val
|
|
||||||
|
if(!this.batchInfo.endDate){
|
||||||
|
this.batchInfo.startDate = val
|
||||||
|
}else{
|
||||||
|
if(new Date(this.batchInfo.startDate).getTime()>new Date(this.batchInfo.endDate).getTime()){
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
type: 'error',
|
||||||
|
message: '起始日期不能大于结束日期'
|
||||||
|
})
|
||||||
|
this.batchInfo.startDate=''
|
||||||
|
}else{
|
||||||
|
this.batchInfo.startDate = val
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
selectbatchInfo2(val) {
|
selectbatchInfo2(val) {
|
||||||
console.log('selectbatchInfo2:', val)
|
console.log('selectbatchInfo2:', val)
|
||||||
this.batchInfo.endDate = val
|
|
||||||
|
if(!this.batchInfo.startDate){
|
||||||
|
this.batchInfo.endDate = val
|
||||||
|
}else{
|
||||||
|
if(new Date(this.batchInfo.startDate).getTime()>new Date(this.batchInfo.endDate).getTime()){
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
type: 'error',
|
||||||
|
message: '起始日期不能大于结束日期'
|
||||||
|
})
|
||||||
|
this.batchInfo.endDate=''
|
||||||
|
}else{
|
||||||
|
this.batchInfo.endDate = val
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// this.batchInfo.endDate = val
|
||||||
},
|
},
|
||||||
getPageList() {
|
getPageList() {
|
||||||
req.recordListPage(this.page)
|
req.recordListPage(this.page)
|
||||||
|
|||||||
Reference in New Issue
Block a user