|
@@ -293,11 +293,10 @@ $(document).ready(function () {
|
|
html.push(this.getSelectAuditHtml(code));
|
|
html.push(this.getSelectAuditHtml(code));
|
|
}
|
|
}
|
|
html.push('</span>');
|
|
html.push('</span>');
|
|
- console.log(html.join('\n'));
|
|
|
|
return html.join('');
|
|
return html.join('');
|
|
},
|
|
},
|
|
getAuditGroupHtml: function (code, auditGroup, i) {
|
|
getAuditGroupHtml: function (code, auditGroup, i) {
|
|
- return `<li class="d-flex justify-content-start mb-3">${this.getAuditGroupInnerHtml(code, auditGroup, i)}</li>`;
|
|
|
|
|
|
+ return `<li class="d-flex justify-content-start align-items-center mb-3">${this.getAuditGroupInnerHtml(code, auditGroup, i)}</li>`;
|
|
},
|
|
},
|
|
getFinalAuditHtml: function (audit) {
|
|
getFinalAuditHtml: function (audit) {
|
|
const html = [];
|
|
const html = [];
|
|
@@ -320,7 +319,7 @@ $(document).ready(function () {
|
|
flow.auditGroupList.splice(i, 1);
|
|
flow.auditGroupList.splice(i, 1);
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
- flow.auditGroupList[i].splice(flow.auditGroupList[i].findIndex(x => { return x.id === audit_id; }), 1);
|
|
|
|
|
|
+ flow.auditGroupList[i].splice(flow.auditGroupList[i].findIndex(x => { return x.audit_id === audit_id; }), 1);
|
|
return flow.auditGroupList[i];
|
|
return flow.auditGroupList[i];
|
|
},
|
|
},
|
|
setAuditType: function (code, audit_type, i) {
|
|
setAuditType: function (code, audit_type, i) {
|
|
@@ -489,10 +488,10 @@ $(document).ready(function () {
|
|
postData('/tender/' + cur_tenderid + '/shenpi/audit/save', prop, function (data) {
|
|
postData('/tender/' + cur_tenderid + '/shenpi/audit/save', prop, function (data) {
|
|
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);
|
|
- _self.parents('li').html(auditUtils.getAuditGroupInnerHtml(this_code, auditGroup, prop.audit_order));
|
|
|
|
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>');
|
|
_self.parents('ul').append('<li class="pl-3"><a href="javascript:void(0);" class="add-audit"><i class="fa fa-plus"></i> 添加流程</a></li>');
|
|
}
|
|
}
|
|
|
|
+ _self.parents('li').html(auditUtils.getAuditGroupInnerHtml(this_code, auditGroup, prop.audit_order));
|
|
} else {
|
|
} else {
|
|
_self.parents('.spr-span').html('<span class="d-inline-block"></span>\n' +
|
|
_self.parents('.spr-span').html('<span class="d-inline-block"></span>\n' +
|
|
'<span class="d-inline-block"><span class="badge badge-light">'+ user.name +' <span class="dropdown">\n' +
|
|
'<span class="d-inline-block"><span class="badge badge-light">'+ user.name +' <span class="dropdown">\n' +
|