update - 报表分页

master
yinq 6 months ago
parent 13b30767e1
commit ae9b2f6673

@ -101,13 +101,13 @@
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
</el-table> </el-table>
<!-- <pagination--> <pagination
<!-- v-show="total>0"--> v-show="total>0"
<!-- :total="total"--> :total="total"
<!-- :page.sync="queryParams.pageNum"--> :page.sync="queryParams.pageNum"
<!-- :limit.sync="queryParams.pageSize"--> :limit.sync="queryParams.pageSize"
<!-- @pagination="getList"--> @pagination="getList"
<!-- />--> />
</div> </div>
</template> </template>
@ -148,8 +148,8 @@ export default {
daterangeBeginTime: [], daterangeBeginTime: [],
// //
queryParams: { queryParams: {
// pageNum: 1, pageNum: 1,
// pageSize: 10, pageSize: 10,
beginBeginTime: null, beginBeginTime: null,
endBeginTime: null, endBeginTime: null,
productLineCode: 'CX_02', productLineCode: 'CX_02',
@ -207,12 +207,12 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
WIPInquiryReportList(this.queryParams).then(response => { WIPInquiryReportList(this.queryParams).then(response => {
this.reportList = response.data this.reportList = response.rows
this.total = response.total;
this.totalSum = 0 this.totalSum = 0
this.reportList.forEach(e => { this.reportList.forEach(e => {
this.totalSum += e.COMP_AMOUNT this.totalSum += e.COMP_AMOUNT
}) })
// this.total = response.total;
this.loading = false this.loading = false
}) })
}, },

@ -51,7 +51,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</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"
style="width: 340px" style="width: 340px"
@ -69,6 +69,14 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="info"
plain
size="mini"
>打印数{{ totalSum }}
</el-button>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
@ -99,7 +107,7 @@
<el-table-column label="销售订单号" align="center" prop="SALEORDER_CODE" v-if="columns[4].visible"/> <el-table-column label="销售订单号" align="center" prop="SALEORDER_CODE" v-if="columns[4].visible"/>
<el-table-column label="销售订单行号" align="center" prop="SALEORDER_LINENUMBER" v-if="columns[5].visible"/> <el-table-column label="销售订单行号" align="center" prop="SALEORDER_LINENUMBER" v-if="columns[5].visible"/>
<el-table-column label="产品编码" align="center" prop="MATERIAL_CODE" v-if="columns[6].visible"/> <el-table-column label="产品编码" align="center" prop="MATERIAL_CODE" v-if="columns[6].visible"/>
<el-table-column label="产品名称" align="center" prop="MATERIAL_NAME" v-if="columns[7].visible" width="250"/> <el-table-column label="产品名称" align="center" prop="MATERIAL_NAME" v-if="columns[7].visible" width="280"/>
<el-table-column label="MES条码" align="center" prop="BOX_CODE" v-if="columns[8].visible" width="200"/> <el-table-column label="MES条码" align="center" prop="BOX_CODE" v-if="columns[8].visible" width="200"/>
<el-table-column label="成品条码" align="center" prop="PRODUCT_SNCODE" v-if="columns[9].visible" width="200"/> <el-table-column label="成品条码" align="center" prop="PRODUCT_SNCODE" v-if="columns[9].visible" width="200"/>
<el-table-column label="MES码打印时间" align="center" prop="PRINT_TIME" v-if="columns[10].visible" width="180"/> <el-table-column label="MES码打印时间" align="center" prop="PRINT_TIME" v-if="columns[10].visible" width="180"/>
@ -200,6 +208,7 @@ export default {
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
totalSum: 0,
// //
reportList: [], reportList: [],
// //
@ -271,6 +280,7 @@ export default {
boxTurnoverTraceabilityReportList(this.queryParams).then(response => { boxTurnoverTraceabilityReportList(this.queryParams).then(response => {
this.reportList = response.rows this.reportList = response.rows
this.total = response.total this.total = response.total
this.totalSum = response.total
this.loading = false this.loading = false
}) })
}, },

@ -113,13 +113,13 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <pagination--> <pagination
<!-- v-show="total>0"--> v-show="total>0"
<!-- :total="total"--> :total="total"
<!-- :page.sync="queryParams.pageNum"--> :page.sync="queryParams.pageNum"
<!-- :limit.sync="queryParams.pageSize"--> :limit.sync="queryParams.pageSize"
<!-- @pagination="getList"--> @pagination="getList"
<!-- />--> />
</div> </div>
</template> </template>
@ -162,8 +162,8 @@ export default {
daterangeBeginTime: [], daterangeBeginTime: [],
// //
queryParams: { queryParams: {
// pageNum: 1, pageNum: 1,
// pageSize: 10, pageSize: 10,
beginBeginTime: null, beginBeginTime: null,
endBeginTime: null, endBeginTime: null,
productLineCode: 'CX_02', productLineCode: 'CX_02',
@ -238,12 +238,12 @@ export default {
this.queryParams.endBeginTime = null this.queryParams.endBeginTime = null
} }
productionExecutionReportList(this.queryParams).then(response => { productionExecutionReportList(this.queryParams).then(response => {
this.reportList = response.data this.reportList = response.rows
this.total = response.total
this.totalSum = 0; this.totalSum = 0;
this.reportList.forEach(e => { this.reportList.forEach(e => {
this.totalSum += e.COMP_AMOUNT this.totalSum += e.COMP_AMOUNT
}) })
// this.total = response.total
this.loading = false this.loading = false
}) })
}, },

@ -186,6 +186,8 @@ export default {
const nowDate = parseTime(new Date(), '{y}-{m}-{d}') const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
this.daterangeBeginTime[0] = weekDate this.daterangeBeginTime[0] = weekDate
this.daterangeBeginTime[1] = nowDate this.daterangeBeginTime[1] = nowDate
this.queryParams.beginBeginTime = this.daterangeBeginTime[0]
this.queryParams.endBeginTime = this.daterangeBeginTime[1]
// this.getList() // this.getList()
this.getChart() this.getChart()
@ -527,7 +529,6 @@ export default {
}, },
/** 查询工单信息列表 */ /** 查询工单信息列表 */
getList() { getList() {
this.isChart = false
this.loading = true this.loading = true
if (null != this.daterangeBeginTime && '' != this.daterangeBeginTime) { if (null != this.daterangeBeginTime && '' != this.daterangeBeginTime) {
this.queryParams.beginBeginTime = this.daterangeBeginTime[0] this.queryParams.beginBeginTime = this.daterangeBeginTime[0]
@ -537,7 +538,12 @@ export default {
this.queryParams.endBeginTime = null this.queryParams.endBeginTime = null
} }
if (this.queryParams.STATION_CODE.length > 0) { if (this.queryParams.STATION_CODE.length > 0) {
this.isChart = false
this.queryParams.stationCodeList = this.queryParams.STATION_CODE.join(',') this.queryParams.stationCodeList = this.queryParams.STATION_CODE.join(',')
}else {
this.isChart = true
this.reportList = [];
this.getChart()
} }
repairRateReportList(this.queryParams).then(response => { repairRateReportList(this.queryParams).then(response => {
this.reportList = response.data this.reportList = response.data

@ -61,6 +61,14 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="info"
plain
size="mini"
>下线数{{ totalSum }}
</el-button>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
@ -140,6 +148,7 @@ export default {
title: "", title: "",
// //
open: false, open: false,
totalSum: 0,
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
@ -224,6 +233,7 @@ export default {
listProductOffLine(this.queryParams).then(response => { listProductOffLine(this.queryParams).then(response => {
this.productOffLineList = response.rows; this.productOffLineList = response.rows;
this.total = response.total; this.total = response.total;
this.totalSum = response.total;
this.loading = false; this.loading = false;
}); });
}, },

Loading…
Cancel
Save