diff --git a/src/api/report/customer_report_show.js b/src/api/report/customer_report_show.js new file mode 100644 index 0000000..f59404b --- /dev/null +++ b/src/api/report/customer_report_show.js @@ -0,0 +1,7 @@ +import { createAPI } from '@/utils/httpRequest.js' + +// 获取派工单的最新信息 +export const getCustomerReportData = data => createAPI('report/getCustomerReportData', 'POST', data) + +// 获取派工单的最新信息 +export const runCustomerReport = data => createAPI('report/runCustomerReport', 'POST', data) diff --git a/src/api/yieldReport/com_switch_roll.js b/src/api/yieldReport/com_switch_roll.js index 475c91f..aa2fec2 100644 --- a/src/api/yieldReport/com_switch_roll.js +++ b/src/api/yieldReport/com_switch_roll.js @@ -22,3 +22,5 @@ export const switchrollRepackAction = data => createAPI('schedule/switchrollRepa // 换分切工单切换卷校验 export const checkSplitScheduleSwitchRoll = data => createAPI('schedule/checkSplitScheduleSwitchRoll', 'POST', data) +//分切工单切换卷操作 +export const splitScheduleSwitchRoll = data => createAPI('schedule/splitScheduleSwitchRoll', 'POST', data) diff --git a/src/router/index.js b/src/router/index.js index c9154a8..19aa3e6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -38,6 +38,7 @@ const mainRoutes = { { path: '/theme', component: _import('common/theme'), name: 'theme', meta: { title: '主题' } }, { path: '/demo-echarts', component: _import('demo/echarts'), name: 'demo-echarts', meta: { title: 'demo-echarts', isTab: true } }, // { path: '/demo-ueditor', component: _import('demo/ueditor'), name: 'demo-ueditor', meta: { title: 'demo-ueditor', isTab: true } } + { path: '/customer_report_show', component: _import('modules/report/customer_report_show'), name: 'report', meta: { title: '自定义报表展示' } },//2022-04-20 自定义报表路径 ], beforeEnter (to, from, next) { let token =Vue.cookie.get('token') diff --git a/src/views/modules/report/com_run_customer_report.vue b/src/views/modules/report/com_run_customer_report.vue index aabcb6d..8fb11ef 100644 --- a/src/views/modules/report/com_run_customer_report.vue +++ b/src/views/modules/report/com_run_customer_report.vue @@ -49,7 +49,7 @@ worksheet="导出信息" class="el-button el-button--primary el-button--medium"> 导出 - + diff --git a/src/views/modules/report/com_show_customer_report_search_column.vue b/src/views/modules/report/com_show_customer_report_search_column.vue index 081c9c8..254a9fa 100644 --- a/src/views/modules/report/com_show_customer_report_search_column.vue +++ b/src/views/modules/report/com_show_customer_report_search_column.vue @@ -67,6 +67,7 @@ export default { site: this.$store.state.user.site, username: this.$store.state.user.name, reportId: '', + closedFlag: false, }, searchColumnList: [], searchColumnlArray: [ @@ -158,9 +159,10 @@ export default { methods: { /*初始化页面参数*/ - init(reportId) { + init(reportId, closedFlag) { //设置参数 this.pageData.reportId = reportId; + this.pageData.closedFlag = closedFlag; //刷新页面的参数 this.refreshPageData(); }, @@ -202,10 +204,21 @@ export default { /*保存已经修改好的参数数据*/ runCustomerReportModal(){ - this.$nextTick(() => { - this.showRunCustomerReportFlag = true; - this.$refs.runCustomerReport.init(this.pageData.reportId, this.searchColumnList); - }); + //判断是否走原来的流程 还是新的流程 + if(this.pageData.closedFlag){ + //关闭当前弹窗 + this.closeDialog() + //调用原页面的方法 + this.$emit('initSearchColumns', this.searchColumnList); + }else{ + //关闭当前的dialog + this.$nextTick(() => { + this.showRunCustomerReportFlag = true; + this.$refs.runCustomerReport.init(this.pageData.reportId, this.searchColumnList); + //关闭当前的dialog + this.closeDialog(); + }); + } }, }, diff --git a/src/views/modules/report/customer_report_show.vue b/src/views/modules/report/customer_report_show.vue new file mode 100644 index 0000000..f7b7eca --- /dev/null +++ b/src/views/modules/report/customer_report_show.vue @@ -0,0 +1,283 @@ + + + + + + diff --git a/src/views/modules/report/user_customer_report.vue b/src/views/modules/report/user_customer_report.vue index 3f42c2b..e93cfa1 100644 --- a/src/views/modules/report/user_customer_report.vue +++ b/src/views/modules/report/user_customer_report.vue @@ -1,5 +1,6 @@