Commit 0f56fbe8 authored by 罗超's avatar 罗超

1

parent 06d693cb
...@@ -1283,16 +1283,20 @@ export default { ...@@ -1283,16 +1283,20 @@ export default {
}, },
}); });
}, },
// 结束日期不能于开始日期 // 结束日期不能于开始日期
dataDui() { dataDui() {
if (this.msg.CStartDate > this.msg.CEndDate && this.msg.CEndDate !== "") { if (this.msg.CStartDate > this.msg.CEndDate && this.msg.CEndDate !== "") {
this.$message.error("结束日期不能于开始日期"); this.$message.error("结束日期不能于开始日期");
this.msg.CEndDate = ""; this.msg.CEndDate = "";
} }
}, },
dataDuiQ() { dataDuiQ() {
if (this.msg.QStartDate > this.msg.QEndDate && this.msg.QEndDate !== "") { if (
this.$message.error("结束日期不能大于开始日期"); new Date(this.msg.QStartDate).getTime() >
new Date(this.msg.QEndDate).getTime() &&
this.msg.QEndDate !== ""
) {
this.$message.error("结束日期不能小于开始日期");
this.msg.QEndDate = ""; this.msg.QEndDate = "";
} }
}, },
...@@ -1530,9 +1534,8 @@ export default { ...@@ -1530,9 +1534,8 @@ export default {
this.msg.QEndDate === "" && this.msg.QEndDate === "" &&
!this.msg.tempOrderId !this.msg.tempOrderId
) { ) {
let nowDay = new Date().toLocaleDateString(); this.msg.QStartDate = new Date();
this.msg.QStartDate = nowDay; this.msg.QEndDate = new Date();
this.msg.QEndDate = nowDay;
} }
if (this.$route.query.orderId) { if (this.$route.query.orderId) {
this.msg.tempOrderId = this.$route.query.orderId; this.msg.tempOrderId = this.$route.query.orderId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment