From b267af1b816f646fa02c6f4983ebb3f9825cc192 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期六, 13 四月 2024 15:00:44 +0800 Subject: [PATCH] 单据管理:1.销售账号,在系统里面单据管理这里A销售员做的单子,在它的账号只显示自己的客户信息,不同的账号,看不到别人的信息,管理员是可以全部看的 2.增加客户名称,操作员搜索 --- src/main/webapp/static/js/report/locMap.js | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/report/locMap.js b/src/main/webapp/static/js/report/locMap.js index 99c242c..e8f5ac8 100644 --- a/src/main/webapp/static/js/report/locMap.js +++ b/src/main/webapp/static/js/report/locMap.js @@ -3,7 +3,30 @@ var layer = layui.layer; var form = layui.form; + getLocMapRows(); getLocTable(1); + + function getLocMapRows() { + $.ajax({ + url: baseUrl+"/report/viewLocMapList/rows.action", + headers: {'token': localStorage.getItem('token')}, + method: 'POST', + async: false, + success: function (res) { + if (res.code === 200) { + var tpl = $("#locMastRowTemplate").html(); + var template = Handlebars.compile(tpl); + var html = template(res); + $('#rowSelect').append(html); + form.render('select'); + } else if (res.code === 403) { + top.location.href = baseUrl+"/"; + } else { + layer.msg(res.msg) + } + } + }); + } function getLocTable(row){ $.ajax({ @@ -18,7 +41,7 @@ var html = template(res.data); $('#locMap').html(html); } else if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } else { layer.msg(res.msg) } @@ -41,6 +64,7 @@ || html.trim()==='S' || html.trim()==='D' || html.trim()==='O' + || html.trim()==='Z' ){ } else { -- Gitblit v1.9.1