调整菜单
This commit is contained in:
@@ -370,27 +370,36 @@ export const constantRoutes = [
|
||||
{
|
||||
path: '/lb-business',
|
||||
component: Layout,
|
||||
redirect: '/lb-business/daily-trade',
|
||||
redirect: '/lb-business/report-manage/daily-trade',
|
||||
name: 'LbBusinessRoot',
|
||||
meta: { title: '轻美业务', icon: 'el-icon-s-data', alwaysShow: true },
|
||||
children: [
|
||||
{
|
||||
path: 'daily-trade',
|
||||
name: 'LbDailyTrade',
|
||||
component: () => import('@/views/lb-business/daily-trade/index'),
|
||||
meta: { title: '当天交易', icon: 'el-icon-s-order' }
|
||||
},
|
||||
{
|
||||
path: 'daily-report',
|
||||
name: 'LbDailyReport',
|
||||
component: () => import('@/views/lb-business/daily-report/index'),
|
||||
meta: { title: '当天报表', icon: 'el-icon-data-analysis' }
|
||||
},
|
||||
{
|
||||
path: 'report-statistics',
|
||||
name: 'LbReportStatistics',
|
||||
component: () => import('@/views/lb-business/report-statistics/index'),
|
||||
meta: { title: '报表统计', icon: 'el-icon-pie-chart' }
|
||||
path: 'report-manage',
|
||||
component: () => import('@/views/lb-business/report-manage/index'),
|
||||
redirect: '/lb-business/report-manage/daily-trade',
|
||||
name: 'LbReportManage',
|
||||
meta: { title: '报表管理', icon: 'el-icon-s-marketing', alwaysShow: true },
|
||||
children: [
|
||||
{
|
||||
path: 'daily-trade',
|
||||
name: 'LbDailyTrade',
|
||||
component: () => import('@/views/lb-business/daily-trade/index'),
|
||||
meta: { title: '当天交易', icon: 'el-icon-s-order' }
|
||||
},
|
||||
{
|
||||
path: 'daily-report',
|
||||
name: 'LbDailyReport',
|
||||
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',
|
||||
@@ -423,28 +432,37 @@ export const constantRoutes = [
|
||||
meta: { title: '用户管理', icon: 'el-icon-user' }
|
||||
},
|
||||
{
|
||||
path: 'deduction-manage',
|
||||
name: 'LbDeductionManage',
|
||||
component: () => import('@/views/lb-business/deduction-manage/index'),
|
||||
meta: { title: '抵扣金管理', icon: 'el-icon-wallet' }
|
||||
},
|
||||
{
|
||||
path: 'goods-package-predict',
|
||||
name: 'LbGoodsPackagePredict',
|
||||
component: () => import('@/views/lb-business/goods-package-predict/index'),
|
||||
meta: { title: '货物包预测', icon: 'el-icon-box' }
|
||||
path: 'rush-order',
|
||||
component: () => import('@/views/lb-business/rush-order/index'),
|
||||
redirect: '/lb-business/rush-order/config',
|
||||
name: 'LbRushOrder',
|
||||
meta: { title: '抢单管理', icon: 'el-icon-s-order', alwaysShow: true },
|
||||
children: [
|
||||
{
|
||||
path: 'config',
|
||||
name: 'LbRushOrderConfig',
|
||||
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',
|
||||
name: 'LbOrderAddStop',
|
||||
component: () => import('@/views/lb-business/order-add-stop/index'),
|
||||
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-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-input-number
|
||||
v-model="rushBuyForm.maxBuyCount"
|
||||
@@ -370,6 +373,11 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
rushBuyTenantIdDisplay() {
|
||||
return this.getTenantIdFromBusinessHeaders()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.fetchList()
|
||||
},
|
||||
@@ -417,7 +425,16 @@ export default {
|
||||
submitRushBuy() {
|
||||
this.$refs.rushBuyFormRef.validate((valid) => {
|
||||
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
|
||||
rushBuyLbGoods(payload)
|
||||
.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>
|
||||
<div class="app-container">
|
||||
<el-card shadow="never">
|
||||
<div class="placeholder-title">报表统计</div>
|
||||
<div class="placeholder-title">抢单记录</div>
|
||||
<div class="placeholder-desc">
|
||||
页面入口已创建,可在此按业务需求补充多维度统计分析内容。
|
||||
页面入口已创建,可在此按业务需求补充抢单记录查询与展示功能。
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'LbReportStatistics'
|
||||
name: 'LbRushOrderRecord'
|
||||
}
|
||||
</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