From be5caa8a595cdb26fd0622a16bf7a636fd45c6ee Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Sun, 10 Jul 2022 12:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90AMS=E3=80=91=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=B4=A7=E6=80=A5=E7=A8=8B=E5=BA=A6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/sealseservice/sealseserviceadd.js | 17 +-- .../js/sealseservice/sealseserviceedit.js | 46 ++---- .../sealseserviceurgencyadd.js | 32 ---- .../sealseserviceurgencyedit.js | 45 ------ .../sealseserviceurgencylist.js | 141 ------------------ .../sealseserviceurgencyadd.html | 32 ---- .../sealseserviceurgencyedit.html | 21 --- .../sealseserviceurgencyeditTemplate.tpl | 14 -- .../sealseserviceurgencylist.html | 70 --------- .../resources/template/json/sysDictData.json | 3 +- 10 files changed, 16 insertions(+), 405 deletions(-) delete mode 100644 seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencyadd.js delete mode 100644 seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencyedit.js delete mode 100644 seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencylist.js delete mode 100644 seal-service/src/main/resources/template/tpl/sealseserviceurgency/sealseserviceurgencyadd.html delete mode 100644 seal-service/src/main/resources/template/tpl/sealseserviceurgency/sealseserviceurgencyedit.html delete mode 100644 seal-service/src/main/resources/template/tpl/sealseserviceurgency/sealseserviceurgencyeditTemplate.tpl delete mode 100644 seal-service/src/main/resources/template/tpl/sealseserviceurgency/sealseserviceurgencylist.html diff --git a/seal-service/src/main/resources/template/js/sealseservice/sealseserviceadd.js b/seal-service/src/main/resources/template/js/sealseservice/sealseserviceadd.js index da7bbb8d3..3a3575ab9 100644 --- a/seal-service/src/main/resources/template/js/sealseservice/sealseserviceadd.js +++ b/seal-service/src/main/resources/template/js/sealseservice/sealseserviceadd.js @@ -35,21 +35,8 @@ layui.config({ // 售后服务类型 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["amsServiceType"]["key"], 'select', "typeId", '', form); - urgencyId(); - //紧急程度 - function urgencyId(){ - showGrid({ - id: "urgencyId", - url: flowableBasePath + "sealseserviceurgency008", - params: {}, - pagination: false, - template: getFileContent('tpl/template/select-option.tpl'), - ajaxSendLoadBefore: function(hdb){ - }, - ajaxSendAfter:function (json) { - } - }); - } + // 工单紧急程度 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["amsServiceUrgency"]["key"], 'select', "urgencyId", '', form); // 售后服务方式 sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["amsServiceMode"]["key"], 'select', "modeId", '', form); diff --git a/seal-service/src/main/resources/template/js/sealseservice/sealseserviceedit.js b/seal-service/src/main/resources/template/js/sealseservice/sealseserviceedit.js index b2ea45bf2..aa35b9813 100644 --- a/seal-service/src/main/resources/template/js/sealseservice/sealseserviceedit.js +++ b/seal-service/src/main/resources/template/js/sealseservice/sealseserviceedit.js @@ -49,8 +49,18 @@ layui.config({ customerMation.id = json.bean.customerId; customerMation.customName = json.bean.customerName; $("#customName").val(customerMation.customName); - - typeId(json); + + // 售后服务类型 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["amsServiceType"]["key"], 'select', "typeId", json.bean.typeId, form); + + // 工单紧急程度 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["amsServiceUrgency"]["key"], 'select', "urgencyId", json.bean.urgencyId, form); + + // 售后服务方式 + sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["amsServiceMode"]["key"], 'select', "modeId", json.bean.modeId, form); + + // 加载省级行政区划 + initArea(json.bean); //工单接收人 if(json.bean.serviceUserId.length > 0){ @@ -139,38 +149,6 @@ layui.config({ }); } }); - - // 服务类型 - function typeId(json){ - // 售后服务类型 - sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["amsServiceType"]["key"], 'select', "typeId", json.bean.typeId, form); - urgencyId(json); - } - - //紧急程度 - function urgencyId(json){ - showGrid({ - id: "urgencyId", - url: flowableBasePath + "sealseserviceurgency008", - params: {}, - pagination: false, - template: getFileContent('tpl/template/select-option.tpl'), - ajaxSendLoadBefore: function(hdb){ - }, - ajaxSendAfter:function (d) { - $("#urgencyId").val(json.bean.urgencyId); - modeId(json); - } - }); - } - - // 服务处理方式 - function modeId(json){ - // 售后服务方式 - sysDictDataUtil.showDictDataListByDictTypeCode(sysDictData["amsServiceMode"]["key"], 'select', "modeId", json.bean.modeId, form); - // 加载省级行政区划 - initArea(json.bean); - } //工单接收人选择 $("body").on("click", "#serviceUserIdSelPeople", function (e) { diff --git a/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencyadd.js b/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencyadd.js deleted file mode 100644 index c21b8b316..000000000 --- a/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencyadd.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 + "sealseserviceurgency002", 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/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencyedit.js b/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencyedit.js deleted file mode 100644 index c541243f4..000000000 --- a/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencyedit.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 + "sealseserviceurgency003", - params: {rowId: parent.rowId}, - pagination: false, - template: getFileContent('tpl/sealseserviceurgency/sealseserviceurgencyeditTemplate.tpl'), - ajaxSendLoadBefore: function(hdb){ - }, - ajaxSendAfter: function (json) { - - matchingLanguage(); - form.render(); - form.on('submit(formEditBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - rowId: parent.rowId, - typeName: $("#typeName").val() - }; - AjaxPostUtil.request({url: flowableBasePath + "sealseserviceurgency004", 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/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencylist.js b/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencylist.js deleted file mode 100644 index ba20897ad..000000000 --- a/seal-service/src/main/resources/template/js/sealseserviceurgency/sealseserviceurgencylist.js +++ /dev/null @@ -1,141 +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('1576205926050'); - table.render({ - id: 'messageTable', - elem: '#messageTable', - method: 'post', - url: flowableBasePath + 'sealseserviceurgency001', - where: {typeName: $("#typeName").val(), state: $("#state").val()}, - even: true, - page: true, - limits: [8, 16, 24, 32, 40, 48, 56], - limit: 8, - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, - { field: 'typeName', title: '类型名称', align: 'center', width: 120 }, - { 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); - } - }); - - form.render(); - - $("body").on("click", "#formSearch", function() { - refreshTable(); - }); - - $("body").on("click", "#reloadTable", function() { - loadTable(); - }); - - function loadTable(){ - table.reload("messageTable", {where: {typeName: $("#typeName").val(), state: $("#state").val()}}); - } - - function refreshTable(){ - table.reload("messageTable", {page: {curr: 1}, where: {typeName: $("#typeName").val(), state: $("#state").val()}}); - } - - //新增 - $("body").on("click", "#addBean", function() { - _openNewWindows({ - url: "../../tpl/sealseserviceurgency/sealseserviceurgencyadd.html", - title: systemLanguage["com.skyeye.addPageTitle"][languageType], - pageId: "sealseserviceurgencyadd", - 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/sealseserviceurgency/sealseserviceurgencyedit.html", - title: systemLanguage["com.skyeye.editPageTitle"][languageType], - pageId: "sealseserviceurgencyedit", - 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 + "sealseserviceurgency005", params: {rowId: data.id}, type: 'json', 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 + "sealseserviceurgency006", 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 + "sealseserviceurgency007", params: {rowId: data.id}, type: 'json', callback: function (json) { - winui.window.msg("下线成功", {icon: 1, time: 2000}); - loadTable(); - }}); - }); - } - - exports('sealseserviceurgencylist', {}); -}); \ No newline at end of file diff --git a/seal-service/src/main/resources/template/tpl/sealseserviceurgency/sealseserviceurgencyadd.html b/seal-service/src/main/resources/template/tpl/sealseserviceurgency/sealseserviceurgencyadd.html deleted file mode 100644 index d89cb13d0..000000000 --- a/seal-service/src/main/resources/template/tpl/sealseserviceurgency/sealseserviceurgencyadd.html +++ /dev/null @@ -1,32 +0,0 @@ - - -
- -