|
@@ -110,7 +110,7 @@
|
|
|
prop="deadlinePaymentDate">
|
|
|
<el-date-picker v-model.trim="payForm.deadlinePaymentDate"
|
|
|
type="date"
|
|
|
- :picker-options="pickerOptions"
|
|
|
+ :picker-options="bigin"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
placeholder="开始日期"></el-date-picker>
|
|
|
</el-form-item>
|
|
@@ -207,6 +207,7 @@ export default {
|
|
|
qrcodes: true,
|
|
|
qrcode: null,
|
|
|
codeUrl: null,
|
|
|
+ bigin: this.beginDate(),
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -320,6 +321,19 @@ export default {
|
|
|
isdate = new Date((isdate / 1000 + (86400 * dayCount)) * 1000); //日期加1天
|
|
|
let pdate = isdate.getFullYear() + "-" + (isdate.getMonth() + 1) + "-" + (isdate.getDate()); //把日期格式转换成字符串
|
|
|
return pdate;
|
|
|
+ },
|
|
|
+ beginDate () {
|
|
|
+ let self = this
|
|
|
+ return {
|
|
|
+ disabledDate (time) {
|
|
|
+ if (self.payForm.startPaymentDate) {
|
|
|
+ return new Date(self.payForm.startPaymentDate).getTime() > time.getTime()
|
|
|
+ } else {
|
|
|
+ return time.getTime() >= Date.now()
|
|
|
+ //开始时间不选时,结束时间最大值小于等于当天
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|