Joywork/templates/modals/client_req_bind.php
2026-05-22 21:21:54 +03:00

62 lines
4.0 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--Выбор привязки объекта к заявке-->
<div class="hidden" id="client_req_bind">
<div class="f__modal-bg" v-show="is_show" style="z-index:99880;">
<div class="f__modal full-modal" v-show="is_show" style="z-index:99881;padding-bottom:30px;bottom:30px;">
<span class="pseudo-link closer" @click="closes"><i class="ti-close"></i></span>
<h3>Добавить собственника </h3>
<div class="form-block">
<v-select v-model="clientSelect" :components="{OpenIndicator}" transition="" placeholder="Введите номер телефона клиента" class="vue_select" style="width: 450px; border: none;" :options="clients" label="name" @search="getClientsListNew" :filterable="false" @input="selectClientList">
<div class="spinner" v-show="spinner">Загрузка...</div>
<template v-slot:option="clients">
<span :style="'color:'+clients.color" v-html="clients.fio"></span>
</template>
<div slot="no-options">Не найдено клиентов...</div>
</v-select>
<a title="Новый клиент" :data-obj="this.objectId" href="javascript:{}" style="position: relative; display: inline-block;margin-top: -17px; padding-right:0px; float:right; border: 0;font-size: 17px;" class="tab tab__new-object add_client_new">
<i class="ti-plus"></i><span></span>
</a>
</div>
<div class="form-block" v-show="is_req">
<div class="green_input" style="margin-top: 7px;">
<div style="width: 11%" class="label">Заявка</div>
<span style="width: 85%">{{ text_req }}</span>
</div>
</div>
<h2 v-if="client_id > 0 && show_block_req">Добавление заявки </h2>
<div v-show="client_id > 0 && show_block_req" class="form-block" style="margin-bottom: 10px;">
<div class="label">Воронка </div>
<div class="inputs" id="client_req_bind_funnel-input">
<img src="../images/rocket-spinner.svg" width="45px">
</div>
<span class="area-label-right" style="display: inherit; font-size: 12px; color:#757575; margin: 0px;">
<i class="ti-info-alt"></i> Выберите необходимую воронку продаж, если хотите создать новую заявку.
</span>
<div class="clear"></div>
</div>
<div v-if="client_id > 0 && show_block_req">
<div class="green_button error_req" style="margin-bottom:7px; width:480px; background: linear-gradient(to bottom, #e2574c 0%,#e2574c 100%); text-align: center; display: none;">
Объект уже добавлен в заявку на реализацию
</div>
<button @click="create_new_req" type="button" data-id="" style="margin-bottom:7px;" class="green_button">
Создать новую заявку?
</button>
<button type="button" :data-id="client_id" @click="open_old_req" style="margin-bottom:7px;" class="green_button neweditClient">
Прикрепить к ранее созданной заявке?
</button>
</div>
<button :disabled="client_id == 0" type="button" @click="save" data-id="" class="green_button">
Сохранить
</button>
<div class="clear"></div>
</div>
</div>
</div>
<script src="/js/locale/translations/ru.js"></script>
<script type="text/javascript" src="/js/vue_scripts/client_req_bind_vue.js?<?=filemtime($_SERVER['DOCUMENT_ROOT'].'/js/vue_scripts/client_req_bind_vue.js')?>"></script>