Browse Source

base-ui左侧菜单

master
lzh 3 years ago
parent
commit
d1131d59c4
  1. 245
      base-ui/src/layout/components/Sidebar/index.vue
  2. 4
      base-ui/src/layout/index.vue
  3. 397
      base-ui/src/router/index.js
  4. 2
      base-ui/src/settings.js
  5. 11
      base-ui/src/views/index.vue
  6. 49
      base-ui/src/views/kucun/ckmx/index.vue
  7. 49
      base-ui/src/views/kucun/kcxxcx/index.vue
  8. 49
      base-ui/src/views/kucun/rkmx/index.vue
  9. 49
      base-ui/src/views/xiaoshou/xstj/index.vue
  10. 49
      base-ui/src/views/xiaoshou/xstj/tj.vue
  11. 2
      base-ui/vue.config.js
  12. 21
      yxt_supervise/supervise-portal/supervise-portal-biz/src/main/java/com/yxt/supervise/portal/biz/gdinstorage/GdInstorageRest.java
  13. 2
      yxt_supervise/supervise-portal/supervise-portal-biz/src/main/java/com/yxt/supervise/portal/biz/gdinventory/GdInventoryService.java
  14. 14
      yxt_supervise/supervise-portal/supervise-portal-biz/src/main/java/com/yxt/supervise/portal/biz/gdoutstorage/GdOutstorageRest.java
  15. 39
      yxt_supervise/supervise-portal/supervise-portal-biz/src/main/java/com/yxt/supervise/portal/biz/storeindex/StoreIndexService.java

245
base-ui/src/layout/components/Sidebar/index.vue

