|
@@ -0,0 +1,130 @@
|
|
|
+<!-- 导出来料通知单 -->
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <el-dialog
|
|
|
+ title="导出"
|
|
|
+ width="80%"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :visible.sync="visible">
|
|
|
+ <div class="my-table" id="printDiv" style="padding:55px 10px 0 10px;background-color:#fff;">
|
|
|
+ <h1 style="text-align: center">来料检验/入库通知单</h1>
|
|
|
+ <h4 style="text-align: right;margin-right: 20px;margin-top: 40px">编号: {{dataForm.inspectionCode}}</h4>
|
|
|
+ <table class="table-data-list" align="center" cellpadding="8" cellspacing="0" border="1"
|
|
|
+ style="width:100%;font-family: SimSun,serif;font-size: medium;text-align: center;border-width: 1px 1px 0 0">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th style="width: 50px" rowspan="2">序号</th>
|
|
|
+ <th style="width: 140px" rowspan="2">日期</th>
|
|
|
+ <th style="width: 100px" rowspan="2">物品名称</th>
|
|
|
+ <th style="width: 100px" rowspan="2">型号、规格</th>
|
|
|
+ <th style="width: 60px" rowspan="2">单位</th>
|
|
|
+ <th style="width: 80px" colspan="2" rowspan="1">数量</th>
|
|
|
+ <th style="width: 100px" rowspan="2">检验结论</th>
|
|
|
+ <th style="width: 80px" rowspan="2">检验员</th>
|
|
|
+ <th style="width: 100px" rowspan="2">机型/用途</th>
|
|
|
+ <th style="width: auto" rowspan="2">备注</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th style="width: 100px" colspan="1" rowspan="1">实际来料数量</th>
|
|
|
+ <th style="width: 100px" colspan="1" rowspan="1">检验/入库数量</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody align="center">
|
|
|
+ <tr v-for="(item,i) in checkList">
|
|
|
+ <td>{{i+1}}</td>
|
|
|
+ <td>2021-11-28</td>
|
|
|
+ <td>{{item.inspectionProject}}</td>
|
|
|
+ <td>{{item.measuredRecords}}</td>
|
|
|
+ <td>{{dataForm.cnt}}</td>
|
|
|
+ <td>{{dataForm.qualifiedCnt}}</td>
|
|
|
+ <td>{{item.notes}}</td>
|
|
|
+ <td>{{item.notes}}</td>
|
|
|
+ <td>{{item.notes}}</td>
|
|
|
+ <td>{{item.notes}}</td>
|
|
|
+ <td>{{item.notes}}</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <table class="table-conclusion" align="center" cellpadding="8" cellspacing="0" border="1" width="100%"
|
|
|
+ style="font-family: SimSun,serif;font-size: medium;text-align: center;border-width: 0; margin-top: 20px">
|
|
|
+ <tbody align="left">
|
|
|
+ <tr>
|
|
|
+ <th style="width: 200px">采购申请(日期):</th>
|
|
|
+ <td style="width: 100px">2021-11-12</td>
|
|
|
+ <th style="width: 200px">仓库审核(日期):</th>
|
|
|
+ <td style="width: 150px">2021-11-29</td>
|
|
|
+ <th style="width: 240px">质量管理部签收(日期):</th>
|
|
|
+ <td style="width: auto" colspan="0">2021-11-29</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="visible = false">取消</el-button>
|
|
|
+ <el-button type="primary" v-print="printObj">导出</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import {getIncomingInspection2} from '@/api/check'
|
|
|
+ export default {
|
|
|
+ name: 'ibc-export1',
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ printObj: {
|
|
|
+ id: 'printDiv',
|
|
|
+ popTitle: '-',
|
|
|
+ extraHead: '<meta http-equiv="Content-Language" content="zh-cn"/>'
|
|
|
+ },
|
|
|
+ htmlTitle: '入厂检验报告',
|
|
|
+ visible: false,
|
|
|
+ dataForm: {},
|
|
|
+ checkList: [],
|
|
|
+ size: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ async init (id) {
|
|
|
+ this.visible = true
|
|
|
+ this.checkList = []
|
|
|
+ if (!id) return
|
|
|
+ await getIncomingInspection2(id).then(({data}) => {
|
|
|
+ if (data && data.code === '200') {
|
|
|
+ this.dataForm = data.data
|
|
|
+ if (data.data.qualityInspectionItemsList) {
|
|
|
+ this.checkList = data.data.qualityInspectionItemsList
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+ @page{
|
|
|
+ size: auto; /* auto is the initial value */
|
|
|
+ margin: 3mm; /* this affects the margin in the printer settings */
|
|
|
+ }
|
|
|
+
|
|
|
+ html{
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ margin: 0; /* this affects the margin on the html before sending to printer */
|
|
|
+ }
|
|
|
+
|
|
|
+ body{
|
|
|
+ border: solid 1px blue ;
|
|
|
+ margin: 10mm 15mm 10mm 15mm; /* margin you want for the content */
|
|
|
+ }
|
|
|
+
|
|
|
+ .table-first td, .table-first th, .table-data-list th, .table-data-list td{
|
|
|
+ border-color: grey;
|
|
|
+ border-width: 0 0 1px 1px;
|
|
|
+ }
|
|
|
+ .table-conclusion td, .table-conclusion th{
|
|
|
+ border-color: grey;
|
|
|
+ border-width: 0;
|
|
|
+ }
|
|
|
+</style>
|