Commit d78d272d authored by zhangderong's avatar zhangderong

修改扫码默认日期

parent 458daee2
...@@ -193,7 +193,6 @@ export default { ...@@ -193,7 +193,6 @@ export default {
this.formInline.model2='' this.formInline.model2=''
this.formInline.Inviter='' this.formInline.Inviter=''
this.formInline.InviterPhoneNumber='' this.formInline.InviterPhoneNumber=''
this.formInline.date=''
this.formInline.time='' this.formInline.time=''
this.formInline.position='' this.formInline.position=''
this.formInline.name='' this.formInline.name=''
...@@ -233,7 +232,7 @@ export default { ...@@ -233,7 +232,7 @@ export default {
const year = myDate.getFullYear(); // 获取当前年份 const year = myDate.getFullYear(); // 获取当前年份
const month = myDate.getMonth() + 1; // 获取当前月份(0-11,0代表1月所以要加1); const month = myDate.getMonth() + 1; // 获取当前月份(0-11,0代表1月所以要加1);
const day = myDate.getDate(); // 获取当前日(1-31) const day = myDate.getDate(); // 获取当前日(1-31)
this.saleDate = `${year}-${month}-${day}`; this.saleDate = `${year}/${month}/${day}`;
this.formInline.date=this.saleDate this.formInline.date=this.saleDate
} }
} }
......
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