浏览代码

中间计量,计量流程中上传的附件,不可删除

MaiXinRong 3 年之前
父节点
当前提交
fbdd7994c1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/public/js/stage.js

+ 1 - 1
app/public/js/stage.js

@@ -2698,7 +2698,7 @@ $(document).ready(() => {
             let html = [];
             if (data.attachment) {
                 for (const att of data.attachment) {
-                    const delHtml = (parseInt(att.uid) === userID || data.uid === userID || (data.uid === -1 && userID === stage.user_id))
+                    const delHtml = (parseInt(att.uid) === userID && (att.renew || stage.status !== auditConst.status.checked))
                         ? '<a class="delete-att text-danger" href="javascript:void(0);" data-imid="'+ data.att_uuid +'" data-attid="'+ att.file_id +'" title="删除"><i class="fa fa-remove "></i></a>'
                         : '';
                     html.push('<tr><td style="width: 200px">' + att.filename + att.fileext + '</td><td>' + att.username + '</td><td>' + att.in_time + '</td>',