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 e5244af652a958b2915653a6312f97703868c2b9..0000000000000000000000000000000000000000
--- 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 faa94e8c311d8cc6f9cde0b0ec1dd94b6c7fbbcb..0000000000000000000000000000000000000000
--- 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 f8aa01870724d880f22267cf0802e5d91437ecdf..0000000000000000000000000000000000000000
--- 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 0cdfc703f41067d180cc7419384e1b28483e6fe3..0000000000000000000000000000000000000000
--- 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 30d903e9f492c5b27e0055dbc20514d318fc475f..0000000000000000000000000000000000000000
--- a/admin-assistant/src/main/resources/template/tpl/vehicleManageInspection/vehicleManageInspectionAdd.html
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-