【类 型】:feat

【主	题】:添加新路由 销售统计 页面
【描	述】:
	[原因]:添加销售统计页面
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-06-18 19:08:34 +08:00
parent 8e225dceb5
commit 3f21670345
7 changed files with 22 additions and 49 deletions

View File

@ -402,8 +402,8 @@ const routes = [
component: Layout,
redirect: '/order/index',
meta: {
title: '订单管理',
icon: 'iconfont icon-a-SalesOrderManagement',
title: '订单与统计',
icon: 'iconfont icon-dingdantongji',
roles: ['admin', 'editor'],
tapName: 'admin'
},
@ -428,6 +428,16 @@ const routes = [
tapName: 'admin',
hidden: true
}
},
{
path: '/order/stat',
component: () => import('@/views/layout/components/main/order/stat'),
meta: {
title: '销售统计',
icon: 'iconfont icon-data-view',
roles: ['admin', 'editor'],
tapName: 'admin'
}
}
]
},

View File

@ -1 +1 @@
@import 'https://at.alicdn.com/t/c/font_3703467_it8bp4b57g9.css'; //iconfont阿里巴巴
@import 'https://at.alicdn.com/t/c/font_3703467_om4sfs0bw5s.css'; //iconfont阿里巴巴

View File

@ -48,6 +48,7 @@ export function questAss (id, state, val) {
store.dispatch('fetchOrderList')// 更新订单列表
} else {
Message.error(res.data.msg)
store.dispatch('fetchOrderList')// 更新订单列表
}
})
}

View File

@ -47,7 +47,7 @@
<el-tabs type="card">
<el-tab-pane>
<template slot="label">
<span>已付款处理中</span>
<span>已付款</span>
<el-badge :hidden="pendingCount == 0 ? true : false" :value="pendingCount">
</el-badge>
</template>
@ -55,7 +55,7 @@
</el-tab-pane>
<el-tab-pane>
<template slot="label">
<span>已接单备货中</span>
<span>备货中</span>
<el-badge :hidden="processingCount == 0 ? true : false" :value="processingCount">
</el-badge>
</template>
@ -63,7 +63,7 @@
</el-tab-pane>
<el-tab-pane>
<template slot="label">
<span>申请退款订单</span>
<span>申请退款</span>
<el-badge :hidden="requestedCount == 0 ? true : false" :value="requestedCount">
</el-badge>
</template>
@ -183,7 +183,7 @@ export default {
*/
refreshPage () {
mqtt.mqttDestroy()// mqtt
this.$router.go(0)//
window.location.reload() //
},
/**
* @description: 登出

View File

@ -5,18 +5,18 @@
<el-col :span="4">
<SelectionShopId class="w-100" v-model="shop_id" :allSel="true" />
</el-col>
<el-col :span="10">
<el-col :span="8">
<DatePickerOrder class="w-100" />
</el-col>
<el-col :span="10">
<el-col :span="12">
<SearchOrder class="w-100" />
</el-col>
</el-row>
<el-row :gutter="15">
<el-col :span="13">
<el-col :span="12">
<SelectionOrderStatus />
</el-col>
<el-col :span="11">
<el-col :span="12">
<SelectionOrderBack />
</el-col>
</el-row>

View File

@ -126,7 +126,6 @@ export default {
watch: {
},
created () {
console.log('hi')
},
filters: {
parseTime,

View File

@ -1,37 +0,0 @@
module.exports = {
// 开发服务器配置
devServer: {
//open: true,//run时浏览器打开
port: 8080,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
},
// 构建时的配置
outputDir: 'dist', // 输出目录
assetsDir: 'static', // 静态资源目录
publicPath: '/', // 部署应用包时的基本 URL
// 生产环境是否生成 sourceMap 文件
productionSourceMap: true,
// CSS 相关选项
css: {
sourceMap: true,
loaderOptions: {
css: {
// options here will be passed to css-loader
},
sass: {
// options here will be passed to sass-loader
}
}
}
}