@ -1,124 +1,123 @@
<template>
<div :class="{'has-logo':showLogo}">
<logo v-if="showLogo" :collapse="isCollapse" />
<el-scrollbar wrap-class="scrollbar-wrapper">
<el-menu :default-active="activeMenu" :background-color="variables.menuBg" :text-color="variables.menuText"
:unique-opened="false" :active-text-color="variables.menuActiveText" :collapse-transition="false"
mode="vertical">
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
</el-menu>
</el-scrollbar>
</div>
</template>
<script>
import {
mapGetters
} from 'vuex'
import Logo from './Logo'
import SidebarItem from './SidebarItem'
import variables from '@/styles/variables.scss'
import {
getrolemenus,
loginDetails
} from '@/api/system/Role/role.js'
import {
getStorage
} from '@/utils/auth'
export default {
components: {
SidebarItem,
Logo
},
data() {
return {
YongHuid: [],
routes: [],
params: {
sourceSid: 'df3e44ae-412e-4b02-b9e4-6893dbf5f83b',
userSid: '',
}
}
},
computed: {
...mapGetters([
'sidebar'
]),
// routes() {
// df3e44ae-412e-4b02-b9e4-6893dbf5f83b
// console.log('78979789', this.$router.options.routes)
// return this.$router.options.routes
// },
activeMenu() {
const route = this.$route
const {
meta,
path
} = route
// if set path, the sidebar will highlight the path you set
if (meta.activeMenu) {
return meta.activeMenu
}
return path
},
showLogo() {
return this.$store.state.settings.sidebarLogo
},
variables() {
return variables
},
isCollapse() {
return !this.sidebar.opened
}
},
created() {
this.postHuoquyonghu()
},
methods: {
//
postHuoquyonghu() {
var token = getStorage()
loginDetails(token).then((response) => {
console.log('resss', response)
if (response.code === '200') {
this.YongHuid = response.data
this.params.userSid = this.YongHuid.sid
getrolemenus(this.params).then((res) => {
const userRoles = this.resRouter(res.data)
userRoles.push({
path: '*',
redirect: '/404',
hidden: true
})
return userRoles
})
}
})
},
resRouter(menus) {
//
for (var i = 0; i < menus.length; i++) {
if (menus[i].children && menus[i].children.length != 0) {
this.resRouter(menus[i].children)
}
if (menus[i].children.length == 0) {
delete menus[i].children
delete menus[i].redirect
}
if (menus[i].component == '') {
console.log('55555', menus[i])
menus[i] = {
path: menus[i].path,
component: Layout,
redirect: menus[i].path,
children: [menus[i]],
}
}
}
this.routes = menus
console.log('左侧菜单', this.routes)
return menus
},
},
}
<template>
<div :class="{ 'has-logo': showLogo }">
<logo v-if="showLogo" :collapse="isCollapse" />
<el-scrollbar wrap-class="scrollbar-wrapper">
<el-menu
:default-active="activeMenu"
:background-color="variables.menuBg"
:text-color="variables.menuText"
:unique-opened="false"
:active-text-color="variables.menuActiveText"
:collapse-transition="false"
mode="vertical"
>
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
</el-menu>
</el-scrollbar>
</div>
</template>
<script> import { constantRoutes } from '@/router'
import { mapGetters } from 'vuex'
import Logo from './Logo'
import SidebarItem from './SidebarItem'
import variables from '@/styles/variables.scss'
// import {
// getrolemenus,
// loginDetails
// } from '@/api/system/Role/role.js'
// import {
// getStorage
// } from '@/utils/auth'
export default {
components: {
SidebarItem,
Logo
},
data() {
return {
YongHuid: [],
routes: [],
params: {
sourceSid: 'df3e44ae-412e-4b02-b9e4-6893dbf5f83b',
userSid: ''
}
}
},
computed: {
...mapGetters(['sidebar']),
// routes() {
// df3e44ae-412e-4b02-b9e4-6893dbf5f83b
// console.log('78979789', this.$router.options.routes)
// return this.$router.options.routes
// },
activeMenu() {
const route = this.$route
const { meta, path } = route
// if set path, the sidebar will highlight the path you set
if (meta.activeMenu) {
return meta.activeMenu
}
return path
},
showLogo() {
return this.$store.state.settings.sidebarLogo
},
variables() {
return variables
},
isCollapse() {
return !this.sidebar.opened
}
},
created() {
this.postHuoquyonghu()
},
methods: {
//
postHuoquyonghu() {
// var token = getStorage()
// loginDetails(token).then((response) => {
// console.log('resss', response)
// if (response.code === '200') {
// this.YongHuid = response.data
// this.params.userSid = this.YongHuid.sid
// getrolemenus(this.params).then((res) => {
// const userRoles = this.resRouter(res.data)
// userRoles.push({
// path: '*',
// redirect: '/404',
// hidden: true
// })
// return userRoles
// })
// }
// }) this.routes = constantRoutes
}
// resRouter(menus) {
// //
// for (var i = 0; i < menus.length; i++) {
// if (menus[i].children && menus[i].children.length !== 0) {
// this.resRouter(menus[i].children)
// }
// if (menus[i].children.length == 0) {
// delete menus[i].children
// delete menus[i].redirect
// }
// if (menus[i].component == '') {
// console.log('55555', menus[i])
// menus[i] = {
// path: menus[i].path,
// component: Layout,
// redirect: menus[i].path,
// children: [menus[i]]
// }
// }
// }
// this.routes = menus
// console.log('', this.routes)
// return menus
// }
}
}
</script>

4
base-ui/src/layout/index.vue

@ -9,9 +9,9 @@
@click="handleClickOutside"
/>
<div class="main-container">
<div class="home-box">
<!-- <div class="home-box">
<a href="javascript:void(0);" class="text-center">----</a>
</div>
</div> -->
<sidebar class="sidebar-container" />
<!--菜单-->
<div class="TagsView">

397
base-ui/src/router/index.js

