客户选择弹层添加‘新增客户’的按钮,方便快捷新建客户
This commit is contained in:
parent
8523a3df5a
commit
3249c8a005
@ -269,13 +269,14 @@ layui.define(['tool'], function (exports) {
|
|||||||
type: 1,
|
type: 1,
|
||||||
content: '<div class="picker-table">\
|
content: '<div class="picker-table">\
|
||||||
<form class="layui-form pb-2">\
|
<form class="layui-form pb-2">\
|
||||||
<div class="layui-input-inline" style="width:480px;">\
|
<div class="layui-input-inline" style="width:382px;">\
|
||||||
<input type="text" name="keywords" placeholder="客户名称" class="layui-input" autocomplete="off" />\
|
<input type="text" name="keywords" placeholder="客户名称" class="layui-input" autocomplete="off" />\
|
||||||
</div>\
|
</div>\
|
||||||
<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
|
<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
|
||||||
|
<span class="layui-btn customer-new">新增客户</span>\
|
||||||
</form>\
|
</form>\
|
||||||
<div id="customerTable"></div></div>',
|
<div id="customerTable"></div></div>',
|
||||||
success: function () {
|
success: function (layero, idx, that) {
|
||||||
customeTable = table.render({
|
customeTable = table.render({
|
||||||
elem: '#customerTable'
|
elem: '#customerTable'
|
||||||
, url: '/contract/api/get_customer'
|
, url: '/contract/api/get_customer'
|
||||||
@ -292,6 +293,10 @@ layui.define(['tool'], function (exports) {
|
|||||||
customeTable.reload({ where: { keywords: data.field.keywords }, page: { curr: 1 } });
|
customeTable.reload({ where: { keywords: data.field.keywords }, page: { curr: 1 } });
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
$('.picker-table').on('click','.customer-new',function(){
|
||||||
|
layer.close(idx);
|
||||||
|
tool.side('/customer/index/add');
|
||||||
|
})
|
||||||
},
|
},
|
||||||
btn: ['确定'],
|
btn: ['确定'],
|
||||||
btnAlign: 'c',
|
btnAlign: 'c',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user