Browse Source

fix:成品率

lupeng 3 months ago
parent
commit
6566178fc8
1 changed files with 16 additions and 17 deletions
  1. 16 17
      src/views/statistic/report/toPrintTables.vue

+ 16 - 17
src/views/statistic/report/toPrintTables.vue

@@ -56,7 +56,7 @@ defineExpose({
               </div>
 
               <div class="tableTitle">模块筛选情况</div>
-              <table v-for="(item, index) in tableData.filterList" :key="index">
+              <table v-for="(item, index) in tableData.filterList" :key="index" style="margin-top:10px">
                 <thead>
                   <tr>
                     <th rowspan="2">序号</th>
@@ -139,10 +139,11 @@ defineExpose({
               </table>
             </div>
             <div style="page-break-after: always; margin-top: 50px">
-              <div class="tableTitle">质量管理部成品率统计快报</div>
-              <table>
-                <thead>
-                  <tr>
+              <div class="tableTitle">成品率统计</div>
+              <table v-for="(item, index) in tableData.finishListList">
+                <thead >
+
+                  <tr >
                     <th id="lineId" rowspan="2">
                       <span class="right-text">产品分类</span>
                       <span class="left-text">工序</span>
@@ -168,34 +169,32 @@ defineExpose({
                         />
                       </svg>
                     </th>
-                    <th colspan="3">HTH328MJ</th>
+                    <th  :colspan="index==0?3:4" v-for="(itemModel, index) in item.materialModelList">{{itemModel}}</th>
                   </tr>
                   <tr>
-                    <th class="vertical-text">目标%</th>
-                    <th class="vertical-text">实际%</th>
-                    <th class="vertical-text">增量%</th>
+                    <th class="vertical-text" v-for="(itemLine, index) in item.headLine">{{itemLine}}</th>
+
                   </tr>
+
                 </thead>
                 <tbody>
-                  <tr v-for="(item, index) in moduleScreeningData" :key="index">
-                    <td>清洗</td>
-                    <td>100</td>
-                    <td>100</td>
-                    <td>0</td>
+                  <tr v-for="(itemLine, index) in item.lineList" :key="index">
+                    <td v-for="(itemOp, index) in itemLine">{{itemOp}}</td>
+
                   </tr>
                   <tr>
                     <td>备注</td>
-                    <td :colspan="1 * 3">这是备注内容</td>
+                    <td :colspan="item.num * 4-1" v-html="item.remark" style="text-align: center"></td>
                   </tr>
                 </tbody>
               </table>
             </div>
             <div class="tableTitle" style="margin-top: 50px">入库</div>
-            <div class="info">
+<!--            <div class="info">
               <div class="text">产品型号:</div>
               <div class="text">产品批次:</div>
               <div class="text">报告日期:2025年03月23日</div>
-            </div>
+            </div>-->
             <table>
               <thead>
                 <tr>