Browse Source

2023-12-21

master
guoxing 1 year ago
parent
commit
a5ffafdb1a
  1. 41
      src/views/marketingCard/pickupCardSet.vue

41
src/views/marketingCard/pickupCardSet.vue

@ -187,8 +187,7 @@
<div class="item">
<span class="item_text">起始日期</span>
<el-date-picker v-model="batchInfo.startDate" @change="selectbatchInfo1" type="date"
placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" class="item_input"
:picker-options="pickerOptions">
placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" class="item_input">
</el-date-picker>
</div>
<div class="item">
@ -420,11 +419,45 @@
},
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) {
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() {
req.recordListPage(this.page)

Loading…
Cancel
Save