|
|
|
|
@ -19,6 +19,16 @@
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="质检工位">
|
|
|
|
|
<el-select v-model="queryParams.STATION_CODE" placeholder="请选择质检工位" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in findStationList"
|
|
|
|
|
:key="item.productLineCode"
|
|
|
|
|
:label="item.productLineName"
|
|
|
|
|
:value="item.productLineCode"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="型号" prop="MATERIAL_MODEL">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.MATERIAL_MODEL"
|
|
|
|
|
@ -35,16 +45,7 @@
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- <el-form-item label="工位">-->
|
|
|
|
|
<!-- <el-select v-model="queryParams.stationCode" placeholder="请选择工位">-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in findStationList"-->
|
|
|
|
|
<!-- :key="item.productLineCode"-->
|
|
|
|
|
<!-- :label="item.productLineName"-->
|
|
|
|
|
<!-- :value="item.productLineCode"-->
|
|
|
|
|
<!-- ></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
<el-form-item label="起止时间">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="daterangeBeginTime"
|
|
|
|
|
@ -189,11 +190,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
findProductLineList({ productLineType: 1 }).then(response => {
|
|
|
|
|
findProductLineList({productLineType: 1}).then(response => {
|
|
|
|
|
this.productLineList = response.data
|
|
|
|
|
})
|
|
|
|
|
findProductLineList({ productLineType: 2 }).then(response => {
|
|
|
|
|
this.findStationList = response.data
|
|
|
|
|
findProductLineList({parentId: this.queryParams.PRODUCT_LINE_CODE, stationType: 2}).then(response => {
|
|
|
|
|
this.findStationList = response.data
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
//获取自定义数据
|
|
|
|
|
getCustomData(386).then(response => {
|
|
|
|
|
@ -204,6 +205,14 @@ export default {
|
|
|
|
|
this.daterangeBeginTime[1] = nowDate + ' 23:59:59'
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
'queryParams.PRODUCT_LINE_CODE': function(newVal, oldVal) {
|
|
|
|
|
// 执行方法,可以在这里调用你的方法
|
|
|
|
|
findProductLineList({parentId: this.queryParams.PRODUCT_LINE_CODE, stationType: 2}).then(response => {
|
|
|
|
|
this.findStationList = response.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询工单信息列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
@ -217,7 +226,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
qualityIssuesReportList(this.queryParams).then(response => {
|
|
|
|
|
this.reportList = response.data
|
|
|
|
|
this.totalSum = 0;
|
|
|
|
|
this.totalSum = 0
|
|
|
|
|
this.reportList.forEach(e => {
|
|
|
|
|
this.totalSum += e.Q_SUM
|
|
|
|
|
})
|
|
|
|
|
|