Commit 8d1c2da2 authored by youjie's avatar youjie

no message

parent 5b891b82
...@@ -995,6 +995,17 @@ getCompanyList() { ...@@ -995,6 +995,17 @@ getCompanyList() {
this.PriceDates=[] this.PriceDates=[]
}, },
SaveVisaProduct(formName) { SaveVisaProduct(formName) {
this.addMsg.EffectiveStartDate = moment(this.PriceDates[0]).format(
"YYYY-MM-DD"
);
this.addMsg.SendVisaDate = moment(this.PriceDates[1]).format(
"YYYY-MM-DD"
);
let SendVisaDate = moment(new Date(this.addMsg.SendVisaDate)).format("YYYY-MM")+'-25'
if(this.addMsg.SendVisaDate>=SendVisaDate){
this.Error(`价格有效结束日期请选择${SendVisaDate}之前日期!`);
return;
}
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
......
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