update - 质量缺陷统计分析明细导出

master
yinq 8 months ago
parent 68e7f305d4
commit 2a55e915bf

@ -31,7 +31,8 @@ export function addSAPCalendar(data) {
return request({ return request({
url: '/sap/port/addSAPCalendar', url: '/sap/port/addSAPCalendar',
method: 'post', method: 'post',
data: data data: data,
timeout: 1000 * 60 * 10
}) })
} }

@ -96,7 +96,8 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleOrderDetails(scope.row)" @click="handleOrderDetails(scope.row)"
v-hasPermi="['report:pointDnb:edit']" v-hasPermi="['report:pointDnb:edit']"
>查看订单明细</el-button> >查看订单明细
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -117,7 +118,6 @@ 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 { getPointDnb } from '@//api/report/pointDnb'
export default { export default {
name: 'ReportInfo', name: 'ReportInfo',
@ -153,8 +153,8 @@ export default {
beginBeginTime: null, beginBeginTime: null,
endBeginTime: null, endBeginTime: null,
productLineCode: 'CX_02', productLineCode: 'CX_02',
beginStationCode: null, beginStationCode: '109',
endStationCode: null, endStationCode: '280',
ORDER_CODE: null, ORDER_CODE: null,
MATERIAL_CODE: null, MATERIAL_CODE: null,
MATERIAL_NAME: null, MATERIAL_NAME: null,
@ -175,7 +175,7 @@ export default {
{ key: 5, label: `物料名称`, visible: true }, { key: 5, label: `物料名称`, visible: true },
{ key: 6, label: `产品编号`, visible: true }, { key: 6, label: `产品编号`, visible: true },
{ key: 7, label: `产品名称`, visible: true }, { key: 7, label: `产品名称`, visible: true },
{ key: 8, label: `数量`, visible: true }, { key: 8, label: `数量`, visible: true }
], ],
// 线 // 线
productLineList: [], productLineList: [],
@ -193,7 +193,7 @@ export default {
findProductLineList({ productLineType: 1 }).then(response => { findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data this.productLineList = response.data
}).then(() => { }).then(() => {
return findProductLineList({ productLineType: 2, parentId: this.queryParams.productLineCode }) return findProductLineList({ productLineType: 2, parentId: this.queryParams.productLineCode, executionSort: '1'})
}).then(response => { }).then(response => {
this.findStationList = response.data this.findStationList = response.data
}) })
@ -208,7 +208,7 @@ export default {
this.loading = true this.loading = true
WIPInquiryReportList(this.queryParams).then(response => { WIPInquiryReportList(this.queryParams).then(response => {
this.reportList = response.data this.reportList = response.data
this.totalSum = 0; this.totalSum = 0
this.reportList.forEach(e => { this.reportList.forEach(e => {
this.totalSum += e.COMP_AMOUNT this.totalSum += e.COMP_AMOUNT
}) })
@ -254,9 +254,9 @@ export default {
/** 获取工位方法 */ /** 获取工位方法 */
getStationList() { getStationList() {
this.queryParams.beginStationCode = null; this.queryParams.beginStationCode = null
this.queryParams.endStationCode = null; this.queryParams.endStationCode = null
findProductLineList({ productLineType: 2, parentId: this.queryParams.productLineCode }) findProductLineList({ productLineType: 2, parentId: this.queryParams.productLineCode, executionSort: '1'})
.then(response => { .then(response => {
this.findStationList = response.data this.findStationList = response.data
}) })

@ -57,6 +57,16 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleDetailExport"
>缺陷明细导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</el-row> </el-row>
@ -300,6 +310,13 @@ export default {
this.download('/report/qualityReport/qualityDefectsStatisticalAnalysisList/export', { this.download('/report/qualityReport/qualityDefectsStatisticalAnalysisList/export', {
...this.queryParams ...this.queryParams
}, `质量缺陷统计分析_${new Date().getTime()}.xlsx`) }, `质量缺陷统计分析_${new Date().getTime()}.xlsx`)
},
/** 导出按钮操作 */
handleDetailExport() {
this.download('/report/qualityReport/qualityDefectsDetailList/export', {
...this.queryParams
}, `质量缺陷统计分析明细_${new Date().getTime()}.xlsx`)
} }
} }

Loading…
Cancel
Save