From 86df8bd0f59ec40d88268246018be4015f386478 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Sun, 23 Apr 2023 16:35:55 +0800 Subject: [PATCH] 2023-04-23 --- .../src/router/modules/codemenu.js | 14 -- .../src/views/enterprise/index.vue | 2 +- supervise-organizational-ui/.env.development | 4 +- .../src/api/brank/brank.js | 89 +++++++++ .../src/api/portal/areaPicker.js | 34 ++++ .../src/router/modules/codemenu.js | 16 +- .../src/views/brank/brankAdd.vue | 4 +- .../src/views/brank/brankAddPersonnel.vue | 187 ++++++++++++++++++ .../src/views/brank/brankInfo.vue | 50 ++++- .../src/views/brank/brankInfo2.vue | 0 .../src/views/brank/index.vue | 15 +- .../src/api/supervise/salesSummary.js | 20 +- .../src/views/reportCenter/salesSummary.vue | 145 ++++++++------ yxt-portal-ui/src/views/Home/Home.vue | 24 ++- 14 files changed, 495 insertions(+), 109 deletions(-) create mode 100644 supervise-organizational-ui/src/api/brank/brank.js create mode 100644 supervise-organizational-ui/src/api/portal/areaPicker.js rename {supervise-crm-ui => supervise-organizational-ui}/src/views/brank/brankAdd.vue (99%) create mode 100644 supervise-organizational-ui/src/views/brank/brankAddPersonnel.vue rename {supervise-crm-ui => supervise-organizational-ui}/src/views/brank/brankInfo.vue (82%) rename {supervise-crm-ui => supervise-organizational-ui}/src/views/brank/brankInfo2.vue (100%) rename {supervise-crm-ui => supervise-organizational-ui}/src/views/brank/index.vue (92%) diff --git a/supervise-crm-ui/src/router/modules/codemenu.js b/supervise-crm-ui/src/router/modules/codemenu.js index 7207f736..98fb2be7 100644 --- a/supervise-crm-ui/src/router/modules/codemenu.js +++ b/supervise-crm-ui/src/router/modules/codemenu.js @@ -14,20 +14,6 @@ const codemenu = [{ } }] }, -{ - path: '/brank', - component: Layout, - redirect: '/index', - children: [{ - path: '/brank/index', - component: () => import('@/views//brank/index.vue'), - name: 'index', - meta: { - title: '银行管理', - noCache: true - } - }] -}, { path: '/enterprise', component: Layout, diff --git a/supervise-crm-ui/src/views/enterprise/index.vue b/supervise-crm-ui/src/views/enterprise/index.vue index b67b1509..41e6035c 100644 --- a/supervise-crm-ui/src/views/enterprise/index.vue +++ b/supervise-crm-ui/src/views/enterprise/index.vue @@ -1,7 +1,7 @@ @@ -65,7 +67,8 @@ import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' import brankAdd from './brankAdd.vue' - import brankInfo from './brankInfo2.vue' + import brankAddPersonnel from './brankAddPersonnel.vue' + import brankInfo from './brankInfo.vue' export default { name: 'CustomerManagement', components: { @@ -73,6 +76,7 @@ pageye, ButtonBar, brankAdd, + brankAddPersonnel, brankInfo, }, @@ -224,6 +228,11 @@ this.viewState = 1 }, jump(sid) { + console.log("jump",sid) + this.viewState = 5 + this.$refs['brankAddPersonnel'].showAdd(sid) + }, + jump2(sid) { console.log("jump",sid) this.viewState = 2 this.$refs['divAdd'].showAdd(sid) diff --git a/supervise-report-ui/src/api/supervise/salesSummary.js b/supervise-report-ui/src/api/supervise/salesSummary.js index 23e35ebc..9d340ff5 100644 --- a/supervise-report-ui/src/api/supervise/salesSummary.js +++ b/supervise-report-ui/src/api/supervise/salesSummary.js @@ -1,12 +1,12 @@ import request from '@/utils/request' // 导出 -export function exportExcel(params) { +export function exportExcel(data) { return request({ - url: '/report/exportStoreSalesReport', + baseURL: '/api', + url: '/report/reportsaleslog/getFullUrlByOrderDate', + data, method: 'post', - responseType: 'blob', // 表明返回服务器返回的数据类型 - data: params, headers: { 'Content-Type': 'application/json' } @@ -23,7 +23,8 @@ export function countinfo() { // 门店销售明细表 export function logPagerList(data) { return request({ - url: '/report/getStoreSalesReport', + baseURL: '/api', + url: '/report/reportsalesdaystore/getReportSalesDayStore', data, method: 'post', headers: { @@ -35,7 +36,8 @@ export function logPagerList(data) { // 门店商品销售明细表 export function in112PagerList(data) { return request({ - url: '/report/getGoodsSalesReport', + baseURL: '/api', + url: '/report/reportproduct/getRepoSalesDayStoreProd', data, method: 'post', headers: { @@ -47,7 +49,8 @@ export function in112PagerList(data) { // 门店销售明细表(烟草) export function inallPagerList(data) { return request({ - url: '/report/getStoreSalesReportYc', + baseURL: '/api', + url: '/report/reporttobaccostore/getSalesTobaccoStore', data, method: 'post', headers: { @@ -59,7 +62,8 @@ export function inallPagerList(data) { // 门店商品销售明细表(烟草) export function inall4PagerList(data) { return request({ - url: '/report/getGoodsSalesReportYc', + baseURL: '/api', + url: '/report/reporttobaccoproduct/getSalesStoreProduct', data, method: 'post', headers: { diff --git a/supervise-report-ui/src/views/reportCenter/salesSummary.vue b/supervise-report-ui/src/views/reportCenter/salesSummary.vue index 740fe962..d0ee4ff6 100644 --- a/supervise-report-ui/src/views/reportCenter/salesSummary.vue +++ b/supervise-report-ui/src/views/reportCenter/salesSummary.vue @@ -24,36 +24,38 @@
- - 当前数据量过大,只展示前500条数据。详细数据请点击右上角‘导出’ + + 当前数据量过大,只展示前500条数据。详细数据请点击右上角‘导出’ - - + +
- - +
- + 当前数据量过大,只展示前500条数据。详细数据请点击右上角‘导出’ - - - - - - + + + + + + - +
@@ -64,41 +66,43 @@
- - 当前数据量过大,只展示前500条数据。详细数据请点击右上角‘导出’ + + 当前数据量过大,只展示前500条数据。详细数据请点击右上角‘导出’ - - + +
- - +
- - 当前数据量过大,只展示前500条数据。详细数据请点击右上角‘导出’ - - - - - - - - + + 当前数据量过大,只展示前500条数据。详细数据请点击右上角‘导出’ + + + + + + + + - +
- - +
@@ -286,11 +290,11 @@ current: this.logListQuery.current, size: this.logListQuery.size, params: { - date: "2023-01-07" + date: "2023-04-21" } }).then(response => { this.tableLoading1 = false - if (response.code === '200' && response.data ) { + if (response.code === '200' && response.data) { this.logList = response.data // this.logListTotal = response.data.total // this.logListQuery.current = response.data.current @@ -313,7 +317,7 @@ current: this.in112ListQuery.current, size: this.in112ListQuery.size, params: { - date: "2023-01-07" + date: "2023-04-21" } }).then(response => { this.tableLoading2 = false @@ -343,11 +347,11 @@ current: this.inallListQuery.current, size: this.inallListQuery.size, params: { - date: "2023-01-07" + date: "2023-04-21" } }).then(response => { this.tableLoading3 = false - if (response.code === '200' && response.data ) { + if (response.code === '200' && response.data) { this.inallList = response.data // this.inallListTotal = response.data.total // this.inallListQuery.current = response.data.current @@ -370,11 +374,11 @@ current: this.inall4ListQuery.current, size: this.inall4ListQuery.size, params: { - date: "2023-01-07" + date: "2023-04-21" } }).then(response => { this.tableLoading4 = false - if (response.code === '200' && response.data ) { + if (response.code === '200' && response.data) { this.inall4List = response.data // this.inall4ListTotal = response.data.total // this.inall4ListQuery.current = response.data.current @@ -444,29 +448,40 @@ // } // } - const loading = this.$loading({ - lock: true, - text: 'Loading', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }) + // const loading = this.$loading({ + // lock: true, + // text: 'Loading', + // spinner: 'el-icon-loading', + // background: 'rgba(0, 0, 0, 0.7)' + // }) + + exportExcel({ + current: 1, + size: 1, + params: { + date: "2023-04-21" + } + }).then((resp) => { + // loading.close + + console.log(">>>>>11111111111111111", resp) + console.log(">>>>>222222222", process.env.VUE_APP_BASE_API + resp.data.fullUrl) - exportExcel(this.jmdListQuery).then((resp) => { - loading.close() - const blob = new Blob([resp], { - type: 'application/vnd.ms-excel;charset=UTF-8' - }) - const fileName = '库存明细列表' + '.xls' - const elink = document.createElement('a') - elink.download = fileName - elink.style.display = 'nonde' - elink.href = URL.createObjectURL(blob) - document.body.appendChild(elink) - elink.click() - URL.revokeObjectURL(elink.href) - document.body.removeChild(elink) + window.location.href =resp.data.fullUrl + // const blob = new Blob([resp], { + // type: 'application/vnd.ms-excel;charset=UTF-8' + // }) + // const fileName = '库存明细列表' + '.xls' + // const elink = document.createElement('a') + // elink.download = fileName + // elink.style.display = 'nonde' + // elink.href = URL.createObjectURL(blob) + // document.body.appendChild(elink) + // elink.click() + // URL.revokeObjectURL(elink.href) + // document.body.removeChild(elink) }).catch(() => { - loading.close() + // loading.close() }) }, diff --git a/yxt-portal-ui/src/views/Home/Home.vue b/yxt-portal-ui/src/views/Home/Home.vue index 48ed08a7..1717f156 100644 --- a/yxt-portal-ui/src/views/Home/Home.vue +++ b/yxt-portal-ui/src/views/Home/Home.vue @@ -254,7 +254,11 @@ }, { imgUrl: require('@/assets/home/bIcon9.png'), - title: '客户管理' + title: '企业管理' + }, + { + imgUrl: require('@/assets/home/bIcon9.png'), + title: '仓库管控' }, { imgUrl: require('@/assets/home/bIcon8.png'), @@ -429,14 +433,14 @@ defaultOrgPathName: this.defaultOrgPathName, defaultOrgPath: this.defaultOrgPath } - if (index === 9) { + if (index === 10) { window.open('/#/index', '_blank') } else if (index === 0) { - window.open('http://192.168.3.8:9532/#/' + '?token=' + getStorage(), '_blank') - // window.open('http://jianguan.yyundong.com/customer/#/' + '?token=' + getStorage(), '_blank') + // window.open('http://192.168.3.8:9532/#/' + '?token=' + getStorage(), '_blank') + window.open('http://jianguan.yyundong.com/customer/#/' + '?token=' + getStorage(), '_blank') } else if (index === 1) { - window.open('http://192.168.3.8:9531#/' + '?token=' + getStorage(), '_blank') - // window.open('http://jianguan.yyundong.com/report/#/' + '?token=' + getStorage(), '_blank') + // window.open('http://192.168.3.8:9531#/' + '?token=' + getStorage(), '_blank') + window.open('http://jianguan.yyundong.com/report/#/' + '?token=' + getStorage(), '_blank') } else if (index === 2) { window.open('http://jianguan.yyundong.com/business/#/' + '?token=' + getStorage(), '_blank') } else if (index === 3) { @@ -448,10 +452,14 @@ } else if (index === 6) { window.open('http://jianguan.yyundong.com/message/#/' + '?token=' + getStorage(), '_blank') } else if (index === 7) { - window.open('http://jianguan.yyundong.com/organizational/#/' + '?token=' + getStorage(), '_blank') + window.open('http://192.168.3.8:9531/#/' + '?token=' + getStorage(), '_blank') + // window.open('http://jianguan.yyundong.com/organizational/#/' + '?token=' + getStorage(), '_blank') } else if (index === 8) { + window.open('http://192.168.3.8:9532/#/' + '?token=' + getStorage(), '_blank') + // window.open('http://jianguan.yyundong.com/crm/#/' + '?token=' + getStorage(), '_blank') + } else if (index === 9) { // window.open('http://192.168.3.8:9532/#/' + '?token=' + getStorage(), '_blank') - window.open('http://jianguan.yyundong.com/crm/#/' + '?token=' + getStorage(), '_blank') + // window.open('http://jianguan.yyundong.com/crm/#/' + '?token=' + getStorage(), '_blank') } } }