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

update forms

parent 1b19d4df
...@@ -327,6 +327,7 @@ Vue.component('app-registration-form', { ...@@ -327,6 +327,7 @@ Vue.component('app-registration-form', {
this.wUnitAmounts[index].label = e.caption; this.wUnitAmounts[index].label = e.caption;
//alert(JSON.stringify(e)); //alert(JSON.stringify(e));
}, },
//https://r52.ru
transportGroupUrl(){ transportGroupUrl(){
return '/api/transport/getTypes/'; return '/api/transport/getTypes/';
}, },
...@@ -443,7 +444,8 @@ Vue.component('app-registration-form', { ...@@ -443,7 +444,8 @@ Vue.component('app-registration-form', {
url: "form.php", url: "form.php",
data: { data: {
"date": post_data, "date": post_data,
"record": this.localRecord "record": this.localRecord,
"units": this.wUnitAmounts,
}, },
dataType: "html", dataType: "html",
type: "post", type: "post",
...@@ -826,7 +828,7 @@ Vue.component('app-registration-form', { ...@@ -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;"> <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> <pre>
{{ fieldsVal[currentPT] }} {{ wUnitAmounts }}
</pre> </pre>
</div> </div>
...@@ -1295,7 +1297,7 @@ Vue.component('app-registration-form', { ...@@ -1295,7 +1297,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 <input
name="street" name="vmes"
type="text" type="text"
placeholder="Количество" placeholder="Количество"
class="field-text__input" class="field-text__input"
...@@ -1749,7 +1751,7 @@ Vue.component('app-registration-form', { ...@@ -1749,7 +1751,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 <input
name="street" name="nums"
type="text" type="text"
placeholder="Количество" placeholder="Количество"
class="field-text__input" class="field-text__input"
......
...@@ -196,10 +196,10 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -196,10 +196,10 @@ Vue.component('app-waste-utilisation-order-form', {
wasteGroupUrl() { wasteGroupUrl() {
//https://r52.ru/ //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(){ wasteMainGroupUrl(){
return 'https://r52.ru/api/mainType/' + this.localRecord.wType.name return '/api/mainType/' + this.localRecord.wType.name
}, },
// Открываем кнопку "сохранить" // Открываем кнопку "сохранить"
formFilledRight() { 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