|
@@ -7,22 +7,22 @@
|
|
|
:visible.sync="visible">
|
|
|
<div class="my-table" id="pdfDom" style="padding-top: 55px;background-color:#fff;">
|
|
|
<h1 style="text-align: center">入 厂 检 验 报 告</h1>
|
|
|
- <h3 style="text-align: right">编号: DQ/CX-20-01</h3>
|
|
|
+ <h4 style="text-align: right;margin-right: 100px;margin-top: 40px">编号: {{dataForm.inspectionCode}}</h4>
|
|
|
<!-- border="1" -->
|
|
|
<table align="center" border="1" cellpadding="8" cellspacing="0"
|
|
|
- style="margin-top: 60px;font-family: SimSun,serif;font-size: large;text-align: center">
|
|
|
+ style="margin-top: 10px;font-family: SimSun,serif;font-size: large;text-align: center">
|
|
|
<tbody align="center">
|
|
|
<el-row>
|
|
|
<th style="width: 100px">供方单位</th>
|
|
|
- <td style="width: 250px" colspan="1" rowspan="1">重庆木之科技有限公司</td>
|
|
|
+ <td style="width: 250px" colspan="1" rowspan="1">{{dataForm.source}}</td>
|
|
|
<th style="width: 100px">批次号</th>
|
|
|
- <td style="width: 400px" colspan="1" rowspan="1">S100-078</td>
|
|
|
+ <td style="width: 400px" colspan="1" rowspan="1">{{dataForm.batchNumber}}</td>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<th style="width: 100px">产品名称</th>
|
|
|
- <td style="width: 250px" colspan="1" rowspan="1"></td>
|
|
|
+ <td style="width: 250px" colspan="1" rowspan="1">{{dataForm.materialName}}</td>
|
|
|
<th style="width: 100px">产品图号</th>
|
|
|
- <td style="width: 400px" colspan="1" rowspan="1"></td>
|
|
|
+ <td style="width: 400px" colspan="1" rowspan="1">{{dataForm.specifications}}</td>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<th style="width: 100px">来料类型</th>
|
|
@@ -85,30 +85,36 @@
|
|
|
label="备注">
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-row>
|
|
|
- <th style="width: 850px; text-align: left">检验结论:</th>
|
|
|
- </el-row>
|
|
|
- <el-row style="height: 200px">
|
|
|
-
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <th style="width: 100px">检验员:</th>
|
|
|
- <td style="width: 400px"></td>
|
|
|
- <th style="width: 100px">审核:</th>
|
|
|
- <td style="width: 250px"></td>
|
|
|
- </el-row>
|
|
|
+ <table align="center" cellpadding="8" cellspacing="0"
|
|
|
+ style="margin-top: 10px;font-family: SimSun,serif;font-size: large;text-align: center">
|
|
|
+ <tbody align="left">
|
|
|
+ <el-row>
|
|
|
+ <th style="width: 850px; text-align: left">检验结论:</th>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="height: 200px">
|
|
|
+ {{dataForm.conclusion}}
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <th style="width: 100px">检验员:</th>
|
|
|
+ <td style="width: 400px">{{dataForm.creatorName}}</td>
|
|
|
+ <th style="width: 80px">审核:</th>
|
|
|
+ <td style="width: 250px">梁瑞伟</td>
|
|
|
+ </el-row>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="visible = false">取消</el-button>
|
|
|
- <el-button type="primary" v-on:click="getPdf()">导出</el-button>
|
|
|
- </span>
|
|
|
+ <el-button @click="visible = false">取消</el-button>
|
|
|
+ <el-button type="primary" v-on:click="getPdf()">导出</el-button>
|
|
|
+ </span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import {getIncomingInspection} from '@/api/check'
|
|
|
export default {
|
|
|
name: 'ibc-export',
|
|
|
data () {
|
|
@@ -207,10 +213,26 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- async init (dataForm) {
|
|
|
- // console.log('dataForm = ' + JSON.stringify(dataForm))
|
|
|
- this.dataForm = dataForm
|
|
|
+ async init (id) {
|
|
|
this.visible = true
|
|
|
+ this.idsMaterial = []
|
|
|
+ this.idsDevice = []
|
|
|
+ this.checkList = []
|
|
|
+ if (!id) return
|
|
|
+ await getIncomingInspection(id).then(({data}) => {
|
|
|
+ if (data && data.code === '200') {
|
|
|
+ this.dataForm = data.data
|
|
|
+ if (data.data.inspectionType) {
|
|
|
+ this.idsMaterial.push(data.data.inspectionType)
|
|
|
+ }
|
|
|
+ if (data.data.detectionEquipment) {
|
|
|
+ this.idsDevice = data.data.detectionEquipment
|
|
|
+ }
|
|
|
+ if (data.data.qualityInspectionItemsList) {
|
|
|
+ this.checkList = data.data.qualityInspectionItemsList
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|