Commit 98cb5521 authored by Babin Egor's avatar Babin Egor

update forms

parent 1b19d4df
......@@ -327,6 +327,7 @@ Vue.component('app-registration-form', {
this.wUnitAmounts[index].label = e.caption;
//alert(JSON.stringify(e));
},
//https://r52.ru
transportGroupUrl(){
return '/api/transport/getTypes/';
},
......@@ -443,7 +444,8 @@ Vue.component('app-registration-form', {
url: "form.php",
data: {
"date": post_data,
"record": this.localRecord
"record": this.localRecord,
"units": this.wUnitAmounts,
},
dataType: "html",
type: "post",
......@@ -826,7 +828,7 @@ Vue.component('app-registration-form', {
<div style="display: block; position: fixed; right: 0;top: 0%; background-color:#fff; z-index:1000; width: 300px; padding: 10px; border: 1px solid #999;">
<pre>
{{ fieldsVal[currentPT] }}
{{ wUnitAmounts }}
</pre>
</div>
......@@ -1295,7 +1297,7 @@ Vue.component('app-registration-form', {
<span class="field-text__name">Вместимость<span style="color: red;">*</span></span>
<span class="field-text__input-wrap">
<input
name="street"
name="vmes"
type="text"
placeholder="Количество"
class="field-text__input"
......@@ -1749,7 +1751,7 @@ Vue.component('app-registration-form', {
<span class="field-text__name">Вместимость<span style="color: red;">*</span></span>
<span class="field-text__input-wrap">
<input
name="street"
name="nums"
type="text"
placeholder="Количество"
class="field-text__input"
......
......@@ -196,10 +196,10 @@ Vue.component('app-waste-utilisation-order-form', {
wasteGroupUrl() {
//https://r52.ru/
return 'https://r52.ru/api/type/' + this.localRecord.wType.name + (this.localRecord.wMainGroup.value ? "/" + this.localRecord.wMainGroup.value : "/");
return '/api/type/' + this.localRecord.wType.name + (this.localRecord.wMainGroup.value ? "/" + this.localRecord.wMainGroup.value : "/");
},
wasteMainGroupUrl(){
return 'https://r52.ru/api/mainType/' + this.localRecord.wType.name
return '/api/mainType/' + this.localRecord.wType.name
},
// Открываем кнопку "сохранить"
formFilledRight() {
......
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