update -报表加编号

master
yinq 3 months ago
parent e5bcead91c
commit b764222788

@ -79,7 +79,10 @@
>差异明细导出 >差异明细导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="boxTraceabilityList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="boxTraceabilityList" @selection-change="handleSelectionChange">
@ -195,6 +198,7 @@ import {
boxTraceabilityDetailReport, boxTraceabilityDetailReport,
boxTraceabilityReport, boxTraceabilityReport,
} from '@//api/report/reportAPI' } from '@//api/report/reportAPI'
import { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'ProductOffLine', name: 'ProductOffLine',
@ -273,13 +277,19 @@ export default {
{ key: 12, label: `报废记录数`, visible: true } { key: 12, label: `报废记录数`, visible: true }
], ],
// 线 // 线
productLineList: [] productLineList: [],
//
customData: null
} }
}, },
created() { created() {
findProductLineList({ productLineType: 1 }).then(response => { findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data this.productLineList = response.data
}) })
//
getCustomData(391).then(response => {
this.customData = response.data.customData
})
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'

@ -95,7 +95,10 @@
>流转详情导出 >流转详情导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
@ -190,6 +193,7 @@ import {
} 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 { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'BoxTurnoverTraceabilityReport', name: 'BoxTurnoverTraceabilityReport',
@ -251,7 +255,9 @@ export default {
// 线 // 线
productLineList: [], productLineList: [],
// //
findStationList: [] findStationList: [],
//
customData: null
} }
}, },
created() { created() {
@ -264,6 +270,10 @@ export default {
// 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'
//
getCustomData(392).then(response => {
this.customData = response.data.customData
})
this.getList() this.getList()
}, },
methods: { methods: {

@ -78,7 +78,10 @@
@click="handleExport" @click="handleExport"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="codeBandingList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="codeBandingList" @selection-change="handleSelectionChange">
@ -119,6 +122,7 @@
import { listCodeBanding } from "@/api/report/codeBanding"; import { listCodeBanding } from "@/api/report/codeBanding";
import { findProductLineList } from '@//api/base/productLine' import { findProductLineList } from '@//api/base/productLine'
import { parseTime } from '@//utils/ruoyi' import { parseTime } from '@//utils/ruoyi'
import { getCustomData } from '@//api/base/customData'
export default { export default {
name: "CodeBandingReport", name: "CodeBandingReport",
data() { data() {
@ -190,12 +194,17 @@ export default {
], ],
// 线 // 线
productLineList: [], productLineList: [],
//
customData: null
}; };
}, },
created() { created() {
findProductLineList({ productLineType: 1 }).then(response => { findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data this.productLineList = response.data
}) })
getCustomData(394).then(response => {
this.customData = response.data.customData
})
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'

@ -91,7 +91,10 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="electricalInspectionList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="electricalInspectionList" @selection-change="handleSelectionChange">
@ -222,6 +225,7 @@ import {
updateElectricalInspection updateElectricalInspection
} from '@/api/report/electricalInspection' } from '@/api/report/electricalInspection'
import { parseTime } from '@//utils/ruoyi' import { parseTime } from '@//utils/ruoyi'
import { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'ElectricalInspection', name: 'ElectricalInspection',
@ -276,10 +280,16 @@ export default {
{ key: 5, label: `记录时间`, visible: false }, { key: 5, label: `记录时间`, visible: false },
{ key: 6, label: `产品型号`, visible: true }, { key: 6, label: `产品型号`, visible: true },
{ key: 7, label: `异常描述`, visible: true } { key: 7, label: `异常描述`, visible: true }
] ],
//
customData: null
} }
}, },
created() { created() {
//
getCustomData(387).then(response => {
this.customData = response.data.customData
})
const nowDate = parseTime(new Date(), '{y}-{m}-{d}') const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
this.daterangeRecordTime[0] = nowDate + ' 00:00:00' this.daterangeRecordTime[0] = nowDate + ' 00:00:00'
this.daterangeRecordTime[1] = nowDate + ' 23:59:59' this.daterangeRecordTime[1] = nowDate + ' 23:59:59'

@ -65,7 +65,10 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
@ -107,6 +110,7 @@ import {
} 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 { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'ReportInfo', name: 'ReportInfo',
@ -166,7 +170,9 @@ export default {
// 线 // 线
productLineList: [], productLineList: [],
// //
findStationList: [] findStationList: [],
//
customData: null
} }
}, },
created() { created() {
@ -176,6 +182,10 @@ export default {
findProductLineList({ productLineType: 2, stationType: 2 }).then(response => { findProductLineList({ productLineType: 2, stationType: 2 }).then(response => {
this.findStationList = response.data this.findStationList = response.data
}) })
//
getCustomData(385).then(response => {
this.customData = response.data.customData
})
const nowDate = parseTime(new Date(), '{y}-{m}-{d}') const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
this.daterangeBeginTime[0] = nowDate this.daterangeBeginTime[0] = nowDate
this.daterangeBeginTime[1] = nowDate this.daterangeBeginTime[1] = nowDate

@ -58,7 +58,10 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="lastShotRecordList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="lastShotRecordList" @selection-change="handleSelectionChange">
@ -131,6 +134,7 @@ import {
} from '@/api/report/lastShotRecord' } from '@/api/report/lastShotRecord'
import { findProductLineList } from '@//api/base/productLine' import { findProductLineList } from '@//api/base/productLine'
import { parseTime } from '@//utils/ruoyi' import { parseTime } from '@//utils/ruoyi'
import { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'LastShotRecord', name: 'LastShotRecord',
@ -229,14 +233,19 @@ export default {
{ key: 30, label: `工位名称`, visible: true } { key: 30, label: `工位名称`, visible: true }
], ],
// 线 // 线
productLineList: [] productLineList: [],
//
customData: null
} }
}, },
created() { created() {
findProductLineList({ productLineType: 1 }).then(response => { findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data this.productLineList = response.data
}) })
//
getCustomData(389).then(response => {
this.customData = response.data.customData
})
this.type = this.$route.query.type; this.type = this.$route.query.type;
const nowDate = parseTime(new Date(), '{y}-{m}-{d}') const nowDate = parseTime(new Date(), '{y}-{m}-{d}')

