educode_sales 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20755b572d19ee3c58ffca868b9fc6d5e3829024f1c34863ed6707c83009af41
|
4
|
+
data.tar.gz: 4289012ab4ee0794bdf7c0cc49b57ae46305b16f0b724ec135f82d04e9662b91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62d94ce651961ec7a4a41e40b5993bcd0dfb400d2bf53f66ba0b8d25b81015962f5a8e0553935a854cd40779a9eb710a6f842ba85ada1e349248b786e58390cb
|
7
|
+
data.tar.gz: 95517fc542d7c80d8c40513fcb612a4efa422f9697b7168b4151b599419d999b56dfd0dcab077935abb0c6facf2174b0a1497bcae1952d2ed81b29258c57ad38
|
@@ -85,7 +85,12 @@ module EducodeSales
|
|
85
85
|
|
86
86
|
def create
|
87
87
|
load_business
|
88
|
-
|
88
|
+
if @business.last_follow_up
|
89
|
+
follow_up = @business.last_follow_up.dup
|
90
|
+
follow_up.assign_attributes(follow_up_params)
|
91
|
+
else
|
92
|
+
follow_up = @business.follow_ups.build(follow_up_params)
|
93
|
+
end
|
89
94
|
if params[:service_time].present?
|
90
95
|
date = params[:service_time].split(" - ")
|
91
96
|
follow_up.service_start_time = date[0]
|
@@ -123,7 +128,8 @@ module EducodeSales
|
|
123
128
|
money.follow_up_id = follow_up.id
|
124
129
|
money.save
|
125
130
|
end
|
126
|
-
|
131
|
+
# 合同里签到日期全同步到最新跟进
|
132
|
+
last_follow_up.contract_date_lists.update_all(follow_up_id: follow_up.id)
|
127
133
|
end
|
128
134
|
@business.update(last_follow_up_id: follow_up.id, clazz_id: follow_up.clazz_id, p_deploy_time: params[:deploy_time])
|
129
135
|
# 增加o商机编号
|
@@ -144,6 +150,8 @@ module EducodeSales
|
|
144
150
|
business.clazz_id = business.follow_ups.last&.clazz_id
|
145
151
|
end
|
146
152
|
business.update(last_follow_up: business.follow_ups.last, return_money: MoneyPlan.where(clazz: '实际回款', follow_up_id: business.follow_ups.last&.id).sum(:amount))
|
153
|
+
# 合同里签到日期全同步到最新跟进
|
154
|
+
follow_up.contract_date_lists.update_all(follow_up: business.follow_ups.last) if business.follow_ups.last.present?
|
147
155
|
end
|
148
156
|
render_success
|
149
157
|
else
|
@@ -46,7 +46,7 @@
|
|
46
46
|
placeholder="请选择日期">
|
47
47
|
</div>
|
48
48
|
</div>
|
49
|
-
|
49
|
+
<div class="layui-inline">
|
50
50
|
<label class="layui-form-label">中标时间</label>
|
51
51
|
<div class="layui-input-inline">
|
52
52
|
<input type="text" class="layui-input" name="bidded_date" autocomplete="off" id="invitation_at_add"
|
@@ -55,6 +55,7 @@
|
|
55
55
|
</div>
|
56
56
|
</div>
|
57
57
|
<br>
|
58
|
+
<!--
|
58
59
|
<div class="layui-inline">
|
59
60
|
<label class="layui-form-label">签单时间</label>
|
60
61
|
<div class="layui-input-inline">
|
@@ -62,14 +63,15 @@
|
|
62
63
|
value="<%= @last_follow_up&.signed_date %>"
|
63
64
|
placeholder="请选择日期">
|
64
65
|
</div>
|
65
|
-
</div>
|
66
|
+
</div> -->
|
66
67
|
<input type="hidden" class="layui-input" name="reception_at" value="<%= @last_follow_up&.reception_at %>">
|
67
|
-
<
|
68
|
+
<input type="hidden" class="layui-input" name="deploy_time" value="<%= @last_follow_up&.deploy_time %>">
|
69
|
+
<!-- <div class="layui-inline">
|
68
70
|
<label class="layui-form-label">部署时间</label>
|
69
71
|
<div class="layui-input-inline">
|
70
72
|
<input type="text" class="layui-input" name="deploy_time" value="<%= @last_follow_up&.deploy_time %>" id="p_deploy_time" placeholder="请选择日期">
|
71
73
|
</div>
|
72
|
-
</div>
|
74
|
+
</div> -->
|
73
75
|
<br>
|
74
76
|
<div class="layui-inline service_show layui-hide">
|
75
77
|
<label class="layui-form-label required">服务期</label>
|
@@ -78,12 +80,12 @@
|
|
78
80
|
</div>
|
79
81
|
</div>
|
80
82
|
|
81
|
-
<div class="layui-inline deployment_type layui-hide">
|
83
|
+
<!-- <div class="layui-inline deployment_type layui-hide">
|
82
84
|
<label class="layui-form-label required">部署类型</label>
|
83
85
|
<div class="layui-input-inline">
|
84
86
|
<%= select_tag "o_business_deployment", options_for_select(@deployment_type, @last_follow_up&.o_business_deployment), class: 'required' %>
|
85
87
|
</div>
|
86
|
-
</div>
|
88
|
+
</div> -->
|
87
89
|
|
88
90
|
<br class="service_show layui-hide">
|
89
91
|
<div class="layui-inline">
|
@@ -94,8 +96,9 @@
|
|
94
96
|
</div>
|
95
97
|
客户采购支出的费用。中标额的生命历程:1.在最初阶段,是商机的预算总额;2.在挂网阶段,是项目的挂网预算总额;3.在中标阶段,是项目的中标总额。
|
96
98
|
</div>
|
97
|
-
<br>
|
98
|
-
|
99
|
+
<br>
|
100
|
+
<!--
|
101
|
+
<div class="layui-inline">
|
99
102
|
<label class="layui-form-label">合同额(万)</label>
|
100
103
|
<div class="layui-input-inline">
|
101
104
|
<input name="actual_amount" type="number" class="layui-input" autocomplete="off" placeholder="本单位的签单金额"
|
@@ -104,13 +107,15 @@
|
|
104
107
|
客户签给头歌的费用。合同额的生命历程:1.在中标之前,合同额都是0;2.在中标之后,实际与头歌签合同的金额。
|
105
108
|
</div>
|
106
109
|
<br>
|
110
|
+
-->
|
107
111
|
<div class="layui-inline new_place_select">
|
108
112
|
<label class="layui-form-label">渠道</label>
|
109
113
|
<div class="layui-input-inline" style="">
|
110
114
|
<div id="place" style="width: 190px;"></div>
|
111
115
|
</div>
|
112
116
|
</div>
|
113
|
-
|
117
|
+
<br>
|
118
|
+
<!--
|
114
119
|
<div class="layui-inline">
|
115
120
|
<label class="layui-form-label">渠道分成(万)</label>
|
116
121
|
<div class="layui-input-inline">
|
@@ -119,6 +124,7 @@
|
|
119
124
|
中标额里,渠道拿到的部分。
|
120
125
|
</div>
|
121
126
|
<br>
|
127
|
+
-->
|
122
128
|
<div class="layui-inline">
|
123
129
|
<label class="layui-form-label">预算金额(万)</label>
|
124
130
|
<div class="layui-input-inline">
|
@@ -269,49 +275,46 @@
|
|
269
275
|
})
|
270
276
|
}
|
271
277
|
})
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
} else {
|
308
|
-
layer.msg(res.msg, {time: 2000, icon: 2, shade: 0.01});
|
309
|
-
}
|
278
|
+
var place_list = xmSelect.render({
|
279
|
+
el: '#place',
|
280
|
+
remoteSearch: true,
|
281
|
+
model: {
|
282
|
+
icon: 'hidden',
|
283
|
+
label: {
|
284
|
+
type: 'text',
|
285
|
+
text: {
|
286
|
+
left: '',
|
287
|
+
right: '',
|
288
|
+
separator: ', ',
|
289
|
+
},
|
290
|
+
}
|
291
|
+
},
|
292
|
+
clickClose: true,
|
293
|
+
delay: 1000,
|
294
|
+
paging: true,
|
295
|
+
radio: true,
|
296
|
+
pageRemote: true,
|
297
|
+
filterable: true,
|
298
|
+
remoteMethod: function (val, cb, show, pageIndex) {
|
299
|
+
$.ajax('/missions/sales_place', {
|
300
|
+
method: 'get',
|
301
|
+
data: {
|
302
|
+
q: val,
|
303
|
+
page: pageIndex
|
304
|
+
},
|
305
|
+
dataType: 'json',
|
306
|
+
success: function (res) {
|
307
|
+
var data = res.data;
|
308
|
+
if (res.code == 0) {
|
309
|
+
cb(res.data, res.count);
|
310
|
+
} else {
|
311
|
+
layer.msg(res.msg, {time: 2000, icon: 2, shade: 0.01});
|
312
|
+
}
|
310
313
|
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
314
|
+
}
|
315
|
+
})
|
316
|
+
}
|
317
|
+
})
|
315
318
|
|
316
319
|
sales_list.setValue(gon.sales);
|
317
320
|
place_list.setValue(gon.place);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: educode_sales
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- anke1460
|
@@ -742,7 +742,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
742
742
|
- !ruby/object:Gem::Version
|
743
743
|
version: '0'
|
744
744
|
requirements: []
|
745
|
-
rubygems_version: 3.0.
|
745
|
+
rubygems_version: 3.0.9
|
746
746
|
signing_key:
|
747
747
|
specification_version: 4
|
748
748
|
summary: Summary of EducodeSales.
|