|
|
@ -1,13 +1,13 @@
|
|
|
|
<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="100px">
|
|
|
|
<el-form-item label="产线" prop="PRODUCT_LINE_NAME">
|
|
|
|
<el-form-item label="产线" prop="PRODUCT_LINE_CODE">
|
|
|
|
<el-select v-model="queryParams.WORK_CENTER_CODE" placeholder="请选择产线">
|
|
|
|
<el-select v-model="queryParams.PRODUCT_LINE_CODE" placeholder="请选择产线">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in productLineList"
|
|
|
|
v-for="item in productLineList"
|
|
|
|
:key="item.workCenterCode"
|
|
|
|
:key="item.productLineCode"
|
|
|
|
:label="item.workCenterName"
|
|
|
|
:label="item.productLineName"
|
|
|
|
:value="item.workCenterCode"
|
|
|
|
:value="item.productLineCode"
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="daterangeBeginTime"
|
|
|
|
v-model="daterangeBeginTime"
|
|
|
|
style="width: 340px"
|
|
|
|
style="width: 340px"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
type="datetimerange"
|
|
|
|
type="datetimerange"
|
|
|
|
range-separator="-"
|
|
|
|
range-separator="-"
|
|
|
|
start-placeholder="开始时间"
|
|
|
|
start-placeholder="开始时间"
|
|
|
@ -79,26 +79,23 @@
|
|
|
|
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>
|
|
|
|
<el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>
|
|
|
|
<el-table-column label="工厂" align="center" prop="PRODUCT_STATION" v-if="columns[1].visible"/>
|
|
|
|
<el-table-column label="工厂" align="center" prop="FACTORY_NAME" v-if="columns[1].visible"/>
|
|
|
|
<el-table-column label="产线" align="center" prop="ORDER_CODE" v-if="columns[2].visible"/>
|
|
|
|
<el-table-column label="产线" align="center" prop="PRODUCT_LINE_NAME" v-if="columns[2].visible"/>
|
|
|
|
<el-table-column label="缺陷名称" align="center" prop="MATERIAL_CODE" v-if="columns[3].visible">
|
|
|
|
<el-table-column label="缺陷名称" align="center" prop="QUALITY_DEFECT_NAME" v-if="columns[3].visible">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ parseTime(scope.row.BEGIN_DATE, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="数量" align="center" prop="MATERIAL_NAME" v-if="columns[4].visible"/>
|
|
|
|
|
|
|
|
<el-table-column label="缺陷占比" align="center" prop="PRODUCT_CODE" v-if="columns[5].visible"/>
|
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
|
|
@click="handleOrderDetails(scope.row)"
|
|
|
|
|
|
|
|
v-hasPermi="['report:pointDnb:edit']"
|
|
|
|
|
|
|
|
>查看订单明细</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="数量" align="center" prop="Q_SUM" v-if="columns[4].visible"/>
|
|
|
|
|
|
|
|
<el-table-column label="缺陷占比" align="center" prop="OFFLINE_NUM" v-if="columns[5].visible"/>
|
|
|
|
|
|
|
|
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
|
|
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
|
|
|
<!-- icon="el-icon-edit"-->
|
|
|
|
|
|
|
|
<!-- @click="handleOrderDetails(scope.row)"-->
|
|
|
|
|
|
|
|
<!-- >查看订单明细</el-button>-->
|
|
|
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<!-- <pagination-->
|
|
|
|
<!-- <pagination-->
|
|
|
|
<!-- v-show="total>0"-->
|
|
|
|
<!-- v-show="total>0"-->
|
|
|
@ -113,11 +110,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
productionExecutionReportList
|
|
|
|
productionExecutionReportList, qualityIssuesReportList
|
|
|
|
} from '@/api/report/reportAPI'
|
|
|
|
} from '@/api/report/reportAPI'
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
import { getPointDnb } from '@//api/report/pointDnb'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'ReportInfo',
|
|
|
|
name: 'ReportInfo',
|
|
|
@ -151,7 +147,7 @@ export default {
|
|
|
|
beginBeginTime: null,
|
|
|
|
beginBeginTime: null,
|
|
|
|
endBeginTime: null,
|
|
|
|
endBeginTime: null,
|
|
|
|
WORK_CENTER_CODE: null,
|
|
|
|
WORK_CENTER_CODE: null,
|
|
|
|
PRODUCT_LINE_NAME: null,
|
|
|
|
PRODUCT_LINE_CODE: 'CX_02',
|
|
|
|
ORDER_CODE: null,
|
|
|
|
ORDER_CODE: null,
|
|
|
|
MATERIAL_CODE: null,
|
|
|
|
MATERIAL_CODE: null,
|
|
|
|
MATERIAL_NAME: null,
|
|
|
|
MATERIAL_NAME: null,
|
|
|
@ -163,13 +159,11 @@ export default {
|
|
|
|
rules: {},
|
|
|
|
rules: {},
|
|
|
|
columns: [
|
|
|
|
columns: [
|
|
|
|
{ key: 0, label: `主键标识`, visible: false },
|
|
|
|
{ key: 0, label: `主键标识`, visible: false },
|
|
|
|
{ key: 1, label: `工位`, visible: true },
|
|
|
|
{ key: 1, label: `工厂`, visible: true },
|
|
|
|
{ key: 2, label: `订单编号`, visible: true },
|
|
|
|
{ key: 2, label: `产线`, visible: true },
|
|
|
|
{ key: 3, label: `物料编码`, visible: true },
|
|
|
|
{ key: 3, label: `缺陷名称`, visible: true },
|
|
|
|
{ key: 4, label: `物料名称`, visible: true },
|
|
|
|
{ key: 4, label: `数量`, visible: true },
|
|
|
|
{ key: 5, label: `产品编码`, visible: true },
|
|
|
|
{ key: 5, label: `缺陷占比`, visible: true },
|
|
|
|
{ key: 6, label: `产品型号`, visible: true },
|
|
|
|
|
|
|
|
{ key: 7, label: `数量`, visible: true },
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
// 产线选项
|
|
|
|
// 产线选项
|
|
|
|
productLineList: [],
|
|
|
|
productLineList: [],
|
|
|
@ -185,8 +179,8 @@ export default {
|
|
|
|
this.findStationList = response.data;
|
|
|
|
this.findStationList = response.data;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
this.daterangeBeginTime[0] = nowDate
|
|
|
|
this.daterangeBeginTime[0] = nowDate + ' 00:00:00'
|
|
|
|
this.daterangeBeginTime[1] = nowDate
|
|
|
|
this.daterangeBeginTime[1] = nowDate + ' 23:59:59'
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -200,9 +194,9 @@ export default {
|
|
|
|
this.queryParams.beginBeginTime = null
|
|
|
|
this.queryParams.beginBeginTime = null
|
|
|
|
this.queryParams.endBeginTime = null
|
|
|
|
this.queryParams.endBeginTime = null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
productionExecutionReportList(this.queryParams).then(response => {
|
|
|
|
qualityIssuesReportList(this.queryParams).then(response => {
|
|
|
|
// this.reportList = response.data
|
|
|
|
this.reportList = response.data
|
|
|
|
// this.total = response.total;
|
|
|
|
this.total = response.total;
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|