Commit a6365c33 authored by Babin Egor's avatar Babin Egor

update

parent 60b71b21
...@@ -30,7 +30,9 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -30,7 +30,9 @@ Vue.component('app-waste-utilisation-order-form', {
searchEnabled: true, searchEnabled: true,
shouldSort: false, shouldSort: false,
noChoicesText: 'Пусто', noChoicesText: 'Пусто',
noResultsText: 'Ничего не найдено', noResultsText: 'Ничего не найдено',
searchResultLimit: '5'
}, },
helptext: '' helptext: ''
}, },
...@@ -39,7 +41,7 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -39,7 +41,7 @@ Vue.component('app-waste-utilisation-order-form', {
attrs: { attrs: {
name: 'waste-group', name: 'waste-group',
id: 'waste-group', id: 'waste-group',
required: true required: false
}, },
options: [], options: [],
settings: { settings: {
...@@ -60,7 +62,9 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -60,7 +62,9 @@ Vue.component('app-waste-utilisation-order-form', {
options: [], options: [],
settings: { settings: {
searchEnabled: true, searchEnabled: true,
shouldSort: false shouldSort: false,
noChoicesText: 'Пусто',
noResultsText: 'Ничего не найдено',
}, },
helptext: '' helptext: ''
}, },
...@@ -75,6 +79,8 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -75,6 +79,8 @@ Vue.component('app-waste-utilisation-order-form', {
settings: { settings: {
searchEnabled: false, searchEnabled: false,
shouldSort: false, shouldSort: false,
noChoicesText: 'Пусто',
noResultsText: 'Ничего не найдено',
}, },
helptext: '' helptext: ''
}, },
...@@ -89,6 +95,8 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -89,6 +95,8 @@ Vue.component('app-waste-utilisation-order-form', {
settings: { settings: {
searchEnabled: false, searchEnabled: false,
shouldSort: false, shouldSort: false,
noChoicesText: 'Пусто',
noResultsText: 'Ничего не найдено',
}, },
helptext: '' helptext: ''
}, },
...@@ -183,7 +191,7 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -183,7 +191,7 @@ Vue.component('app-waste-utilisation-order-form', {
}, },
computed: { computed: {
wasteGroupUrl() { wasteGroupUrl() {
return '/api/type/' + this.localRecord.wType.name + (this.localRecord.wMainGroup.value ? "/" + this.localRecord.wMainGroup.value : "/"); return 'https://r52.ru/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 'https://r52.ru/api/mainType/' + this.localRecord.wType.name
...@@ -201,6 +209,7 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -201,6 +209,7 @@ Vue.component('app-waste-utilisation-order-form', {
methods: { methods: {
// Вводи кода отхода вручную // Вводи кода отхода вручную
codeUp(){ codeUp(){
this.localRecord.wGroup = {}; this.localRecord.wGroup = {};
...@@ -515,12 +524,14 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -515,12 +524,14 @@ Vue.component('app-waste-utilisation-order-form', {
</waste-filter> </waste-filter>
</div> </div>
<!-- Debug ---> <!-- Debug --->
<!--
<div class="debug" <div class="debug"
style="display: none; position: absolute; right: -130px;top: 0px; background-color:#fff; z-index:1000; width: 400px; height: 1000px; padding: 10px; border: 1px solid #999;"> style="position: absolute; right: -130px;top: 0px; background-color:#fff; z-index:1000; width: 400px; height: 1000px; padding: 10px; border: 1px solid #999;">
<pre> <pre>
{{ localRecord }} {{ localRecord }}
</pre> </pre>
</div> </div>
-->
<!-- end Debug ---> <!-- end Debug --->
<!-- Form --> <!-- Form -->
...@@ -537,29 +548,28 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -537,29 +548,28 @@ Vue.component('app-waste-utilisation-order-form', {
<div class="row" <div class="row"
v-if="localRecord.wType['name'] != 'lamps'"> v-if="localRecord.wType['name'] != 'lamps'">
<div class="col-md-9" <div class="col-md-12">
v-if="localRecord.wType['name'] != 'communal'">
<div class="block_orange-b"> <div class="block_orange-b">
<!-- Вид отхода. Список --> <!-- Вид отхода. Список -->
<field-select <field-select
v-bind="wGroupSelect" v-bind="wMainGroupSelect"
:init="localRecord.wGroup" :init="localRecord.wMainGroup"
@change="localRecord.wGroup = $event" @change="localRecord.wMainGroup = $event"
@change="dateFromGroup" @change="dateFromMainGroup"
> >
</field-select> </field-select>
</div> </div>
</div> </div>
<div class="col-md-12" <div class="col-md-9"
v-if="localRecord.wType['name'] == 'communal'"> v-if="localRecord.wType['name'] != 'communal'">
<div class="block_orange-b"> <div class="block_orange-b">
<!-- Вид отхода. Список --> <!-- Вид отхода. Список -->
<field-select <field-select
v-bind="wMainGroupSelect" v-bind="wGroupSelect"
:init="localRecord.wMainGroup" :init="localRecord.wGroup"
@change="localRecord.wMainGroup = $event" @change="localRecord.wGroup = $event"
@change="dateFromMainGroup" @change="dateFromGroup"
> >
</field-select> </field-select>
</div> </div>
...@@ -594,20 +604,22 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -594,20 +604,22 @@ Vue.component('app-waste-utilisation-order-form', {
</div> </div>
<div class="block_cyan-b" <!--
v-if="localRecord.wType['name'] != 'lamps'"> <div class="block_cyan-b"
<label class="field-text"> v-if="localRecord.wType['name'] != 'lamps'">
<span class="field-text__name">Код отхода</span> <label class="field-text">
<span class="field-text__input-wrap"> <span class="field-text__name">Код отхода</span>
<input <span class="field-text__input-wrap">
type="text" <input
placeholder="Введите код, слово или фразу" type="text"
class="field-text__input" placeholder="Введите код, слово или фразу"
v-model="localRecord.wFKKO.code" class="field-text__input"
> v-model="localRecord.wFKKO.code"
</span> >
</label> </span>
</div> </label>
</div>
-->
<info-block v-if="localRecord.wType['name'] != 'lamps'"> <info-block v-if="localRecord.wType['name'] != 'lamps'">
Список содержит часто спрашиваемые виды отходов. Если Вы не нашли необходимый вид отхода, введите наименование отхода <a href=""> самостоятельно</a> Список содержит часто спрашиваемые виды отходов. Если Вы не нашли необходимый вид отхода, введите наименование отхода <a href=""> самостоятельно</a>
......
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