检验报告

yangwl
zhaoxiaolin 5 months ago
parent ffe242fe2d
commit 86b1f5be9e

@ -385,7 +385,7 @@
</el-table-column>
<el-table-column label="报工单编号" align="center" prop="reportCode" width="120" />
<el-table-column label="创建时间" align="center" prop="createTime" width="150" />
<!--
<!-- -->
<el-table-column fixed="right" label="操作" width="160">
<template slot-scope="scope">
<el-button @click.native.prevent="deleteReportRow(scope.$index, item.libList)" size="small" type="danger" plain

@ -518,7 +518,12 @@
</el-table-column>
</el-table-column>
</el-table>
<el-descriptions title="" border :column="1" :labelStyle="{width: '123px'}" :contentStyle="{width:'85%'}">
<el-descriptions-item label="批量或致命性质量异常"></el-descriptions-item>
</el-descriptions>
<el-descriptions title="" border :column="1" :labelStyle="{width:'100%'}" :contentStyle="{width:'0%'}">
<el-descriptions-item label="备注:无异常的打√,有异常的描述异常及数量比例,有数据的需要填写数据"></el-descriptions-item>
</el-descriptions>
<br/>
<!-- 底部 -->
<el-row class="my-print-foot">
@ -572,7 +577,7 @@
</el-row>
<el-row>
<el-col :span="16">
<el-form-item label="产品名称" prop="materialName">
<el-form-item label="产品名称/生产组" prop="materialName">
<el-input v-model="form.materialName" disabled />
</el-form-item>
</el-col>
@ -584,7 +589,7 @@
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="首检日期" prop="checkTime">
<el-form-item label="首检时间" prop="checkTime">
<el-input v-model="form.checkTime" disabled>
{{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
</el-input>
@ -601,23 +606,24 @@
<el-row>
<el-col :span="24">
<!-- 检验项目明细 -->
<el-table v-loading="loading" :data="checkProjectList" >
<el-table-column type="selection" width="55" align="center" />
<el-table v-loading="loading" :data="checkProjectList" ><!--:span-method="objectSpanMethod"-->
<el-table-column label="序号" align="center" type="index" width="50"/>
<el-table-column label="检验项目" align="left" prop="ruleName" width="150"/>
<el-table-column label="实际检验结果" align="center" prop="propertyCode" width="100">
<el-table-column label="检验项目" align="left" prop="projectRuleName" width="150"/>
<el-table-column label="内容" align="left" prop="ruleName" width="300"/>
<!--
<el-table-column label="检测项类型" align="center" prop="propertyCode" width="100">
<template slot-scope="scope">
<dict-tag
:options="dict.type.qc_rule_prop"
:value="scope.row.propertyCode"
/>
</template>
</el-table-column>
<el-table-column label="测量值" align="center" prop="actualValue" width="100"/>
</el-table-column>-->
<el-table-column label="实际检测结果" align="center" prop="actualValue" width="250"/>
<el-table-column label="判定" align="center" prop="status" width="50"
:formatter="checkStatusFormate"
/>
<el-table-column label="检验描述" align="center" prop="remark" width="200">
<!--<el-table-column label="检验描述" align="center" prop="remark" width="200">-->
</el-table-column>
<el-table-column label="附件" align="center" prop="files" width="200">
<template slot-scope="scope">
@ -770,6 +776,10 @@ export default {
/* incomeBatchNo: [
{ required: true, message: "来料批次号不能为空", trigger: "blur" }
], */
},
labelStyle: {
'min-width': '100px',
'word-break': 'keep-all'
}
};
},
@ -1025,6 +1035,38 @@ export default {
}
},
/**
* 1. 若是objectSpanMethod不返回任何东西表格不会变化
* 2. 最外层的判断一般是先从第几列开始合并
* 3. 这次从第0行合并2个下次就要从第3行开始合并0行加俩就到3行了
* 4. 这种方式是有多少条数据合并多少条数据比如本案例中有7条数据从第0条合并到第7条
* 5. return { rowspan: 0, colspan: 0 } //
* */
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
console.log("rowIndex", rowIndex);
//
if (columnIndex == 1) {
// 0
if (rowIndex == 0) {
return {
rowspan: 3, // 3
colspan: 1, // 1
};
}
if (rowIndex == 3) {
return {
rowspan: 2, // 2
colspan: 1, // 1
};
}
if (rowIndex == 5) {
return {
rowspan: 2, // 1
colspan: 1, // 1
};
}
}
},
}
};
</script>

@ -27,7 +27,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item v-if="form.startOA == '1'" label="来料类别" prop="materialType">
<el-form-item v-if="form.startOA == '1'&& form.checkType == 'checkTypeLL'" label="来料类别" prop="materialType">
<el-select v-model="form.materialType" placeholder="请选择检验规则属性" clearable>
<el-option
v-for="dict in dict.type.material_type_oa"
@ -41,7 +41,7 @@
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item v-if="form.startOA == '1'" label="物料来源" prop="materialType">
<el-form-item v-if="form.startOA == '1'&& form.checkType == 'checkTypeLL'" label="物料来源" prop="materialType">
<el-select v-model="form.materialFrom" placeholder="请选择检验规则属性" clearable>
<el-option
v-for="dict in dict.type.material_from_oa"

@ -315,7 +315,7 @@
width="100"
/>
<el-table-column
label="标准产能(时)"
label="标准工时(时)"
align="center"
prop="unitWorkingHours"
width="100"
@ -566,7 +566,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="标准产能(时)" prop="unitWorkingHours">
<el-form-item label="标准工时" prop="unitWorkingHours">
<el-input-number
:min="0"
:step="1"
@ -939,7 +939,7 @@
<el-descriptions-item label="工段">{{
form.workshopSection
}}</el-descriptions-item>
<el-descriptions-item label="标准产能(时)">{{
<el-descriptions-item label="标准工时">{{
form.unitWorkingHours
}}</el-descriptions-item>
<el-descriptions-item label="工时单价">{{

Loading…
Cancel
Save