发放日期判断

This commit is contained in:
ryoeiken 2020-12-21 17:08:11 +08:00
parent e54f23dd05
commit 742ce42f5e

View File

@ -156,14 +156,14 @@
</el-form> </el-form>
<div class="block"> <div class="block">
<span>发放日期 </span> <span>发放日期 </span>
<!-- <el-date-picker--> <!-- <el-date-picker-->
<!-- v-model="giveOutDate"--> <!-- v-model="giveOutDate"-->
<!-- value-format="yyyy-MM-dd"--> <!-- value-format="yyyy-MM-dd"-->
<!-- type="daterange"--> <!-- type="daterange"-->
<!-- range-separator="至"--> <!-- range-separator="至"-->
<!-- start-placeholder="开始日期"--> <!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期">--> <!-- end-placeholder="结束日期">-->
<!-- </el-date-picker>--> <!-- </el-date-picker>-->
<el-date-picker <el-date-picker
v-model="giveOutDate" v-model="giveOutDate"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@ -367,22 +367,19 @@ export default {
}, },
submitGiveOut() { submitGiveOut() {
// console.log("date", this.giveOutDate) if (new Date() < this.giveOutDate) {
// console.log("list", this.staffData) let giveOutSubmitData = {
// console.log("row",this.form) giveOutDate: this.giveOutDate,
staffData: this.staffData,
subsidy: this.form
}
submitGiveOutSubsidy(giveOutSubmitData).then(res => {
let giveOutSubmitData = {
giveOutDate: this.giveOutDate,
staffData: this.staffData,
subsidy: this.form
}
console.log(giveOutSubmitData)
submitGiveOutSubsidy(giveOutSubmitData).then(res => {
this.msgSuccess("发放成功") this.msgSuccess("发放成功")
}) })
}else {
this.msgError("发放日期必须大于当前日期")
}
}, },