educode_sales 0.8.9 → 0.9.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: 6ec7b94dd1cfa92b3cc2803dae9f3b48ac530c772862959ececa2d575d7f305c
|
4
|
+
data.tar.gz: 766ea79f255bfa56c0f28febb04b8363da6628522a30577e9e57183959bea092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4133a2b8147539c3e1d92e28a76bc08b1ec05de4c3a9e1f07d95cadab4d65c28af905b558c48254c7fc4a8bd2f70e9cc4714198f5867fe7e2614b946fac092e6
|
7
|
+
data.tar.gz: 2d868ca452990a02abeaa9a3c0e816baf1811eff439ce82a124f89458dce70c3e8ea2a05a682dd6e1fb54c155719593971f58f38cf0c210554cfcce4ded6f564
|
@@ -50,6 +50,13 @@ module EducodeSales
|
|
50
50
|
JOIN schools ON departments.school_id = schools.id
|
51
51
|
").where("province = ?", p)
|
52
52
|
end
|
53
|
+
|
54
|
+
if params[:q].present? && params[:q][:description].present?
|
55
|
+
@follow_ups = @follow_ups.joins(:business).joins("JOIN educode_sales_businesses ON educode_sales_businesses.id = educode_sales_follow_ups.business_id
|
56
|
+
").where("educode_sales_follow_ups.description LIKE ?" ,"%#{params[:q][:description]}%")
|
57
|
+
|
58
|
+
end
|
59
|
+
|
53
60
|
if params[:sort].present? && params[:sort][:field]
|
54
61
|
@follow_ups = @follow_ups.order("#{params[:sort][:field]} #{params[:sort][:order]}")
|
55
62
|
else
|
@@ -31,6 +31,12 @@
|
|
31
31
|
<input type="text" class="layui-input" id="follows_date" name="follows_date" autocomplete="off" placeholder=" - ">
|
32
32
|
</div>
|
33
33
|
</div>
|
34
|
+
<div class="layui-inline">
|
35
|
+
<label class="layui-form-label">最新进展</label>
|
36
|
+
<div class="layui-input-inline">
|
37
|
+
<input type="text" name="description" autocomplete="off" class="layui-input">
|
38
|
+
</div>
|
39
|
+
</div>
|
34
40
|
|
35
41
|
<div class="layui-inline">
|
36
42
|
<button type="reset" class="layui-btn layui-btn-primary" lay-submit lay-filter="reset_follows_search">重置
|
@@ -195,7 +201,7 @@
|
|
195
201
|
where: {q: search, sort: sort}
|
196
202
|
}, 'data');
|
197
203
|
form.val('search_form', {
|
198
|
-
name: data.field.name, department: data.field.department, staff_id: data.field.staff_id, area: data.field.area
|
204
|
+
name: data.field.name, department: data.field.department, staff_id: data.field.staff_id, area: data.field.area , description: data.field.description
|
199
205
|
})
|
200
206
|
return false;
|
201
207
|
});
|
@@ -207,6 +213,7 @@
|
|
207
213
|
follows_date: "",
|
208
214
|
name: "",
|
209
215
|
department: "",
|
216
|
+
description: "",
|
210
217
|
staff_id: ""
|
211
218
|
})
|
212
219
|
return false;
|
@@ -14,7 +14,7 @@ json.data do
|
|
14
14
|
json.reception_at d.last_follow_up&.reception_at.to_s
|
15
15
|
json.bidded_date d.last_follow_up&.bidded_date.to_s
|
16
16
|
json.signed_date d.last_follow_up&.signed_date.to_s
|
17
|
-
json.total_amount d.last_follow_up&.total_amount
|
17
|
+
json.total_amount d.last_follow_up&.total_amount.to_f.round(2)
|
18
18
|
json.service_end_time d.last_follow_up&.service_start_time.to_s + "-" + d.last_follow_up&.service_end_time.to_s
|
19
19
|
EducodeSales::FollowUp::BUSINESS_DEPLOYMENT[1..-1].each do |m|
|
20
20
|
if d.last_follow_up&.o_business_deployment == m[1]
|
@@ -22,7 +22,7 @@ json.data do
|
|
22
22
|
break
|
23
23
|
end
|
24
24
|
end
|
25
|
-
json.actual_amount d.last_follow_up&.actual_amount
|
25
|
+
json.actual_amount d.last_follow_up&.actual_amount.to_f.round(2)
|
26
26
|
json.return_money d.return_money
|
27
27
|
json.wait_return_money d.wait_return_money.to_i.round(2)
|
28
28
|
json.return_money_days d.last_follow_up&.reception_at.present? && d.last_follow_up.money_plans.where(clazz: '实际回款').present? ? (d.last_follow_up.money_plans.where(clazz: '实际回款').order(created_at: :asc).first.date_at.to_s(:date).to_date - d.last_follow_up&.reception_at).to_i : ''
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: educode_sales
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- anke1460
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|