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

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

@ -9,9 +9,9 @@
@click="handleClickOutside" @click="handleClickOutside"
/> />
<div class="main-container"> <div class="main-container">
<div class="home-box"> <!-- <div class="home-box">
<a href="javascript:void(0);" class="text-center">----</a> <a href="javascript:void(0);" class="text-center">----</a>
</div> </div> -->
<sidebar class="sidebar-container" /> <sidebar class="sidebar-container" />
<!--菜单--> <!--菜单-->
<div class="TagsView"> <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', path: '/redirect',
component: Layout, component: Layout,
hidden: true, hidden: true,
@ -16,28 +15,26 @@ export const constantRoutes = [
path: '/redirect/:path(.*)', path: '/redirect/:path(.*)',
component: () => import('@/views/redirect/index.vue') component: () => import('@/views/redirect/index.vue')
}] }]
}, }, {
{
path: '/', path: '/',
redirect: 'index' redirect: 'index'
}, }, {
{
path: '/login', path: '/login',
component: () => import('@/views/login/login.vue') component: () => import('@/views/login/login.vue')
}, }, {
{
path: '/home', path: '/home',
component: () => import('@/views/Home/Home.vue'), component: () => import('@/views/Home/Home.vue'),
name: 'home' name: 'home'
}, { }, {
path: '/index', path: '/index',
component: Layout, component: Layout,
redirect: '/index', redirect: '/index',
meta: {
title: '首页'
},
children: [{ children: [{
path: '/index', path: '/index',
component: () => component: () => import('@/views/index.vue'),
import('@/views/index.vue'),
name: 'index', name: 'index',
meta: { meta: {
title: '主页', title: '主页',
@ -46,344 +43,88 @@ export const constantRoutes = [
} }
}] }]
}, },
// 1销售统计
// 1厂商管理
{ {
path: '/changshang', path: '/xiaoshou',
component: Layout, component: Layout,
redirect: '/changshang',
meta: { meta: {
title: '厂商管理', title: '销售统计'
}, },
children: [ children: [{
{ path: 'xstj/index',
path: '/changshang/changshangguanli', component: () => import('@/views/xiaoshou/xstj/index.vue'),
component: () => name: 'XiaoshouXstjIndex',
import('@/views/changshang/changshangguanli/changshangguanli.vue'), meta: {
name: 'changshangguanli', title: '销售数据导入',
meta: { noCache: true
title: '厂商管理', }
noCache: true, }, {
} path: 'xstj/tj',
}, component: () => import('@/views/xiaoshou/xstj/tj.vue'),
] name: 'XiaoshouXstjTj',
}, meta: {
// 2品牌管理 title: '销售数据统计',
{ noCache: true
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,
}
},
]
}, },
// 资料清单 // 2库存信息
{ {
path: '/fileList', path: '/kucun',
component: Layout, component: Layout,
redirect: '/fileList/index',
meta: { meta: {
title: '资料清单' title: '库存信息'
}, },
children: [{ children: [{
path: '/fileList/index', path: 'kcxxcx',
component: () => import('@/views/fileList/fileList.vue'), component: () => import('@/views/kucun/kcxxcx/index.vue'),
name: 'fileList', name: 'KucunKcxxcxIndex',
meta: { title: '资料清单',noCache: true, } 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: () =>
path: '/404', import('@/views/404'),
component: () => hidden: true
import('@/views/404'), }
hidden: true // 404 page must be placed at the end !!!
} // { path: '*', redirect: '/404', hidden: true }
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }
] ]
const createRouter = () => new Router({ const createRouter = () => new Router({
// mode: 'history', // require service support // mode: 'history', // require service support
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({
routes: constantRoutes y: 0
}),
routes: constantRoutes
}) })
const router = createRouter() const router = createRouter()
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465 // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export function resetRouter() { export function resetRouter() {
const newRouter = createRouter() const newRouter = createRouter()
router.matcher = newRouter.matcher // reset router router.matcher = newRouter.matcher // reset router
} }
export default router export default router

2
base-ui/src/settings.js

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

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

@ -1,20 +1,23 @@
<template> <template>
<div class="imgDemo"> <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>--> <div style="width: 200px;">{{token}}</div>-->
<el-card class="box-card">
<h2>汇融银行智能监管平台</h2>
</el-card>
</div> </div>
</template> </template>
<script> <script>
import {login1} from '@/api/system/user/login.js' // import { login1 } from '@/api/system/user/login.js'
export default { export default {
name: '', name: '',
data() { data() {
return { return {
token:'' token: ''
} }
}, },
methods:{ methods: {
// getToken(){ // getToken(){
// let params = { // let params = {
// password: "329653", // 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) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '安瑞集团信息化平台' // page title const name = defaultSettings.title || '汇融银行智能监管平台' // page title
// 如果端口设置为80, // 如果端口设置为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") @GetMapping("/test")
public ResultBean 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/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/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/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/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/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/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/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/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/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(); 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<>(); List<GdInventoryOk> okList = new ArrayList<>();
for (GdInventory entity : list) { 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(); GdInventoryOk ok = new GdInventoryOk();
BeanUtil.copyProperties(entity, ok, "id"); BeanUtil.copyProperties(entity, ok, "id");
// gdInventoryOkService.save(ok); // 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") @GetMapping("/test")
public ResultBean 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(); 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.collection.ListUtil;
import cn.hutool.core.map.MapUtil; import cn.hutool.core.map.MapUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yxt.supervise.portal.biz.gdinventory.GdRescategoryProd; import com.yxt.supervise.portal.biz.gdinventory.GdRescategoryProd;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@ -53,23 +54,18 @@ import java.util.Map;
@Service @Service
public class StoreIndexService extends ServiceImpl<StoreIndexMapper, StoreIndex> { 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>()) private static Map<String, String> oneNameMap = MapUtil.builder(new HashMap<String, String>())
.put("101", "365常温仓") .put("101", "[101]365常温仓")
.put("199", "365配送残品仓") .put("199", "[199]365配送残品仓")
.put("51", "唐山正常仓") .put("112", "[112]供应链仓").build();
.put("52", "唐山残损仓")
.put("54", "唐山烟草仓")
.put("55", "唐山中转仓").build();
private static Map<String, String> oneTypeMap = MapUtil.builder(new HashMap<String, String>()) private static Map<String, String> oneTypeMap = MapUtil.builder(new HashMap<String, String>())
.put("101", "配送中心") .put("101", "配送中心")
.put("199", "配送中心") .put("199", "配送中心")
.put("51", "配送中心") .put("112", "配送中心").build();
.put("52", "配送中心")
.put("54", "配送中心")
.put("55", "配送中心").build();
private static List<String> codeList = null; private static List<String> codeList = null;
private static List<String> codeNoJmdList = null;
private static Map<String, String> nameMap = null; private static Map<String, String> nameMap = null;
private static Map<String, String> typeMap = null; private static Map<String, String> typeMap = null;
@ -87,6 +83,15 @@ public class StoreIndexService extends ServiceImpl<StoreIndexMapper, StoreIndex>
return codeList; 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) { public boolean containsCode(String code) {
if (StringUtils.isBlank(code)) if (StringUtils.isBlank(code))
return false; return false;
@ -102,6 +107,18 @@ public class StoreIndexService extends ServiceImpl<StoreIndexMapper, StoreIndex>
return oneCodeList.contains(code.trim()); 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) { public String nameOfCode(String code) {
if (nameMap == null) if (nameMap == null)
nameMap = mapNames(); nameMap = mapNames();

Loading…
Cancel
Save