@ -61,16 +61,16 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="是否降级品" prop="isDowngrade">--> <!-- <el-form-item label="是否降级品" prop="isDowngrade">-->
<!-- <el-select v-model="queryParams.isDowngrade" placeholder="请选择是否降级品" clearable>--> <!-- <el-select v-model="queryParams.isDowngrade" placeholder="请选择是否降级品" clearable>-->
<!-- <el-option--> <!-- <el-option-->
<!-- v-for="item in isDowngradeList"--> <!-- v-for="item in isDowngradeList"-->
<!-- :key="item.key"--> <!-- :key="item.key"-->
<!-- :label="item.label"--> <!-- :label="item.label"-->
<!-- :value="item.key"--> <!-- :value="item.key"-->
<!-- ></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"
@ -99,7 +99,10 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
@ -199,6 +202,7 @@ import {
} 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 { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'ProductTraceabilityReport', name: 'ProductTraceabilityReport',
@ -262,13 +266,19 @@ export default {
// 线 // 线
productLineList: [], productLineList: [],
// //
findStationList: [] findStationList: [],
//
customData: null
} }
}, },
created() { created() {
findProductLineList({ productLineType: 1 }).then(response => { findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data this.productLineList = response.data
}) })
//
getCustomData(382).then(response => {
this.customData = response.data.customData
})
// findProductLineList({productLineType: 2}).then(response => { // findProductLineList({productLineType: 2}).then(response => {
// this.findStationList = response.data; // this.findStationList = response.data;
// }); // });

