提交 ad1e6095 编写于 作者: doc_wei's avatar doc_wei

用品领用托管到表单布局

上级 63b930e0
var rowId = "";
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -19,7 +18,7 @@ layui.config({ ...@@ -19,7 +18,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: flowableBasePath + 'assetarticles017', url: sysMainMation.admBasePath + 'assetarticles017',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -27,15 +26,15 @@ layui.config({ ...@@ -27,15 +26,15 @@ layui.config({
limit: getLimit(), limit: getLimit(),
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'title', title: '标题', width: 300, templet: function (d) { { field: 'oddNumber', title: '单号', width: 200, align: 'center', templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.title + '</a>'; return '<a lay-event="details" class="notice-title-click">' + d.oddNumber + '</a>';
}}, }},
{ field: 'oddNumber', title: '单号', width: 200, align: 'center' }, { field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) { { field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
return '<a lay-event="processDetails" class="notice-title-click">' + d.processInstanceId + '</a>'; return '<a lay-event="processDetails" class="notice-title-click">' + d.processInstanceId + '</a>';
}}, }},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) { { field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return activitiUtil.showStateName2(d.state, 1); return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
}}, }},
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 }, { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 }, { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
...@@ -72,7 +71,7 @@ layui.config({ ...@@ -72,7 +71,7 @@ layui.config({
// 添加 // 添加
$("body").on("click", "#addBean", function() { $("body").on("click", "#addBean", function() {
_openNewWindows({ _openNewWindows({
url: "../../tpl/assetArticlesUse/assetArticlesUseAdd.html", url: systemCommonUtil.getUrl('FP2023061600009', null),
title: "用品领用申请", title: "用品领用申请",
pageId: "assetArticlesUseAdd", pageId: "assetArticlesUseAdd",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
...@@ -87,7 +86,7 @@ layui.config({ ...@@ -87,7 +86,7 @@ layui.config({
var msg = '确认撤销该用品领用申请吗?'; var msg = '确认撤销该用品领用申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) { layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "assetarticles034", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.admBasePath + "assetarticles034", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -96,9 +95,8 @@ layui.config({ ...@@ -96,9 +95,8 @@ layui.config({
// 编辑 // 编辑
function edit(data) { function edit(data) {
rowId = data.id;
_openNewWindows({ _openNewWindows({
url: "../../tpl/assetArticlesUse/assetArticlesUseEdit.html", url: systemCommonUtil.getUrl('FP2023061600010&id=' + data.id, null),
title: "编辑用品领用申请", title: "编辑用品领用申请",
pageId: "assetArticlesUseEdit", pageId: "assetArticlesUseEdit",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
...@@ -118,7 +116,7 @@ layui.config({ ...@@ -118,7 +116,7 @@ layui.config({
id: data.id, id: data.id,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: flowableBasePath + "assetarticles023", params: params, type: 'json', method: 'POST', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.admBasePath + "assetarticles023", params: params, type: 'json', method: 'POST', callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -131,7 +129,7 @@ layui.config({ ...@@ -131,7 +129,7 @@ layui.config({
var msg = '确认作废该条领用申请吗?'; var msg = '确认作废该条领用申请吗?';
layer.confirm(msg, { icon: 3, title: '作废操作' }, function (index) { layer.confirm(msg, { icon: 3, title: '作废操作' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "assetarticles030", params: {id: data.id}, type: 'json', method: 'POST', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.admBasePath + "assetarticles030", params: {id: data.id}, type: 'json', method: 'POST', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -140,9 +138,8 @@ layui.config({ ...@@ -140,9 +138,8 @@ layui.config({
// 用品领用详情 // 用品领用详情
function details(data) { function details(data) {
rowId = data.id;
_openNewWindows({ _openNewWindows({
url: "../../tpl/assetArticlesUse/assetArticlesUseDetails.html", url: systemCommonUtil.getUrl('FP2023061600011&id=' + data.id, null),
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "assetArticlesUseDetails", pageId: "assetArticlesUseDetails",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册