流程发布校验重复
This commit is contained in:
parent
898a048d24
commit
0e4069aef1
File diff suppressed because it is too large
Load Diff
@ -33,7 +33,6 @@ var stopPageSetting = {
|
|||||||
}
|
}
|
||||||
var isHighSecurity;
|
var isHighSecurity;
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
getWsId();
|
|
||||||
$('td,th').css('padding-top','0px');
|
$('td,th').css('padding-top','0px');
|
||||||
$('td,th').css('padding-bottom','0px');
|
$('td,th').css('padding-bottom','0px');
|
||||||
// $('#alertMsg').css('background', '#fff');
|
// $('#alertMsg').css('background', '#fff');
|
||||||
@ -52,32 +51,6 @@ $(document).ready(function(){
|
|||||||
// listenCloseEvent();// 关闭窗口执行,关闭窗口/刷新都会造成流程实例被删除,注释掉
|
// listenCloseEvent();// 关闭窗口执行,关闭窗口/刷新都会造成流程实例被删除,注释掉
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//获取wsid
|
|
||||||
function getWsId() {
|
|
||||||
var param = {
|
|
||||||
sid : $("#sid").val(),
|
|
||||||
cmd : "com.actionsoft.apps.coe.pal.publisher_publish_getWsId"
|
|
||||||
}
|
|
||||||
$.ajax({
|
|
||||||
url : "./jd",
|
|
||||||
type : "POST",
|
|
||||||
dataType : "JSON",
|
|
||||||
data : param,
|
|
||||||
async: false,
|
|
||||||
success : function(r) {
|
|
||||||
if (r.result == 'ok') {
|
|
||||||
var wsId=$("#WSID").val();
|
|
||||||
if(wsId==""){
|
|
||||||
$("#WSID").val(r.data.wsId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var paginationSetting = {
|
var paginationSetting = {
|
||||||
pageLimit: pageLimit,
|
pageLimit: pageLimit,
|
||||||
showItem: 10,
|
showItem: 10,
|
||||||
@ -270,9 +243,9 @@ function initHtml() {
|
|||||||
newHtml += '<tr>';
|
newHtml += '<tr>';
|
||||||
newHtml += '<th style="background-color:#fff;" class="width_5"><input name="checkAll" id="new_check_all" type="checkbox" class="awsui-checkbox"></th>';
|
newHtml += '<th style="background-color:#fff;" class="width_5"><input name="checkAll" id="new_check_all" type="checkbox" class="awsui-checkbox"></th>';
|
||||||
newHtml += '<th style="background-color:#fff;" class="width_5">序号</th>';
|
newHtml += '<th style="background-color:#fff;" class="width_5">序号</th>';
|
||||||
newHtml += '<th style="background-color:#fff;" class="width_30">流程制度</th>';
|
newHtml += '<th style="background-color:#fff;" class="width_30">流程制度模型</th>';
|
||||||
newHtml += '<th style="background-color:#fff;" class="width_25">文件文本</th>';
|
newHtml += '<th style="background-color:#fff;" class="width_35">文件预览</th>';
|
||||||
newHtml += '<th style="background-color:#fff;" class="width_35">文件编号</th>';
|
newHtml += '<th style="background-color:#fff;" class="width_25">文件编号</th>';
|
||||||
newHtml += '</tr>';
|
newHtml += '</tr>';
|
||||||
newHtml += '</thead>';
|
newHtml += '</thead>';
|
||||||
newHtml += '<tbody id="publish_new_tbody"></tbody>';
|
newHtml += '<tbody id="publish_new_tbody"></tbody>';
|
||||||
@ -304,12 +277,12 @@ function initHtml() {
|
|||||||
changeHtml += '<table class="awsui-table awsui-table-thin awsui-table-hover data-table">';
|
changeHtml += '<table class="awsui-table awsui-table-thin awsui-table-hover data-table">';
|
||||||
changeHtml += '<thead>';
|
changeHtml += '<thead>';
|
||||||
changeHtml += '<tr>';
|
changeHtml += '<tr>';
|
||||||
changeHtml += '<th style="background-color:#fff;" class="width_5"><input name="checkAll" id="change_check_all" type="checkbox" class="awsui-checkbox"></th>';
|
changeHtml += '<th style="background-color:#fff;" class="width_2"><input name="checkAll" id="change_check_all" type="checkbox" class="awsui-checkbox"></th>';
|
||||||
changeHtml += '<th style="background-color:#fff;" class="width_5">序号</th>';
|
changeHtml += '<th style="background-color:#fff;" class="width_2">序号</th>';
|
||||||
changeHtml += '<th style="background-color:#fff;" class="width_25">流程制度</th>';
|
changeHtml += '<th style="background-color:#fff;" class="width_20">流程制度模型</th>';
|
||||||
changeHtml += '<th style="background-color:#fff;" class="width_20">变更后流程制度</th>';
|
changeHtml += '<th style="background-color:#fff;" class="width_20">变更后流程制度模型</th>';
|
||||||
changeHtml += '<th style="background-color:#fff;" class="width_20">文件文本</th>';
|
changeHtml += '<th style="background-color:#fff;" class="width_35">文件预览</th>';
|
||||||
changeHtml += '<th style="background-color:#fff;" class="width_25">文件编号</th>';
|
changeHtml += '<th style="background-color:#fff;" class="width_20">文件编号</th>';
|
||||||
changeHtml += '</tr>';
|
changeHtml += '</tr>';
|
||||||
changeHtml += '</thead>';
|
changeHtml += '</thead>';
|
||||||
changeHtml += '<tbody id="publish_change_tbody"></tbody>';
|
changeHtml += '<tbody id="publish_change_tbody"></tbody>';
|
||||||
@ -339,8 +312,8 @@ function initHtml() {
|
|||||||
stopHtml += '<tr>';
|
stopHtml += '<tr>';
|
||||||
stopHtml += '<th style="background-color:#fff;" class="width_5"><input name="checkAll" id="stop_check_all" type="checkbox" class="awsui-checkbox"></th>';
|
stopHtml += '<th style="background-color:#fff;" class="width_5"><input name="checkAll" id="stop_check_all" type="checkbox" class="awsui-checkbox"></th>';
|
||||||
stopHtml += '<th style="background-color:#fff;" class="width_5">序号</th>';
|
stopHtml += '<th style="background-color:#fff;" class="width_5">序号</th>';
|
||||||
stopHtml += '<th style="background-color:#fff;" class="width_30">流程制度</th>';
|
stopHtml += '<th style="background-color:#fff;" class="width_30">流程制度模型</th>';
|
||||||
stopHtml += '<th style="background-color:#fff;" class="width_25">文件文本</th>';
|
stopHtml += '<th style="background-color:#fff;" class="width_25">文件预览</th>';
|
||||||
stopHtml += '<th style="background-color:#fff;" class="width_35">文件编号</th>';
|
stopHtml += '<th style="background-color:#fff;" class="width_35">文件编号</th>';
|
||||||
stopHtml += '</tr>';
|
stopHtml += '</tr>';
|
||||||
stopHtml += '</thead>';
|
stopHtml += '</thead>';
|
||||||
@ -451,9 +424,7 @@ function initPublishData(data, type, pageNumber, start){
|
|||||||
// 初始化数据
|
// 初始化数据
|
||||||
function selectPublishData(data, type, pageNumber, start) {
|
function selectPublishData(data, type, pageNumber, start) {
|
||||||
|
|
||||||
|
|
||||||
//渲染到前台的流程架构L1,L2,L3
|
//渲染到前台的流程架构L1,L2,L3
|
||||||
|
|
||||||
var param = {
|
var param = {
|
||||||
cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs',
|
cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs',
|
||||||
processInstId: processInstId,
|
processInstId: processInstId,
|
||||||
@ -475,31 +446,17 @@ function selectPublishData(data, type, pageNumber, start) {
|
|||||||
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
||||||
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
||||||
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
||||||
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old)){
|
|
||||||
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
ui("LEVEL_1_PROCESS_NAME",L1);
|
||||||
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
ui("LEVEL_2_PROCESS_NAME",L2);
|
||||||
return;
|
ui("LEVEL_3_PROCESS_NAME",L3);
|
||||||
}
|
showlist(data, type, pageNumber, start);
|
||||||
//不属于同一L3 所以直接提示
|
|
||||||
if(info == true){
|
|
||||||
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
|
||||||
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
|
||||||
return;
|
|
||||||
}else{
|
|
||||||
if(ui("LEVEL_1_PROCESS_NAME").length > 0){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ui("LEVEL_1_PROCESS_NAME",L1);
|
|
||||||
ui("LEVEL_2_PROCESS_NAME",L2);
|
|
||||||
ui("LEVEL_3_PROCESS_NAME",L3);
|
|
||||||
showlist(data, type, pageNumber, start);
|
|
||||||
//发起请求把审批人查询出来~
|
//发起请求把审批人查询出来~
|
||||||
queryapprove();
|
queryapprove();
|
||||||
ui("ADAPT_NAME_THE_COMPANY",""),
|
ui("ADAPT_NAME_THE_COMPANY",""),
|
||||||
ui("ADAPT_REGION_NAME",""),
|
ui("ADAPT_REGION_NAME",""),
|
||||||
ui("APPLICABLE_PRODUCT",""),
|
ui("APPLICABLE_PRODUCT",""),
|
||||||
$("#publisher_dialog").dialog("close");
|
$("#publisher_dialog").dialog("close");
|
||||||
}
|
|
||||||
//展示未发布过的流程
|
//展示未发布过的流程
|
||||||
//data = r.data.is_not_publish_data;
|
//data = r.data.is_not_publish_data;
|
||||||
}
|
}
|
||||||
@ -599,7 +556,7 @@ function showlist(data, type, pageNumber, start){
|
|||||||
html += '<td ' + tableTdCss + '><input name="check" ' + checkboxPerm + ' class="awsui-checkbox" data-id="' + curr.publishFileId + '" type="checkbox" type="awsui-checkbox"></td>';
|
html += '<td ' + tableTdCss + '><input name="check" ' + checkboxPerm + ' class="awsui-checkbox" data-id="' + curr.publishFileId + '" type="checkbox" type="awsui-checkbox"></td>';
|
||||||
html += '<td ' + tableTdCss + '>' + s + '</td>';
|
html += '<td ' + tableTdCss + '>' + s + '</td>';
|
||||||
html += '<td ' + tableTdCss + '><a href="javascript:void(0);" onclick="openPortalPage(\'' + curr.publishFileId + '\', \'' + curr.taskId + '\')">' + fileName + '</a></td>';
|
html += '<td ' + tableTdCss + '><a href="javascript:void(0);" onclick="openPortalPage(\'' + curr.publishFileId + '\', \'' + curr.taskId + '\')">' + fileName + '</a></td>';
|
||||||
html += '<td ' + tableTdCss + '></p>' + reportName +fName+ '</td>';
|
html += '<td ' + tableTdCss + '></p>' + reportName + fName+'</td>';
|
||||||
//html += '<td ' + tableTdCss + '>' + fName + '</td>';
|
//html += '<td ' + tableTdCss + '>' + fName + '</td>';
|
||||||
//html += '<td style="padding:1px;"><textarea onblur="changeDesc(\'new\',\'' + curr.publishFileId + '\', this)" style="width:100%;height:30px;" ' + textareaPerm + ' class="awsui-input">' + curr.publishDesc + '</textarea></td>';
|
//html += '<td style="padding:1px;"><textarea onblur="changeDesc(\'new\',\'' + curr.publishFileId + '\', this)" style="width:100%;height:30px;" ' + textareaPerm + ' class="awsui-input">' + curr.publishDesc + '</textarea></td>';
|
||||||
html += '<td style="padding:1px;"><span>'+ processNumber +'</span></td>';
|
html += '<td style="padding:1px;"><span>'+ processNumber +'</span></td>';
|
||||||
@ -670,7 +627,8 @@ function showlist(data, type, pageNumber, start){
|
|||||||
var selectPerm = editPerm ? '<select id="change_' + curr.changeFileId + '"></select>' : '<a href="javascript:void(0);" onclick="openPortalPage(\'' + targetId + '\', \'' + curr.taskId + '\')">' + targetFileName + '</a>';
|
var selectPerm = editPerm ? '<select id="change_' + curr.changeFileId + '"></select>' : '<a href="javascript:void(0);" onclick="openPortalPage(\'' + targetId + '\', \'' + curr.taskId + '\')">' + targetFileName + '</a>';
|
||||||
html += '<td ' + tableTdCss + '>' + selectPerm + '</td>';
|
html += '<td ' + tableTdCss + '>' + selectPerm + '</td>';
|
||||||
html += '<td ' + tableTdCss + '></p>' + reportName + fName +'</td>';
|
html += '<td ' + tableTdCss + '></p>' + reportName + fName +'</td>';
|
||||||
//html += '<td ' + tableTdCss + ' id="report_' + curr.changeFileId + '">' + reportName + fName +'</td>';
|
//html += '<td ' + tableTdCss + ' id="report_' + curr.changeFileId + '">' + reportName + '</td>';
|
||||||
|
//html += '<td ' + tableTdCss + '>' + fName + '</td>';
|
||||||
html += '<td ' + tableTdCss + '>' + curr.changedNumber + '</td>';
|
html += '<td ' + tableTdCss + '>' + curr.changedNumber + '</td>';
|
||||||
//html += '<td style="padding:1px;"><textarea onblur="changeDesc(\'change\',\'' + curr.changeFileId + '\', this)" style="width:100%;height:30px;" ' + textareaPerm + ' class="awsui-input">' + curr.changedDesc + '</textarea></td>';
|
//html += '<td style="padding:1px;"><textarea onblur="changeDesc(\'change\',\'' + curr.changeFileId + '\', this)" style="width:100%;height:30px;" ' + textareaPerm + ' class="awsui-input">' + curr.changedDesc + '</textarea></td>';
|
||||||
html += '</tr>';
|
html += '</tr>';
|
||||||
@ -823,6 +781,7 @@ function addProcess(type) {
|
|||||||
height:height,
|
height:height,
|
||||||
buttons:[
|
buttons:[
|
||||||
{text:'确定',cls:"blue",handler:function(){
|
{text:'确定',cls:"blue",handler:function(){
|
||||||
|
debugger;
|
||||||
window.$.simpleAlert("请稍等...", "loading");
|
window.$.simpleAlert("请稍等...", "loading");
|
||||||
if (type == 'new') {
|
if (type == 'new') {
|
||||||
if (treeCheckedNewArr.length == 0) {
|
if (treeCheckedNewArr.length == 0) {
|
||||||
@ -860,6 +819,7 @@ function addProcess(type) {
|
|||||||
temps[i].publishDesc = desc;
|
temps[i].publishDesc = desc;
|
||||||
newTemp.push(temps[i]);
|
newTemp.push(temps[i]);
|
||||||
}
|
}
|
||||||
|
//校验支持文件是否上传
|
||||||
publishFlowCheck(newTemp);
|
publishFlowCheck(newTemp);
|
||||||
// 初始化页数及当前页
|
// 初始化页数及当前页
|
||||||
initNewPagination(newPageSetting.pageNum - 1);
|
initNewPagination(newPageSetting.pageNum - 1);
|
||||||
@ -1096,6 +1056,7 @@ function openQueryDataDialog(type) {
|
|||||||
buttons:[
|
buttons:[
|
||||||
{text:'确定',cls:"blue",handler:function(){
|
{text:'确定',cls:"blue",handler:function(){
|
||||||
if (type == 'new') {
|
if (type == 'new') {
|
||||||
|
debugger;
|
||||||
getNewPublishBatchResult(type);
|
getNewPublishBatchResult(type);
|
||||||
// 数据写入主dialog
|
// 数据写入主dialog
|
||||||
var names = '';
|
var names = '';
|
||||||
@ -1249,26 +1210,63 @@ function loadNewData(treeNode) {
|
|||||||
|
|
||||||
// 发布类型批量结果数据回填主dialog
|
// 发布类型批量结果数据回填主dialog
|
||||||
function getNewPublishBatchResult(type) {
|
function getNewPublishBatchResult(type) {
|
||||||
|
debugger;
|
||||||
var nodes = initTree.getCheckedNodes();
|
var nodes = initTree.getCheckedNodes();
|
||||||
treeCheckedNewArr = [];
|
treeCheckedNewArr = [];
|
||||||
for (var i = 0; i < nodes.length; i++) {
|
var param = {
|
||||||
var node = nodes[i];
|
cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs',
|
||||||
if (node.id.length > 36) continue;
|
processInstId: processInstId,
|
||||||
//by bzp
|
wsId : wsId,
|
||||||
if(node.method == "process.framework"){
|
sid: sid,
|
||||||
continue;
|
datas:JSON.stringify(nodes)
|
||||||
|
};
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url : "./jd",
|
||||||
|
type : "POST",
|
||||||
|
dataType : "JSON",
|
||||||
|
async : false,
|
||||||
|
data : param,
|
||||||
|
success : function(r) {
|
||||||
|
var info = r.data.info;
|
||||||
|
var L1 = r.data.data.Process_Architecture_L1;
|
||||||
|
var L2 = r.data.data.Process_Architecture_L2;
|
||||||
|
var L3 = r.data.data.Process_Architecture_L3;
|
||||||
|
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
||||||
|
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
||||||
|
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
||||||
|
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old)){
|
||||||
|
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||||
|
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
||||||
|
return;
|
||||||
|
}else if(info == true){
|
||||||
|
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||||
|
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
||||||
|
return;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
//treeCheckedNewArr = nodes;
|
||||||
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
|
var node = nodes[i];
|
||||||
|
if (node.id.length > 36) continue;
|
||||||
|
//by bzp
|
||||||
|
if(node.method == "process.framework"){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
var obj = {};
|
||||||
|
obj.fileVersion = node.version;
|
||||||
|
obj.publishFileId = node.id;
|
||||||
|
obj.id = node.id;
|
||||||
|
// obj.publishFileName = node.name;
|
||||||
|
obj.publishFileName = node.tempName;
|
||||||
|
obj.methodId = node.method;
|
||||||
|
obj.category = node.category;
|
||||||
|
obj.taskId = "";// 后续生成流程手册
|
||||||
|
treeCheckedNewArr.push(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var obj = {};
|
});
|
||||||
obj.fileVersion = node.version;
|
|
||||||
obj.publishFileId = node.id;
|
|
||||||
obj.id = node.id;
|
|
||||||
// obj.publishFileName = node.name;
|
|
||||||
obj.publishFileName = node.tempName;
|
|
||||||
obj.methodId = node.method;
|
|
||||||
obj.category = node.category;
|
|
||||||
obj.taskId = "";// 后续生成流程手册
|
|
||||||
treeCheckedNewArr.push(obj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取已发布文件数据结构
|
//获取已发布文件数据结构
|
||||||
@ -1326,48 +1324,117 @@ function getPublishedTreeData(type) {
|
|||||||
|
|
||||||
//变更类型批量结果数据回填主dialog
|
//变更类型批量结果数据回填主dialog
|
||||||
function getChangeBatchResult(type) {
|
function getChangeBatchResult(type) {
|
||||||
|
debugger;
|
||||||
var nodes = initTree.getCheckedNodes();
|
var nodes = initTree.getCheckedNodes();
|
||||||
treeCheckedChangeArr = [];
|
treeCheckedChangeArr = [];
|
||||||
for (var i = 0; i < nodes.length; i++) {
|
var param = {
|
||||||
var node = nodes[i];
|
cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs',
|
||||||
if (node.id.length > 36) continue;
|
processInstId: processInstId,
|
||||||
var obj = {};
|
wsId : wsId,
|
||||||
// obj.changeFileName = node.name;
|
sid: sid,
|
||||||
obj.changeFileName = node.tempName;
|
datas:JSON.stringify(nodes)
|
||||||
obj.changeFileId = node.id;
|
};
|
||||||
obj.fileVersion = node.version;
|
$.ajax({
|
||||||
obj.methodId = node.method;
|
url : "./jd",
|
||||||
obj.category = node.category;
|
type : "POST",
|
||||||
obj.id = node.id;
|
dataType : "JSON",
|
||||||
obj.targetFiles = [];// 后续生成
|
async : false,
|
||||||
obj.changedFileIdNew = "";// 后续生成
|
data : param,
|
||||||
obj.changedFileNameNew = "";// 后续生成
|
success : function(r) {
|
||||||
obj.taskId = "";// 后续生成
|
var info = r.data.info;
|
||||||
obj.targetFileVersion = "";// 后续生成
|
var L1 = r.data.data.Process_Architecture_L1;
|
||||||
obj.targetMethodId = node.method
|
var L2 = r.data.data.Process_Architecture_L2;
|
||||||
obj.targetCategory = node.category
|
var L3 = r.data.data.Process_Architecture_L3;
|
||||||
treeCheckedChangeArr.push(obj);
|
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
||||||
}
|
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
||||||
|
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
||||||
|
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old)){
|
||||||
|
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||||
|
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
||||||
|
return;
|
||||||
|
}else if(info == true){
|
||||||
|
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||||
|
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
||||||
|
return;
|
||||||
|
}else{
|
||||||
|
//treeCheckedNewArr = nodes;
|
||||||
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
|
var node = nodes[i];
|
||||||
|
if (node.id.length > 36) continue;
|
||||||
|
var obj = {};
|
||||||
|
// obj.changeFileName = node.name;
|
||||||
|
obj.changeFileName = node.tempName;
|
||||||
|
obj.changeFileId = node.id;
|
||||||
|
obj.fileVersion = node.version;
|
||||||
|
obj.methodId = node.method;
|
||||||
|
obj.category = node.category;
|
||||||
|
obj.id = node.id;
|
||||||
|
obj.targetFiles = [];// 后续生成
|
||||||
|
obj.changedFileIdNew = "";// 后续生成
|
||||||
|
obj.changedFileNameNew = "";// 后续生成
|
||||||
|
obj.taskId = "";// 后续生成
|
||||||
|
obj.targetFileVersion = "";// 后续生成
|
||||||
|
obj.targetMethodId = node.method
|
||||||
|
obj.targetCategory = node.category
|
||||||
|
treeCheckedChangeArr.push(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 停用类型批量结果数据回填主dialog
|
// 停用类型批量结果数据回填主dialog
|
||||||
function getStopBatchResult(type) {
|
function getStopBatchResult(type) {
|
||||||
var nodes = initTree.getCheckedNodes();
|
var nodes = initTree.getCheckedNodes();
|
||||||
treeCheckedStopArr = [];
|
treeCheckedStopArr = [];
|
||||||
for (var i = 0; i < nodes.length; i++) {
|
var param = {
|
||||||
var node = nodes[i];
|
cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs',
|
||||||
if (node.id.length > 36) continue;
|
processInstId: processInstId,
|
||||||
var obj = {};
|
wsId : wsId,
|
||||||
// obj.stopFileName = node.name;
|
sid: sid,
|
||||||
obj.stopFileName = node.tempName;
|
datas:JSON.stringify(nodes)
|
||||||
obj.stopFileId = node.id;
|
};
|
||||||
obj.fileVersion = node.version;
|
$.ajax({
|
||||||
obj.id = node.id;
|
url : "./jd",
|
||||||
obj.methodId = node.method;
|
type : "POST",
|
||||||
obj.category = node.category;
|
dataType : "JSON",
|
||||||
obj.taskId = "";// 后续查询已经存在的流程手册
|
async : false,
|
||||||
treeCheckedStopArr.push(obj);
|
data : param,
|
||||||
}
|
success : function(r) {
|
||||||
|
var info = r.data.info;
|
||||||
|
var L1 = r.data.data.Process_Architecture_L1;
|
||||||
|
var L2 = r.data.data.Process_Architecture_L2;
|
||||||
|
var L3 = r.data.data.Process_Architecture_L3;
|
||||||
|
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
||||||
|
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
||||||
|
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
||||||
|
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old)){
|
||||||
|
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||||
|
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
||||||
|
return;
|
||||||
|
}else if(info == true){
|
||||||
|
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||||
|
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
||||||
|
return;
|
||||||
|
}else{
|
||||||
|
//treeCheckedNewArr = nodes;
|
||||||
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
|
var node = nodes[i];
|
||||||
|
if (node.id.length > 36) continue;
|
||||||
|
var obj = {};
|
||||||
|
// obj.stopFileName = node.name;
|
||||||
|
obj.stopFileName = node.tempName;
|
||||||
|
obj.stopFileId = node.id;
|
||||||
|
obj.fileVersion = node.version;
|
||||||
|
obj.id = node.id;
|
||||||
|
obj.methodId = node.method;
|
||||||
|
obj.category = node.category;
|
||||||
|
obj.taskId = "";// 后续查询已经存在的流程手册
|
||||||
|
treeCheckedStopArr.push(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取已有的流程手册
|
// 获取已有的流程手册
|
||||||
@ -1509,7 +1576,7 @@ function getOutputName(category, method) {
|
|||||||
return '制度手册';
|
return '制度手册';
|
||||||
}
|
}
|
||||||
if (method == 'data.form') {
|
if (method == 'data.form') {
|
||||||
return '表单手册'
|
return '表单封面'
|
||||||
}
|
}
|
||||||
if (method.indexOf('process.') > -1) {
|
if (method.indexOf('process.') > -1) {
|
||||||
return '流程手册';
|
return '流程手册';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user