|
|
@ -1,6 +1,6 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
|
|
|
<el-form-item label="箱体码" prop="barCode">
|
|
|
|
<el-form-item label="箱体码" prop="barCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.barCode"
|
|
|
|
v-model="queryParams.barCode"
|
|
|
@ -25,16 +25,16 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="质量缺陷名称" prop="qualityDefectName">
|
|
|
|
<el-form-item label="缺陷名称" prop="qualityDefectName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.qualityDefectName"
|
|
|
|
v-model="queryParams.qualityDefectName"
|
|
|
|
placeholder="请输入质量缺陷名称"
|
|
|
|
placeholder="请输入缺陷名称"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="处理措施" prop="treatmentMeasure">
|
|
|
|
<el-form-item label="处理措施" prop="treatmentMeasure">
|
|
|
|
<el-select v-model="queryParams.treatmentMeasure" placeholder="请选择处理措施" clearable>
|
|
|
|
<el-select v-model="queryParams.treatmentMeasure" placeholder="请选择处理措施" clearable style="width: 140px;">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="dict in dict.type.treatment_measures"
|
|
|
|
v-for="dict in dict.type.treatment_measures"
|
|
|
|
:key="dict.value"
|
|
|
|
:key="dict.value"
|
|
|
@ -43,8 +43,18 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="处理结果" prop="processResult">
|
|
|
|
|
|
|
|
<el-select v-model="queryParams.processResult" placeholder="请选择处理结果" clearable style="width: 140px;">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in repairMeasuresList"
|
|
|
|
|
|
|
|
:key="item.repairName"
|
|
|
|
|
|
|
|
:label="item.repairName"
|
|
|
|
|
|
|
|
:value="item.repairName"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="质检工位" prop="stationCode">
|
|
|
|
<el-form-item label="质检工位" prop="stationCode">
|
|
|
|
<el-select v-model="queryParams.stationCode" placeholder="请选择质检工位">
|
|
|
|
<el-select v-model="queryParams.stationCode" placeholder="请选择质检工位" clearable style="width: 140px;">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in productLineList"
|
|
|
|
v-for="item in productLineList"
|
|
|
|
:key="item.productLineCode"
|
|
|
|
:key="item.productLineCode"
|
|
|
@ -296,6 +306,7 @@ import {
|
|
|
|
} from '@/api/report/qualityInspection'
|
|
|
|
} from '@/api/report/qualityInspection'
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
|
|
|
|
import { findRepairMeasuresList } from '@//api/report/repairMeasures'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'QualityInspection',
|
|
|
|
name: 'QualityInspection',
|
|
|
@ -372,13 +383,17 @@ export default {
|
|
|
|
{ key: 20, label: `检测人员名称`, visible: true },
|
|
|
|
{ key: 20, label: `检测人员名称`, visible: true },
|
|
|
|
{ key: 21, label: `工位名称`, visible: true }
|
|
|
|
{ key: 21, label: `工位名称`, visible: true }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
productLineList: []
|
|
|
|
productLineList: [],
|
|
|
|
|
|
|
|
repairMeasuresList: [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
findProductLineList({ productLineType: 2, stationType: 2 }).then(response => {
|
|
|
|
findProductLineList({ productLineType: 2, stationType: 2 }).then(response => {
|
|
|
|
this.productLineList = response.data
|
|
|
|
this.productLineList = response.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
findRepairMeasuresList().then(response => {
|
|
|
|
|
|
|
|
this.repairMeasuresList = response.data
|
|
|
|
|
|
|
|
})
|
|
|
|
const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
this.daterangeBeginTime[0] = nowDate + ' 00:00:00'
|
|
|
|
this.daterangeBeginTime[0] = nowDate + ' 00:00:00'
|
|
|
|
this.daterangeBeginTime[1] = nowDate + ' 23:59:59'
|
|
|
|
this.daterangeBeginTime[1] = nowDate + ' 23:59:59'
|
|
|
|