浏览代码

附件和列表排版

laiguoran 4 年之前
父节点
当前提交
d887aae68a
共有 3 个文件被更改,包括 10 次插入9 次删除
  1. 2 2
      app/public/js/material_file.js
  2. 2 1
      app/view/material/file.ejs
  3. 6 6
      app/view/material/index.ejs

+ 2 - 2
app/public/js/material_file.js

@@ -216,8 +216,8 @@ $(document).ready(function () {
             // 只判断当前期,因为以往期都是只读的
             if (file.mid === parseInt(mid) && file.tid === parseInt(tid) && file.user_id === parseInt(cur_uid)) {
                 if (!curAuditor) {
-                    material.status === auditConst.status.uncheck && parseInt(cur_uid) === material.user_id && (showDel = true)
-                    material.status === auditConst.status.checkNo && parseInt(cur_uid) === material.user_id && (showDel = true)
+                    materialStatus === auditConst.status.uncheck && parseInt(cur_uid) === materialUid && (showDel = true)
+                    materialStatus === auditConst.status.checkNo && parseInt(cur_uid) === materialUid && (showDel = true)
                 } else {
                     curAuditor.aid === parseInt(cur_uid) && (showDel = true)
                 }

+ 2 - 1
app/view/material/file.ejs

@@ -101,7 +101,8 @@
 <script>
   const auditors = JSON.parse('<%- JSON.stringify(auditors) %>');
   const curAuditor = JSON.parse('<%- JSON.stringify(ctx.material.curAuditor) %>');
-  const material = JSON.parse('<%- JSON.stringify(ctx.material) %>');
+  const materialStatus = '<%- ctx.material.status %>';
+  const materialUid = '<%- ctx.material.user_id %>';
   const auditConst = JSON.parse('<%- JSON.stringify(auditConst) %>');
   const tid = '<%- ctx.tender.id %>';
   const mid = '<%- ctx.material.id %>';

+ 6 - 6
app/view/material/index.ejs

@@ -25,16 +25,16 @@
                         <th class="text-center" rowspan="2">计量期</th>
                         <th class="text-center" colspan="2">信息价调差</th>
                         <th class="text-center" colspan="2">指数法调差</th>
-                        <th class="text-center" rowspan="2">合计(含税)</th>
-                        <th class="text-center" rowspan="2">合计</th>
+                        <th class="text-center" width="110" rowspan="2">合计(含税)</th>
+                        <th class="text-center" width="110" rowspan="2">合计</th>
                         <th class="text-center" rowspan="2">审批进度</th>
                         <th class="text-center" rowspan="2" width="140">操作</th>
                     </tr>
                     <tr>
-                        <th class="text-center">价差费用(含税)</th>
-                        <th class="text-center">价差费用</th>
-                        <th class="text-center">价差费用(含税)</th>
-                        <th class="text-center">价差费用</th>
+                        <th class="text-center" width="110">价差费用(含税)</th>
+                        <th class="text-center" width="110">价差费用</th>
+                        <th class="text-center" width="110">价差费用(含税)</th>
+                        <th class="text-center" width="110">价差费用</th>
                     </tr>
                     </thead>
                     <tbody>