|
|
@ -134,124 +134,108 @@
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<!-- 打印整个printFrom区域 -->
|
|
|
|
<!-- 打印整个printFrom区域 -->
|
|
|
|
<div id="printFrom">
|
|
|
|
<div id="printFrom">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :offset="8" :span="8" class="center-text">
|
|
|
|
<el-form-item label="OEM厂名" prop="supplierName">
|
|
|
|
<h1>中山榄菊日化实业有限公司</h1>
|
|
|
|
<el-input v-model="form.supplierName" placeholder="请输入OEM厂名" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :offset="8" :span="8" class="center-text">
|
|
|
|
|
|
|
|
<h2>白坯检验报告</h2>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="来料类别" prop="factoryCode">
|
|
|
|
<el-form-item label="来料类别" prop="factoryCode">
|
|
|
|
<el-input v-model="form.factoryCode" placeholder="请输入来料类别" disabled/>
|
|
|
|
<el-input v-model="form.factoryCode" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="生产批号" prop="incomeBatchNo">
|
|
|
|
<el-form-item label="生产批号" prop="incomeBatchNo">
|
|
|
|
<el-input v-model="form.incomeBatchNo" placeholder="请输入来料批号" disabled/>
|
|
|
|
<el-input v-model="form.incomeBatchNo" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="报告编号" prop="checkNo">
|
|
|
|
|
|
|
|
<el-input v-model="form.checkNo" disabled />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="物料编码" prop="materialCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.materialCode" placeholder="请选择物料编码" disabled />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="16">
|
|
|
|
<el-col :span="16">
|
|
|
|
<el-form-item label="物料名称" prop="materialName">
|
|
|
|
<el-form-item label="物料名称" prop="materialName">
|
|
|
|
<el-input v-model="form.materialName" placeholder="请选择物料名称" disabled />
|
|
|
|
<el-input v-model="form.materialName" disabled />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-row>
|
|
|
|
<el-form-item label="物料编码" prop="materialCode">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-input v-model="form.materialCode" disabled />
|
|
|
|
<el-form-item label="供应商编码" prop="supplierCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.supplierCode" placeholder="请输入供应商编码" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="16">
|
|
|
|
<el-col :span="16">
|
|
|
|
<el-form-item label="供应单位" prop="supplierName">
|
|
|
|
<el-form-item label="供应单位" prop="supplierName">
|
|
|
|
<el-input v-model="form.supplierName" placeholder="请选择供应商名称" disabled/>
|
|
|
|
<el-input v-model="form.supplierName" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="供应编码" prop="supplierCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.supplierCode" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="来料数量" prop="quality">
|
|
|
|
<el-form-item label="来料数量" prop="quality">
|
|
|
|
<el-input type="number" v-model="form.quality" placeholder="请输入物料数量" disabled/>
|
|
|
|
<el-input type="number" v-model="form.quality" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="单位" prop="unit" >
|
|
|
|
<el-form-item label="单位" prop="unit" >
|
|
|
|
<el-input v-model="form.unit" placeholder="请输入单位" disabled/>
|
|
|
|
<el-input v-model="form.unit" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="物料来源" prop="checkType" >
|
|
|
|
<el-form-item label="物料来源" prop="checkType" >
|
|
|
|
<el-input v-model="form.checkType" placeholder="物料来源" disabled/>
|
|
|
|
<el-input v-model="form.checkType" disabled/>
|
|
|
|
<!-- <el-select v-model="form.checkType" placeholder="请选择检验类型" style="width: 100%;">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in checkTypes"
|
|
|
|
|
|
|
|
:key="dict.id"
|
|
|
|
|
|
|
|
:label="dict.checkName"
|
|
|
|
|
|
|
|
:value="dict.id"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select> -->
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="抽检数量" prop="sampleQuality">
|
|
|
|
<el-form-item label="抽检数量" prop="sampleQuality">
|
|
|
|
<el-input v-model="form.sampleQuality" placeholder="请选择抽样数量" disabled />
|
|
|
|
<el-input v-model="form.sampleQuality" disabled />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="报告编号" prop="checkNo">
|
|
|
|
|
|
|
|
<el-input v-model="form.checkNo" placeholder="请选择报告编号" disabled />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="报检日期" prop="createTime">
|
|
|
|
<el-form-item label="报检日期" prop="createTime">
|
|
|
|
<el-input v-model="form.createTime" placeholder="请输入报检日期" disabled>
|
|
|
|
<el-input v-model="form.createTime" disabled>
|
|
|
|
{{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
|
|
|
|
{{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="检验日期" prop="checkTime">
|
|
|
|
<el-form-item label="检验日期" prop="checkTime">
|
|
|
|
<el-input v-model="form.checkTime" placeholder="请输入检验日期" disabled>
|
|
|
|
<el-input v-model="form.checkTime" disabled>
|
|
|
|
{{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
|
|
|
|
{{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<!-- <el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="检验编号" prop="checkNo">
|
|
|
|
|
|
|
|
<el-input v-model="form.checkNo" placeholder="请输入检验编号" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col> -->
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="产品提报人" prop="checkManName">
|
|
|
|
|
|
|
|
<el-input v-model="form.checkManName" placeholder="请输入OEM产品提报人" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<!-- 检验项目明细 -->
|
|
|
|
<!-- 检验项目明细 -->
|
|
|
|
<el-table v-loading="loading" :data="checkProjectList" >
|
|
|
|
<el-table v-loading="loading" :data="checkProjectList" >
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column label="序号" align="center" type="index" width="100"/>
|
|
|
|
<el-table-column label="序号" align="center" type="index" width="50"/>
|
|
|
|
<el-table-column label="检验项目" align="center" prop="ruleName" />
|
|
|
|
<el-table-column label="检验项目" align="center" prop="ruleName" />
|
|
|
|
<el-table-column label="标准要求" align="center" prop="checkStandard" width="200"/>
|
|
|
|
<el-table-column label="标准要求" align="center" prop="checkStandard" width="200"/>
|
|
|
|
<el-table-column label="上差值" align="center" prop="upperDiff" />
|
|
|
|
<el-table-column label="抽检数" align="center" prop="sampleNum" />
|
|
|
|
<el-table-column label="下差值" align="center" prop="downDiff" />
|
|
|
|
|
|
|
|
<el-table-column label="抽检数量" align="center" prop="sampleNum" />
|
|
|
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unitCode" />
|
|
|
|
<el-table-column label="单位" align="center" prop="unitCode" />
|
|
|
|
<el-table-column label="实测结果" align="center" prop="actualValue" width="200"/>
|
|
|
|
<el-table-column label="实测结果" align="center" prop="actualValue" width="300"/>
|
|
|
|
<el-table-column label="判定" align="center" prop="status" >
|
|
|
|
<el-table-column label="判定" align="center" prop="status" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.check_result" :value="scope.row.status"/>
|
|
|
|
<dict-tag :options="dict.type.check_result" :value="scope.row.status"/>
|
|
|
@ -260,6 +244,35 @@
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col>
|
|
|
|
|
|
|
|
<el-form-item label="综合检验结论" prop="checkManName">
|
|
|
|
|
|
|
|
<el-col offset="6" span="6">
|
|
|
|
|
|
|
|
<el-checkbox disabled>合格</el-checkbox>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col offset="3" span="6">
|
|
|
|
|
|
|
|
<el-checkbox disabled>不合格</el-checkbox>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="品管经理/主任:" label-width="120PX">
|
|
|
|
|
|
|
|
<el-input disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="品质主管:">
|
|
|
|
|
|
|
|
<el-input disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="品管员:" prop="checkManName">
|
|
|
|
|
|
|
|
<el-input v-model="form.checkManName" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -526,7 +539,7 @@ export default {
|
|
|
|
printJS({
|
|
|
|
printJS({
|
|
|
|
printable: params.printable, // 'printFrom', // 标签元素id
|
|
|
|
printable: params.printable, // 'printFrom', // 标签元素id
|
|
|
|
type: params.type || 'html',
|
|
|
|
type: params.type || 'html',
|
|
|
|
maxWidth: 1500, // 最大宽度
|
|
|
|
maxWidth: 1600, // 最大宽度
|
|
|
|
font_size: "",// 设置字体大小
|
|
|
|
font_size: "",// 设置字体大小
|
|
|
|
header: "来料检验结果报告",//params.header, // '表单',
|
|
|
|
header: "来料检验结果报告",//params.header, // '表单',
|
|
|
|
targetStyles: ['*'],
|
|
|
|
targetStyles: ['*'],
|
|
|
@ -543,4 +556,7 @@ export default {
|
|
|
|
margin-bottom: 15px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.center-text {
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|