Fixiaobai
2023-11-16 aae7cc89326db4c5c1b7cb2deea0ed0e7fde6906
src/views/quality/finishedProductInspection/finishedProducter-print.vue
@@ -64,34 +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=7 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>通断:  &nbsp;&nbsp;□合格 &nbsp;&nbsp; □不合格</td>
            <td  colspan=7 class=xl6624921 style='border-right:.5pt solid black;
border-left:none'>线序:  &nbsp;&nbsp;□合格 &nbsp;&nbsp; □不合格</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 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>绝缘电阻≥</p><p>______00MΩ</p><p>_____00VDC</p></td>
                <td  colspan=2 rowspan=3 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'><p>测试结</p><p>果最小</p><p>值</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=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 style='mso-height-source:userset;height:40.05pt'>
            <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'>
                <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;
@@ -107,9 +142,9 @@
            <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'>
            <!-- <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;
  height:40.05pt'>通断/线序</td>
                <td  colspan=7 class=xl6624921 style='border-right:.5pt solid black;
@@ -482,8 +517,8 @@
            <td colspan=10  height=53 class=xl7624921 style='border-right:.5pt solid black;
  height:40.05pt'><p>发出产品不得出现任何形式的供应商信息,包括缆盘上的标签、电缆</p><p>上供应商名称等</p></td>
            <td  colspan=3 class=xl6624921 style='border-right:.5pt solid black;
  border-left:none'>  &nbsp; □合格 &nbsp;□不合格</td>
            </tr>
  border-left:none'>  &nbsp; □合格 &nbsp;□不合格</td> -->
            <!-- </tr> -->
            <tr  class=xl6524921 height=53 style='mso-height-source:userset;height:40.05pt'>
            <td colspan=8  height=53 class=xl7624921 style='border-right:.5pt solid black;
  height:40.05pt;text-align: left;'><p>&nbsp;检验/时间:</p></td>
@@ -525,6 +560,7 @@
            childrenData: [],
            typedata:null,
            num:null,
            prjdata:[],
        }
    },
    created(){
@@ -539,6 +575,11 @@
            this.product = this.tableData.material
            this.number = this.tableData.quantity
            this.typedata = this.tableData.specs
            this.tableData.children.forEach(el =>{
                this.prjdata.push(el)
                console.log("-----",this.prjdata);
             })
        },
    },
    watch:{