|
|
@ -11,40 +11,40 @@
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="产品编码" prop="MATERIAL_CODE">-->
|
|
|
|
<!-- <el-form-item label="产品编码" prop="MATERIAL_CODE">-->
|
|
|
|
<!-- <el-input-->
|
|
|
|
<!-- <el-input-->
|
|
|
|
<!-- v-model="queryParams.MATERIAL_CODE"-->
|
|
|
|
<!-- v-model="queryParams.MATERIAL_CODE"-->
|
|
|
|
<!-- placeholder="请输入产品编码"-->
|
|
|
|
<!-- placeholder="请输入产品编码"-->
|
|
|
|
<!-- clearable-->
|
|
|
|
<!-- clearable-->
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- <el-form-item label="产品名称" prop="MATERIAL_NAME">-->
|
|
|
|
<el-form-item label="型号" prop="MATERIAL_MODEL">
|
|
|
|
<!-- <el-input-->
|
|
|
|
<el-input
|
|
|
|
<!-- v-model="queryParams.MATERIAL_NAME"-->
|
|
|
|
v-model="queryParams.MATERIAL_MODEL"
|
|
|
|
<!-- placeholder="请输入产品名称"-->
|
|
|
|
placeholder="请输入型号"
|
|
|
|
<!-- clearable-->
|
|
|
|
clearable
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
<!-- />-->
|
|
|
|
/>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="SAP订单编号" prop="ORDER_CODE">-->
|
|
|
|
<!-- <el-form-item label="SAP订单编号" prop="ORDER_CODE">-->
|
|
|
|
<!-- <el-input-->
|
|
|
|
<!-- <el-input-->
|
|
|
|
<!-- v-model="queryParams.ORDER_CODE"-->
|
|
|
|
<!-- v-model="queryParams.ORDER_CODE"-->
|
|
|
|
<!-- placeholder="请输入SAP计划编号"-->
|
|
|
|
<!-- placeholder="请输入SAP计划编号"-->
|
|
|
|
<!-- clearable-->
|
|
|
|
<!-- clearable-->
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- <el-form-item label="工位">-->
|
|
|
|
<!-- <el-form-item label="工位">-->
|
|
|
|
<!-- <el-select v-model="queryParams.stationCode" placeholder="请选择工位">-->
|
|
|
|
<!-- <el-select v-model="queryParams.stationCode" placeholder="请选择工位">-->
|
|
|
|
<!-- <el-option-->
|
|
|
|
<!-- <el-option-->
|
|
|
|
<!-- v-for="item in findStationList"-->
|
|
|
|
<!-- v-for="item in findStationList"-->
|
|
|
|
<!-- :key="item.productLineCode"-->
|
|
|
|
<!-- :key="item.productLineCode"-->
|
|
|
|
<!-- :label="item.productLineName"-->
|
|
|
|
<!-- :label="item.productLineName"-->
|
|
|
|
<!-- :value="item.productLineCode"-->
|
|
|
|
<!-- :value="item.productLineCode"-->
|
|
|
|
<!-- ></el-option>-->
|
|
|
|
<!-- ></el-option>-->
|
|
|
|
<!-- </el-select>-->
|
|
|
|
<!-- </el-select>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="起止时间">
|
|
|
|
<el-form-item label="起止时间">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="daterangeBeginTime"
|
|
|
|
v-model="daterangeBeginTime"
|
|
|
@ -63,16 +63,24 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-button-->
|
|
|
|
<el-button
|
|
|
|
<!-- type="warning"-->
|
|
|
|
type="info"
|
|
|
|
<!-- plain-->
|
|
|
|
plain
|
|
|
|
<!-- icon="el-icon-download"-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
>合计数量:{{ totalSum }}
|
|
|
|
<!-- @click="handleExport"-->
|
|
|
|
</el-button>
|
|
|
|
<!-- >导出-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- </el-col>-->
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
|
|
|
>导出
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
@ -81,21 +89,20 @@
|
|
|
|
<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="FACTORY_NAME" 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="PRODUCT_LINE_NAME" 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="QUALITY_DEFECT_NAME" v-if="columns[3].visible">
|
|
|
|
<el-table-column label="型号" align="center" prop="MATERIAL_MODEL" v-if="columns[6].visible"/>
|
|
|
|
|
|
|
|
<el-table-column label="缺陷名称" align="center" prop="QUALITY_DEFECT_NAME" v-if="columns[3].visible"/>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="数量" align="center" prop="Q_SUM" v-if="columns[4].visible"/>
|
|
|
|
<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" prop="OFFLINE_NUM" v-if="columns[5].visible"/>
|
|
|
|
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
|
|
|
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
<!-- <el-button-->
|
|
|
|
<!-- <el-button-->
|
|
|
|
<!-- size="mini"-->
|
|
|
|
<!-- size="mini"-->
|
|
|
|
<!-- type="text"-->
|
|
|
|
<!-- type="text"-->
|
|
|
|
<!-- icon="el-icon-edit"-->
|
|
|
|
<!-- icon="el-icon-edit"-->
|
|
|
|
<!-- @click="handleOrderDetails(scope.row)"-->
|
|
|
|
<!-- @click="handleOrderDetails(scope.row)"-->
|
|
|
|
<!-- >查看订单明细</el-button>-->
|
|
|
|
<!-- >查看订单明细</el-button>-->
|
|
|
|
<!-- </template>-->
|
|
|
|
<!-- </template>-->
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<!-- <pagination-->
|
|
|
|
<!-- <pagination-->
|
|
|
|
<!-- v-show="total>0"-->
|
|
|
|
<!-- v-show="total>0"-->
|
|
|
@ -136,6 +143,8 @@ export default {
|
|
|
|
reportList: [],
|
|
|
|
reportList: [],
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
|
title: '',
|
|
|
|
title: '',
|
|
|
|
|
|
|
|
//合计数量
|
|
|
|
|
|
|
|
totalSum: 0,
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
// 更新时间时间范围
|
|
|
|
// 更新时间时间范围
|
|
|
@ -151,6 +160,7 @@ export default {
|
|
|
|
ORDER_CODE: null,
|
|
|
|
ORDER_CODE: null,
|
|
|
|
MATERIAL_CODE: null,
|
|
|
|
MATERIAL_CODE: null,
|
|
|
|
MATERIAL_NAME: null,
|
|
|
|
MATERIAL_NAME: null,
|
|
|
|
|
|
|
|
MATERIAL_MODEL: null,
|
|
|
|
BEGIN_DATE: null
|
|
|
|
BEGIN_DATE: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
@ -164,6 +174,7 @@ export default {
|
|
|
|
{ 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 }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
// 产线选项
|
|
|
|
// 产线选项
|
|
|
|
productLineList: [],
|
|
|
|
productLineList: [],
|
|
|
@ -175,9 +186,9 @@ export default {
|
|
|
|
findProductLineList({ productLineType: 1 }).then(response => {
|
|
|
|
findProductLineList({ productLineType: 1 }).then(response => {
|
|
|
|
this.productLineList = response.data
|
|
|
|
this.productLineList = response.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
findProductLineList({productLineType: 2}).then(response => {
|
|
|
|
findProductLineList({ productLineType: 2 }).then(response => {
|
|
|
|
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 + ' 00:00:00'
|
|
|
|
this.daterangeBeginTime[0] = nowDate + ' 00:00:00'
|
|
|
|
this.daterangeBeginTime[1] = nowDate + ' 23:59:59'
|
|
|
|
this.daterangeBeginTime[1] = nowDate + ' 23:59:59'
|
|
|
@ -196,7 +207,11 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qualityIssuesReportList(this.queryParams).then(response => {
|
|
|
|
qualityIssuesReportList(this.queryParams).then(response => {
|
|
|
|
this.reportList = response.data
|
|
|
|
this.reportList = response.data
|
|
|
|
this.total = response.total;
|
|
|
|
this.totalSum = 0;
|
|
|
|
|
|
|
|
this.reportList.forEach(e => {
|
|
|
|
|
|
|
|
this.totalSum += e.Q_SUM
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.total = response.total
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -230,7 +245,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 查看明细 */
|
|
|
|
/** 查看明细 */
|
|
|
|
handleOrderDetails(row) {
|
|
|
|
handleOrderDetails(row) {
|
|
|
|
this.$tab.openPage("SAP订单信息","/order/orderInfo" , {ORDER_CODE: row.ORDER_CODE});
|
|
|
|
this.$tab.openPage('SAP订单信息', '/order/orderInfo', { ORDER_CODE: row.ORDER_CODE })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
@ -242,9 +257,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|
this.download('/report/productionReport/export', {
|
|
|
|
this.download('/report/qualityReport/qualityIssuesReportList/export', {
|
|
|
|
...this.queryParams
|
|
|
|
...this.queryParams
|
|
|
|
}, `report_${new Date().getTime()}.xlsx`)
|
|
|
|
}, `质量问题前80报表_${new Date().getTime()}.xlsx`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|