update - 测温、补打条码报表优化

master
yinq 1 day ago
parent 5f49b0f56a
commit c4d16552a9

@ -9,6 +9,16 @@
<!-- @keyup.enter.native="handleQuery"--> <!-- @keyup.enter.native="handleQuery"-->
<!-- />--> <!-- />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="产线" prop="productLineCode">
<el-select v-model="queryParams.productLineCode" placeholder="请选择产线" clearable>
<el-option
v-for="item in productLineList"
:key="item.productLineCode"
:label="item.productLineName"
:value="item.productLineCode"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="产品条码" prop="barcode"> <el-form-item label="产品条码" prop="barcode">
<el-input <el-input
v-model="queryParams.barcode" v-model="queryParams.barcode"
@ -226,6 +236,7 @@ import {
} from '@/api/report/electricalInspection' } from '@/api/report/electricalInspection'
import { parseTime } from '@//utils/ruoyi' import { parseTime } from '@//utils/ruoyi'
import { getCustomData } from '@//api/base/customData' import { getCustomData } from '@//api/base/customData'
import { findProductLineList } from '@//api/base/productLine'
export default { export default {
name: 'ElectricalInspection', name: 'ElectricalInspection',
@ -263,6 +274,7 @@ export default {
uuid: null, uuid: null,
result: null, result: null,
barcode: null, barcode: null,
productLineCode: 'CX_02',
testTime: null, testTime: null,
testData: null, testData: null,
recordTime: null recordTime: null
@ -282,7 +294,9 @@ export default {
{ key: 7, label: `异常描述`, visible: true } { key: 7, label: `异常描述`, visible: true }
], ],
// //
customData: null customData: null,
// 线
productLineList: [],
} }
}, },
created() { created() {
@ -290,6 +304,9 @@ export default {
getCustomData(387).then(response => { getCustomData(387).then(response => {
this.customData = response.data.customData this.customData = response.data.customData
}) })
findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data
})
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'

@ -1,6 +1,16 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="产线" prop="PRODUCT_LINE_CODE">
<el-select v-model="queryParams.PRODUCT_LINE_CODE" placeholder="请选择产线" clearable>
<el-option
v-for="item in productLineList"
:key="item.productLineCode"
:label="item.productLineName"
:value="item.productLineCode"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="箱体码" prop="perfusionBoxcode"> <el-form-item label="箱体码" prop="perfusionBoxcode">
<el-input <el-input
v-model="queryParams.perfusionBoxcode" v-model="queryParams.perfusionBoxcode"
@ -81,6 +91,7 @@
</el-table-column> </el-table-column>
<el-table-column label="产量" align="center" prop="yield" v-if="columns[15].visible"/> <el-table-column label="产量" align="center" prop="yield" v-if="columns[15].visible"/>
<el-table-column label="灌注完成状态字" align="center" prop="finishStatus" v-if="columns[16].visible" width="120"/> <el-table-column label="灌注完成状态字" align="center" prop="finishStatus" v-if="columns[16].visible" width="120"/>
<el-table-column label="产线" align="center" prop="PRODUCT_LINE_CODE" v-if="columns[17].visible" width="120"/>
</el-table> </el-table>
<pagination <pagination
@ -101,6 +112,7 @@ import {
getPerfusionRecord getPerfusionRecord
} from '@/api/report/perfusionRecord' } from '@/api/report/perfusionRecord'
import { parseTime } from '@//utils/ruoyi' import { parseTime } from '@//utils/ruoyi'
import { findProductLineList } from '@//api/base/productLine'
export default { export default {
name: 'PerfusionRecord', name: 'PerfusionRecord',
@ -145,6 +157,7 @@ export default {
updatedBy: null, updatedBy: null,
updatedTime: null, updatedTime: null,
perfusionResult: null, perfusionResult: null,
PRODUCT_LINE_CODE: 'CX_02',
yield: null, yield: null,
finishStatus: null finishStatus: null
}, },
@ -169,11 +182,17 @@ export default {
{ key: 13, label: `更新时间`, visible: true }, { key: 13, label: `更新时间`, visible: true },
{ key: 14, label: `灌注结果`, visible: true }, { key: 14, label: `灌注结果`, visible: true },
{ key: 15, label: `产量`, visible: true }, { key: 15, label: `产量`, visible: true },
{ key: 16, label: `灌注完成状态字`, visible: false } { key: 16, label: `灌注完成状态字`, visible: false },
] { key: 17, label: `产线`, visible: false },
],
// 线
productLineList: [],
} }
}, },
created() { created() {
findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data
})
const nowDate = parseTime(new Date(), '{y}-{m}-{d}') const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
this.daterangeCreatedTime[0] = nowDate + ' 00:00:00' this.daterangeCreatedTime[0] = nowDate + ' 00:00:00'
this.daterangeCreatedTime[1] = nowDate + ' 23:59:59' this.daterangeCreatedTime[1] = nowDate + ' 23:59:59'

