app/views/educode_sales/businesses/new.html.erb in educode_sales-0.9.46 vs app/views/educode_sales/businesses/new.html.erb in educode_sales-0.9.47
- old
+ new
@@ -19,10 +19,17 @@
<input type="text" name="source" autocomplete="off" class="layui-input" style="width: 300px;" placeholder="请输入商机来源">
</div>
<div class="layui-inline" style="padding-top: 20px">
<p style="padding-left: 40px">请填写提供本商机的人名(如‘张明’);如果为非头歌用户,请增加单位信息(如‘张明,华为公司’)</p>
</div>
+ <br>
+ <div class="layui-inline" style="padding-top: 20px">
+ <label class="layui-form-label required">项目类型</label>
+ <div class="layui-input-inline">
+ <%= select_tag "clazz_id", options_for_select(@clazz), { 'lay-filter': 'clazz_id', class: 'required' } %>
+ </div>
+ </div>
<div class="layui-form-item m-t-20">
<div class="layui-input-block">
<button class="layui-btn layui-btn-normal" lay-submit lay-filter="create_business">提交</button>
</div>
</div>
@@ -72,10 +79,11 @@
return layer.alert("请选择单位部门")
}
request.authPost("missions/businesses", {
department_id: add_department.getValue(),
name: data.field.name,
- source: data.field.source
+ source: data.field.source,
+ clazz_id: data.field.clazz_id,
}, function (res) {
if (res.success == false) {
layer.alert(res.msg)
} else {
\ No newline at end of file