From 93e19db37522a377f1fc49a7b7a62626cd6949ad Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Fri, 30 Jun 2023 11:12:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=B9=B4=E6=A3=80=E6=89=98?= =?UTF-8?q?=E7=AE=A1=E5=88=B0=E8=A1=A8=E5=8D=95=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vehicleManageInspectionAdd.js | 77 ---------- .../vehicleManageInspectionDetails.js | 30 ---- .../vehicleManageInspectionEdit.js | 77 ---------- .../vehicleManageInspectionList.js | 139 ------------------ .../vehicleManageInspectionAdd.html | 81 ---------- .../vehicleManageInspectionDetails.html | 21 --- ...vehicleManageInspectionDetailsTemplate.tpl | 55 ------- .../vehicleManageInspectionEdit.html | 21 --- .../vehicleManageInspectionEditTemplate.tpl | 61 -------- .../vehicleManageInspectionList.html | 56 ------- 10 files changed, 618 deletions(-) delete mode 100644 admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionAdd.js delete mode 100644 admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionDetails.js delete mode 100644 admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionEdit.js delete mode 100644 admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionList.js delete mode 100644 admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionAdd.html delete mode 100644 admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionDetails.html delete mode 100644 admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionDetailsTemplate.tpl delete mode 100644 admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionEdit.html delete mode 100644 admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionEditTemplate.tpl delete mode 100644 admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionList.html diff --git a/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionAdd.js b/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionAdd.js deleted file mode 100644 index e5244af65..000000000 --- a/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionAdd.js +++ /dev/null @@ -1,77 +0,0 @@ - -// 车辆年检 -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui', 'fileUpload', 'tagEditor', 'laydate'], function (exports) { - winui.renderColor(); - layui.use(['form'], function (form) { - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$, - laydate = layui.laydate; - - // 获取当前登录员工信息 - systemCommonUtil.getSysCurrentLoginUserMation(function (data) { - var userName = data.bean.userName; - $("#inspectionTitle").html("车辆年检登记单-" + userName + "-" + (new Date()).getTime()) + Math.floor(Math.random() * 100); - }); - - // 查询所有的车牌号用于下拉选择框 - adminAssistantUtil.queryAllVehicleList(function (data) { - $("#licensePlate").html(getDataUseHandlebars(getFileContent('tpl/template/select-option-must.tpl'), data)); - form.render('select'); - }); - - // 本次年检时间 - laydate.render({elem: '#thisInspectionTime', type: 'date', trigger: 'click'}); - - // 下次年检时间 - laydate.render({elem: '#nextInspectionTime', type: 'date', trigger: 'click'}); - - skyeyeEnclosure.init('enclosureUpload'); - matchingLanguage(); - form.render(); - form.on('submit(formAddBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - inspectionTitle: $("#inspectionTitle").html(), - inspectionArea: $("#inspectionArea").val(), - contactInformation: $("#contactInformation").val(), - inspectionPrice: $("#inspectionPrice").val(), - thisInspectionTime: $("#thisInspectionTime").val(), - nextInspectionTime: $("#nextInspectionTime").val(), - roomAddDesc: $("#roomAddDesc").val(), - vehicleId: $("#licensePlate").val(), - enclosureInfo: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload') - }; - if(params.contactInformation != ""){ - var mobile = /^0?1[3|4|5|8][0-9]\d{8}$/, phone = /^0[\d]{2,3}-[\d]{7,8}$/; - var flag = mobile.test(params.contactInformation) || phone.test(params.contactInformation); - if(!flag){ - winui.window.msg('请输入正确的联系电话', {icon: 2, time: 2000}); - return false; - } - } - if(params.inspectionPrice != ""){ - var str = /^0{1}([.]\d{1,2})?$|^[1-9]\d*([.]{1}[0-9]{1,2})?$/; - var flag = str.test(params.inspectionPrice); - if(!flag){ - winui.window.msg('年检费用小数点后最多两位!', {icon: 2, time: 2000}); - return false; - } - } - AjaxPostUtil.request({url: flowableBasePath + "inspection002", 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/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionDetails.js b/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionDetails.js deleted file mode 100644 index faa94e8c3..000000000 --- a/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionDetails.js +++ /dev/null @@ -1,30 +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.$; - var reg = new RegExp("
", "g"); - - showGrid({ - id: "showForm", - url: flowableBasePath + "inspection006", - params: {rowId:parent.rowId}, - pagination: false, - template: getFileContent('tpl/vehicleManageInspection/vehicleManageInspectionDetailsTemplate.tpl'), - ajaxSendLoadBefore: function(hdb) { - }, - ajaxSendAfter:function (json) { - // 附件回显 - skyeyeEnclosure.showDetails({"enclosureUploadBtn": json.bean.enclosureInfo}); - matchingLanguage(); - } - }); - - }); -}); \ No newline at end of file diff --git a/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionEdit.js b/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionEdit.js deleted file mode 100644 index f8aa01870..000000000 --- a/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionEdit.js +++ /dev/null @@ -1,77 +0,0 @@ - -// 车辆年检 -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui', 'fileUpload', 'tagEditor', 'laydate'], function (exports) { - winui.renderColor(); - layui.use(['form'], function (form) { - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$, - laydate = layui.laydate; - - showGrid({ - id: "showForm", - url: flowableBasePath + "inspection004", - params: {rowId:parent.rowId}, - pagination: false, - template: getFileContent('tpl/vehicleManageInspection/vehicleManageInspectionEditTemplate.tpl'), - ajaxSendLoadBefore: function(hdb) { - }, - ajaxSendAfter:function (json) { - // 本次年检时间 - laydate.render({elem: '#thisInspectionTime', type: 'date', trigger: 'click'}); - - // 下次年检时间 - laydate.render({elem: '#nextInspectionTime', type: 'date', trigger: 'click'}); - - // 附件回显 - skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo}); - - matchingLanguage(); - form.render(); - form.on('submit(formEditBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - rowId: parent.rowId, - inspectionArea: $("#inspectionArea").val(), - contactInformation: $("#contactInformation").val(), - inspectionPrice: $("#inspectionPrice").val(), - thisInspectionTime: $("#thisInspectionTime").val(), - nextInspectionTime: $("#nextInspectionTime").val(), - roomAddDesc: $("#roomAddDesc").val(), - enclosureInfo: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload') - }; - if(params.contactInformation != ""){ - var mobile = /^0?1[3|4|5|8][0-9]\d{8}$/, phone = /^0[\d]{2,3}-[\d]{7,8}$/; - var flag = mobile.test(params.contactInformation) || phone.test(params.contactInformation); - if(!flag){ - winui.window.msg('请输入正确的联系电话', {icon: 2, time: 2000}); - return false; - } - } - if(params.inspectionPrice != ""){ - var str = /^0{1}([.]\d{1,2})?$|^[1-9]\d*([.]{1}[0-9]{1,2})?$/; - var flag = str.test(params.inspectionPrice); - if(!flag){ - winui.window.msg('年检费用小数点后最多两位!', {icon: 2, time: 2000}); - return false; - } - } - AjaxPostUtil.request({url: flowableBasePath + "inspection005", 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/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionList.js b/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionList.js deleted file mode 100644 index 0cdfc703f..000000000 --- a/admin-assistant/src/main/resources/template/js/vehicleManageInspection/vehicleManageInspectionList.js +++ /dev/null @@ -1,139 +0,0 @@ -var rowId = ""; - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'form', 'laydate'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form, - table = layui.table, - laydate = layui.laydate; - - // 新增车辆年检 - authBtn('1597470685417'); - - // 查询所有的车牌号用于下拉选择框 - adminAssistantUtil.queryAllVehicleList(function (data) { - $("#inspectionPlate").html(getDataUseHandlebars(getFileContent('tpl/template/select-option.tpl'), data)); - form.render('select'); - }); - - showInspectionList(); - // 年检管理开始 - function showInspectionList(){ - table.render({ - id: 'inspectionTable', - elem: '#inspectionTable', - method: 'post', - url: flowableBasePath + "inspection001", - where: getTableParams(), - even: true, - page: true, - limits: getLimits(), - limit: getLimit(), - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'inspectionTitle', title: '主题', align: 'left', width: 300, templet: function (d) { - return '' + d.inspectionTitle + ''; - }}, - { field: 'licensePlate', title: '车牌号', align: 'center', width: 120}, - { field: 'thisInspectionTime', title: '本次年检时间', align: 'center', width: 150 }, - { field: 'nextInspectionTime', title: '下次年检时间', align: 'center', width: 150 }, - { field: 'inspectionPrice', title: '年检费用(元)', width: 120}, - { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#inspectiontableBar'} - ]], - done: function(json) { - matchingLanguage(); - } - }); - } - - table.on('tool(inspectionTable)', function (obj) { - var data = obj.data; - var layEvent = obj.event; - if (layEvent === 'inspectiondetails') { //详情 - inspectiondetails(data); - } else if (layEvent === 'inspectiondelet'){ //删除 - inspectiondelet(data); - } else if (layEvent === 'inspectionedit'){ //编辑 - inspectionedit(data); - } - }); - - form.render(); - - // 年检信息详情 - function inspectiondetails(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/vehicleManageInspection/vehicleManageInspectionDetails.html", - title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], - pageId: "vehicleManageInspectionDetails", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - }}); - } - - // 删除年检信息 - function inspectiondelet(data) { - layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { - layer.close(index); - AjaxPostUtil.request({url: flowableBasePath + "inspection003", params: {rowId: data.id}, type: 'json', callback: function (json) { - winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); - loadInspectionTable(); - }}); - }); - } - - // 登记年检信息 - $("body").on("click", "#addInspectionBean", function() { - _openNewWindows({ - url: "../../tpl/vehicleManageInspection/vehicleManageInspectionAdd.html", - title: "车辆年检登记单", - pageId: "vehicleManageInspectionAdd", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadInspectionTable(); - }}); - }); - - // 编辑年检信息 - function inspectionedit(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/vehicleManageInspection/vehicleManageInspectionEdit.html", - title: "编辑车辆年检信息", - pageId: "vehicleManageInspectionEdit", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadInspectionTable(); - }}); - } - - // 搜索表单 - $("body").on("click", "#inspectionformSearch", function() { - table.reloadData("inspectionTable", {page: {curr: 1}, where: getTableParams()}); - }); - - $("body").on("click", "#reloadInspectionTable", function() { - loadInspectionTable(); - }); - - function loadInspectionTable(){ - table.reloadData("inspectionTable", {where: getTableParams()}); - } - - function getTableParams() { - return { - inspectionTitle: $("#inspectionTitle").val(), - inspectionPlate: $("#inspectionPlate").val() - }; - } - - exports('vehicleManageInspectionList', {}); -}); diff --git a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionAdd.html b/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionAdd.html deleted file mode 100644 index 30d903e9f..000000000 --- a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionAdd.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
-
-
-
- - -
-
-
-
- - - - - \ No newline at end of file diff --git a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionDetails.html b/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionDetails.html deleted file mode 100644 index d330fbd4b..000000000 --- a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionDetails.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - -
-
- -
-
- - - - - \ No newline at end of file diff --git a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionDetailsTemplate.tpl b/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionDetailsTemplate.tpl deleted file mode 100644 index 235afd5a6..000000000 --- a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionDetailsTemplate.tpl +++ /dev/null @@ -1,55 +0,0 @@ -{{#bean}} -
- -
- {{inspectionTitle}} -
-
-
- -
- {{licensePlate}} -
-
-
- -
- {{inspectionArea}} -
-
-
- -
- {{contactInformation}} -
-
-
- -
- {{inspectionPrice}} -
-
-
- -
- {{thisInspectionTime}} -
-
-
- -
- {{nextInspectionTime}} -
-
-
- -
- {{roomAddDesc}} -
-
-
- -
-
-
-{{/bean}} \ No newline at end of file diff --git a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionEdit.html b/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionEdit.html deleted file mode 100644 index 863531d8a..000000000 --- a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionEdit.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - -
-
- -
-
- - - - - \ No newline at end of file diff --git a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionEditTemplate.tpl b/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionEditTemplate.tpl deleted file mode 100644 index 28330de5d..000000000 --- a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionEditTemplate.tpl +++ /dev/null @@ -1,61 +0,0 @@ -{{#bean}} -
- -
- {{inspectionTitle}} -
-
-
- -
- {{licensePlate}} -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
-
-
-
- - -
-
-{{/bean}} \ No newline at end of file diff --git a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionList.html b/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionList.html deleted file mode 100644 index 859dda520..000000000 --- a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionList.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - -
-
-
-
-
- -
- -
- -
- -
- - -
-
-
-
-
-
- - -
-
-
-
- -
-
- - - - - \ No newline at end of file -- GitLab