Explorar o código

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

MaiXinRong %!s(int64=3) %!d(string=hai) anos
pai
achega
fbdd7994c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>',