s
王震
2023-11-15 683b37bc31e2c80636f19d18812b348e9ede8a0a
src/views/quality/finishedProductInspection/finishedProducter-print.vue
@@ -64,62 +64,69 @@
            </tr>
            <tr class=xl6524921 height=53 style='mso-height-source:userset;height:40.05pt'>
                <td colspan=2 height=53 class=xl7624921 style='border-right:.5pt solid black;
  height:40.05pt'>检验要求</td>
               <td  colspan=2 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>标准值</td>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>01</td>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>02</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>03</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>04</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>05</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>06</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>07</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>08</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>09</td>
                <td  colspan=2 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>判定</td>
                <td colspan=3 height=53 class=xl7624921 style='border-right:.5pt solid black;height:40.05pt'>
                    检验要求
                </td>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;border-left:none'>
                    标准值
                </td>
                <td  colspan=1 v-for="a in 9" class=xl6624921 style='border-right:.5pt solid black; border-left:none'>
                    {{a>9?item:'0'+a}}
                </td>
                <td  colspan=2 class=xl6624921 style='border-right:.5pt solid black;border-left:none'>
                    判定
                </td>
            </tr>
            <tbody v-for="(item,index) in father" :key="index">
            <tbody v-for="(item,index) in prjdata" :key="index">
            <tr class=xl6524921 height=53 style='mso-height-source:userset;height:40.05pt'>
                <td colspan=2 rowspan=3 height=53 class=xl7624921 style='border-right:.5pt solid black;
        height:40.05pt'>
        <p class="MsoNormal" align="center" style="text-align:center"><span
        style="font-family:宋体" v-text="item.rpFather"></span></p>
            </td>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'></td>
            <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td>
            <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td><td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>产品</td>
                <td  colspan=3 rowspan="3" class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'><p>□合格</p><p>□不合格</p></td>
                <td  rowspan=3 height=53 class=xl7624921 style='border-right:.5pt solid black; height:40.05pt'>
                    <p class="MsoNormal" align="center" style="text-align:center">
                        <span style="font-family:宋体">{{item.father}}</span>
                    </p>
                </td>
                <td  colspan=2 class=xl6624921 style='border-right:.5pt solid black;border-left:none'>
                    <span style="font-family:宋体">{{item.children[0].iname}}</span>
                </td>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;border-left:none'>
                    <span style="font-family:宋体">{{item.children[0].required}}</span>
                </td>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;border-left:none'>
                    <span style="font-family:宋体">{{item.children[0].inspectionValue}}</span>
                </td>
                <td  colspan=2  class=xl6624921 style='border-right:.5pt solid black; border-left:none'>
                    <p v-if="item.children[0].testState==1" class="MsoNormal" align="center" style="text-align:center">
                        <span lang="EN-US" style="font-family:&quot;Arial&quot;,sans-serif">合格</span></p>
                    <p v-else class="MsoNormal" align="center" style="text-align:center">
                        <span lang="EN-US" style="font-family:&quot;Arial&quot;,sans-serif">不合格</span></p>
                </td>
            </tr>
            <tr class=xl6524921 height=53 v-for="(el,index) in (item.children.slice(1))" :key="index" style='mso-height-source:userset;height:40.05pt'>
                <!-- <td  rowspan=3 height=53 class=xl7624921 style='border-right:.5pt solid black; height:40.05pt'>
                    <p class="MsoNormal" align="center" style="text-align:center">
                        <span style="font-family:宋体"></span>
                    </p>
                </td> -->
                <td  colspan=2 class=xl6624921 style='border-right:.5pt solid black;border-left:none'>
                    <span style="font-family:宋体">{{el.iname}}</span>
                </td>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;border-left:none'>
                    <span style="font-family:宋体">{{el.required}}</span>
                </td>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;border-left:none'>
                    <span style="font-family:宋体">{{el.inspectionValue}}</span>
                </td>
                <td  colspan=2  class=xl6624921 style='border-right:.5pt solid black; border-left:none'>
                    <p v-if="el.testState==1" class="MsoNormal" align="center" style="text-align:center">
                        <span lang="EN-US" style="font-family:&quot;Arial&quot;,sans-serif">合格</span></p>
                    <p v-else class="MsoNormal" align="center" style="text-align:center">
                        <span lang="EN-US" style="font-family:&quot;Arial&quot;,sans-serif">不合格</span></p>
                </td>
            </tr>
            </tbody>
            <tr class=xl6524921 height=53 style='mso-height-source:userset;height:40.05pt'>
            <!-- <tr class=xl6524921 height=53 style='mso-height-source:userset;height:40.05pt'>
                <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'></td>
  <td  colspan=1 class=xl6624921 style='border-right:.5pt solid black;
@@ -135,7 +142,7 @@
            <tr class=xl6524921 height=53 style='mso-height-source:userset;height:40.05pt'>
                <td  colspan=9 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'></td>
            </tr>
            </tr> -->
            <!-- <tr class=xl6524921 height=53 style='mso-height-source:userset;height:40.05pt'>
                <td colspan=2 rowspan=2 height=53 class=xl7624921 style='border-right:.5pt solid black;
@@ -553,7 +560,7 @@
            childrenData: [],
            typedata:null,
            num:null,
            father:[],
            prjdata:[],
        }
    },
    created(){
@@ -569,8 +576,8 @@
            this.number = this.tableData.quantity
            this.typedata = this.tableData.specs
            this.tableData.children.forEach(el =>{
                this.father.push(el.father)
                console.log("-----",this.father);
                this.prjdata.push(el)
                console.log("-----",this.prjdata);
             })
            
        },