@ -67,7 +67,10 @@
>缺陷明细导出 >缺陷明细导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
@ -146,6 +149,7 @@ import {
} 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 { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'ReportInfo', name: 'ReportInfo',
@ -207,7 +211,9 @@ export default {
// 线 // 线
productLineList: [], productLineList: [],
// //
findStationList: [] findStationList: [],
//
customData: null
} }
}, },
created() { created() {
@ -217,6 +223,10 @@ export default {
findProductLineList({ productLineType: 2, stationType: 2 }).then(response => { findProductLineList({ productLineType: 2, stationType: 2 }).then(response => {
this.findStationList = response.data this.findStationList = response.data
}) })
//
getCustomData(384).then(response => {
this.customData = response.data.customData
})
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'

@ -81,7 +81,10 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
@ -121,6 +124,7 @@ import {
} 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 { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'ReportInfo', name: 'ReportInfo',
@ -179,7 +183,9 @@ export default {
// 线 // 线
productLineList: [], productLineList: [],
// //
findStationList: [] findStationList: [],
//
customData: null
} }
}, },
created() { created() {
@ -189,6 +195,10 @@ export default {
findProductLineList({ productLineType: 2 }).then(response => { findProductLineList({ productLineType: 2 }).then(response => {
this.findStationList = response.data this.findStationList = response.data
}) })
//
getCustomData(386).then(response => {
this.customData = response.data.customData
})
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'

@ -89,7 +89,10 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
@ -123,6 +126,7 @@ import {
import {findProductLineList} from '@//api/base/productLine' import {findProductLineList} from '@//api/base/productLine'
import {parseTime} from '@//utils/ruoyi' import {parseTime} from '@//utils/ruoyi'
import Chart from "@/components/board/Chart"; import Chart from "@/components/board/Chart";
import { getCustomData } from '@//api/base/customData'
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100 const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
export default { export default {
@ -190,7 +194,9 @@ export default {
// 线 // 线
productLineList: [], productLineList: [],
// //
findStationList: [] findStationList: [],
//
customData: null
} }
}, },
watch: { watch: {
@ -218,7 +224,10 @@ export default {
this.queryParams.endBeginTime = this.daterangeBeginTime[1] this.queryParams.endBeginTime = this.daterangeBeginTime[1]
// this.getList() // this.getList()
this.getChart() this.getChart()
//
getCustomData(383).then(response => {
this.customData = response.data.customData
})
}, },
methods: { methods: {
getChart() { getChart() {

@ -78,7 +78,10 @@
@click="handleExport" @click="handleExport"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="productOffLineList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="productOffLineList" @selection-change="handleSelectionChange">
@ -126,6 +129,7 @@
import { listProductOffLine } from "@/api/report/productOffLine"; import { listProductOffLine } from "@/api/report/productOffLine";
import { findProductLineList } from '@//api/base/productLine' import { findProductLineList } from '@//api/base/productLine'
import { parseTime } from '@//utils/ruoyi' import { parseTime } from '@//utils/ruoyi'
import { getCustomData } from '@//api/base/customData'
export default { export default {
name: "ProductOffLine", name: "ProductOffLine",
data() { data() {
@ -208,12 +212,17 @@ export default {
], ],
// 线 // 线
productLineList: [], productLineList: [],
//
customData: null
}; };
}, },
created() { created() {
findProductLineList({ productLineType: 1 }).then(response => { findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data this.productLineList = response.data
}) })
getCustomData(393).then(response => {
this.customData = response.data.customData
})
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'

@ -70,7 +70,10 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <div style="float: right">
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</div>
</el-row> </el-row>
<el-table v-loading="loading" :data="temperatureHistoryList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="temperatureHistoryList" @selection-change="handleSelectionChange">
@ -145,6 +148,7 @@ import {
updateTemperatureHistory updateTemperatureHistory
} from '@/api/report/temperatureHistory' } from '@/api/report/temperatureHistory'
import { parseTime } from '@//utils/ruoyi' import { parseTime } from '@//utils/ruoyi'
import { getCustomData } from '@//api/base/customData'
export default { export default {
name: 'TemperatureHistory', name: 'TemperatureHistory',
@ -235,10 +239,16 @@ export default {
{ key: 25, label: `低压启动测试电压`, visible: true }, { key: 25, label: `低压启动测试电压`, visible: true },
{ key: 26, label: `同步时间`, visible: true }, { key: 26, label: `同步时间`, visible: true },
{ key: 27, label: `供电频率`, visible: true } { key: 27, label: `供电频率`, visible: true }
] ],
//
customData: null
} }
}, },
created() { created() {
//
getCustomData(388).then(response => {
this.customData = response.data.customData
})
const nowDate = parseTime(new Date(), '{y}-{m}-{d}') const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
this.daterangeBegindatetime[0] = nowDate + ' 00:00:00' this.daterangeBegindatetime[0] = nowDate + ' 00:00:00'
this.daterangeBegindatetime[1] = nowDate + ' 23:59:59' this.daterangeBegindatetime[1] = nowDate + ' 23:59:59'

Loading…
Cancel
Save