|
@@ -177,6 +177,29 @@
|
|
|
, height: 'full-108'
|
|
|
});
|
|
|
|
|
|
+ function createFollowReport(){
|
|
|
+ layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '添加跟踪报告',
|
|
|
+ area: ['45%', '70%'],
|
|
|
+ btn: ['保存', '取消'],
|
|
|
+ yes: function (index, dom) {
|
|
|
+ layui.onSubmitChild = function (res) {
|
|
|
+ if(res.code === 0){
|
|
|
+ layer.msg('添加成功!', {icon: 1})
|
|
|
+ }
|
|
|
+ layer.close(index);
|
|
|
+ table.reload('customer_datagrid', {});
|
|
|
+ };
|
|
|
+ layui.submitChild();
|
|
|
+ },
|
|
|
+ btn2: function (index, layero) {
|
|
|
+ layer.close(index);//关闭当前按钮
|
|
|
+ },
|
|
|
+ content: 'add_report.html'
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
admin.req({
|
|
|
url: '/customer/dict/',
|
|
|
done: function (res) {
|
|
@@ -238,8 +261,8 @@
|
|
|
area: ['45%', '90%'],
|
|
|
btn: ['跟踪报告', '更新进度', '取消'],
|
|
|
yes: function (index, dom) {
|
|
|
- //跟踪报告
|
|
|
- layer.close(index);
|
|
|
+ //添加跟踪报告
|
|
|
+ createFollowReport()
|
|
|
},
|
|
|
btn2: function (index, layero) {
|
|
|
//更新进度
|
|
@@ -263,27 +286,9 @@
|
|
|
return false
|
|
|
});
|
|
|
|
|
|
+ //添加跟踪报告
|
|
|
$('#customer_add').on('click', function () {
|
|
|
- layer.open({
|
|
|
- type: 2,
|
|
|
- title: '添加跟踪报告',
|
|
|
- area: ['45%', '70%'],
|
|
|
- btn: ['保存', '取消'],
|
|
|
- yes: function (index, dom) {
|
|
|
- layui.onSubmitChild = function (res) {
|
|
|
- if(res.code === 0){
|
|
|
- layer.msg('添加成功!', {icon: 1})
|
|
|
- }
|
|
|
- layer.close(index);
|
|
|
- table.reload('customer_datagrid', {});
|
|
|
- };
|
|
|
- layui.submitChild();
|
|
|
- },
|
|
|
- btn2: function (index, layero) {
|
|
|
- layer.close(index);//关闭当前按钮
|
|
|
- },
|
|
|
- content: 'add_report.html'
|
|
|
- });
|
|
|
+ createFollowReport()
|
|
|
});
|
|
|
|
|
|
$('#customer_order').on('click', function () {
|