Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-finance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-finance
Commits
0d456e34
提交
0d456e34
authored
8月 27, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 新增demo; 显示面包屑导航;
上级
0c342f24
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
130 行增加
和
129 行删除
+130
-129
Aside.vue
src/components/layout/Aside.vue
+2
-2
Breadcrumb.vue
src/components/layout/Breadcrumb.vue
+1
-1
index.js
src/modules/finance/invoice/index.js
+17
-6
Detail.vue
src/modules/finance/invoice/views/Detail.vue
+9
-0
List.vue
src/modules/finance/invoice/views/List.vue
+29
-51
index.js
src/modules/finance/pay/index.js
+17
-10
Detail.vue
src/modules/finance/pay/views/Detail.vue
+17
-0
List.vue
src/modules/finance/pay/views/List.vue
+34
-48
index.js
src/modules/index.js
+2
-1
index.js
src/router/index.js
+1
-9
vite.config.js
vite.config.js
+1
-1
没有找到文件。
src/components/layout/Aside.vue
浏览文件 @
0d456e34
...
@@ -29,8 +29,8 @@ export default {
...
@@ -29,8 +29,8 @@ export default {
path
:
'/finance'
,
path
:
'/finance'
,
icon
:
'el-icon-money'
,
icon
:
'el-icon-money'
,
children
:
[
children
:
[
{
name
:
'支付
管理
'
,
path
:
'/finance/pay'
},
{
name
:
'支付
记录
'
,
path
:
'/finance/pay'
},
{
name
:
'发票
管理
'
,
path
:
'/finance/invoice'
}
{
name
:
'发票
记录
'
,
path
:
'/finance/invoice'
}
]
]
}
}
]
]
...
...
src/components/layout/Breadcrumb.vue
浏览文件 @
0d456e34
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.app-breadcrumb
{
.app-breadcrumb
{
padding
:
4
0px
0
32px
;
padding
:
2
0px
0
32px
;
.el-breadcrumb
{
.el-breadcrumb
{
font-size
:
24px
;
font-size
:
24px
;
...
...
src/modules/finance/invoice/index.js
浏览文件 @
0d456e34
const
routes
=
[
const
routes
=
[
{
{
path
:
'finance/invoice'
,
path
:
'/finance'
,
component
:
()
=>
import
(
'./views/List.vue'
)
redirect
:
'/finance/pay'
,
},
component
:
()
=>
import
(
'@/components/layout/Index.vue'
),
{
meta
:
{
title
:
'财务管理'
},
path
:
'finance/invoice/:id'
,
children
:
[
component
:
()
=>
import
(
'./views/Detail.vue'
)
{
path
:
'invoice'
,
component
:
()
=>
import
(
'./views/List.vue'
),
meta
:
{
title
:
'发票记录'
}
},
{
name
:
'invoiceView'
,
path
:
'invoice/:id'
,
component
:
()
=>
import
(
'./views/Detail.vue'
),
meta
:
{
title
:
'发票详情'
}
}
]
}
}
]
]
...
...
src/modules/finance/invoice/views/Detail.vue
浏览文件 @
0d456e34
<
template
>
<div>
12312
</div>
</
template
>
<
script
>
export
default
{}
</
script
>
<
style
></
style
>
src/modules/finance/invoice/views/List.vue
浏览文件 @
0d456e34
<
template
>
<
template
>
<app-card>
<app-card>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
>
<template
#
header-aside
>
<el-button
type=
"primary"
>
新增
</el-button>
</
template
>
<template
v-slot:table-x=
"
{ row }">
<template
v-slot:table-x=
"
{ row }">
<router-link
:to=
"
{ name: '
goodsEdit', params: { id: row.spu_
id } }">
<router-link
:to=
"
{ name: '
invoiceView', params: { id: row.
id } }">
<el-button
type=
"text"
>
编辑
</el-button>
<el-button
type=
"text"
>
查看
</el-button>
</router-link>
</router-link>
<el-button
type=
"text"
@
click=
"onRemove(row)"
>
删除
</el-button>
</
template
>
</
template
>
</app-list>
</app-list>
</app-card>
</app-card>
...
@@ -36,10 +32,23 @@ export default {
...
@@ -36,10 +32,23 @@ export default {
// beforeRequest: this.beforeRequest
// beforeRequest: this.beforeRequest
// },
// },
filters
:
[
filters
:
[
{
type
:
'select'
,
prop
:
'group_id'
,
options
:
this
.
groupList
,
labelKey
:
'group_name'
,
valueKey
:
'group_id'
,
placeholder
:
'项目'
},
{
{
type
:
'input'
,
type
:
'input'
,
prop
:
'spu_name'
,
prop
:
'spu_name'
,
placeholder
:
'商品名称'
placeholder
:
'客户姓名'
},
{
type
:
'input'
,
prop
:
'spu_name'
,
placeholder
:
'手机号码'
},
},
{
{
type
:
'select'
,
type
:
'select'
,
...
@@ -47,9 +56,16 @@ export default {
...
@@ -47,9 +56,16 @@ export default {
options
:
this
.
groupList
,
options
:
this
.
groupList
,
labelKey
:
'group_name'
,
labelKey
:
'group_name'
,
valueKey
:
'group_id'
,
valueKey
:
'group_id'
,
placeholder
:
'
商品分组
'
placeholder
:
'
发票状态
'
},
},
{
prop
:
'price_zone'
,
slots
:
'filter-price'
}
{
type
:
'select'
,
prop
:
'group_id'
,
options
:
this
.
groupList
,
labelKey
:
'group_name'
,
valueKey
:
'group_id'
,
placeholder
:
'发票类型'
}
],
],
columns
:
[
columns
:
[
{
label
:
'发票代码'
,
prop
:
'date'
,
minWidth
:
140
},
{
label
:
'发票代码'
,
prop
:
'date'
,
minWidth
:
140
},
...
@@ -59,21 +75,25 @@ export default {
...
@@ -59,21 +75,25 @@ export default {
],
],
data
:
[
data
:
[
{
{
id
:
'1'
,
date
:
'2016-05-02'
,
date
:
'2016-05-02'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1518 弄'
address
:
'上海市普陀区金沙江路 1518 弄'
},
},
{
{
id
:
'2'
,
date
:
'2016-05-04'
,
date
:
'2016-05-04'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1517 弄'
address
:
'上海市普陀区金沙江路 1517 弄'
},
},
{
{
id
:
'3'
,
date
:
'2016-05-01'
,
date
:
'2016-05-01'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1519 弄'
address
:
'上海市普陀区金沙江路 1519 弄'
},
},
{
{
id
:
'4'
,
date
:
'2016-05-03'
,
date
:
'2016-05-03'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1516 弄'
address
:
'上海市普陀区金沙江路 1516 弄'
...
@@ -93,56 +113,14 @@ export default {
...
@@ -93,56 +113,14 @@ export default {
params
.
price_zone
=
`
${
params
.
price_min
||
''
}
,
${
params
.
price_max
||
''
}
`
params
.
price_zone
=
`
${
params
.
price_min
||
''
}
,
${
params
.
price_max
||
''
}
`
return
params
return
params
},
},
handleClick
()
{
this
.
$refs
.
list
.
refetch
(
true
)
},
// 编辑
// 编辑
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
$router
.
push
({
name
:
'goodsEdit'
,
params
:
{
id
:
row
.
spu_id
}
})
this
.
$router
.
push
({
name
:
'goodsEdit'
,
params
:
{
id
:
row
.
spu_id
}
})
},
},
// 删除
onRemove
()
{
this
.
$confirm
(
'商品删除请谨慎操作,确定删除?'
,
'删除商品'
,
{
confirmButtonText
:
'删除'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
this
.
handleRemove
)
},
// 删除
handleRemove
()
{
// const data = this.multipleSelection.map(item => ({ spu_id: item.spu_id }))
// deleteGoods({ shop_id: this.shopId, data }).then(res => {
// this.$refs.list.refetch(true)
// })
},
// 推广
handlePromote
(
row
)
{
this
.
shareUrl
=
`
${
import
.
meta
.
env
.
VITE_H5_PREVIEW_URL
}
/buy?shop_id=
${
row
.
shop_id
}
&spu_id=
${
row
.
spu_id
}
`
this
.
shareDialogVisible
=
true
},
// 复制
handleCopy
(
row
)
{
this
.
$router
.
push
({
name
:
'goodsAdd'
,
query
:
{
id
:
row
.
spu_id
}
})
},
// 选择
// 选择
handleSelectionChange
(
value
)
{
handleSelectionChange
(
value
)
{
this
.
multipleSelection
=
value
this
.
multipleSelection
=
value
},
// 上架
handleUpdateStatus
(
status
)
{
// const data = this.multipleSelection.map(item => ({ spu_id: item.spu_id, status }))
// updateGoodsStatus({ shop_id: this.shopId, data }).then(res => {
// this.$refs.list.refetch()
// })
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
.filter-price
{
.el-input
{
width
:
140px
;
}
}
</
style
>
src/modules/finance/pay/index.js
浏览文件 @
0d456e34
const
routes
=
[
const
routes
=
[
{
{
path
:
'finance'
,
path
:
'/finance'
,
redirect
:
'finance/pay'
redirect
:
'/finance/pay'
,
},
component
:
()
=>
import
(
'@/components/layout/Index.vue'
),
{
meta
:
{
title
:
'财务管理'
},
path
:
'finance/pay'
,
children
:
[
component
:
()
=>
import
(
'./views/List.vue'
)
{
},
path
:
'pay'
,
{
component
:
()
=>
import
(
'./views/List.vue'
),
path
:
'finance/pay/:id'
,
meta
:
{
title
:
'支付记录'
}
component
:
()
=>
import
(
'./views/Detail.vue'
)
},
{
name
:
'payView'
,
path
:
'pay/:id'
,
component
:
()
=>
import
(
'./views/Detail.vue'
),
meta
:
{
title
:
'支付详情'
}
}
]
}
}
]
]
...
...
src/modules/finance/pay/views/Detail.vue
浏览文件 @
0d456e34
<
template
>
<div>
<app-card
title=
"订单信息"
></app-card>
<app-card
title=
"学员信息"
></app-card>
<app-card
title=
"发票信息"
></app-card>
</div>
</
template
>
<
script
>
// 组件
import
AppCard
from
'@/components/base/AppCard.vue'
export
default
{
components
:
{
AppCard
}
}
</
script
>
<
style
></
style
>
src/modules/finance/pay/views/List.vue
浏览文件 @
0d456e34
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
<app-card>
<app-card>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
>
<template
v-slot:table-x=
"
{ row }">
<template
v-slot:table-x=
"
{ row }">
<router-link
:to=
"
{ name: '
goodsEdit', params: { id: row.spu_
id } }">
<router-link
:to=
"
{ name: '
payView', params: { id: row.
id } }">
<el-button
type=
"text"
>
编辑
</el-button>
<el-button
type=
"text"
>
查看
</el-button>
</router-link>
</router-link>
<el-button
type=
"text"
@
click=
"onRemove(row)"
>
删除
</el-button>
</
template
>
</
template
>
</app-list>
</app-list>
</app-card>
</app-card>
...
@@ -33,10 +32,26 @@ export default {
...
@@ -33,10 +32,26 @@ export default {
// beforeRequest: this.beforeRequest
// beforeRequest: this.beforeRequest
// },
// },
filters
:
[
filters
:
[
{
type
:
'select'
,
prop
:
'group_id'
,
options
:
this
.
groupList
,
labelKey
:
'group_name'
,
valueKey
:
'group_id'
,
placeholder
:
'项目'
},
{
{
type
:
'input'
,
type
:
'input'
,
prop
:
'spu_name'
,
prop
:
'spu_name'
,
placeholder
:
'商品名称'
placeholder
:
'客户姓名'
},
{
type
:
'select'
,
prop
:
'group_id'
,
options
:
this
.
groupList
,
labelKey
:
'group_name'
,
valueKey
:
'group_id'
,
placeholder
:
'发票状态'
},
},
{
{
type
:
'select'
,
type
:
'select'
,
...
@@ -44,9 +59,18 @@ export default {
...
@@ -44,9 +59,18 @@ export default {
options
:
this
.
groupList
,
options
:
this
.
groupList
,
labelKey
:
'group_name'
,
labelKey
:
'group_name'
,
valueKey
:
'group_id'
,
valueKey
:
'group_id'
,
placeholder
:
'
商品分组
'
placeholder
:
'
发票类型
'
},
},
{
prop
:
'price_zone'
,
slots
:
'filter-price'
}
{
type
:
'select'
,
prop
:
'spu_name'
,
placeholder
:
'允许开具发票'
,
options
:
[
{
label
:
'全部'
,
value
:
'0'
},
{
label
:
'开启'
,
value
:
'1'
},
{
label
:
'关闭'
,
value
:
'2'
}
]
}
],
],
columns
:
[
columns
:
[
{
label
:
'客户名称'
,
prop
:
'date'
,
minWidth
:
140
},
{
label
:
'客户名称'
,
prop
:
'date'
,
minWidth
:
140
},
...
@@ -56,21 +80,25 @@ export default {
...
@@ -56,21 +80,25 @@ export default {
],
],
data
:
[
data
:
[
{
{
id
:
'1'
,
date
:
'2016-05-02'
,
date
:
'2016-05-02'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1518 弄'
address
:
'上海市普陀区金沙江路 1518 弄'
},
},
{
{
id
:
'2'
,
date
:
'2016-05-04'
,
date
:
'2016-05-04'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1517 弄'
address
:
'上海市普陀区金沙江路 1517 弄'
},
},
{
{
id
:
'3'
,
date
:
'2016-05-01'
,
date
:
'2016-05-01'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1519 弄'
address
:
'上海市普陀区金沙江路 1519 弄'
},
},
{
{
id
:
'4'
,
date
:
'2016-05-03'
,
date
:
'2016-05-03'
,
name
:
'王小虎'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1516 弄'
address
:
'上海市普陀区金沙江路 1516 弄'
...
@@ -90,56 +118,14 @@ export default {
...
@@ -90,56 +118,14 @@ export default {
params
.
price_zone
=
`
${
params
.
price_min
||
''
}
,
${
params
.
price_max
||
''
}
`
params
.
price_zone
=
`
${
params
.
price_min
||
''
}
,
${
params
.
price_max
||
''
}
`
return
params
return
params
},
},
handleClick
()
{
this
.
$refs
.
list
.
refetch
(
true
)
},
// 编辑
// 编辑
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
$router
.
push
({
name
:
'goodsEdit'
,
params
:
{
id
:
row
.
spu_id
}
})
this
.
$router
.
push
({
name
:
'goodsEdit'
,
params
:
{
id
:
row
.
spu_id
}
})
},
},
// 删除
onRemove
()
{
this
.
$confirm
(
'商品删除请谨慎操作,确定删除?'
,
'删除商品'
,
{
confirmButtonText
:
'删除'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
this
.
handleRemove
)
},
// 删除
handleRemove
()
{
// const data = this.multipleSelection.map(item => ({ spu_id: item.spu_id }))
// deleteGoods({ shop_id: this.shopId, data }).then(res => {
// this.$refs.list.refetch(true)
// })
},
// 推广
handlePromote
(
row
)
{
this
.
shareUrl
=
`
${
import
.
meta
.
env
.
VITE_H5_PREVIEW_URL
}
/buy?shop_id=
${
row
.
shop_id
}
&spu_id=
${
row
.
spu_id
}
`
this
.
shareDialogVisible
=
true
},
// 复制
handleCopy
(
row
)
{
this
.
$router
.
push
({
name
:
'goodsAdd'
,
query
:
{
id
:
row
.
spu_id
}
})
},
// 选择
// 选择
handleSelectionChange
(
value
)
{
handleSelectionChange
(
value
)
{
this
.
multipleSelection
=
value
this
.
multipleSelection
=
value
},
// 上架
handleUpdateStatus
(
status
)
{
// const data = this.multipleSelection.map(item => ({ spu_id: item.spu_id, status }))
// updateGoodsStatus({ shop_id: this.shopId, data }).then(res => {
// this.$refs.list.refetch()
// })
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
.filter-price
{
.el-input
{
width
:
140px
;
}
}
</
style
>
src/modules/index.js
浏览文件 @
0d456e34
...
@@ -2,8 +2,9 @@ const modules = Object.values(import.meta.globEager('./**/index.js'))
...
@@ -2,8 +2,9 @@ const modules = Object.values(import.meta.globEager('./**/index.js'))
export
default
function
({
router
})
{
export
default
function
({
router
})
{
modules
.
forEach
(({
routes
})
=>
{
modules
.
forEach
(({
routes
})
=>
{
// 注册路由
routes
.
forEach
(
route
=>
{
routes
.
forEach
(
route
=>
{
;
/^
\/
/
.
test
(
route
.
path
)
?
router
.
addRoute
(
route
)
:
router
.
addRoute
(
'layout'
,
route
)
router
.
addRoute
(
route
)
})
})
})
})
}
}
src/router/index.js
浏览文件 @
0d456e34
...
@@ -3,15 +3,7 @@ import VueRouter from 'vue-router'
...
@@ -3,15 +3,7 @@ import VueRouter from 'vue-router'
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
const
routes
=
[
const
routes
=
[{
path
:
'*'
,
redirect
:
'/finance/pay'
}]
{
path
:
'*'
,
redirect
:
'/finance/pay'
},
{
name
:
'layout'
,
path
:
'/'
,
redirect
:
'/finance/pay'
,
component
:
()
=>
import
(
'@/components/layout/Index.vue'
)
}
]
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
mode
:
'history'
,
mode
:
'history'
,
...
...
vite.config.js
浏览文件 @
0d456e34
...
@@ -14,7 +14,7 @@ export default defineConfig({
...
@@ -14,7 +14,7 @@ export default defineConfig({
cert
:
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'./https/dev.ezijing.com.pem'
))
cert
:
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'./https/dev.ezijing.com.pem'
))
},
},
proxy
:
{
proxy
:
{
'/api'
:
'https://
shop-admin
.ezijing.com'
'/api'
:
'https://
project-api
.ezijing.com'
}
}
},
},
resolve
:
{
resolve
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论