<template>
|
<GlobalWindow
|
:title="title"
|
:visible.sync="visible"
|
width="600px"
|
@confirm="confirm"
|
>
|
<div class="title-style">
|
<span class="title-code-style">{{ form.code }}</span>
|
<span class="title-result-style">{{ (form.checkType==0 ? ' 检具检' : ' 外观检') + (form.doneType==0 ? '-合格' : '-不合格') }}</span>
|
</div>
|
<el-form :model="form" ref="form" label-suffix=":" inline>
|
<el-form-item label="检验类型" style="width:48%" prop="code">
|
{{ form.type==0 ? '生产终检' : '-' }}
|
</el-form-item>
|
<el-form-item label="物料编码" style="width:48%" prop="status">
|
{{ form.materialCode }}
|
</el-form-item>
|
<el-form-item label="物料名称" style="width:48%" prop="status">
|
{{ form.materialName }}
|
</el-form-item>
|
<el-form-item label="工单编号" style="width:48%" prop="userName">
|
{{ form.workOrderCode }}
|
</el-form-item>
|
<el-form-item label="送检数量" style="width:48%" prop="content">
|
{{ form.num + (form.unitName || '') }}
|
</el-form-item>
|
<el-form-item label="检验日期" style="width:48%" prop="content">
|
{{ form.createTime }}
|
</el-form-item>
|
<el-form-item label="检验人员" style="width:48%" prop="content">
|
{{ form.userName + '-' + form.departmentName }}
|
</el-form-item>
|
<el-form-item label="检验备注" style="width:95%">
|
{{ form.remark }}
|
</el-form-item>
|
</el-form>
|
<div class="space-line"></div>
|
<div class="detail-title-style">检验详细信息</div>
|
<el-table
|
:data="form.endCheckDetailList"
|
stripe
|
border
|
>
|
<el-table-column prop="appliancesCode" label="工装编码" fixed="left" show-overflow-tooltip min-width="100px"></el-table-column>
|
<el-table-column prop="qualifiedNum" label="合格数量" min-width="100px"></el-table-column>
|
<el-table-column prop="unqualifiedNum" label="不良数量" min-width="100px"></el-table-column>
|
<el-table-column prop="unAppliancesCode" label="不良篮筐" min-width="100px">
|
<template slot-scope="{row}">
|
{{ row.unAppliancesCode || '-' }}
|
</template>
|
</el-table-column>
|
<el-table-column prop="checkInfo" label="不良原因" min-width="160px">
|
<template slot-scope="{row}">
|
{{ row.checkInfo || '-' }}
|
</template>
|
</el-table-column>
|
</el-table>
|
<div slot="footer" class="window__header">
|
<el-button type="primary" @click="cancel">返回</el-button>
|
</div>
|
</GlobalWindow>
|
</template>
|
|
<script>
|
import BaseOpera from '@/components/base/BaseOpera'
|
import GlobalWindow from '@/components/common/GlobalWindow'
|
export default {
|
name: 'OperaEndCheckDetailWindow',
|
extends: BaseOpera,
|
components: { GlobalWindow },
|
data () {
|
return {
|
// 表单数据
|
form: {
|
code: '',
|
checkType: 0,
|
doneType: 0,
|
type: 0,
|
materialName: '',
|
materialCode: '',
|
workOrderCode: '',
|
num: '',
|
unitName: '',
|
userName: '',
|
createTime: '',
|
departmentName: '',
|
remark: '',
|
endCheckDetailList: [],
|
id: ''
|
},
|
folder: ''
|
}
|
},
|
created () {
|
this.config({
|
api: '/ext/companyPositionExt',
|
'field.id': 'id'
|
})
|
},
|
methods: {
|
cancel () {
|
this.$refs.form.resetFields()
|
this.visible = false
|
// let that = this
|
}
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.title-style {
|
margin-bottom: 10px;
|
vertical-align: bottom;
|
.title-code-style {
|
font-size: 20px;
|
color: rgb(75, 164, 235);
|
font-weight: 500;
|
}
|
.title-result-style {
|
font-size: 15px;
|
color: rgb(128, 180, 54);
|
// font-weight: 500;
|
}
|
}
|
.detail-title-style {
|
margin: 10px 0;
|
font-size: 15px;
|
color: #999;
|
}
|
.el-form-item {
|
width: 47%;
|
margin-bottom: 0px !important;
|
}
|
.space-line {
|
margin: 10px 0;
|
width:100%;
|
height:1px;
|
background-color:#ccc
|
}
|
</style>
|