app/views/educode_sales/businesses/new.html.erb in educode_sales-0.3.6 vs app/views/educode_sales/businesses/new.html.erb in educode_sales-0.3.7

- old
+ new

@@ -8,10 +8,18 @@ </div> <div class="layui-inline"> <label class="layui-form-label required">单位部门</label> <div class="layui-input-block" id="add_department" style="width: 300px;"></div> </div> + <br> + <div class="layui-inline" style="padding-top: 20px"> + <label class="layui-form-label ">商机来源</label> + <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> <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> @@ -60,10 +68,12 @@ if (add_department.getValue() == "") { return layer.alert("请选择单位部门") } request.authPost("missions/businesses", { department_id: add_department.getValue(), - name: data.field.name + name: data.field.name, + source: data.field.source + }, function (res) { if (res.success == false) { layer.alert(res.msg) } else { layer.close(parent.index); \ No newline at end of file