Add deal
This commit is contained in:
parent
a5580a0cb8
commit
1c55112b18
@ -837,6 +837,7 @@ var app = new Vue({
|
|||||||
'add_activity_close_step': 0,
|
'add_activity_close_step': 0,
|
||||||
}
|
}
|
||||||
app.adjacent_funnels_steps = [];
|
app.adjacent_funnels_steps = [];
|
||||||
|
app.create_deal = false;
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
var upstep = app.funnels[id].steps[index];
|
var upstep = app.funnels[id].steps[index];
|
||||||
app.name_step = upstep.name;
|
app.name_step = upstep.name;
|
||||||
@ -980,6 +981,9 @@ var app = new Vue({
|
|||||||
app.list_users_select = upstep.users_mes;
|
app.list_users_select = upstep.users_mes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (upstep.create_deal > 0) {
|
||||||
|
app.create_deal = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
app.updateStepFunnel = true;
|
app.updateStepFunnel = true;
|
||||||
app.funnelId = funnelId;
|
app.funnelId = funnelId;
|
||||||
@ -1455,7 +1459,8 @@ var app = new Vue({
|
|||||||
pole_prev: JSON.stringify(this.pole_prev),
|
pole_prev: JSON.stringify(this.pole_prev),
|
||||||
pole_dop: JSON.stringify(this.pole_dop),
|
pole_dop: JSON.stringify(this.pole_dop),
|
||||||
is_select_room: this.is_select_room,
|
is_select_room: this.is_select_room,
|
||||||
complex_status_id: $("#ms-req-status").val()
|
complex_status_id: $("#ms-req-status").val(),
|
||||||
|
create_deal: this.create_deal,
|
||||||
}
|
}
|
||||||
if (arr_next_steps != '') {
|
if (arr_next_steps != '') {
|
||||||
reques.arr_next_steps = arr_next_steps;
|
reques.arr_next_steps = arr_next_steps;
|
||||||
|
|||||||
@ -5321,6 +5321,23 @@
|
|||||||
<input v-model="selectedRoom.transaction_amount" type="number" style="font-size: 17px; color: rgb(115, 102, 102); border: 1px solid #776f79; border-radius: 5px; padding: 5px 10px;" />
|
<input v-model="selectedRoom.transaction_amount" type="number" style="font-size: 17px; color: rgb(115, 102, 102); border: 1px solid #776f79; border-radius: 5px; padding: 5px 10px;" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div v-if="step.create_deal == 1 && currentPage.includes('/requisitions.php')" class="form-block">
|
||||||
|
{{ step.is_deal }}
|
||||||
|
<template v-if="step.is_deal === 1">
|
||||||
|
<div style="color: green; font-weight: bold;">Сделка успешно создана</div>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<div class="label">Сделка</div>
|
||||||
|
<button
|
||||||
|
style="color: #fff; padding: 10px 20px; background: linear-gradient(to bottom, rgba(67, 160, 71, 1) 0%, rgba(56, 142, 60, 1) 100%); border: none; font-family: 'Lato', sans-serif; font-size: 15px;"
|
||||||
|
type="button"
|
||||||
|
id="createDealButton"
|
||||||
|
@click="initCreateDeal(reqId)">
|
||||||
|
Создать сделку
|
||||||
|
</button>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user