Commit 1b19d4df authored by Babin Egor's avatar Babin Egor

up form

parent 1528b394
...@@ -452,11 +452,11 @@ Vue.component('app-registration-form', { ...@@ -452,11 +452,11 @@ Vue.component('app-registration-form', {
data = JSON.parse(data); data = JSON.parse(data);
if (data.success) { if (data.success) {
if (this.personRegType == "executor") { if (this.personRegTypeProp == "executor") {
window.location.href = "/executor/" + data.ID + '/'; window.location.href = "/executor/" + data.ID + '/';
} else if (this.personRegType == "customer") { } else if (this.personRegTypeProp == "customer") {
window.location.href = "/customers/" + data.ID + '/'; window.location.href = "/customers/" + data.ID + '/';
} else if (this.personRegType == "neworder") { } else if (this.personRegTypeProp == "neworder") {
window.location.href = "/orders/" + data.ID + '/'; window.location.href = "/orders/" + data.ID + '/';
} else { } else {
window.location.href = "/orders/"; window.location.href = "/orders/";
...@@ -920,7 +920,7 @@ Vue.component('app-registration-form', { ...@@ -920,7 +920,7 @@ Vue.component('app-registration-form', {
placeholder="ИНН" placeholder="ИНН"
class="field-text__input" class="field-text__input"
v-model="fieldsVal.juridical.companyInn" v-model="fieldsVal.juridical.companyInn"
v-mask="['##########', '############']"
> >
</span> </span>
</label> </label>
...@@ -936,7 +936,7 @@ Vue.component('app-registration-form', { ...@@ -936,7 +936,7 @@ Vue.component('app-registration-form', {
placeholder="КПП" placeholder="КПП"
class="field-text__input" class="field-text__input"
v-model="fieldsVal.juridical.companyKpp" v-model="fieldsVal.juridical.companyKpp"
v-mask="['#########']"
> >
</span> </span>
</label> </label>
...@@ -1151,7 +1151,7 @@ Vue.component('app-registration-form', { ...@@ -1151,7 +1151,7 @@ Vue.component('app-registration-form', {
<span class="field-text__input-wrap"> <span class="field-text__input-wrap">
<input type="text" <input type="text"
placeholder="Контактный телефон" placeholder="Контактный телефон"
v-mask="'+7 (###) ###-##-##'"
class="field-text__input" class="field-text__input"
v-model="fieldsVal.juridical.companyContactPhone" v-model="fieldsVal.juridical.companyContactPhone"
> >
...@@ -1462,7 +1462,7 @@ Vue.component('app-registration-form', { ...@@ -1462,7 +1462,7 @@ Vue.component('app-registration-form', {
<span class="field-text__input-wrap"> <span class="field-text__input-wrap">
<input type="text" <input type="text"
placeholder="+ 7 (___) ___ __ __" placeholder="+ 7 (___) ___ __ __"
v-mask="'+7 (###) ###-##-##'"
class="field-text__input" class="field-text__input"
v-model="fieldsVal.natural.personInfoPhone" v-model="fieldsVal.natural.personInfoPhone"
> >
...@@ -1486,7 +1486,7 @@ Vue.component('app-registration-form', { ...@@ -1486,7 +1486,7 @@ Vue.component('app-registration-form', {
<span class="field-text__name">Серия <span style="color: red;">*</span></span> <span class="field-text__name">Серия <span style="color: red;">*</span></span>
<span class="field-text__input-wrap"> <span class="field-text__input-wrap">
<input type="text" <input type="text"
v-mask="'####'"
placeholder="Серия" placeholder="Серия"
class="field-text__input" class="field-text__input"
v-model="fieldsVal.natural.personPassportSeries" v-model="fieldsVal.natural.personPassportSeries"
...@@ -1500,7 +1500,7 @@ Vue.component('app-registration-form', { ...@@ -1500,7 +1500,7 @@ Vue.component('app-registration-form', {
<span class="field-text__name">Номер <span style="color: red;">*</span></span> <span class="field-text__name">Номер <span style="color: red;">*</span></span>
<span class="field-text__input-wrap"> <span class="field-text__input-wrap">
<input type="text" <input type="text"
v-mask="'######'"
placeholder="Номер" placeholder="Номер"
class="field-text__input" class="field-text__input"
v-model="fieldsVal.natural.personPassportNumber" v-model="fieldsVal.natural.personPassportNumber"
...@@ -1527,7 +1527,7 @@ Vue.component('app-registration-form', { ...@@ -1527,7 +1527,7 @@ Vue.component('app-registration-form', {
<span class="field-text__name">Дата выдачи <span style="color: red;">*</span></span> <span class="field-text__name">Дата выдачи <span style="color: red;">*</span></span>
<span class="field-text__input-wrap"> <span class="field-text__input-wrap">
<input type="text" <input type="text"
v-mask="'##.##.####'"
placeholder="Дата выдачи" placeholder="Дата выдачи"
class="field-text__input" class="field-text__input"
v-model="fieldsVal.natural.personPassportIssuedDate" v-model="fieldsVal.natural.personPassportIssuedDate"
......
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