生成废止编号

This commit is contained in:
zhal 2023-09-05 13:59:41 +08:00
parent 68a5044df7
commit 5a9d854198

View File

@ -465,46 +465,46 @@ function initPublishData(data, type, pageNumber, start){
// 初始化数据
function selectPublishData(data, type, pageNumber, start) {
//渲染到前台的流程架构L1L2L3L4
var param = {
cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs',
processInstId: processInstId,
wsId : wsId,
sid: sid,
type:type,
datas:JSON.stringify(data)
};
$.ajax({
url : "./jd",
type : "POST",
dataType : "JSON",
async : true,
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 L4 = r.data.data.Process_Architecture_L4;
var L1old = ui("LEVEL_1_PROCESS_NAME");
var L2old = ui("LEVEL_2_PROCESS_NAME");
var L3old = ui("LEVEL_3_PROCESS_NAME");
var L4old = ui("LEVEL_4_PROCESS_NAME");
ui("LEVEL_1_PROCESS_NAME",L1);
ui("LEVEL_2_PROCESS_NAME",L2);
ui("LEVEL_3_PROCESS_NAME",L3);
ui("LEVEL_4_PROCESS_NAME",L4);
showlist(data, type, pageNumber, start);
//发起请求把审批人查询出来~
queryapprove();
ui("ADAPT_NAME_THE_COMPANY",""),
ui("ADAPT_REGION_NAME",""),
ui("APPLICABLE_PRODUCT",""),
$("#publisher_dialog").dialog("close");
//展示未发布过的流程
//data = r.data.is_not_publish_data;
}
});
//渲染到前台的流程架构L1L2L3L4
var param = {
cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs',
processInstId: processInstId,
wsId : wsId,
sid: sid,
type:type,
datas:JSON.stringify(data)
};
$.ajax({
url : "./jd",
type : "POST",
dataType : "JSON",
async : true,
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 L4 = r.data.data.Process_Architecture_L4;
var L1old = ui("LEVEL_1_PROCESS_NAME");
var L2old = ui("LEVEL_2_PROCESS_NAME");
var L3old = ui("LEVEL_3_PROCESS_NAME");
var L4old = ui("LEVEL_4_PROCESS_NAME");
ui("LEVEL_1_PROCESS_NAME",L1);
ui("LEVEL_2_PROCESS_NAME",L2);
ui("LEVEL_3_PROCESS_NAME",L3);
ui("LEVEL_4_PROCESS_NAME",L4);
showlist(data, type, pageNumber, start);
//发起请求把审批人查询出来~
queryapprove();
ui("ADAPT_NAME_THE_COMPANY",""),
ui("ADAPT_REGION_NAME",""),
ui("APPLICABLE_PRODUCT",""),
$("#publisher_dialog").dialog("close");
//展示未发布过的流程
//data = r.data.is_not_publish_data;
}
});
}
@ -596,9 +596,9 @@ function showlist(data, type, pageNumber, start){
var fileName = curr.publishFileName + ' V' + curr.fileVersion;
var outputName = getOutputName(curr.category, curr.methodId);
var reportName = '<a href="javascript:void(0);" onclick="openReportFile(\'' + curr.taskId + '\')">' + fileName + "-" + outputName + '</a><span id="download_output_' + curr.publishFileId + '" style="cursor: pointer;" onclick="downloadReport(\'' + curr.publishFileId + '\',\'' + curr.taskId + '\')"><i class="awsui-iconfont" style="font-size: 12px;">&#xe653;</i></span>';
if(outputName=="表单封面"){
/*if(outputName==""){
var reportName = "";
}
}*/
//var reportName = '<a href="javascript:void(0);" onclick="openReportFile(\'' + curr.taskId + '\')">' + fileName + "-" + outputName + '</a><span id="download_output_' + curr.publishFileId + '" style="cursor: pointer;" onclick="downloadReport(\'' + curr.publishFileId + '\',\'' + curr.taskId + '\')"><i class="awsui-iconfont" style="font-size: 12px;">&#xe653;</i></span>';
var quickCreate = "<a href='javascript:void(0);' onclick='quickCreateReport(" + JSON.stringify(curr) + ", $(this), \"new\")'>立即创建</a>";
var processNumber = '提交后生成文件编号';
@ -672,9 +672,9 @@ function showlist(data, type, pageNumber, start){
}
var outputName = getOutputName(curr.category, curr.methodId);
var reportName = '<a href="javascript:void(0);" onclick="openReportFile(\'' + curr.taskId + '\')">' + targetFileName + "-" + outputName + '</a><span id="download_output_' + curr.publishFileId + '" style="cursor: pointer;" onclick="downloadReport(\'' + curr.publishFileId + '\',\'' + curr.taskId + '\')"><i class="awsui-iconfont" style="font-size: 12px;">&#xe653;</i></span>';
if(outputName=="表单封面"){
/*if(outputName==""){
var reportName = "";
}
}*/
var quickCreate = "<a href='javascript:void(0);' onclick='quickCreateReport(" + JSON.stringify(curr) + ", $(this), \"change\")'>立即创建</a>";
createButtonObj[curr.changeFileId] = quickCreate;
reportName = (curr.taskId == undefined || curr.taskId == '') ? '无' : curr.taskId == 'submit_create' ? quickCreate : reportName;
@ -704,7 +704,7 @@ function showlist(data, type, pageNumber, start){
//html += '<td ' + tableTdCss + ' id="report_' + curr.changeFileId + '">' + reportName + '</td>';
//html += '<td ' + tableTdCss + '>' + fName + '</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 ' + tableTdCss + '>' + changNumer +'</td>';
html += '<td ' + tableTdCss + '>' + changNumer +'</td>';
html += '</tr>';
// select2下拉框处理
var opt1 = {
@ -786,6 +786,10 @@ function showlist(data, type, pageNumber, start){
var fName = '';
var upFileId = curr.upfileId;
var stopNumber='';
if (curr.stopNumber != undefined && curr.stopNumber != '') {
stopNumber = curr.stopNumber;
}
if(upFileId!=''&&upFileId!=undefined){
for(var i = 0; i < upFileId.length; i++){
var upFileJson = upFileId[i]
@ -816,7 +820,8 @@ function showlist(data, type, pageNumber, start){
html += '<td ' + tableTdCss + '>' + reportName +'</td>';
}
html += '<td style="padding:1px;"><textarea onblur="changeDesc(\'stop\',\'' + curr.stopFileId + '\', this)" style="width:100%;height:30px;" ' + textareaPerm + ' class="awsui-input">' + curr.stopDesc + '</textarea></td>';
//html += '<td style="padding:1px;"><textarea onblur="changeDesc(\'stop\',\'' + curr.stopFileId + '\', this)" style="width:100%;height:30px;" ' + textareaPerm + ' class="awsui-input">' + curr.stopDesc + '</textarea></td>';
html += '<td ' + tableTdCss + '>' + stopNumber + '</td>';
html += '</tr>';
}
}
@ -1160,7 +1165,7 @@ function refreshManuals(processInstId,type) {
success : function(r) {
$.simpleAlert('close');
if (r.result == 'ok') {
AWSFormUtil.refreshPage();
AWSFormUtil.refreshPage();
} else {
$.simpleAlert(r.msg);
}
@ -1477,7 +1482,7 @@ function getChangeBatchResult(type) {
var L2old = ui("LEVEL_2_PROCESS_NAME");
var L3old = ui("LEVEL_3_PROCESS_NAME");
var L4old = ui("LEVEL_4_PROCESS_NAME");
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old) || (L4old != '' && L3 != L4old)){
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old) || (L4old != '' && L4 != L4old)){
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
return;
@ -1561,6 +1566,8 @@ function getStopBatchResult(type) {
obj.methodId = node.method;
obj.category = node.category;
obj.taskId = "";// 后续查询已经存在的流程手册
//废止文件编号
obj.stopNumber=node.stopNumber;
treeCheckedStopArr.push(obj);
}
}