发放日期判断
This commit is contained in:
parent
e54f23dd05
commit
742ce42f5e
@ -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