Commit 70ed2e1c authored by youjie's avatar youjie

no message

parent e3e7c2d9
......@@ -442,6 +442,7 @@
type="daterange"
range-separator="至"
value-format="yyyy-MM-dd"
@change="SaveVisaProduct"
>
</el-date-picker>
</br>
......@@ -995,7 +996,6 @@ getCompanyList() {
this.PriceDates=[]
},
SaveVisaProduct(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
......@@ -1023,8 +1023,8 @@ getCompanyList() {
this.addMsg.SendVisaDate = moment(this.PriceDates[1]).format(
"YYYY-MM-DD"
);
let SendVisaDate = moment(new Date()).format("YYYY-MM")+'-25'
if(this.addMsg.SendVisaDate>SendVisaDate){
let SendVisaDate = moment(new Date(this.addMsg.EffectiveStartDate)).format("YYYY-MM")+'-25'
if(this.addMsg.SendVisaDate>=SendVisaDate){
this.Error(`价格有效结束日期请选择${SendVisaDate}之前日期!`);
return;
}
......
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