|
@@ -345,7 +345,7 @@ $(document).ready(function () {
|
|
|
for(const [i, auditGroup] of flow.auditGroupList.entries()) {
|
|
for(const [i, auditGroup] of flow.auditGroupList.entries()) {
|
|
|
addhtml += this.getAuditGroupHtml(this_code, auditGroup, i + 1);
|
|
addhtml += this.getAuditGroupHtml(this_code, auditGroup, i + 1);
|
|
|
}
|
|
}
|
|
|
- const addGroupHtml = this_code === 'change' && (!flow.groupList || (flow.groupList && flow.groupList.length === 0)) ?
|
|
|
|
|
|
|
+ const addGroupHtml = (this_code === 'change' || this_code === 'stage') && (!flow.groupList || (flow.groupList && flow.groupList.length === 0)) ?
|
|
|
`<span class="pl-3"><a href="javascript:void(0);" class="show-spzsave" data-code="${this_code}"><i class="fa fa-save"></i> 存为审批组</a></span>\n` : '';
|
|
`<span class="pl-3"><a href="javascript:void(0);" class="show-spzsave" data-code="${this_code}"><i class="fa fa-save"></i> 存为审批组</a></span>\n` : '';
|
|
|
addhtml += '<li>\n' +
|
|
addhtml += '<li>\n' +
|
|
|
' <span class="pl-3"><a href="javascript:void(0);" class="add-audit" ><i class="fa fa-plus"></i> 添加流程</a></span>\n' + addGroupHtml +
|
|
' <span class="pl-3"><a href="javascript:void(0);" class="add-audit" ><i class="fa fa-plus"></i> 添加流程</a></span>\n' + addGroupHtml +
|
|
@@ -494,6 +494,7 @@ $(document).ready(function () {
|
|
|
// 选中审批人
|
|
// 选中审批人
|
|
|
$('body').on('click', 'div[id$="_dropdownMenu"] dl dd', function () {
|
|
$('body').on('click', 'div[id$="_dropdownMenu"] dl dd', function () {
|
|
|
const id = parseInt($(this).data('id'));
|
|
const id = parseInt($(this).data('id'));
|
|
|
|
|
+ console.log("选中审批人ID:"+id);
|
|
|
if (!id) return;
|
|
if (!id) return;
|
|
|
|
|
|
|
|
let this_code = $(this).parents('.lc-show').siblings('.form-group').find('input:checked').data('code');
|
|
let this_code = $(this).parents('.lc-show').siblings('.form-group').find('input:checked').data('code');
|
|
@@ -533,7 +534,7 @@ $(document).ready(function () {
|
|
|
const auditGroup = auditUtils.addAudit(this_code, { audit_id: data.audit_id, name: user.name, audit_type: data.audit_type, audit_order: data.audit_order }, prop.audit_order - 1);
|
|
const auditGroup = auditUtils.addAudit(this_code, { audit_id: data.audit_id, name: user.name, audit_type: data.audit_type, audit_order: data.audit_order }, prop.audit_order - 1);
|
|
|
if (_self.parents('ul').find('.add-audit').length === 0) {
|
|
if (_self.parents('ul').find('.add-audit').length === 0) {
|
|
|
const flow = sp_lc.find(x => { return x.code === this_code; });
|
|
const flow = sp_lc.find(x => { return x.code === this_code; });
|
|
|
- const addGroupHtml = this_code === 'change' && (!flow.groupList || (flow.groupList && flow.groupList.length === 0)) ?
|
|
|
|
|
|
|
+ const addGroupHtml = (this_code === 'change'||this_code ==='stage') && (!flow.groupList || (flow.groupList && flow.groupList.length === 0)) ?
|
|
|
`<span class="pl-3"><a href="javascript:void(0);" class="show-spzsave" data-code="${this_code}"><i class="fa fa-save"></i> 存为审批组</a></span>\n` : '';
|
|
`<span class="pl-3"><a href="javascript:void(0);" class="show-spzsave" data-code="${this_code}"><i class="fa fa-save"></i> 存为审批组</a></span>\n` : '';
|
|
|
_self.parents('ul').append('<li>\n' +
|
|
_self.parents('ul').append('<li>\n' +
|
|
|
' <span class="pl-3"><a href="javascript:void(0);" class="add-audit" ><i class="fa fa-plus"></i> 添加流程</a></span>\n' + addGroupHtml +
|
|
' <span class="pl-3"><a href="javascript:void(0);" class="add-audit" ><i class="fa fa-plus"></i> 添加流程</a></span>\n' + addGroupHtml +
|