调整菜单
This commit is contained in:
@@ -370,27 +370,36 @@ export const constantRoutes = [
|
|||||||
{
|
{
|
||||||
path: '/lb-business',
|
path: '/lb-business',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/lb-business/daily-trade',
|
redirect: '/lb-business/report-manage/daily-trade',
|
||||||
name: 'LbBusinessRoot',
|
name: 'LbBusinessRoot',
|
||||||
meta: { title: '轻美业务', icon: 'el-icon-s-data', alwaysShow: true },
|
meta: { title: '轻美业务', icon: 'el-icon-s-data', alwaysShow: true },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'daily-trade',
|
path: 'report-manage',
|
||||||
name: 'LbDailyTrade',
|
component: () => import('@/views/lb-business/report-manage/index'),
|
||||||
component: () => import('@/views/lb-business/daily-trade/index'),
|
redirect: '/lb-business/report-manage/daily-trade',
|
||||||
meta: { title: '当天交易', icon: 'el-icon-s-order' }
|
name: 'LbReportManage',
|
||||||
},
|
meta: { title: '报表管理', icon: 'el-icon-s-marketing', alwaysShow: true },
|
||||||
{
|
children: [
|
||||||
path: 'daily-report',
|
{
|
||||||
name: 'LbDailyReport',
|
path: 'daily-trade',
|
||||||
component: () => import('@/views/lb-business/daily-report/index'),
|
name: 'LbDailyTrade',
|
||||||
meta: { title: '当天报表', icon: 'el-icon-data-analysis' }
|
component: () => import('@/views/lb-business/daily-trade/index'),
|
||||||
},
|
meta: { title: '当天交易', icon: 'el-icon-s-order' }
|
||||||
{
|
},
|
||||||
path: 'report-statistics',
|
{
|
||||||
name: 'LbReportStatistics',
|
path: 'daily-report',
|
||||||
component: () => import('@/views/lb-business/report-statistics/index'),
|
name: 'LbDailyReport',
|
||||||
meta: { title: '报表统计', icon: 'el-icon-pie-chart' }
|
component: () => import('@/views/lb-business/daily-report/index'),
|
||||||
|
meta: { title: '当天报表', icon: 'el-icon-data-analysis' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'deduction-manage',
|
||||||
|
name: 'LbDeductionManage',
|
||||||
|
component: () => import('@/views/lb-business/deduction-manage/index'),
|
||||||
|
meta: { title: '抵扣金管理', icon: 'el-icon-wallet' }
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'department-user',
|
path: 'department-user',
|
||||||
@@ -423,28 +432,37 @@ export const constantRoutes = [
|
|||||||
meta: { title: '用户管理', icon: 'el-icon-user' }
|
meta: { title: '用户管理', icon: 'el-icon-user' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'deduction-manage',
|
path: 'rush-order',
|
||||||
name: 'LbDeductionManage',
|
component: () => import('@/views/lb-business/rush-order/index'),
|
||||||
component: () => import('@/views/lb-business/deduction-manage/index'),
|
redirect: '/lb-business/rush-order/config',
|
||||||
meta: { title: '抵扣金管理', icon: 'el-icon-wallet' }
|
name: 'LbRushOrder',
|
||||||
},
|
meta: { title: '抢单管理', icon: 'el-icon-s-order', alwaysShow: true },
|
||||||
{
|
children: [
|
||||||
path: 'goods-package-predict',
|
{
|
||||||
name: 'LbGoodsPackagePredict',
|
path: 'config',
|
||||||
component: () => import('@/views/lb-business/goods-package-predict/index'),
|
name: 'LbRushOrderConfig',
|
||||||
meta: { title: '货物包预测', icon: 'el-icon-box' }
|
component: () => import('@/views/lb-business/config-manage/index'),
|
||||||
|
meta: { title: '抢单配置', icon: 'el-icon-setting' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'record',
|
||||||
|
name: 'LbRushOrderRecord',
|
||||||
|
component: () => import('@/views/lb-business/rush-order-record/index'),
|
||||||
|
meta: { title: '抢单记录', icon: 'el-icon-document' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'goods-package-predict',
|
||||||
|
name: 'LbGoodsPackagePredict',
|
||||||
|
component: () => import('@/views/lb-business/goods-package-predict/index'),
|
||||||
|
meta: { title: '货物包预测', icon: 'el-icon-box' }
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'order-add-stop',
|
path: 'order-add-stop',
|
||||||
name: 'LbOrderAddStop',
|
name: 'LbOrderAddStop',
|
||||||
component: () => import('@/views/lb-business/order-add-stop/index'),
|
component: () => import('@/views/lb-business/order-add-stop/index'),
|
||||||
meta: { title: '加单停单', icon: 'el-icon-switch-button' }
|
meta: { title: '加单停单', icon: 'el-icon-switch-button' }
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'config-manage',
|
|
||||||
name: 'LbConfigManage',
|
|
||||||
component: () => import('@/views/lb-business/config-manage/index'),
|
|
||||||
meta: { title: '配置管理', icon: 'el-icon-setting' }
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -141,6 +141,9 @@
|
|||||||
|
|
||||||
<el-dialog title="帮我抢单" :visible.sync="rushBuyDialogVisible" width="520px" @close="resetRushBuyForm">
|
<el-dialog title="帮我抢单" :visible.sync="rushBuyDialogVisible" width="520px" @close="resetRushBuyForm">
|
||||||
<el-form ref="rushBuyFormRef" :model="rushBuyForm" :rules="rushBuyRules" label-width="130px">
|
<el-form ref="rushBuyFormRef" :model="rushBuyForm" :rules="rushBuyRules" label-width="130px">
|
||||||
|
<el-form-item label="租户ID">
|
||||||
|
<el-input :value="rushBuyTenantIdDisplay" disabled placeholder="未获取到租户ID" />
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="最大抢单数量" prop="maxBuyCount">
|
<el-form-item label="最大抢单数量" prop="maxBuyCount">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="rushBuyForm.maxBuyCount"
|
v-model="rushBuyForm.maxBuyCount"
|
||||||
@@ -370,6 +373,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
rushBuyTenantIdDisplay() {
|
||||||
|
return this.getTenantIdFromBusinessHeaders()
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchList()
|
this.fetchList()
|
||||||
},
|
},
|
||||||
@@ -417,7 +425,16 @@ export default {
|
|||||||
submitRushBuy() {
|
submitRushBuy() {
|
||||||
this.$refs.rushBuyFormRef.validate((valid) => {
|
this.$refs.rushBuyFormRef.validate((valid) => {
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
const payload = { maxBuyCount: this.rushBuyForm.maxBuyCount, ...this.getApiTokenParam() }
|
const tenantId = (this.rushBuyTenantIdDisplay || '').trim()
|
||||||
|
if (!tenantId) {
|
||||||
|
this.$message.error('未获取到租户ID,请先登录或配置业务请求头中的租户')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const payload = {
|
||||||
|
tenantId,
|
||||||
|
maxBuyCount: this.rushBuyForm.maxBuyCount,
|
||||||
|
...this.getApiTokenParam()
|
||||||
|
}
|
||||||
this.rushBuyLoading = true
|
this.rushBuyLoading = true
|
||||||
rushBuyLbGoods(payload)
|
rushBuyLbGoods(payload)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
9
src/views/lb-business/report-manage/index.vue
Normal file
9
src/views/lb-business/report-manage/index.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<router-view />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'LbReportManage'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card shadow="never">
|
<el-card shadow="never">
|
||||||
<div class="placeholder-title">报表统计</div>
|
<div class="placeholder-title">抢单记录</div>
|
||||||
<div class="placeholder-desc">
|
<div class="placeholder-desc">
|
||||||
页面入口已创建,可在此按业务需求补充多维度统计分析内容。
|
页面入口已创建,可在此按业务需求补充抢单记录查询与展示功能。
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'LbReportStatistics'
|
name: 'LbRushOrderRecord'
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
9
src/views/lb-business/rush-order/index.vue
Normal file
9
src/views/lb-business/rush-order/index.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<router-view />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'LbRushOrder'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user