修改bug
This commit is contained in:
parent
fd3b054108
commit
cdfe5c9c1b
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2024-04-18 14:08:46
|
* @Date: 2024-04-18 14:08:46
|
||||||
* @LastEditTime: 2024-04-25 17:13:28
|
* @LastEditTime: 2024-04-26 09:10:53
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -13,7 +13,7 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="产线" prop="productionLineId">
|
<el-form-item label="产线" prop="productionLineId">
|
||||||
<el-select v-model="listQuery.productionLineId" placeholder="请选择">
|
<el-select v-model="listQuery.productionLineId" placeholder="请选择" clearable>
|
||||||
<el-option v-for="item in lineList" :key="item.id" :label="item.name" :value="item.id">
|
<el-option v-for="item in lineList" :key="item.id" :label="item.name" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2024-04-18 15:07:53
|
* @Date: 2024-04-18 15:07:53
|
||||||
* @LastEditTime: 2024-04-26 08:42:00
|
* @LastEditTime: 2024-04-26 09:27:07
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
|
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
|
||||||
<el-table :header-cell-style="{
|
<el-table :max-height="tableH" :header-cell-style="{
|
||||||
background: '#F2F4F9',
|
background: '#F2F4F9',
|
||||||
color: '#606266'
|
color: '#606266'
|
||||||
}" class="baseTable" border id="exportTable" :data="tableData" style="width: 100%" :span-method="objectSpanMethod">
|
}" class="baseTable" border id="exportTable" :data="tableData" style="width: 100%" :span-method="objectSpanMethod">
|
||||||
@ -40,6 +40,8 @@ import {
|
|||||||
} from '@/api/report/qcReport';
|
} from '@/api/report/qcReport';
|
||||||
import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
|
import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
|
||||||
import FileSaver from 'file-saver'
|
import FileSaver from 'file-saver'
|
||||||
|
// import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
|
||||||
|
|
||||||
// import { getList, } from "@/api/base/qualityScrapType";
|
// import { getList, } from "@/api/base/qualityScrapType";
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
// {
|
// {
|
||||||
@ -71,7 +73,12 @@ const tableProps = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'rate',
|
prop: 'rate',
|
||||||
label: '占比%',
|
label: '占比(%)',
|
||||||
|
// filter: (val) => val == false ? '不合格' : '合格',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'rateSum',
|
||||||
|
label: '综合成品率(%)',
|
||||||
// filter: (val) => val == false ? '不合格' : '合格',
|
// filter: (val) => val == false ? '不合格' : '合格',
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
@ -286,14 +293,15 @@ export default {
|
|||||||
// })
|
// })
|
||||||
this.tableData = response.data.map((ele) => {
|
this.tableData = response.data.map((ele) => {
|
||||||
return {
|
return {
|
||||||
dataType: ele.dataType == 1 ? '成品' : ele.dataType == 2 ? '取样' : '废版',
|
dataType: ele.dataType == 1 ? '成品' : ele.dataType == 2 ? '取样板' : ele.dataType == 4 ? '合计' : ele.dataType == 3 ? '废版' : '',
|
||||||
code: ele.code,
|
code: ele.code,
|
||||||
putNum: ele.putNum,
|
putNum: ele.putNum,
|
||||||
lineName: ele.lineName,
|
lineName: ele.lineName,
|
||||||
type: ele.type,
|
type: ele.type == '合计' ? '' : ele.type,
|
||||||
pieces: ele.pieces,
|
pieces: ele.pieces,
|
||||||
area: ele.area,
|
area: ele.area,
|
||||||
rate: (ele.rate * 100).toFixed(2)
|
rate: ele.rate ? (ele.rate * 100).toFixed(2) : '',
|
||||||
|
rateSum: ele.lineName === '总计' ? (ele.rate * 100).toFixed(2) : ''
|
||||||
// useNum: ele.useNum,
|
// useNum: ele.useNum,
|
||||||
// num: ele.num,
|
// num: ele.num,
|
||||||
// size: typeof (ele.size)
|
// size: typeof (ele.size)
|
||||||
|
Loading…
Reference in New Issue
Block a user