diff --git a/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromadd.js b/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromadd.js deleted file mode 100644 index 940a5f67d456872d86a99dcb999133d53790f11f..0000000000000000000000000000000000000000 --- a/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromadd.js +++ /dev/null @@ -1,32 +0,0 @@ - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui'], function (exports) { - winui.renderColor(); - layui.use(['form'], function (form) { - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$; - - matchingLanguage(); - form.render(); - form.on('submit(formAddBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - typeName: $("#typeName").val() - }; - AjaxPostUtil.request({url: flowableBasePath + "crmcustomerfrom002", params: params, type: 'json', callback: function (json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - } - return false; - }); - - $("body").on("click", "#cancle", function() { - parent.layer.close(index); - }); - }); -}); \ No newline at end of file diff --git a/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromedit.js b/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromedit.js deleted file mode 100644 index dbb388c58ef78a08ee5ccc973c9c37fe67b3a83b..0000000000000000000000000000000000000000 --- a/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromedit.js +++ /dev/null @@ -1,45 +0,0 @@ - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui'], function (exports) { - winui.renderColor(); - layui.use(['form'], function (form) { - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$; - - showGrid({ - id: "showForm", - url: flowableBasePath + "crmcustomerfrom003", - params: {id: parent.rowId}, - pagination: false, - method: 'GET', - template: getFileContent('tpl/crmcustomerfrom/crmcustomerfromeditTemplate.tpl'), - ajaxSendLoadBefore: function(hdb){ - }, - ajaxSendAfter: function (json) { - matchingLanguage(); - form.render(); - form.on('submit(formEditBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - id: parent.rowId, - typeName: $("#typeName").val() - }; - AjaxPostUtil.request({url: flowableBasePath + "crmcustomerfrom004", params: params, type: 'json', method: 'PUT', callback: function (json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - } - return false; - }); - } - }); - - $("body").on("click", "#cancle", function() { - parent.layer.close(index); - }); - }); -}); \ No newline at end of file diff --git a/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromlist.js b/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromlist.js deleted file mode 100644 index 738447e7e59c83893cf1e54a5bcf41afc676e201..0000000000000000000000000000000000000000 --- a/crm/src/main/resources/template/js/crmcustomerfrom/crmcustomerfromlist.js +++ /dev/null @@ -1,147 +0,0 @@ -var rowId = ""; -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form, - table = layui.table; - - authBtn('1569402716374'); - table.render({ - id: 'messageTable', - elem: '#messageTable', - method: 'post', - url: flowableBasePath + 'crmcustomerfrom001', - where: getTableParams(), - even: true, - page: true, - limits: getLimits(), - limit: getLimit(), - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, - { field: 'typeName', title: '客户来源', align: 'left', width: 200 }, - { field: 'state', title: '状态', width: 100, align: 'center', templet: function (d) { - if(d.state == '1'){ - return "新建"; - }else if(d.state == '2'){ - return "上线"; - }else if(d.state == '3'){ - return "下线"; - } else { - return "参数错误"; - } - }}, - { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 200}, - { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 250, toolbar: '#tableBar'} - ]], - done: function(){ - matchingLanguage(); - } - }); - - table.on('tool(messageTable)', function (obj) { - var data = obj.data; - var layEvent = obj.event; - if (layEvent === 'edit') { // 编辑 - edit(data); - }else if (layEvent === 'delete'){ // 删除 - del(data); - }else if (layEvent === 'up') { // 上线 - up(data); - }else if (layEvent === 'down') { // 下线 - down(data); - } - }); - - // 新增 - $("body").on("click", "#addBean", function() { - _openNewWindows({ - url: "../../tpl/crmcustomerfrom/crmcustomerfromadd.html", - title: systemLanguage["com.skyeye.addPageTitle"][languageType], - pageId: "crmcustomerfromadd", - area: ['90vw', '90vh'], - callBack: function(refreshCode){ - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - }}); - }); - - // 编辑 - function edit(data){ - rowId = data.id; - _openNewWindows({ - url: "../../tpl/crmcustomerfrom/crmcustomerfromedit.html", - title: systemLanguage["com.skyeye.editPageTitle"][languageType], - pageId: "crmcustomerfromedit", - area: ['90vw', '90vh'], - callBack: function(refreshCode){ - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - }}); - } - - // 删除 - function del(data, obj){ - layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ - layer.close(index); - AjaxPostUtil.request({url: flowableBasePath + "crmcustomerfrom005", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) { - winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); - loadTable(); - }}); - }); - } - - // 上线 - function up(data, obj){ - var msg = obj ? '确认将【' + obj.data.typeName + '】上线吗?' : '确认将选中数据上线吗?'; - layer.confirm(msg, {icon: 3, title: '客户来源上线'}, function (index) { - layer.close(index); - AjaxPostUtil.request({url: flowableBasePath + "crmcustomerfrom006", params: {rowId: data.id}, type: 'json', callback: function (json) { - winui.window.msg("上线成功", {icon: 1, time: 2000}); - loadTable(); - }}); - }); - } - - // 下线 - function down(data, obj){ - var msg = obj ? '确认将【' + obj.data.typeName + '】下线吗?' : '确认将选中数据下线吗?'; - layer.confirm(msg, {icon: 3, title: '客户来源下线'}, function (index) { - layer.close(index); - AjaxPostUtil.request({url: flowableBasePath + "crmcustomerfrom007", params: {rowId: data.id}, type: 'json', callback: function (json) { - winui.window.msg("下线成功", {icon: 1, time: 2000}); - loadTable(); - }}); - }); - } - - form.render(); - form.on('submit(formSearch)', function (data) { - if (winui.verifyForm(data.elem)) { - table.reload("messageTable", {page: {curr: 1}, where: getTableParams()}); - } - return false; - }); - - // 刷新 - $("body").on("click", "#reloadTable", function() { - loadTable(); - }); - - function loadTable(){ - table.reload("messageTable", {where: getTableParams()}); - } - - function getTableParams(){ - return { - typeName: $("#typeName").val(), - state: $("#state").val() - }; - } - - exports('crmcustomerfromlist', {}); -}); \ No newline at end of file diff --git a/crm/src/main/resources/template/js/customermanage/customerChoose.js b/crm/src/main/resources/template/js/customermanage/customerChoose.js index 0273c08ba8fc67f91023876c834a568fc976b252..ce394a5c18896afe5016fd7d95803543ad1ed91c 100644 --- a/crm/src/main/resources/template/js/customermanage/customerChoose.js +++ b/crm/src/main/resources/template/js/customermanage/customerChoose.js @@ -17,11 +17,8 @@ layui.config({ // 客户分类 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerType"]["key"], 'select', "typeId", '', form); - // 获取已上线的客户来源类型 - sysCustomerUtil.queryCustomerFromIsUpList(function (data){ - $("#fromId").html(getDataUseHandlebars(selOption, data)); - form.render('select'); - }); + // 客户来源 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerFrom"]["key"], 'select', "fromId", '', form); // 获取已上线的客户所属行业列表 sysCustomerUtil.queryCrmCustomerIndustryIsUpList(function (data){ diff --git a/crm/src/main/resources/template/js/customermanage/customerInternationalList.js b/crm/src/main/resources/template/js/customermanage/customerInternationalList.js index 1f5975914de2497c7d802fc32edca023ac08d9ad..6e52941e1eea3137768c8da08cc91cb0913a75d8 100644 --- a/crm/src/main/resources/template/js/customermanage/customerInternationalList.js +++ b/crm/src/main/resources/template/js/customermanage/customerInternationalList.js @@ -15,11 +15,8 @@ layui.config({ // 客户分类 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerType"]["key"], 'select', "typeId", '', form); - // 获取已上线的客户来源类型 - sysCustomerUtil.queryCustomerFromIsUpList(function (data){ - $("#fromId").html(getDataUseHandlebars(selectOption, data)); - form.render('select'); - }); + // 客户来源 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerFrom"]["key"], 'select', "fromId", '', form); // 获取已上线的客户所属行业列表 sysCustomerUtil.queryCrmCustomerIndustryIsUpList(function (data){ diff --git a/crm/src/main/resources/template/js/customermanage/customeradd.js b/crm/src/main/resources/template/js/customermanage/customeradd.js index 6f4ea6a0ddd2ed6157293840d86b2cc706038e52..87114a4c3ac1237f435c6a4ee4d75162d516a773 100644 --- a/crm/src/main/resources/template/js/customermanage/customeradd.js +++ b/crm/src/main/resources/template/js/customermanage/customeradd.js @@ -18,11 +18,8 @@ layui.config({ // 客户分类 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerType"]["key"], 'select', "typeId", '', form); - // 获取已上线的客户来源类型 - sysCustomerUtil.queryCustomerFromIsUpList(function (data){ - $("#fromId").html(getDataUseHandlebars(selectMust, data)); - form.render('select'); - }); + // 客户来源 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerFrom"]["key"], 'select', "fromId", '', form); // 获取已上线的客户所属行业列表 sysCustomerUtil.queryCrmCustomerIndustryIsUpList(function (data){ diff --git a/crm/src/main/resources/template/js/customermanage/customeredit.js b/crm/src/main/resources/template/js/customermanage/customeredit.js index a72001b6e7848e77e6a891c0963f4af2f2ac3373..76a472f6d8fba9463195d5a838d5438610ebf12d 100644 --- a/crm/src/main/resources/template/js/customermanage/customeredit.js +++ b/crm/src/main/resources/template/js/customermanage/customeredit.js @@ -26,12 +26,8 @@ layui.config({ // 客户分类 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerType"]["key"], 'select', "typeId", json.bean.typeId, form); - // 获取已上线的客户来源类型 - sysCustomerUtil.queryCustomerFromIsUpList(function (data){ - $("#fromId").html(getDataUseHandlebars(selectMust, data)); - $("#fromId").val(json.bean.fromId); - form.render('select'); - }); + // 客户来源 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerFrom"]["key"], 'select', "fromId", json.bean.fromId, form); // 获取已上线的客户所属行业列表 sysCustomerUtil.queryCrmCustomerIndustryIsUpList(function (data){ diff --git a/crm/src/main/resources/template/js/customermanage/customerlist.js b/crm/src/main/resources/template/js/customermanage/customerlist.js index 2bb9a45a69469ea2a0094a70e31689cc5a3c7b7c..2222d23565baecc67fdfcbbb1182f5007928fa7c 100644 --- a/crm/src/main/resources/template/js/customermanage/customerlist.js +++ b/crm/src/main/resources/template/js/customermanage/customerlist.js @@ -18,11 +18,8 @@ layui.config({ // 客户分类 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerType"]["key"], 'select', "typeId", '', form); - // 获取已上线的客户来源类型 - sysCustomerUtil.queryCustomerFromIsUpList(function (data){ - $("#fromId").html(getDataUseHandlebars(selectOption, data)); - form.render('select'); - }); + // 客户来源 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerFrom"]["key"], 'select', "fromId", '', form); // 获取已上线的客户所属行业列表 sysCustomerUtil.queryCrmCustomerIndustryIsUpList(function (data){ diff --git a/crm/src/main/resources/template/js/customermanage/myConscientiousList.js b/crm/src/main/resources/template/js/customermanage/myConscientiousList.js index 809c7ff9cc9a5894fabfa26d4605191e34c0a29d..183abbefaf88b1d69aad5c7acce83e2897fc8d48 100644 --- a/crm/src/main/resources/template/js/customermanage/myConscientiousList.js +++ b/crm/src/main/resources/template/js/customermanage/myConscientiousList.js @@ -16,11 +16,8 @@ layui.config({ // 客户分类 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerType"]["key"], 'select', "typeId", '', form); - // 获取已上线的客户来源类型 - sysCustomerUtil.queryCustomerFromIsUpList(function (data){ - $("#fromId").html(getDataUseHandlebars(selectOption, data)); - form.render('select'); - }); + // 客户来源 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerFrom"]["key"], 'select', "fromId", '', form); // 获取已上线的客户所属行业列表 sysCustomerUtil.queryCrmCustomerIndustryIsUpList(function (data){ diff --git a/crm/src/main/resources/template/js/customermanage/myCreateList.js b/crm/src/main/resources/template/js/customermanage/myCreateList.js index 46647c441e47c68d5ee0a6e8306c42ac7d82b32e..bb38db7cc603723c45200fcb922e8c544026e8e9 100644 --- a/crm/src/main/resources/template/js/customermanage/myCreateList.js +++ b/crm/src/main/resources/template/js/customermanage/myCreateList.js @@ -18,11 +18,8 @@ layui.config({ // 客户分类 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerType"]["key"], 'select', "typeId", '', form); - // 获取已上线的客户来源类型 - sysCustomerUtil.queryCustomerFromIsUpList(function (data){ - $("#fromId").html(getDataUseHandlebars(selectOption, data)); - form.render('select'); - }); + // 客户来源 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["crmCustomerFrom"]["key"], 'select', "fromId", '', form); // 获取已上线的客户所属行业列表 sysCustomerUtil.queryCrmCustomerIndustryIsUpList(function (data){ diff --git a/crm/src/main/resources/template/tpl/crmcustomerfrom/crmcustomerfromadd.html b/crm/src/main/resources/template/tpl/crmcustomerfrom/crmcustomerfromadd.html deleted file mode 100644 index f7cbde698679f896324b2bb9db6118ca1c2bac1f..0000000000000000000000000000000000000000 --- a/crm/src/main/resources/template/tpl/crmcustomerfrom/crmcustomerfromadd.html +++ /dev/null @@ -1,32 +0,0 @@ - - -
- -