发放日期判断
This commit is contained in:
parent
e54f23dd05
commit
742ce42f5e
@ -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)
|
|
||||||
// console.log("row",this.form)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let giveOutSubmitData = {
|
let giveOutSubmitData = {
|
||||||
giveOutDate: this.giveOutDate,
|
giveOutDate: this.giveOutDate,
|
||||||
staffData: this.staffData,
|
staffData: this.staffData,
|
||||||
subsidy: this.form
|
subsidy: this.form
|
||||||
}
|
}
|
||||||
console.log(giveOutSubmitData)
|
|
||||||
|
|
||||||
submitGiveOutSubsidy(giveOutSubmitData).then(res => {
|
submitGiveOutSubsidy(giveOutSubmitData).then(res => {
|
||||||
this.msgSuccess("发放成功")
|
this.msgSuccess("发放成功")
|
||||||
})
|
})
|
||||||
|
}else {
|
||||||
|
this.msgError("发放日期必须大于当前日期")
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user