发放日期判断
This commit is contained in:
parent
e54f23dd05
commit
742ce42f5e
@ -367,22 +367,19 @@ export default {
|
||||
},
|
||||
|
||||
submitGiveOut() {
|
||||
// console.log("date", this.giveOutDate)
|
||||
// console.log("list", this.staffData)
|
||||
// console.log("row",this.form)
|
||||
|
||||
|
||||
|
||||
if (new Date() < this.giveOutDate) {
|
||||
let giveOutSubmitData = {
|
||||
giveOutDate: this.giveOutDate,
|
||||
staffData: this.staffData,
|
||||
subsidy: this.form
|
||||
}
|
||||
console.log(giveOutSubmitData)
|
||||
|
||||
submitGiveOutSubsidy(giveOutSubmitData).then(res => {
|
||||
this.msgSuccess("发放成功")
|
||||
})
|
||||
}else {
|
||||
this.msgError("发放日期必须大于当前日期")
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user