发布流程js代码合并
This commit is contained in:
parent
063c13819d
commit
345a9ad66e
@ -460,8 +460,6 @@ function initParam() {
|
|||||||
teamId = $("#TEAMID").val();
|
teamId = $("#TEAMID").val();
|
||||||
sid = $("#sid").val();
|
sid = $("#sid").val();
|
||||||
wsId = $("#WSID").val();
|
wsId = $("#WSID").val();
|
||||||
//本地测试环境使用
|
|
||||||
//wsId = "11dd43d0-a3c7-4ba7-860f-6eac3383e0b0";
|
|
||||||
processInstId = $("#processInstId").val();
|
processInstId = $("#processInstId").val();
|
||||||
var param = {
|
var param = {
|
||||||
sid : sid,
|
sid : sid,
|
||||||
@ -650,14 +648,6 @@ function queryapprove(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var adaptregionname = r.data.ADAPT_REGION_NAME;
|
|
||||||
if(adaptregionname!=''){
|
|
||||||
ui("ADAPT_REGION_NAME",adaptregionname);
|
|
||||||
}
|
|
||||||
var applicableproduct = r.data.APPLICABLE_PRODUCT;
|
|
||||||
if(applicableproduct!=''){
|
|
||||||
ui("APPLICABLE_PRODUCT",applicableproduct);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1692,7 +1682,7 @@ function queryBatchReport(data) {
|
|||||||
var ids = [];
|
var ids = [];
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
var temp = data[i];
|
var temp = data[i];
|
||||||
if ((temp.methodId == 'control.policy' || temp.methodId == 'data.form' || temp.methodId.indexOf('process.') > -1) && temp.methodId != 'default') {
|
if ((temp.methodId == 'control.policy' || temp.methodId == 'data.form' || temp.methodId.indexOf('process.') > -1 || temp.methodId=='engineering.standard') && temp.methodId != 'default') {
|
||||||
ids.push(temp.stopFileId);
|
ids.push(temp.stopFileId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1724,7 +1714,7 @@ function queryBatchReport(data) {
|
|||||||
|
|
||||||
// 创建流程手册
|
// 创建流程手册
|
||||||
function createReport(category, method, uuid, taskId) {
|
function createReport(category, method, uuid, taskId) {
|
||||||
if ((method == 'control.policy' || method == 'data.form' || method.indexOf('process.') > -1) && method != 'default') {
|
if ((method == 'control.policy' || method == 'data.form' || method.indexOf('process.') > -1 || temp.methodId=='engineering.standard') && method != 'default') {
|
||||||
var param = {
|
var param = {
|
||||||
sid : sid,
|
sid : sid,
|
||||||
cmd : "com.actionsoft.apps.coe.pal.publisher_output_pr_report_create",
|
cmd : "com.actionsoft.apps.coe.pal.publisher_output_pr_report_create",
|
||||||
@ -1755,7 +1745,7 @@ function createBatchReport(data, createTime) {
|
|||||||
var ids = [];
|
var ids = [];
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
var temp = data[i];
|
var temp = data[i];
|
||||||
if ((temp.methodId == 'control.policy' || temp.methodId == 'data.form' || temp.methodId.indexOf('process.') > -1) && temp.methodId != 'default') {
|
if ((temp.methodId == 'control.policy' || temp.methodId == 'data.form' || temp.methodId.indexOf('process.') > -1 || temp.methodId=='engineering.standard') && temp.methodId != 'default' ) {
|
||||||
ids.push(temp.publishFileId);
|
ids.push(temp.publishFileId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1827,9 +1817,18 @@ function getOutputName(category, method) {
|
|||||||
if (method == 'data.form') {
|
if (method == 'data.form') {
|
||||||
return '表单封面'
|
return '表单封面'
|
||||||
}
|
}
|
||||||
if (method.indexOf('process.') > -1) {
|
if (method.indexOf('process.') > -1 && method != 'process.scheme' ) {
|
||||||
return '流程手册';
|
return '流程手册';
|
||||||
}
|
}
|
||||||
|
if (method == 'engineering.standard') {
|
||||||
|
return '工程技术标准手册'
|
||||||
|
}
|
||||||
|
if (method == 'process.scheme') {
|
||||||
|
return '方案手册'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return '手册';
|
return '手册';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user