|
|
|
@ -61,16 +61,16 @@
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="是否降级品" prop="isDowngrade">-->
|
|
|
|
|
<!-- <el-select v-model="queryParams.isDowngrade" placeholder="请选择是否降级品" clearable>-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in isDowngradeList"-->
|
|
|
|
|
<!-- :key="item.key"-->
|
|
|
|
|
<!-- :label="item.label"-->
|
|
|
|
|
<!-- :value="item.key"-->
|
|
|
|
|
<!-- ></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- <el-form-item label="是否降级品" prop="isDowngrade">-->
|
|
|
|
|
<!-- <el-select v-model="queryParams.isDowngrade" placeholder="请选择是否降级品" clearable>-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in isDowngradeList"-->
|
|
|
|
|
<!-- :key="item.key"-->
|
|
|
|
|
<!-- :label="item.label"-->
|
|
|
|
|
<!-- :value="item.key"-->
|
|
|
|
|
<!-- ></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="起止时间">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="daterangeBeginTime"
|
|
|
|
@ -99,7 +99,10 @@
|
|
|
|
|
>导出
|
|
|
|
|
</el-button>
|
|
|
|
|
</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-table v-loading="loading" :data="reportList" @selection-change="handleSelectionChange">
|
|
|
|
@ -199,6 +202,7 @@ import {
|
|
|
|
|
} from '@/api/report/reportAPI'
|
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
|
import { getCustomData } from '@//api/base/customData'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'ProductTraceabilityReport',
|
|
|
|
@ -262,13 +266,19 @@ export default {
|
|
|
|
|
// 产线选项
|
|
|
|
|
productLineList: [],
|
|
|
|
|
// 工位选项
|
|
|
|
|
findStationList: []
|
|
|
|
|
findStationList: [],
|
|
|
|
|
//自定义数据
|
|
|
|
|
customData: null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
findProductLineList({ productLineType: 1 }).then(response => {
|
|
|
|
|
this.productLineList = response.data
|
|
|
|
|
})
|
|
|
|
|
//获取自定义数据
|
|
|
|
|
getCustomData(382).then(response => {
|
|
|
|
|
this.customData = response.data.customData
|
|
|
|
|
})
|
|
|
|
|
// findProductLineList({productLineType: 2}).then(response => {
|
|
|
|
|
// this.findStationList = response.data;
|
|
|
|
|
// });
|
|
|
|
|