|
@@ -3056,6 +3056,8 @@ $(document).ready(() => {
|
|
|
$('#edit-att').hide();
|
|
|
$('#show-att').show();
|
|
|
if (att !== undefined) {
|
|
|
+ // 进来先把编辑功能隐藏
|
|
|
+ $('#btn-att a').eq(3).hide()
|
|
|
$('#show-att tr').eq(0).children('td').text(att.filename + att.fileext);
|
|
|
const name = att.code !== null && att.code !== '' ? att.code : (att.b_code !== null ? att.b_code : '');
|
|
|
$('#show-att tr').eq(1).children('td').text($.trim(name + ' ' + att.lname));
|
|
@@ -3075,22 +3077,6 @@ $(document).ready(() => {
|
|
|
} else {
|
|
|
curAuditor.aid === parseInt(cur_uid) && (showDel = true)
|
|
|
}
|
|
|
- // if (curAuditor && curAuditor.aid !== parseInt(cur_uid)) showDel = false
|
|
|
- // // 审核完成后再上传的,上传者可删除附件
|
|
|
- // if (stage.status === auditConst.status.checked && !parseInt(att.re_upload)) showDel = false;
|
|
|
-
|
|
|
- // // 审核被退回,原报上传的附件可以删除
|
|
|
- // if (stage.status === auditConst.status.checkNo && parseInt(cur_uid) !== stage.user_id) showDel = false;
|
|
|
-
|
|
|
- // // 审核中,原报上传的图片不能删除
|
|
|
- // if (stage.status === auditConst.status.checking && stage.user_id === parseInt(cur_uid)) showDel = false;
|
|
|
-
|
|
|
- // // 但该阶段不属于该审核人操作的阶段
|
|
|
- // if (curAuditor.aid !== parseInt(cur_uid)) showDel = false;
|
|
|
-
|
|
|
- // // 台账未上报、当前用户为原报, 可以删除附件
|
|
|
- // if (stage.status === auditConst.status.uncheck && stage.user_id !== parseInt(cur_uid)) showDel = false;
|
|
|
-
|
|
|
if (showDel) $('#btn-att a').eq(3).show();
|
|
|
// $('#btn-att a').eq(3).show();
|
|
|
$('#btn-att a').eq(2).hide();
|
|
@@ -3111,6 +3097,7 @@ $(document).ready(() => {
|
|
|
toastr.error('附件信息获取失败');
|
|
|
}
|
|
|
});
|
|
|
+ // $('body').on('click', '.alllist-table a', handleFileList);
|
|
|
$('body').on('click', '#btn-att a', function () {
|
|
|
const content = $(this).attr('content');
|
|
|
const fid = $('#showAttachment').attr('file-id');
|