Commit 70ed2e1c authored by youjie's avatar youjie

no message

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