@ -7,8 +7,7 @@ Vue.use(Router)
/* 所有角色可以访问/没有权限要求的基页 */
export const constantRoutes = [
{
export const constantRoutes = [{
path: '/redirect',
component: Layout,
hidden: true,
@ -16,28 +15,26 @@ export const constantRoutes = [
path: '/redirect/:path(.*)',
component: () => import('@/views/redirect/index.vue')
}]
},
{
}, {
path: '/',
redirect: 'index'
},
{
}, {
path: '/login',
component: () => import('@/views/login/login.vue')
},
{
}, {
path: '/home',
component: () => import('@/views/Home/Home.vue'),
name: 'home'
}, {
path: '/index',
component: Layout,
redirect: '/index',
meta: {
title: '首页'
},
children: [{
path: '/index',
component: () =>
import('@/views/index.vue'),
component: () => import('@/views/index.vue'),
name: 'index',
meta: {
title: '主页',
@ -46,344 +43,88 @@ export const constantRoutes = [
}
}]
},
// 1厂商管理
// 1销售统计
{
path: '/changshang',
path: '/xiaoshou',
component: Layout,
redirect: '/changshang',
meta: {
title: '厂商管理',
title: '销售统计'
},
children: [
{
path: '/changshang/changshangguanli',
component: () =>
import('@/views/changshang/changshangguanli/changshangguanli.vue'),
name: 'changshangguanli',
meta: {
title: '厂商管理',
noCache: true,
}
},
]
},
// 2品牌管理
{
path: '/pinpai',
component: Layout,
redirect: '/pinpai',
meta: {
title: '品牌管理'
},
children: [
{
path: '/pinpai/pinpaiguanli',
component: () =>
import('@/views/pinpai/pinpaiguanli/pinpaiguanli.vue'),
name: 'pinpaiguanli',
meta: {
title: '品牌管理',
noCache: true,
}
},
{
path: '/pinpai/pinpaiAdd/:id',
component: () =>
import('@/views/pinpai/pinpaiguanli/pinpaiAdd.vue'),
name: 'pinpaiAdd',
hidden: true,
meta: {
title: '品牌管理',
noCache: true,
}
},
{
path: '/pinpai/pinpaiInfo',
component: () =>
import('@/views/pinpai/pinpaiguanli/pinpaiInfo.vue'),
name: 'pinpaiInfo',
hidden: true,
meta: {
title: '品牌详情',
noCache: true,
}
},
{
path: '/pinpai/pinpaiDaoru',
component: () =>
import('@/views/pinpai/pinpaidaoru/pinpaiDaoru.vue'),
name: 'pinpaiDaoru',
hidden: true,
meta: {
title: '导入品牌'
}
}
]
},
// 4经销商管理
{
path: '/jingxiaoshang',
component: Layout,
redirect: '/jingxiaoshang',
meta: {
title: '经销商管理'
},
children: [
{
path: '/jingxiaoshang/jingxiaoshangguanli',
component: () =>
import('@/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangguanli.vue'),
name: 'jingxiaoshangguanli',
meta: {
title: '经销商管理',
noCache: true,
}
},
{
path: '/jingxiaoshang/jingxiaoshangAdd',
component: () =>
import('@/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangAdd.vue'),
name: 'jingxiaoshangAdd',
hidden: true,
meta: {
title: '经销商添加',
noCache: true,
}
},
{
path: '/jingxiaoshang/jingxiaoshangEdit/:id',
component: () =>
import('@/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangEdit.vue'),
name: 'jingxiaoshangEdit',
hidden: true,
meta: {
title: '经销商修改',
noCache: true,
}
},
{
path: '/jingxiaoshang/jingxiaoshangInfo/:sid',
component: () =>
import('@/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangInfo.vue'),
name: 'jingxiaoshangInfo',
hidden: true,
meta: {
title: '经销商详情',
noCache: true,
}
}
// {
// path: '/jingxiaoshang/addcomponents/beianzhanghaoForm',
// component: () =>
// import('@/views/jingxiaoshang/addcomponents/beianzhanghaoForm.vue'),
// name: 'beianzhanghaoForm',
// hidden: true,
// meta: {
// title: '备案账号添加'
// }
// }
//
]
},
// 5挂靠公司 现已改为经销商
{
path: '/guakaogongsi',
component: Layout,
redirect: '/guakaogongsi',
meta: {
title: '经销商'
},
children: [
{
path: '/guakaogongsi/guakaogongsiguanli',
component: () =>
import('@/views/guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue'),
name: 'guakaogongsiguanli',
meta: {
title: '经销商',
noCache: true,
}
},
// {
// path: '/guakaogongsi/guakaogongsiAdd/:id',
// component: () =>
// import('@/views/guakaogongsi/guakaogongsiguanli/guakaogongsiAdd.vue'),
// name: 'guakaogongsiAdd',
// hidden: true,
// meta: {
// title: '挂靠公司添加'
// }
// },
// {
// path: '/guakaogongsi/guakaogongsiInfo',
// component: () =>
// import('@/views/guakaogongsi/guakaogongsiguanli/guakaogongsiInfo.vue'),
// name: 'guakaogongsiInfo',
// hidden: true,
// meta: {
// title: '挂靠公司详情'
// }
// },
{
path: '/guakaogongsi/renwu',
component: () =>
import('@/views/guakaogongsi/renwu/renwu.vue'),
name: 'renwu',
hidden: true,
meta: {
title: '任务'
}
},
{
path: '/guakaogongsi/renwuchuli',
component: () =>
import('@/views/guakaogongsi/renwu/renwuchuli.vue'),
name: 'renwuchuli',
hidden: true,
meta: {
title: '任务处理'
}
}
]
},
// 6资方管理
{
path: '/zifang',
component: Layout,
redirect: '/zifang',
meta: {
title: '资方管理'
},
children: [
{
path: '/zifang/zifangguanli',
component: () =>
import('@/views/zifang/zifangguanli/zifangguanli.vue'),
name: 'zifangguanli',
meta: {
title: '资方信息管理',
noCache: true,
}
},
{
path: '/zifang/zifangguanliAdd/:id',
component: () =>
import('@/views/zifang/zifangguanli/zifangguanliAdd.vue'),
name: 'zifangguanliAdd',
hidden: true,
meta: {
title: '资方信息添加',
noCache: true,
}
},
{
path: '/zifang/zifangguanliInfo',
component: () =>
import('@/views/zifang/zifangguanli/zifangguanliInfo.vue'),
name: 'zifangguanliInfo',
hidden: true,
meta: {
title: '资方信息详细信息',
noCache: true,
}
},
{
path: '/zifang/zifangzhengce',
component: () =>
import('@/views/zifang/zifangzhengce/zifangzhengce.vue'),
name: 'zifangzhengce',
meta: {
title: '资方政策管理',
noCache: true,
}
},
{
path: '/zifang/zifangzhengceAdd/:id',
component: () =>
import('@/views/zifang/zifangzhengce/zifangzhengceAdd.vue'),
name: 'zifangzhengceAdd',
hidden: true,
meta: {
title: '资方政策添加',
noCache: true,
}
},
{
path: '/zifang/zifangzhengceInfo',
component: () =>
import('@/views/zifang/zifangzhengce/zifangzhengceInfo.vue'),
name: 'zifangzhengceInfo',
hidden: true,
meta: {
title: '资方政策详细信息',
noCache: true,
}
}
]
},
// 7、中介人员
{
path: '/zhongjie',
component: Layout,
redirect: '/zhongjie',
meta: {
title: '中介人员',
},
children: [
{
path: '/zhongjie/zhongjierenyuan',
component: () =>
import('@/views/zhongjierenyuan/zhongjierenyuan.vue'),
name: 'zhongjierenyuan',
meta: {
title: '中介人员',
noCache: true,
}
},
]
children: [{
path: 'xstj/index',
component: () => import('@/views/xiaoshou/xstj/index.vue'),
name: 'XiaoshouXstjIndex',
meta: {
title: '销售数据导入',
noCache: true
}
}, {
path: 'xstj/tj',
component: () => import('@/views/xiaoshou/xstj/tj.vue'),
name: 'XiaoshouXstjTj',
meta: {
title: '销售数据统计',
noCache: true
}
}]
},
// 资料清单
// 2库存信息
{
path: '/fileList',
path: '/kucun',
component: Layout,
redirect: '/fileList/index',
meta: {
title: '资料清单'
title: '库存信息'
},
children: [{
path: '/fileList/index',
component: () => import('@/views/fileList/fileList.vue'),
name: 'fileList',
meta: { title: '资料清单',noCache: true, }
path: 'kcxxcx',
component: () => import('@/views/kucun/kcxxcx/index.vue'),
name: 'KucunKcxxcxIndex',
meta: {
title: '库存数据导入',
noCache: true
}
}, {
path: 'rkmx',
component: () => import('@/views/kucun/rkmx/index.vue'),
name: 'KucunRkmxIndex',
meta: {
title: '入库明细',
noCache: true
}
}, {
path: 'ckmx',
component: () => import('@/views/kucun/ckmx/index.vue'),
name: 'KucunCkmxIndex',
meta: {
title: '出库明细',
noCache: true
}
}]
},
{
path: '/404',
component: () =>
import('@/views/404'),
hidden: true
}
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }
{
path: '/404',
component: () =>
import('@/views/404'),
hidden: true
}
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }
]
const createRouter = () => new Router({
// mode: 'history', // require service support
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
// mode: 'history', // require service support
scrollBehavior: () => ({
y: 0
}),
routes: constantRoutes
})
const router = createRouter()
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export function resetRouter() {
const newRouter = createRouter()
router.matcher = newRouter.matcher // reset router
const newRouter = createRouter()
router.matcher = newRouter.matcher // reset router
}
export default router

