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

master
yinq 6 months ago
parent 68e7f305d4
commit 2a55e915bf

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

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

@ -57,6 +57,16 @@
>导出
</el-button>
</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>
</el-row>
@ -300,6 +310,13 @@ export default {
this.download('/report/qualityReport/qualityDefectsStatisticalAnalysisList/export', {
...this.queryParams
}, `质量缺陷统计分析_${new Date().getTime()}.xlsx`)
},
/** 导出按钮操作 */
handleDetailExport() {
this.download('/report/qualityReport/qualityDefectsDetailList/export', {
...this.queryParams
}, `质量缺陷统计分析明细_${new Date().getTime()}.xlsx`)
}
}

Loading…
Cancel
Save