白坯报表调整

master
FCD 2 weeks ago
parent 240738c2d6
commit 9ce92ddd31

@ -104,3 +104,12 @@ export function getMonthOfYearContrast(data) {
data: data data: data
}); });
} }
// 白坯每月不合格数量
export function getBpMonthNoOk(data) {
return request({
url: '/quality/qcInterface/getBpMonthNoOk',
method: 'get',
data: data
});
}

@ -211,7 +211,7 @@
</div> </div>
<div class="item-table item-table1"> <div class="item-table item-table1">
<div class="titlebox" style="margin-bottom: 14px"> <div class="titlebox" style="margin-bottom: 14px">
<div class="titlename">本年各月产品不合格数量对比</div> <div class="titlename">本年各月白坯不合格数量对比</div>
</div> </div>
<div <div
id="echart3" id="echart3"
@ -254,7 +254,7 @@ import {
getProMonthNoOk, getProMonthNoOk,
getLineDayNoOk, getLineDayNoOk,
getMonthOfYearContrast, getMonthOfYearContrast,
getDictData, getDictData, getBpMonthNoOk,
} from "@/api/kanban/quality"; } from "@/api/kanban/quality";
import { getDeviceRefreshTime } from "@/api/kanban/equipment"; import { getDeviceRefreshTime } from "@/api/kanban/equipment";
import * as echarts from "echarts"; import * as echarts from "echarts";
@ -600,8 +600,8 @@ export default {
}; };
myChart3.setOption(option3); myChart3.setOption(option3);
// console.log(_this.selectxt) // console.log(_this.selectxt)
getProMonthNoOk({ getBpMonthNoOk({
typeCode: "produce", orderType: "produce",
factoryCode: "ds_" + _this.selectxt, factoryCode: "ds_" + _this.selectxt,
}).then((response) => { }).then((response) => {
if (response) { if (response) {

@ -34,7 +34,7 @@
<el-form ref="form" :model="form" label-width="80px"> <el-form ref="form" :model="form" label-width="80px">
<el-row> <el-row>
<el-col :span="24" style="text-align:center"> <el-col :span="24" style="text-align:center">
<h2>{{form.column080090}} {{form.column090100}} </h2> <h2>{{ parseTime(queryParams.yearMonthDate,'{y}-{m}')}} </h2>
</el-col> </el-col>
</el-row> </el-row>
<el-descriptions title="" border :column="3" :contentStyle="content_style" :label-style="label_style"> <el-descriptions title="" border :column="3" :contentStyle="content_style" :label-style="label_style">
@ -57,7 +57,6 @@
<template v-for="(column, index) in showTitles"> <template v-for="(column, index) in showTitles">
<el-table-column align="center" min-width="120" :prop="column.id" :key="column.id" :label="column.titleName"/> <el-table-column align="center" min-width="120" :prop="column.id" :key="column.id" :label="column.titleName"/>
</template> </template>
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -68,6 +67,7 @@
import {getDefectItemTitle,getDefectItemData,getDefectItemLine} from "@/api/quality/qcTable"; import {getDefectItemTitle,getDefectItemData,getDefectItemLine} from "@/api/quality/qcTable";
import moment from 'moment'; import moment from 'moment';
import * as echarts from "echarts"; import * as echarts from "echarts";
import {parseTime} from "../../../../utils/ruoyi";
export default { export default {
name: "BpDefectItem", name: "BpDefectItem",
data() { data() {
@ -142,6 +142,7 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
parseTime,
/**获取默认查询时间段**/ /**获取默认查询时间段**/
getDate() { getDate() {
let start = this.Fungetdate (0); let start = this.Fungetdate (0);

@ -34,7 +34,7 @@
<el-form ref="form" :model="form" label-width="80px"> <el-form ref="form" :model="form" label-width="80px">
<el-row> <el-row>
<el-col :span="24" style="text-align:center"> <el-col :span="24" style="text-align:center">
<h2> {{queryParams.yearMonthDate}} 黑蚊香白坯性能不良排列图</h2> <h2> {{ parseTime(queryParams.yearMonthDate,'{y}-{m}')}} 黑蚊香白坯性能不良排列图</h2>
</el-col> </el-col>
</el-row> </el-row>
<el-descriptions title="" border :column="3" :contentStyle="content_style" :label-style="label_style"> <el-descriptions title="" border :column="3" :contentStyle="content_style" :label-style="label_style">
@ -53,11 +53,10 @@
<el-tab-pane label="报表" name="second"> <el-tab-pane label="报表" name="second">
<el-table v-loading="loading" :data="itemProList" border> <el-table v-loading="loading" :data="itemProList" border>
<el-table-column label="序号" type="index" align="center" :index="indexMethod" fixed/> <el-table-column label="序号" type="index" align="center" :index="indexMethod" fixed/>
<el-table-column label="项目" align="center" prop="dataType" min-width="100" fixed> <el-table-column label="项目" align="center" prop="dataType" min-width="100" fixed/>
<template v-for="(column, index) in showTitles"> <template v-for="(column, index) in showTitles">
<el-table-column align="center" min-width="120" :prop="column.id" :key="column.id" :label="column.titleName"/> <el-table-column align="center" min-width="120" :prop="column.id" :key="column.id" :label="column.titleName"/>
</template> </template>
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -182,6 +181,7 @@ export default {
//Table //Table
getDefectItemDataPC(this.queryParams).then(response => { getDefectItemDataPC(this.queryParams).then(response => {
this.itemProList = response; this.itemProList = response;
this.itemProList.push("其他")
this.getTbody(); this.getTbody();
this.loading = false; this.loading = false;
}); });

Loading…
Cancel
Save