@ -1,6 +1,16 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="产线" prop="productLineCode">
<el-select v-model="queryParams.productLineCode" placeholder="请选择产线" clearable>
<el-option
v-for="item in productLineList"
:key="item.productLineCode"
:label="item.productLineName"
:value="item.productLineCode"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="SAP计划编号" prop="orderCode"> <el-form-item label="SAP计划编号" prop="orderCode">
<el-input <el-input
v-model="queryParams.orderCode" v-model="queryParams.orderCode"
@ -209,6 +219,7 @@
<script> <script>
import { listSupplementBarCode, getSupplementBarCode, delSupplementBarCode, addSupplementBarCode, updateSupplementBarCode } from "@/api/report/supplementBarCode"; import { listSupplementBarCode, getSupplementBarCode, delSupplementBarCode, addSupplementBarCode, updateSupplementBarCode } from "@/api/report/supplementBarCode";
import { findProductLineList } from '@//api/base/productLine'
export default { export default {
name: "SupplementBarCode", name: "SupplementBarCode",
@ -246,7 +257,8 @@ export default {
printTime: null, printTime: null,
printBartype: null, printBartype: null,
printName: null, printName: null,
isPrint: null isPrint: null,
productLineCode: null
}, },
// //
form: {}, form: {},
@ -266,10 +278,15 @@ export default {
{ key: 9, label: `打印原因`, visible: true }, { key: 9, label: `打印原因`, visible: true },
{ key: 10, label: `记录时间`, visible: true }, { key: 10, label: `记录时间`, visible: true },
{ key: 11, label: `记录人`, visible: true }, { key: 11, label: `记录人`, visible: true },
] ],
// 线
productLineList: [],
}; };
}, },
created() { created() {
findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data
})
this.getList(); this.getList();
}, },
methods: { methods: {

@ -17,6 +17,16 @@
<!-- @keyup.enter.native="handleQuery"--> <!-- @keyup.enter.native="handleQuery"-->
<!-- />--> <!-- />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="产线" prop="productLineCode">
<el-select v-model="queryParams.productLineCode" placeholder="请选择产线" clearable>
<el-option
v-for="item in productLineList"
:key="item.productLineCode"
:label="item.productLineName"
:value="item.productLineCode"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="产品条码" prop="cpno"> <el-form-item label="产品条码" prop="cpno">
<el-input <el-input
v-model="queryParams.cpno" v-model="queryParams.cpno"
@ -157,6 +167,7 @@ import {
} from '@/api/report/temperatureHistory' } from '@/api/report/temperatureHistory'
import { parseTime } from '@//utils/ruoyi' import { parseTime } from '@//utils/ruoyi'
import { getCustomData } from '@//api/base/customData' import { getCustomData } from '@//api/base/customData'
import { findProductLineList } from '@//api/base/productLine'
export default { export default {
name: 'TemperatureHistory', name: 'TemperatureHistory',
@ -198,6 +209,7 @@ export default {
testedtime: null, testedtime: null,
etemp: null, etemp: null,
begindatetime: null, begindatetime: null,
productLineCode: 'CX_02',
cpresult: null, cpresult: null,
enddatetime: null, enddatetime: null,
username: null, username: null,
@ -249,7 +261,9 @@ export default {
{ key: 27, label: `供电频率`, visible: true } { key: 27, label: `供电频率`, visible: true }
], ],
// //
customData: null customData: null,
// 线
productLineList: [],
} }
}, },
created() { created() {
@ -257,6 +271,9 @@ export default {
getCustomData(388).then(response => { getCustomData(388).then(response => {
this.customData = response.data.customData this.customData = response.data.customData
}) })
findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data
})
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