diff --git a/activiti/src/main/resources/template/js/myActiviti/initiatedProcess.js b/activiti/src/main/resources/template/js/myActiviti/initiatedProcess.js
index 8c8abcb5af59736e8750a49ecf3ff2f40b2e5095..41175424c94fb31c05d68ebddd68890adedde3ae 100644
--- a/activiti/src/main/resources/template/js/myActiviti/initiatedProcess.js
+++ b/activiti/src/main/resources/template/js/myActiviti/initiatedProcess.js
@@ -76,49 +76,13 @@ layui.config({
table.on('tool(messageMyStartTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
- if (layEvent === 'edit') { //编辑
- edit(data);
- } else if (layEvent === 'details') { //详情
+ if (layEvent === 'details') { //详情
activitiUtil.activitiDetails(data);
- } else if (layEvent === 'revoke') { //撤销
- revoke(data);
} else if (layEvent === 'refreshPic') { //刷新流程图
refreshPic(data);
}
});
- //编辑
- function edit(data) {
- sequenceId = data.sequenceId;
- taskId = data.id;
- processInstanceId = data.processInstanceId;
- rowId = data.dataId;
- _openNewWindows({
- url: data.editPageUrl,
- title: systemLanguage["com.skyeye.editPageTitle"][languageType],
- pageId: "myactivitiedit",
- area: ['90vw', '90vh'],
- callBack: function (refreshCode) {
- winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
- }
- });
- }
-
- //撤销
- function revoke(data) {
- if(isNull(data.revokeMapping)){//撤销接口为空
- winui.window.msg('撤销接口调用失败', {icon: 2, time: 2000});
- return false;
- }
- layer.confirm('确定撤销该流程吗?', { icon: 3, title: '撤销操作' }, function (index) {
- layer.close(index);
- AjaxPostUtil.request({url: flowableBasePath + data.revokeMapping, params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
- winui.window.msg("撤销成功", {icon: 1, time: 2000});
- reloadMyStartTable();
- }});
- });
- }
-
//刷新流程图
function refreshPic(data) {
layer.confirm('确认重新生成流程图吗?', { icon: 3, title: '刷新流程图操作' }, function (i) {
diff --git a/activiti/src/main/resources/template/js/myActiviti/pendingProcess.js b/activiti/src/main/resources/template/js/myActiviti/pendingProcess.js
index 4e10c7c24850748e826fcc867ff421f23a7e0e66..ff1e8d4c8814ad2d0864cbd048e2abdf495dfc8c 100644
--- a/activiti/src/main/resources/template/js/myActiviti/pendingProcess.js
+++ b/activiti/src/main/resources/template/js/myActiviti/pendingProcess.js
@@ -33,7 +33,7 @@ layui.config({
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'processInstanceId', title: '流程ID', width: 280, templet: function (d) {
- return '' + d.processInstanceId + '';
+ return '' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'taskType', title: '类型', width: 150, templet: function (d) {
return d.processMation.title;
diff --git a/activiti/src/main/resources/template/tpl/myActiviti/initiatedProcess.html b/activiti/src/main/resources/template/tpl/myActiviti/initiatedProcess.html
index 2778d3819fa54a6b9d6993573040c3fc34ac3a1b..cdeeddf177d9eaab023c818275a3e60797949ec7 100644
--- a/activiti/src/main/resources/template/tpl/myActiviti/initiatedProcess.html
+++ b/activiti/src/main/resources/template/tpl/myActiviti/initiatedProcess.html
@@ -33,10 +33,6 @@
diff --git a/admin-assistant/src/main/resources/template/js/assetArticlesPurchase/assetArticlesPurchaseList.js b/admin-assistant/src/main/resources/template/js/assetArticlesPurchase/assetArticlesPurchaseList.js
index 763c461723105e8c2571c51c9bc0c534627e3d35..79033542a1b21f7c686730092ee68b416849693a 100644
--- a/admin-assistant/src/main/resources/template/js/assetArticlesPurchase/assetArticlesPurchaseList.js
+++ b/admin-assistant/src/main/resources/template/js/assetArticlesPurchase/assetArticlesPurchaseList.js
@@ -31,7 +31,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 100, templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/assetArticlesUse/assetArticlesUseList.js b/admin-assistant/src/main/resources/template/js/assetArticlesUse/assetArticlesUseList.js
index 6ca3bf4487e63742fd13f2038fcda0892eaa3cbc..11922a094e4c6b77224b04858f7c591ac96c71ab 100644
--- a/admin-assistant/src/main/resources/template/js/assetArticlesUse/assetArticlesUseList.js
+++ b/admin-assistant/src/main/resources/template/js/assetArticlesUse/assetArticlesUseList.js
@@ -31,7 +31,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/assetManage/assetManageChoose.js b/admin-assistant/src/main/resources/template/js/assetManage/assetManageChoose.js
index ae4b9b074418ac61f340c9162d5c866aeabb1112..1f06b62ccb3fd48f69e571cbb4fa69336297cab3 100644
--- a/admin-assistant/src/main/resources/template/js/assetManage/assetManageChoose.js
+++ b/admin-assistant/src/main/resources/template/js/assetManage/assetManageChoose.js
@@ -138,7 +138,6 @@ layui.config({
});
form.render();
-
$("body").on("click", "#reloadTable", function() {
loadTable();
});
diff --git a/admin-assistant/src/main/resources/template/js/assetManagePurchase/assetManagePurchaseList.js b/admin-assistant/src/main/resources/template/js/assetManagePurchase/assetManagePurchaseList.js
index 568944727e7188f1a08a41ffec70cc682c1b5f00..d0f09afa07df02d22a673c874cac54574fedc9bb 100644
--- a/admin-assistant/src/main/resources/template/js/assetManagePurchase/assetManagePurchaseList.js
+++ b/admin-assistant/src/main/resources/template/js/assetManagePurchase/assetManagePurchaseList.js
@@ -32,7 +32,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 100, templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/assetManageReturn/assetManageReturnList.js b/admin-assistant/src/main/resources/template/js/assetManageReturn/assetManageReturnList.js
index c3c6a16a69e365a4f05da2ae535784cb4d5411ff..4ffea078f7d6655d4a883b12d988c2b957746338 100644
--- a/admin-assistant/src/main/resources/template/js/assetManageReturn/assetManageReturnList.js
+++ b/admin-assistant/src/main/resources/template/js/assetManageReturn/assetManageReturnList.js
@@ -32,7 +32,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/assetManageUse/assetManageUseList.js b/admin-assistant/src/main/resources/template/js/assetManageUse/assetManageUseList.js
index 8a977b4f578db49a1c328e1e3bd91c2f7013cd04..adab5381d8ebe1fe46e0d48025926b3d1cb58467 100644
--- a/admin-assistant/src/main/resources/template/js/assetManageUse/assetManageUseList.js
+++ b/admin-assistant/src/main/resources/template/js/assetManageUse/assetManageUseList.js
@@ -32,7 +32,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportList.js b/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportList.js
index 590aa544c6f617c57eb431b6211b8fd3b11d0198..3064aecd374a50945d3ca964bfd4c01663d4d9ca 100644
--- a/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportList.js
+++ b/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportList.js
@@ -37,10 +37,10 @@ layui.config({
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("assetReportState", 'id', d.state, 'name');
}},
{ field: 'assetAdminMation', title: '管理员', width: 120, templet: function(d) {
- return isNull(d.assetAdminMation) ? '' : d.assetAdminMation.name;
+ return getNotUndefinedVal(d.assetAdminMation?.name);
}},
{ field: 'useUserMation', title: '申领人', width: 120, templet: function(d) {
- return isNull(d.useUserMation) ? '' : d.useUserMation.name;
+ return getNotUndefinedVal(d.useUserMation?.name);
}},
{ field: 'storageArea', title: '存放区域', width: 140 },
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
diff --git a/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportMyUseChoose.js b/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportMyUseChoose.js
index ea8c069a2ded4f3b218aecad03f8b975db87f60e..d3f1ae227d6d9401cb728aacbe0e034caffb5edc 100644
--- a/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportMyUseChoose.js
+++ b/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportMyUseChoose.js
@@ -59,7 +59,7 @@ layui.config({
{ field: 'assetNum', title: '资产编号', align: 'left', width: 150 },
{ field: 'specifications', title: '资产规格', align: 'left', width: 120 },
{ field: 'assetAdminMation', title: '管理员', width: 120, templet: function(d) {
- return isNull(d.assetAdminMation) ? '' : d.assetAdminMation.name;
+ return getNotUndefinedVal(d.assetAdminMation?.name);
}},
{ field: 'createTime', title: '申领时间', align: 'center', width: 150 },
]],
diff --git a/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportUnUseChoose.js b/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportUnUseChoose.js
index 52f1ef0d9b6a4258af4081dcaffbe2810ff66312..f051080a575f33ff42f5a0308d2d0720b62c7e49 100644
--- a/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportUnUseChoose.js
+++ b/admin-assistant/src/main/resources/template/js/assetReportManage/assetReportUnUseChoose.js
@@ -59,7 +59,7 @@ layui.config({
{ field: 'assetNum', title: '资产编号', width: 160 },
{ field: 'storageArea', title: '存放区域', width: 200 },
{ field: 'assetAdminMation', title: '管理员', width: 120, templet: function(d) {
- return isNull(d.assetAdminMation) ? '' : d.assetAdminMation.name;
+ return getNotUndefinedVal(d.assetAdminMation?.name);
}},
]],
done: function(res) {
diff --git a/admin-assistant/src/main/resources/template/js/conFerenceRoomReserve/conFerenceRoomReserveList.js b/admin-assistant/src/main/resources/template/js/conFerenceRoomReserve/conFerenceRoomReserveList.js
index 5c9881bdded6811378d7b270b8f23307ba7a9d33..ed057b8b0471b9eed242e7bd14cd59cf2e5f7b9d 100644
--- a/admin-assistant/src/main/resources/template/js/conFerenceRoomReserve/conFerenceRoomReserveList.js
+++ b/admin-assistant/src/main/resources/template/js/conFerenceRoomReserve/conFerenceRoomReserveList.js
@@ -32,7 +32,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/gw/gwDocumentSeeList.js b/admin-assistant/src/main/resources/template/js/gw/gwDocumentSeeList.js
new file mode 100644
index 0000000000000000000000000000000000000000..91fb4504e5ffd050cefe6c804fcf7eb6a2e8ecb8
--- /dev/null
+++ b/admin-assistant/src/main/resources/template/js/gw/gwDocumentSeeList.js
@@ -0,0 +1,70 @@
+
+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;
+
+ // 加载列表数据权限
+ loadAuthBtnGroup('messageTable', '1714464811697');
+
+ table.render({
+ id: 'messageTable',
+ elem: '#messageTable',
+ method: 'post',
+ url: sysMainMation.admBasePath + 'queryGwSendDocumentList',
+ where: getTableParams(),
+ even: true,
+ page: true,
+ limits: getLimits(),
+ limit: getLimit(),
+ cols: [[
+ { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
+ { field: 'title', title: '标题', width: 300 },
+ { field: 'sendDepartmentMation', title: '发文部门', width: 150, templet: function (d) {
+ return getNotUndefinedVal(d.sendDepartmentMation?.name);
+ }},
+ { field: 'year', title: '年份', align: 'center', width: 100 },
+ { field: 'number', title: '第几号文', align: 'center', width: 100 },
+ { field: 'enterprise', title: '企字', align: 'center', width: 100 },
+ { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
+ { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#messageTableBar' }
+ ]],
+ done: function(json) {
+ matchingLanguage();
+ initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入标题", function () {
+ table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
+ });
+ }
+ });
+
+ // 操作事件
+ table.on('tool(messageTable)', function (obj) {
+ var data = obj.data;
+ var layEvent = obj.event;
+ if (layEvent === 'preview') {//预览
+ systemCommonUtil.showPicImg(systemCommonUtil.getFilePath(data.picPath));
+ } else if (layEvent === 'download') {//下载
+ download(fileBasePath + data.path, data.title);
+ }
+ });
+
+ form.render();
+ $("body").on("click", "#reloadTable", function() {
+ loadTable();
+ });
+ function loadTable() {
+ table.reloadData("messageTable", {where: getTableParams()});
+ }
+
+ function getTableParams() {
+ return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
+ }
+
+ exports('gwDocumentSeeList', {});
+});
diff --git a/admin-assistant/src/main/resources/template/js/gw/gwReceiveDocumentList.js b/admin-assistant/src/main/resources/template/js/gw/gwReceiveDocumentList.js
new file mode 100644
index 0000000000000000000000000000000000000000..dba432112c32cc674db563f6bfdb807bfd5cf4d0
--- /dev/null
+++ b/admin-assistant/src/main/resources/template/js/gw/gwReceiveDocumentList.js
@@ -0,0 +1,179 @@
+
+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;
+ var serviceClassName = sysServiceMation["gwReceiveDocumentService"]["key"];
+
+ authBtn('1714142882792');
+
+ table.render({
+ id: 'messageTable',
+ elem: '#messageTable',
+ method: 'post',
+ url: sysMainMation.admBasePath + 'queryGwReceiveDocumentList',
+ where: getTableParams(),
+ even: true,
+ page: true,
+ limits: getLimits(),
+ limit: getLimit(),
+ cols: [[
+ { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
+ { field: 'oddNumber', title: '单号', width: 200, align: 'center', templet: function (d) {
+ return '
' + d.oddNumber + '';
+ }},
+ { field: 'title', title: '标题', width: 300 },
+ { field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
+ }},
+ { field: 'secret', title: '密集级别', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("gwDocumentSecret", 'id', d.secret, 'name');
+ }},
+ { field: 'period', title: '保密期间', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("gwDocumentPeriod", 'id', d.period, 'name');
+ }},
+ { field: 'urgency', title: '紧急程度', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("gwDocumentUrgency", 'id', d.urgency, 'name');
+ }},
+ { field: 'openCategory', title: '公开类别', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("gwDocumentOpenCategory", 'id', d.openCategory, 'name');
+ }},
+ { field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
+ }},
+ { field: 'year', title: '年份', align: 'center', width: 100 },
+ { field: 'number', title: '第几号文', align: 'center', width: 100 },
+ { field: 'enterprise', title: '企字', align: 'center', width: 100 },
+ { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
+ { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
+ { field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
+ { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
+ { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 200, toolbar: '#messageTableBar' }
+ ]],
+ done: function(json) {
+ matchingLanguage();
+ initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入单号,标题", function () {
+ table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
+ });
+ }
+ });
+
+ // 操作事件
+ table.on('tool(messageTable)', function (obj) {
+ var data = obj.data;
+ var layEvent = obj.event;
+ if (layEvent === 'details') { //详情
+ details(data);
+ } else if (layEvent === 'processDetails') { //流程详情
+ activitiUtil.activitiDetails(data);
+ } else if (layEvent === 'edit') { //编辑
+ edit(data);
+ } else if (layEvent === 'subApproval') { //提交审批
+ subApproval(data);
+ } else if (layEvent === 'cancellation') {//作废
+ cancellation(data);
+ } else if (layEvent === 'revoke') {//撤销
+ revoke(data);
+ }
+ });
+
+ // 撤销
+ function revoke(data) {
+ var msg = '确认撤销该申请吗?';
+ layer.confirm(msg, { icon: 3, title: '撤销操作'}, function (index) {
+ layer.close(index);
+ AjaxPostUtil.request({url: sysMainMation.admBasePath + "revokeGwReceiveDocument", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
+ winui.window.msg("提交成功", {icon: 1, time: 2000});
+ loadTable();
+ }});
+ });
+ }
+
+ // 编辑
+ function edit(data) {
+ _openNewWindows({
+ url: systemCommonUtil.getUrl('FP2024042700006&id=' + data.id, null),
+ title: "外部收文申请",
+ pageId: "gwDocumentEdit",
+ area: ['90vw', '90vh'],
+ callBack: function (refreshCode) {
+ winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
+ loadTable();
+ }
+ });
+ }
+
+ // 提交审批
+ function subApproval(data) {
+ layer.confirm(systemLanguage["com.skyeye.approvalOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.approvalOperation"][languageType]}, function (index) {
+ layer.close(index);
+ activitiUtil.startProcess(serviceClassName, null, function (approvalId) {
+ var params = {
+ id: data.id,
+ approvalId: approvalId
+ };
+ AjaxPostUtil.request({url: sysMainMation.admBasePath + "submitGwReceiveDocumentToApproval", params: params, type: 'json', method: "POST", callback: function (json) {
+ winui.window.msg("提交成功", {icon: 1, time: 2000});
+ loadTable();
+ }});
+ });
+ });
+ }
+
+ // 作废
+ function cancellation(data) {
+ var msg = '确认作废该申请吗?';
+ layer.confirm(msg, { icon: 3, title: '作废操作' }, function (index) {
+ layer.close(index);
+ AjaxPostUtil.request({url: sysMainMation.admBasePath + "invalidGwReceiveDocument", params: {id: data.id}, type: 'json', method: "POST", callback: function (json) {
+ winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
+ loadTable();
+ }});
+ });
+ }
+
+ // 详情
+ function details(data) {
+ _openNewWindows({
+ url: systemCommonUtil.getUrl('FP2024042700007&id=' + data.id, null),
+ title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
+ pageId: "gwDocumentDetails",
+ area: ['90vw', '90vh'],
+ callBack: function (refreshCode) {
+ }
+ });
+ }
+
+ // 添加
+ $("body").on("click", "#addBean", function() {
+ _openNewWindows({
+ url: systemCommonUtil.getUrl('FP2024042700005', null),
+ title: "外部收文申请",
+ pageId: "gwDocumentAdd",
+ area: ['90vw', '90vh'],
+ callBack: function (refreshCode) {
+ winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
+ loadTable();
+ }});
+ });
+
+ form.render();
+ $("body").on("click", "#reloadTable", function() {
+ loadTable();
+ });
+ function loadTable() {
+ table.reloadData("messageTable", {where: getTableParams()});
+ }
+
+ function getTableParams() {
+ return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
+ }
+
+ exports('gwReceiveDocumentList', {});
+});
diff --git a/admin-assistant/src/main/resources/template/js/gw/gwSendDocumentList.js b/admin-assistant/src/main/resources/template/js/gw/gwSendDocumentList.js
new file mode 100644
index 0000000000000000000000000000000000000000..a36cd14e9f8a2102a6ea7f488996366a2ceb835d
--- /dev/null
+++ b/admin-assistant/src/main/resources/template/js/gw/gwSendDocumentList.js
@@ -0,0 +1,186 @@
+
+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;
+ var serviceClassName = sysServiceMation["gwSendDocumentService"]["key"];
+
+ authBtn('1714130289379');
+
+ // 加载列表数据权限
+ loadAuthBtnGroup('messageTable', '1714130296761');
+
+ table.render({
+ id: 'messageTable',
+ elem: '#messageTable',
+ method: 'post',
+ url: sysMainMation.admBasePath + 'queryGwSendDocumentList',
+ where: getTableParams(),
+ even: true,
+ page: true,
+ limits: getLimits(),
+ limit: getLimit(),
+ cols: [[
+ { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
+ { field: 'oddNumber', title: '单号', width: 200, align: 'center', templet: function (d) {
+ return '
' + d.oddNumber + '';
+ }},
+ { field: 'title', title: '标题', width: 300 },
+ { field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
+ }},
+ { field: 'secret', title: '密集级别', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("gwDocumentSecret", 'id', d.secret, 'name');
+ }},
+ { field: 'period', title: '保密期间', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("gwDocumentPeriod", 'id', d.period, 'name');
+ }},
+ { field: 'urgency', title: '紧急程度', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("gwDocumentUrgency", 'id', d.urgency, 'name');
+ }},
+ { field: 'openCategory', title: '公开类别', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("gwDocumentOpenCategory", 'id', d.openCategory, 'name');
+ }},
+ { field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
+ return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
+ }},
+ { field: 'year', title: '年份', align: 'center', width: 100 },
+ { field: 'number', title: '第几号文', align: 'center', width: 100 },
+ { field: 'enterprise', title: '企字', align: 'center', width: 100 },
+ { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
+ { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
+ { field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
+ { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
+ { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 280, toolbar: '#messageTableBar' }
+ ]],
+ done: function(json) {
+ matchingLanguage();
+ initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入单号,标题", function () {
+ table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
+ });
+ }
+ });
+
+ // 操作事件
+ table.on('tool(messageTable)', function (obj) {
+ var data = obj.data;
+ var layEvent = obj.event;
+ if (layEvent === 'details') { //详情
+ details(data);
+ } else if (layEvent === 'processDetails') { //流程详情
+ activitiUtil.activitiDetails(data);
+ } else if (layEvent === 'edit') { //编辑
+ edit(data);
+ } else if (layEvent === 'subApproval') { //提交审批
+ subApproval(data);
+ } else if (layEvent === 'cancellation') {//作废
+ cancellation(data);
+ } else if (layEvent === 'revoke') {//撤销
+ revoke(data);
+ } else if (layEvent === 'preview') {//预览
+ systemCommonUtil.showPicImg(systemCommonUtil.getFilePath(data.picPath));
+ } else if (layEvent === 'download') {//下载
+ download(fileBasePath + data.path, data.title);
+ }
+ });
+
+ // 撤销
+ function revoke(data) {
+ var msg = '确认撤销该申请吗?';
+ layer.confirm(msg, { icon: 3, title: '撤销操作'}, function (index) {
+ layer.close(index);
+ AjaxPostUtil.request({url: sysMainMation.admBasePath + "revokeGwSendDocument", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
+ winui.window.msg("提交成功", {icon: 1, time: 2000});
+ loadTable();
+ }});
+ });
+ }
+
+ // 编辑
+ function edit(data) {
+ _openNewWindows({
+ url: systemCommonUtil.getUrl('FP2024042700002&id=' + data.id, null),
+ title: "发文申请",
+ pageId: "gwSendDocumentEdit",
+ area: ['90vw', '90vh'],
+ callBack: function (refreshCode) {
+ winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
+ loadTable();
+ }
+ });
+ }
+
+ // 提交审批
+ function subApproval(data) {
+ layer.confirm(systemLanguage["com.skyeye.approvalOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.approvalOperation"][languageType]}, function (index) {
+ layer.close(index);
+ activitiUtil.startProcess(serviceClassName, null, function (approvalId) {
+ var params = {
+ id: data.id,
+ approvalId: approvalId
+ };
+ AjaxPostUtil.request({url: sysMainMation.admBasePath + "submitGwSendDocumentToApproval", params: params, type: 'json', method: "POST", callback: function (json) {
+ winui.window.msg("提交成功", {icon: 1, time: 2000});
+ loadTable();
+ }});
+ });
+ });
+ }
+
+ // 作废
+ function cancellation(data) {
+ var msg = '确认作废该申请吗?';
+ layer.confirm(msg, { icon: 3, title: '作废操作' }, function (index) {
+ layer.close(index);
+ AjaxPostUtil.request({url: sysMainMation.admBasePath + "invalidGwSendDocument", params: {id: data.id}, type: 'json', method: "POST", callback: function (json) {
+ winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
+ loadTable();
+ }});
+ });
+ }
+
+ // 详情
+ function details(data) {
+ _openNewWindows({
+ url: systemCommonUtil.getUrl('FP2024042700003&id=' + data.id, null),
+ title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
+ pageId: "gwSendDocumentDetails",
+ area: ['90vw', '90vh'],
+ callBack: function (refreshCode) {
+ }
+ });
+ }
+
+ // 添加
+ $("body").on("click", "#addBean", function() {
+ _openNewWindows({
+ url: systemCommonUtil.getUrl('FP2024042700001', null),
+ title: "发文申请",
+ pageId: "gwSendDocumentAdd",
+ area: ['90vw', '90vh'],
+ callBack: function (refreshCode) {
+ winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
+ loadTable();
+ }});
+ });
+
+ form.render();
+ $("body").on("click", "#reloadTable", function() {
+ loadTable();
+ });
+ function loadTable() {
+ table.reloadData("messageTable", {where: getTableParams()});
+ }
+
+ function getTableParams() {
+ return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
+ }
+
+ exports('gwSendDocumentList', {});
+});
diff --git a/admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowList.js b/admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowList.js
index 1dad8380b6188038709dbeedb1dc15e443b78b49..ed95bae1232560bc4ee832a115bc6dbc3f98791c 100644
--- a/admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowList.js
+++ b/admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowList.js
@@ -31,7 +31,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/licenceManageRevert/licenceManageRevertList.js b/admin-assistant/src/main/resources/template/js/licenceManageRevert/licenceManageRevertList.js
index a76ad8aff0148b28e3119b361a7061b57ff82fab..82a57b26e67d3ee3a0bc3ae4de13558b4ed665ce 100644
--- a/admin-assistant/src/main/resources/template/js/licenceManageRevert/licenceManageRevertList.js
+++ b/admin-assistant/src/main/resources/template/js/licenceManageRevert/licenceManageRevertList.js
@@ -31,7 +31,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/myHasMation/myAssetManagement.js b/admin-assistant/src/main/resources/template/js/myHasMation/myAssetManagement.js
index 6f5fc3cc3cf7351da1fd5b95c6e1d317da3417ee..a6a124acdb80b97ece9e60b24ca7de765649cbae 100644
--- a/admin-assistant/src/main/resources/template/js/myHasMation/myAssetManagement.js
+++ b/admin-assistant/src/main/resources/template/js/myHasMation/myAssetManagement.js
@@ -32,7 +32,7 @@ layui.config({
}},
{ field: 'assetNum', title: '资产编号', align: 'left', width: 150 },
{ field: 'assetAdminMation', title: '管理员', width: 120, templet: function(d) {
- return isNull(d.assetAdminMation) ? '' : d.assetAdminMation.name;
+ return getNotUndefinedVal(d.assetAdminMation?.name);
}},
{ field: 'createTime', title: '申领时间', align: 'center', width: 150 },
]],
diff --git a/admin-assistant/src/main/resources/template/js/myHasMation/myLicenceManagement.js b/admin-assistant/src/main/resources/template/js/myHasMation/myLicenceManagement.js
index e2a4a4b937f80de8d0a6220caad9474c07656e96..5a33f2c2a8f458f64a3ec28d88e38a21d76380d4 100644
--- a/admin-assistant/src/main/resources/template/js/myHasMation/myLicenceManagement.js
+++ b/admin-assistant/src/main/resources/template/js/myHasMation/myLicenceManagement.js
@@ -26,7 +26,7 @@ layui.config({
{ field: 'name', title: '证照名称', align: 'left', width: 140 },
{ field: 'licenceNum', title: '证照编号', align: 'left', width: 160 },
{ field: 'licenceAdmin', title: '管理员', align: 'left', width: 120, templet: function(d) {
- return isNull(d.licenceAdminMation) ? '' : d.licenceAdminMation.name;
+ return getNotUndefinedVal(d.licenceAdminMation?.name);
}},
]],
done: function(json) {
diff --git a/admin-assistant/src/main/resources/template/js/myHasMation/mySealManagement.js b/admin-assistant/src/main/resources/template/js/myHasMation/mySealManagement.js
index d368da9ea15cbee327204ae60e0097cfc8210196..f3e143d66900af610fe7004680db8b10a06944ca 100644
--- a/admin-assistant/src/main/resources/template/js/myHasMation/mySealManagement.js
+++ b/admin-assistant/src/main/resources/template/js/myHasMation/mySealManagement.js
@@ -25,7 +25,7 @@ layui.config({
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '印章名称', align: 'left', width: 150 },
{ field: 'licenceAdmin', title: '管理员', align: 'left', width: 120, templet: function(d) {
- return isNull(d.licenceAdminMation) ? '' : d.licenceAdminMation.name;
+ return getNotUndefinedVal(d.licenceAdminMation?.name);
}},
]],
done: function(json) {
diff --git a/admin-assistant/src/main/resources/template/js/sealManageBorrow/sealManageBorrowList.js b/admin-assistant/src/main/resources/template/js/sealManageBorrow/sealManageBorrowList.js
index 8030dc294f554d5da217ccc8abfd7fc5bae9ed85..30c3d2920e7d114988a60c07dc4ddb24b921c074 100644
--- a/admin-assistant/src/main/resources/template/js/sealManageBorrow/sealManageBorrowList.js
+++ b/admin-assistant/src/main/resources/template/js/sealManageBorrow/sealManageBorrowList.js
@@ -31,7 +31,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/sealManageRevert/sealManageRevertList.js b/admin-assistant/src/main/resources/template/js/sealManageRevert/sealManageRevertList.js
index 3536e4a208aacf98491351b90f39aec51eb5eb1d..853403b12ca2993eab2f226962cfd57fce489f06 100644
--- a/admin-assistant/src/main/resources/template/js/sealManageRevert/sealManageRevertList.js
+++ b/admin-assistant/src/main/resources/template/js/sealManageRevert/sealManageRevertList.js
@@ -31,7 +31,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/js/vehicleManageUse/vehicleManageUseList.js b/admin-assistant/src/main/resources/template/js/vehicleManageUse/vehicleManageUseList.js
index 3bedb2962ca31a2cec948e5a55b28ea43fa38c4a..846c5300aef2a0f85ec957b899a1f128ed235257 100644
--- a/admin-assistant/src/main/resources/template/js/vehicleManageUse/vehicleManageUseList.js
+++ b/admin-assistant/src/main/resources/template/js/vehicleManageUse/vehicleManageUseList.js
@@ -31,7 +31,7 @@ layui.config({
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
- return '
' + d.processInstanceId + '';
+ return '
' + getNotUndefinedVal(d.processInstanceId) + '';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
diff --git a/admin-assistant/src/main/resources/template/tpl/assetManage/assetManageChoose.html b/admin-assistant/src/main/resources/template/tpl/assetManage/assetManageChoose.html
index 689a3a5c0dba47b450fbd1a2a4ec9c047deec447..77aa538dabd3a603dcf119f9e9b05bc9cb941c0b 100644
--- a/admin-assistant/src/main/resources/template/tpl/assetManage/assetManageChoose.html
+++ b/admin-assistant/src/main/resources/template/tpl/assetManage/assetManageChoose.html
@@ -17,9 +17,7 @@
diff --git a/checkwork/src/main/resources/template/tpl/checkWorkTime/checkWorkTimeEdit.html b/checkwork/src/main/resources/template/tpl/checkWorkTime/checkWorkTimeEdit.html
index 7a0339d82990ec4e29213702cfeba43b28dbf531..c3484228e4fb95ae806883d67d46255c291b1f30 100644
--- a/checkwork/src/main/resources/template/tpl/checkWorkTime/checkWorkTimeEdit.html
+++ b/checkwork/src/main/resources/template/tpl/checkWorkTime/checkWorkTimeEdit.html
@@ -70,15 +70,15 @@
作息时间