2
base-ui/src/settings.js

@ -1,6 +1,6 @@
module.exports = {
title: '安瑞集团信息化平台',
title: '汇融银行智能监管平台',
/**
* @type {boolean} true | false

11
base-ui/src/views/index.vue

@ -1,20 +1,23 @@
<template>
<div class="imgDemo">
<!--<el-button type="primary" @click="getToken()">token</el-button>
<!--<el-button type="primary" @click="getToken()">token</el-button>
<div style="width: 200px;">{{token}}</div>-->
<el-card class="box-card">
<h2>汇融银行智能监管平台</h2>
</el-card>
</div>
</template>
<script>
import {login1} from '@/api/system/user/login.js'
// import { login1 } from '@/api/system/user/login.js'
export default {
name: '',
data() {
return {
token:''
token: ''
}
},
methods:{
methods: {
// getToken(){
// let params = {
// password: "329653",

49
base-ui/src/views/kucun/ckmx/index.vue

@ -0,0 +1,49 @@
<template>
<div class="app-container">
<div>
<h3>{{ name }}</h3>
</div>
</div>
</template>
<script>
export default {
name: 'KucunCkmxIndex',
// components: { },
data() {
return {
name: '出库明细'
}
},
created() {
//
this.init()
//
// this.getList()
},
methods: {
init() {},
getList() {},
//
handleReturn() {
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.wenjiantit {
font-size: 16px;
font-weight: bold;
margin: 25px 0 10px 0;
}
.forminfo {
margin: 0;
padding: 0;
}
.listcon {
height: calc(100vh - 250px);
overflow-y: auto;
overflow-x: hidden;
}
</style>

49
base-ui/src/views/kucun/kcxxcx/index.vue

@ -0,0 +1,49 @@
<template>
<div class="app-container">
<div>
<h3>{{ name }}</h3>
</div>
</div>
</template>
<script>
export default {
name: 'KucunKcxxcxIndex',
// components: { },
data() {
return {
name: '库存数据导入'
}
},
created() {
//
this.init()
//
// this.getList()
},
methods: {
init() {},
getList() {},
//
handleReturn() {
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.wenjiantit {
font-size: 16px;
font-weight: bold;
margin: 25px 0 10px 0;
}
.forminfo {
margin: 0;
padding: 0;
}
.listcon {
height: calc(100vh - 250px);
overflow-y: auto;
overflow-x: hidden;
}
</style>

49
base-ui/src/views/kucun/rkmx/index.vue

@ -0,0 +1,49 @@
<template>
<div class="app-container">
<div>
<h3>{{ name }}</h3>
</div>
</div>
</template>
<script>
export default {
name: 'KucunRkmxIndex',
// components: { },
data() {
return {
name: '入库明细'
}
},
created() {
//
this.init()
//
// this.getList()
},
methods: {
init() {},
getList() {},
//
handleReturn() {
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.wenjiantit {
font-size: 16px;
font-weight: bold;
margin: 25px 0 10px 0;
}
.forminfo {
margin: 0;
padding: 0;
}
.listcon {
height: calc(100vh - 250px);
overflow-y: auto;
overflow-x: hidden;
}
</style>

49
base-ui/src/views/xiaoshou/xstj/index.vue

@ -0,0 +1,49 @@
<template>
<div class="app-container">
<div>
<h3>{{ name }}</h3>
</div>
</div>
</template>
<script>
export default {
name: 'XiaoshouXstjIndex',
// components: { },
data() {
return {
name: '销售数据导入'
}
},
created() {
//
this.init()
//
// this.getList()
},
methods: {
init() {},
getList() {},
//
handleReturn() {
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.wenjiantit {
font-size: 16px;
font-weight: bold;
margin: 25px 0 10px 0;
}
.forminfo {
margin: 0;
padding: 0;
}
.listcon {
height: calc(100vh - 250px);
overflow-y: auto;
overflow-x: hidden;
}
</style>

49
base-ui/src/views/xiaoshou/xstj/tj.vue

@ -0,0 +1,49 @@
<template>
<div class="app-container">
<div>
<h3>{{ name }}</h3>
</div>
</div>
</template>
<script>
export default {
name: 'XiaoshouXstjTj',
// components: { },
data() {
return {
name: '销售数据统计'
}
},
created() {
//
this.init()
//
// this.getList()
},
methods: {
init() {},
getList() {},
//
handleReturn() {
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.wenjiantit {
font-size: 16px;
font-weight: bold;
margin: 25px 0 10px 0;
}
.forminfo {
margin: 0;
padding: 0;
}
.listcon {
height: calc(100vh - 250px);
overflow-y: auto;
overflow-x: hidden;
}
</style>

2
base-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || '安瑞集团信息化平台' // page title
const name = defaultSettings.title || '汇融银行智能监管平台' // page title
// 如果端口设置为80,
// 使用管理员权限执行命令行。

21
yxt_supervise/supervise-portal/supervise-portal-biz/src/main/java/com/yxt/supervise/portal/biz/gdinstorage/GdInstorageRest.java

@ -53,15 +53,18 @@ public class GdInstorageRest {
@GetMapping("/test")
public ResultBean test() {
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/23汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/24汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/25汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/26汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/27汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/28汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/29汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/30汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/12-1汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/23汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/24汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/25汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/26汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/27汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/28汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/29汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/30汇融银行_入库明细表.xlsx");
// gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/23/12-1汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/2汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/3汇融银行_入库明细表.xlsx");
gdInstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/4汇融银行_入库明细表.xlsx");
return ResultBean.fireSuccess();
}

2
yxt_supervise/supervise-portal/supervise-portal-biz/src/main/java/com/yxt/supervise/portal/biz/gdinventory/GdInventoryService.java

@ -79,7 +79,7 @@ public class GdInventoryService extends ServiceImpl<GdInventoryMapper, GdInvento
List<GdInventoryOk> okList = new ArrayList<>();
for (GdInventory entity : list) {
if (gdRescategoryProdService.containsCode(entity.getProdCode()) && storeIndexService.containsCodeWithOne(entity.getWarehouseCode())) {
if (gdRescategoryProdService.containsCode(entity.getProdCode()) && storeIndexService.containsCodeWithOneNoJmd(entity.getWarehouseCode())) {
GdInventoryOk ok = new GdInventoryOk();
BeanUtil.copyProperties(entity, ok, "id");
// gdInventoryOkService.save(ok);

14
yxt_supervise/supervise-portal/supervise-portal-biz/src/main/java/com/yxt/supervise/portal/biz/gdoutstorage/GdOutstorageRest.java

@ -54,7 +54,19 @@ public class GdOutstorageRest {
@GetMapping("/test")
public ResultBean test() {
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/汇融银行_出库明细表.xlsx");
// gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221202/汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/23汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/24汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/25汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/26汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/27汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/28汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/29汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/30汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/12-1汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/12-2汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/12-3汇融银行_出库明细表.xlsx");
gdOutstorageService.doimp("D:/works/projects/javaee/lzh/niejinyi/yunyan/docs/sheji/wx20221204/aa/12-4汇融银行_出库明细表.xlsx");
return ResultBean.fireSuccess();
}

39
yxt_supervise/supervise-portal/supervise-portal-biz/src/main/java/com/yxt/supervise/portal/biz/storeindex/StoreIndexService.java

@ -27,6 +27,7 @@ package com.yxt.supervise.portal.biz.storeindex;
import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.map.MapUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yxt.supervise.portal.biz.gdinventory.GdRescategoryProd;
import org.apache.commons.lang3.StringUtils;
@ -53,23 +54,18 @@ import java.util.Map;
@Service
public class StoreIndexService extends ServiceImpl<StoreIndexMapper, StoreIndex> {
private static List<String> oneCodeList = ListUtil.toLinkedList("101", "199", "51", "52", "54", "55");
private static List<String> oneCodeList = ListUtil.toLinkedList("101", "199", "112");
private static Map<String, String> oneNameMap = MapUtil.builder(new HashMap<String, String>())
.put("101", "365常温仓")
.put("199", "365配送残品仓")
.put("51", "唐山正常仓")
.put("52", "唐山残损仓")
.put("54", "唐山烟草仓")
.put("55", "唐山中转仓").build();
.put("101", "[101]365常温仓")
.put("199", "[199]365配送残品仓")
.put("112", "[112]供应链仓").build();
private static Map<String, String> oneTypeMap = MapUtil.builder(new HashMap<String, String>())
.put("101", "配送中心")
.put("199", "配送中心")
.put("51", "配送中心")
.put("52", "配送中心")
.put("54", "配送中心")
.put("55", "配送中心").build();
.put("112", "配送中心").build();
private static List<String> codeList = null;
private static List<String> codeNoJmdList = null;
private static Map<String, String> nameMap = null;
private static Map<String, String> typeMap = null;
@ -87,6 +83,15 @@ public class StoreIndexService extends ServiceImpl<StoreIndexMapper, StoreIndex>
return codeList;
}
public List<String> listCodeNoJmd() {
List<String> res = new ArrayList<>();
QueryWrapper<StoreIndex> qw = new QueryWrapper<>();
qw.ne("type", "连锁外加盟(销配结算)");
List<StoreIndex> list = super.list(qw);
list.forEach(entity -> res.add(entity.getCode().trim()));
return res;
}
public boolean containsCode(String code) {
if (StringUtils.isBlank(code))
return false;
@ -102,6 +107,18 @@ public class StoreIndexService extends ServiceImpl<StoreIndexMapper, StoreIndex>
return oneCodeList.contains(code.trim());
}
public boolean containsCodeWithOneNoJmd(String code) {
if (StringUtils.isBlank(code))
return false;
if (codeNoJmdList == null)
codeNoJmdList = listCodeNoJmd();
boolean contains = codeNoJmdList.contains(code.trim());
if (contains)
return true;
return oneCodeList.contains(code.trim());
}
public String nameOfCode(String code) {
if (nameMap == null)
nameMap = mapNames();

Loading…
Cancel
Save