|
@@ -225,7 +225,7 @@ function getShenpiHtml (this_code) {
|
|
'data-original-title="'+ (nameList.length > 0 ? nameList.join('-') : '') +'"></i>');
|
|
'data-original-title="'+ (nameList.length > 0 ? nameList.join('-') : '') +'"></i>');
|
|
}
|
|
}
|
|
html.push('</td>');
|
|
html.push('</td>');
|
|
- html.push('<td>', this_code !== sp.code ? '<input type="checkbox" data-code="'+ sp.code +'">' : '', '</td>');
|
|
|
|
|
|
+ html.push('<td>', this_code !== sp.code ? '<input type="checkbox" data-code="'+ sp.code +'"' + (sp.groupList && sp.groupList.length > 0 ? 'disabled' : '') + '>' : '', '</td>');
|
|
html.push('</tr>');
|
|
html.push('</tr>');
|
|
}
|
|
}
|
|
html.push('</table>');
|
|
html.push('</table>');
|
|
@@ -250,11 +250,11 @@ $(document).ready(function () {
|
|
getAuditTypeHtml: function(code, type) {
|
|
getAuditTypeHtml: function(code, type) {
|
|
const html = [];
|
|
const html = [];
|
|
const hide = ['stage', 'change'].indexOf(code) === -1 ? 'style="display: none;"' : '';
|
|
const hide = ['stage', 'change'].indexOf(code) === -1 ? 'style="display: none;"' : '';
|
|
- html.push(`<span class="d-inline-block"><select class="form-control form-control-sm" ${hide} data-type="${type}">`);
|
|
|
|
|
|
+ html.push(`<span class="d-inline-block"><select class="form-control form-control-sm audit-type-key" ${hide} data-type="${type}">`);
|
|
for (const t of auditType.types) {
|
|
for (const t of auditType.types) {
|
|
html.push(`<option value="${t.value}" ${t.value === type ? 'selected' : ''}>${t.name}</option>`);
|
|
html.push(`<option value="${t.value}" ${t.value === type ? 'selected' : ''}>${t.name}</option>`);
|
|
}
|
|
}
|
|
- html.push('</select></span>');
|
|
|
|
|
|
+ html.push('</select></span> ');
|
|
return html.join('');
|
|
return html.join('');
|
|
},
|
|
},
|
|
getSelectAuditHtml: function (code) {
|
|
getSelectAuditHtml: function (code) {
|
|
@@ -315,6 +315,43 @@ $(document).ready(function () {
|
|
html.push('</span></span></li>');
|
|
html.push('</span></span></li>');
|
|
return html.join('');
|
|
return html.join('');
|
|
},
|
|
},
|
|
|
|
+ getGroupHtml: function (flow, this_code) {
|
|
|
|
+ let html = '';
|
|
|
|
+ if (flow && flow.groupList.length > 0) {
|
|
|
|
+ let groupSelectHtml = '';
|
|
|
|
+ for (const group of flow.groupList) {
|
|
|
|
+ groupSelectHtml += `<option value="${group.id}" ${group.is_select === 1 ? 'selected' : ''}>${group.name}</option>`;
|
|
|
|
+ }
|
|
|
|
+ const selectGroup = flow.groupList.find(x => { return x.is_select === 1 });
|
|
|
|
+ html += '<div class="d-flex justify-content-start align-items-center mb-3">\n' +
|
|
|
|
+ ' <span class="col-auto">当前审批组:</span>\n' +
|
|
|
|
+ ' <span style="width: 200px;">\n' +
|
|
|
|
+ ' <select class="form-control form-control-sm group-list">\n' +
|
|
|
|
+ groupSelectHtml +
|
|
|
|
+ ' </select>\n' +
|
|
|
|
+ ' </span>\n' +
|
|
|
|
+ ` <span class="pl-3"><a href="javascript:void(0);" class="show-spzsave edit-spzsave" data-group="${selectGroup.id}" data-code="${this_code}"><i class="fa fa-edit"></i> 编辑审批组</a></span>\n` +
|
|
|
|
+ ` <span class="pl-3"><a href="javascript:void(0);" class="show-spzsave" data-code="${this_code}"><i class="fa fa-plus"></i> 添加审批组</a></span>\n` +
|
|
|
|
+ ' </div>';
|
|
|
|
+ }
|
|
|
|
+ return html;
|
|
|
|
+ },
|
|
|
|
+ getgdsplHtml(flow, this_code) {
|
|
|
|
+ let addhtml = '';
|
|
|
|
+ if (flow.auditGroupList.length !== 0) {
|
|
|
|
+ for(const [i, auditGroup] of flow.auditGroupList.entries()) {
|
|
|
|
+ addhtml += auditUtils.getAuditGroupHtml(this_code, auditGroup, i + 1);
|
|
|
|
+ }
|
|
|
|
+ const addGroupHtml = this_code === 'change' && (!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` : '';
|
|
|
|
+ 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 +
|
|
|
|
+ ' </li>';
|
|
|
|
+ } else {
|
|
|
|
+ addhtml += auditUtils.getAuditGroupHtml(this_code, [], 1);
|
|
|
|
+ }
|
|
|
|
+ return addhtml;
|
|
|
|
+ },
|
|
// 以下i从0开始
|
|
// 以下i从0开始
|
|
addAudit: function (code, user, i) {
|
|
addAudit: function (code, user, i) {
|
|
const flow = sp_lc.find(x => { return x.code === code });
|
|
const flow = sp_lc.find(x => { return x.code === code });
|
|
@@ -420,20 +457,13 @@ $(document).ready(function () {
|
|
if (this_status === sp_status.sqspr) {
|
|
if (this_status === sp_status.sqspr) {
|
|
_self.parents('.form-group').siblings('.lc-show').html('');
|
|
_self.parents('.form-group').siblings('.lc-show').html('');
|
|
} else if (this_status === sp_status.gdspl) {
|
|
} else if (this_status === sp_status.gdspl) {
|
|
- let addhtml = '<ul class="list-unstyled">\n';
|
|
|
|
const flow = sp_lc.find(x => { return x.code === this_code; });
|
|
const flow = sp_lc.find(x => { return x.code === this_code; });
|
|
flow.auditGroupList = data;
|
|
flow.auditGroupList = data;
|
|
- if (data.length !== 0) {
|
|
|
|
- for(const [i, auditGroup] of data.entries()) {
|
|
|
|
- addhtml += auditUtils.getAuditGroupHtml(this_code, auditGroup, i + 1);
|
|
|
|
- }
|
|
|
|
- addhtml += '<li class="pl-3"><a href="javascript:void(0);" class="add-audit"><i class="fa fa-plus"></i> 添加流程</a></li>';
|
|
|
|
- } else {
|
|
|
|
- addhtml += auditUtils.getAuditGroupHtml(this_code, [], 1);
|
|
|
|
- }
|
|
|
|
|
|
+ let addhtml = auditUtils.getGroupHtml(flow, this_code);
|
|
|
|
+ addhtml += '<ul class="list-unstyled">\n';
|
|
|
|
+ addhtml += auditUtils.getgdsplHtml(flow, this_code);
|
|
addhtml += '</ul>\n';
|
|
addhtml += '</ul>\n';
|
|
_self.parents('.form-group').siblings('.lc-show').html(addhtml);
|
|
_self.parents('.form-group').siblings('.lc-show').html(addhtml);
|
|
-
|
|
|
|
} else if (this_status === sp_status.gdzs) {
|
|
} else if (this_status === sp_status.gdzs) {
|
|
let addhtml = '<ul class="list-unstyled">\n' +
|
|
let addhtml = '<ul class="list-unstyled">\n' +
|
|
' <li class="d-flex justify-content-start mb-3">\n' +
|
|
' <li class="d-flex justify-content-start mb-3">\n' +
|
|
@@ -490,7 +520,7 @@ $(document).ready(function () {
|
|
type: 'add',
|
|
type: 'add',
|
|
};
|
|
};
|
|
if (this_status === sp_status.gdspl) {
|
|
if (this_status === sp_status.gdspl) {
|
|
- prop.audit_type = parseInt($(this).parents('li').find('select')[0].value);
|
|
|
|
|
|
+ prop.audit_type = parseInt($(this).parents('li').find('select[class*="audit-type-key"]')[0].value);
|
|
prop.audit_order = $(this).parents('li').index() + 1;
|
|
prop.audit_order = $(this).parents('li').index() + 1;
|
|
}
|
|
}
|
|
const _self = $(this);
|
|
const _self = $(this);
|
|
@@ -498,7 +528,12 @@ $(document).ready(function () {
|
|
if (this_status === sp_status.gdspl) {
|
|
if (this_status === sp_status.gdspl) {
|
|
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) {
|
|
- _self.parents('ul').append('<li class="pl-3"><a href="javascript:void(0);" class="add-audit"><i class="fa fa-plus"></i> 添加流程</a></li>');
|
|
|
|
|
|
+ const flow = sp_lc.find(x => { return x.code === this_code; });
|
|
|
|
+ const addGroupHtml = this_code === 'change' && (!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` : '';
|
|
|
|
+ _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 +
|
|
|
|
+ ' </li>');
|
|
}
|
|
}
|
|
_self.parents('li').html(auditUtils.getAuditGroupInnerHtml(this_code, auditGroup, prop.audit_order));
|
|
_self.parents('li').html(auditUtils.getAuditGroupInnerHtml(this_code, auditGroup, prop.audit_order));
|
|
} else {
|
|
} else {
|
|
@@ -586,7 +621,7 @@ $(document).ready(function () {
|
|
const removes = $(li).find('.remove-audit');
|
|
const removes = $(li).find('.remove-audit');
|
|
if (removes.length === 0) return;
|
|
if (removes.length === 0) return;
|
|
|
|
|
|
- const select = $(li).find('select');
|
|
|
|
|
|
+ const select = $(li).find('select[class*="audit-type-key"]');
|
|
const audit_type = select.length > 0 ? parseInt(select.val()) : 1;
|
|
const audit_type = select.length > 0 ? parseInt(select.val()) : 1;
|
|
for (const remove of removes) {
|
|
for (const remove of removes) {
|
|
auditList.push({ audit_id: parseInt(remove.getAttribute('data-id')), audit_type, audit_order: i + 1 });
|
|
auditList.push({ audit_id: parseInt(remove.getAttribute('data-id')), audit_type, audit_order: i + 1 });
|
|
@@ -611,6 +646,7 @@ $(document).ready(function () {
|
|
const num = $('#tender-list input:checked').length;
|
|
const num = $('#tender-list input:checked').length;
|
|
if (num < 2) {
|
|
if (num < 2) {
|
|
toastr.warning('请选择需要设置审批同步的标段');
|
|
toastr.warning('请选择需要设置审批同步的标段');
|
|
|
|
+ $(this).removeAttr('disabled');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
const data = {
|
|
const data = {
|
|
@@ -642,7 +678,7 @@ $(document).ready(function () {
|
|
let canSetOther = true;
|
|
let canSetOther = true;
|
|
const this_code = $(this).data('code');
|
|
const this_code = $(this).data('code');
|
|
if (['stage', 'change'].indexOf(this_code) !== -1) {
|
|
if (['stage', 'change'].indexOf(this_code) !== -1) {
|
|
- const select = $(this).siblings('.lc-show').find('select');
|
|
|
|
|
|
+ const select = $(this).siblings('.lc-show').find('select[class*="audit-type-key"]');
|
|
select.each((i, s) => {
|
|
select.each((i, s) => {
|
|
if (s.value !== '1') canSetOther = false;
|
|
if (s.value !== '1') canSetOther = false;
|
|
});
|
|
});
|
|
@@ -675,6 +711,7 @@ $(document).ready(function () {
|
|
const num = $('#shenpi-list input:checked').length;
|
|
const num = $('#shenpi-list input:checked').length;
|
|
if (num < 1) {
|
|
if (num < 1) {
|
|
toastr.warning('请选择需要设置审批同步的流程');
|
|
toastr.warning('请选择需要设置审批同步的流程');
|
|
|
|
+ $(this).removeAttr('disabled');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
const data = {
|
|
const data = {
|
|
@@ -701,7 +738,7 @@ $(document).ready(function () {
|
|
});
|
|
});
|
|
|
|
|
|
// 设置会签、或签
|
|
// 设置会签、或签
|
|
- $('body').on('change', 'select', function() {
|
|
|
|
|
|
+ $('body').on('change', 'select[class*="audit-type-key"]', function() {
|
|
const removes = $(this).parents('.d-flex').find('.remove-audit');
|
|
const removes = $(this).parents('.d-flex').find('.remove-audit');
|
|
if (removes.length === 0) return;
|
|
if (removes.length === 0) return;
|
|
|
|
|
|
@@ -1008,6 +1045,184 @@ $(document).ready(function () {
|
|
const X = $('#tender-list').find('.result').eq(now-1).offset().top;
|
|
const X = $('#tender-list').find('.result').eq(now-1).offset().top;
|
|
$('#tender-list').scrollTop(X - $('#tender-list').offset().top + $('#tender-list').scrollTop() -30);
|
|
$('#tender-list').scrollTop(X - $('#tender-list').offset().top + $('#tender-list').scrollTop() -30);
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ // 审批组
|
|
|
|
+ $('body').on('click', '.show-spzsave', function () {
|
|
|
|
+ const this_code = $(this).attr('data-code');
|
|
|
|
+ const groupId = $(this).attr('data-group') || null;
|
|
|
|
+ const flow = sp_lc.find(x => { return x.code === this_code; });
|
|
|
|
+ $('#save-code').val(this_code);
|
|
|
|
+ const group = groupId ? flow.groupList.find(x => { return x.id === parseInt(groupId); }) : null;
|
|
|
|
+ if (group) {
|
|
|
|
+ $('#save-group-id').val(group.id);
|
|
|
|
+ $('#spzsave input[name="group_name"]').val(group.name);
|
|
|
|
+ $('#show-delete-group-btn').show();
|
|
|
|
+ } else {
|
|
|
|
+ $('#save-group-id').val('');
|
|
|
|
+ $('#spzsave input[name="group_name"]').val('');
|
|
|
|
+ $('#show-delete-group-btn').hide();
|
|
|
|
+ }
|
|
|
|
+ if (this_code === 'change') {
|
|
|
|
+ if (group) {
|
|
|
|
+ $('#show-change-type input').each(function () {
|
|
|
|
+ if (group.change_type[$(this).data('type')]) {
|
|
|
|
+ $(this).prop('checked', true);
|
|
|
|
+ } else {
|
|
|
|
+ $(this).prop('checked', false);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ $('#show-change-type input').each(function () {
|
|
|
|
+ $(this).prop('checked', false);
|
|
|
|
+ });
|
|
|
|
+ $('#show-change-type input[data-type="change"]').prop('checked', true);
|
|
|
|
+ }
|
|
|
|
+ $('#show-change-type input').removeAttr('disabled');
|
|
|
|
+ $('#show-change-type').show();
|
|
|
|
+ } else {
|
|
|
|
+ $('#show-change-type input').attr('disabled', true);
|
|
|
|
+ $('#show-change-type').hide();
|
|
|
|
+ }
|
|
|
|
+ $('#spzsave').modal('show');
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $('#save-group-btn').click(function () {
|
|
|
|
+ const name = _.trim($('#spzsave input[name="group_name"]').val());
|
|
|
|
+ if (!name) {
|
|
|
|
+ toastr.error('审批组名称不能为空');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (name.length > 50) {
|
|
|
|
+ toastr.error('审批组名称不能超过50个字符');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ const code = $('#save-code').val();
|
|
|
|
+ const prop = {
|
|
|
|
+ type: 'save-group',
|
|
|
|
+ name,
|
|
|
|
+ code,
|
|
|
|
+ }
|
|
|
|
+ const groupId = $('#save-group-id').val();
|
|
|
|
+ const flow = sp_lc.find(x => { return x.code === code; });
|
|
|
|
+ if (flow.groupList && flow.groupList.length >= 0 && _.findIndex(flow.groupList, function (item) {
|
|
|
|
+ return item.name === name && item.id !== parseInt(groupId);
|
|
|
|
+ }) !== -1) {
|
|
|
|
+ toastr.error('审批组名称已存在, 请更改名称');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (groupId) {
|
|
|
|
+ const group = groupId ? flow.groupList.find(x => { return x.id === parseInt(groupId); }) : null;
|
|
|
|
+ if (!group) {
|
|
|
|
+ toastr.error('审批组不存在');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ prop.groupId = group.id;
|
|
|
|
+ }
|
|
|
|
+ if (code === 'change') {
|
|
|
|
+ const change_type = {};
|
|
|
|
+ let change_flag = false;
|
|
|
|
+ $('#show-change-type input').each(function () {
|
|
|
|
+ change_type[$(this).data('type')] = $(this).prop('checked');
|
|
|
|
+ if ($(this).prop('checked')) {
|
|
|
|
+ change_flag = true;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if (!change_flag) {
|
|
|
|
+ toastr.error('请至少选择一种变更显示模块');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ prop.change_type = change_type;
|
|
|
|
+ }
|
|
|
|
+ console.log(prop);
|
|
|
|
+ postData('/tender/' + cur_tenderid + '/shenpi/audit/save', prop, function (data) {
|
|
|
|
+ console.log(data);
|
|
|
|
+ sp_lc[sp_type[code]].auditGroupList = data.group.auditGroupList || [];
|
|
|
|
+ if (groupId) {
|
|
|
|
+ const index = sp_lc[sp_type[code]].groupList.findIndex(x => { return x.id === parseInt(groupId); });
|
|
|
|
+ sp_lc[sp_type[code]].groupList[index] = data.group;
|
|
|
|
+ } else {
|
|
|
|
+ for (const g of sp_lc[sp_type[code]].groupList) {
|
|
|
|
+ g.is_select = 0;
|
|
|
|
+ }
|
|
|
|
+ if (!sp_lc[sp_type[code]].groupList) sp_lc[sp_type[code]].groupList = [];
|
|
|
|
+ sp_lc[sp_type[code]].groupList.push(data.group);
|
|
|
|
+ }
|
|
|
|
+ // 配置页面
|
|
|
|
+ let addhtml = auditUtils.getGroupHtml(sp_lc[sp_type[code]], code);
|
|
|
|
+ addhtml += '<ul class="list-unstyled">\n';
|
|
|
|
+ addhtml += auditUtils.getgdsplHtml(sp_lc[sp_type[code]], code);
|
|
|
|
+ addhtml += '</ul>\n';
|
|
|
|
+ $('.' + code + '_div').children('.lc-show').html(addhtml);
|
|
|
|
+ $('#spzsave').modal('hide');
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ // 切换审批组
|
|
|
|
+ $('body').on('change', '.group-list', function () {
|
|
|
|
+ const this_code = $(this).parents('.lc-show').siblings('.form-group').find('input:checked').data('code');
|
|
|
|
+ const groupId = parseInt($(this).val());
|
|
|
|
+ const _self = $(this);
|
|
|
|
+ const prop = {
|
|
|
|
+ type: 'change-group',
|
|
|
|
+ groupId,
|
|
|
|
+ }
|
|
|
|
+ postData('/tender/' + cur_tenderid + '/shenpi/audit/save', prop, function (data) {
|
|
|
|
+ sp_lc[sp_type[this_code]].groupList.forEach(function (item) {
|
|
|
|
+ item.is_select = 0;
|
|
|
|
+ });
|
|
|
|
+ const group = sp_lc[sp_type[this_code]].groupList.find(x => { return x.id === groupId; });
|
|
|
|
+ group.is_select = 1;
|
|
|
|
+ sp_lc[sp_type[this_code]].auditGroupList = group.auditGroupList;
|
|
|
|
+ const addhtml = auditUtils.getgdsplHtml(sp_lc[sp_type[this_code]], this_code);
|
|
|
|
+ _self.parents('.lc-show').children('ul').html(addhtml);
|
|
|
|
+ _self.parents('.lc-show').find('.edit-spzsave').attr('data-group', groupId);
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $('#show-delete-group-btn').click(function () {
|
|
|
|
+ const code = $('#save-code').val();
|
|
|
|
+ const groupId = $('#save-group-id').val();
|
|
|
|
+ const flow = sp_lc.find(x => { return x.code === code; });
|
|
|
|
+ const group = groupId ? flow.groupList.find(x => { return x.id === parseInt(groupId); }) : null;
|
|
|
|
+ if (!group) {
|
|
|
|
+ toastr.error('该审批组不存在');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ $('#delete-group-name').text(group.name);
|
|
|
|
+ $('#delete-group-id').val(group.id);
|
|
|
|
+ $('#delete-code').val(code);
|
|
|
|
+ $('#spzsave').modal('hide');
|
|
|
|
+ $('#spzdelete').modal('show');
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $('#delete-group-btn').click(function () {
|
|
|
|
+ const code = $('#delete-code').val();
|
|
|
|
+ const groupId = $('#delete-group-id').val();
|
|
|
|
+ const flow = sp_lc.find(x => { return x.code === code; });
|
|
|
|
+ const group = groupId ? flow.groupList.find(x => { return x.id === parseInt(groupId); }) : null;
|
|
|
|
+ if (!group) {
|
|
|
|
+ toastr.error('该审批组不存在');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ const prop = {
|
|
|
|
+ type: 'delete-group',
|
|
|
|
+ groupId: group.id,
|
|
|
|
+ }
|
|
|
|
+ console.log(prop);
|
|
|
|
+ postData('/tender/' + cur_tenderid + '/shenpi/audit/save', prop, function (data) {
|
|
|
|
+ const index = sp_lc[sp_type[code]].groupList.findIndex(x => { return x.id === group.id; });
|
|
|
|
+ sp_lc[sp_type[code]].groupList.splice(index, 1);
|
|
|
|
+ sp_lc[sp_type[code]].auditGroupList = sp_lc[sp_type[code]].groupList.length > 0 ? sp_lc[sp_type[code]].groupList[0].auditGroupList : [];
|
|
|
|
+ if (sp_lc[sp_type[code]].groupList.length > 0) sp_lc[sp_type[code]].groupList[0].is_select = 1;
|
|
|
|
+ // 配置页面
|
|
|
|
+ let addhtml = auditUtils.getGroupHtml(sp_lc[sp_type[code]], code);
|
|
|
|
+ addhtml += '<ul class="list-unstyled">\n';
|
|
|
|
+ addhtml += auditUtils.getgdsplHtml(sp_lc[sp_type[code]], code);
|
|
|
|
+ addhtml += '</ul>\n';
|
|
|
|
+ $('.' + code + '_div').children('.lc-show').html(addhtml);
|
|
|
|
+ $('#spzdelete').modal('hide');
|
|
|
|
+ });
|
|
|
|
+ });
|
|
});
|
|
});
|
|
|
|
|
|
// 审批流程-审批人html 生成
|
|
// 审批流程-审批人html 生成
|