Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
7325e52b
Commit
7325e52b
authored
Sep 18, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单&用户详情&期数修改
parent
66d1fc77
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
90 additions
and
30 deletions
+90
-30
detail.vue
src/components/order/detail.vue
+1
-1
index.vue
src/components/order/index.vue
+51
-21
index.vue
src/components/periods/index.vue
+34
-2
dialog.vue
src/components/shop/dialog.vue
+2
-0
index.vue
src/components/shop/index.vue
+1
-1
index.vue
src/components/userDetail/index.vue
+0
-4
api.js
src/service/api.js
+1
-1
No files found.
src/components/order/detail.vue
View file @
7325e52b
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</el-row>
</el-row>
<el-row
align=
"middle"
type=
"flex"
>
<el-row
align=
"middle"
type=
"flex"
>
<el-col
:span=
"4"
><label>
推广人类型
</label></el-col>
<el-col
:span=
"4"
><label>
推广人类型
</label></el-col>
<el-col
:span=
"8"
>
{{
detail
.
invite_type
}}
</el-col>
<el-col
:span=
"8"
>
{{
detail
.
invite_type
|
inviteType
}}
</el-col>
<el-col
:span=
"4"
><label>
推广人ID
</label></el-col>
<el-col
:span=
"4"
><label>
推广人ID
</label></el-col>
<el-col
:span=
"8"
>
{{
detail
.
invite_id
}}
</el-col>
<el-col
:span=
"8"
>
{{
detail
.
invite_id
}}
</el-col>
</el-row>
</el-row>
...
...
src/components/order/index.vue
View file @
7325e52b
...
@@ -3,30 +3,37 @@
...
@@ -3,30 +3,37 @@
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"100px"
>
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"100px"
>
<el-row>
<el-row>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户
昵称
"
>
<el-form-item
label=
"用户
ID
"
>
<el-input
v-model=
"searchFrom.
nickname
"
></el-input>
<el-input
v-model=
"searchFrom.
user_id
"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户
ID
"
>
<el-form-item
label=
"用户
昵称
"
>
<el-input
v-model=
"searchFrom.
user_id
"
></el-input>
<el-input
v-model=
"searchFrom.
nickname
"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"
商品ID
"
>
<el-form-item
label=
"
收件人手机号
"
>
<el-input
v-model=
"searchFrom.
goods_id
"
></el-input>
<el-input
v-model=
"searchFrom.
receive_mobile
"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"推广人ID"
>
<el-form-item
label=
"商品名称"
>
<el-input
v-model=
"searchFrom.invite_id"
></el-input>
<el-select
v-model=
"searchFrom.goods_id"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"(data,index) in goodList"
:key=
"index"
:label=
"data | filterGoods"
:value=
"data.id"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
12
"
>
<el-form-item
label=
"
推广人类型
"
>
<el-form-item
label=
"
来源"
class=
"test
"
>
<el-select
v-model=
"searchFrom.invite_type"
placeholder=
"
请选择
"
clearable
>
<el-select
v-model=
"searchFrom.invite_type"
placeholder=
"
来源类型"
@
change=
"onInviteTypeChange
"
clearable
>
<el-option
<el-option
v-for=
"item in inviteTypeOption"
v-for=
"item in inviteTypeOption"
:key=
"item.id"
:key=
"item.id"
...
@@ -34,6 +41,7 @@
...
@@ -34,6 +41,7 @@
:value=
"item.id"
>
:value=
"item.id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-input
v-if=
"parseInt(searchFrom.invite_type) >= 0"
v-model=
"searchFrom.invite_id"
:placeholder=
"inviteSearchPlaceholder"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
...
@@ -60,16 +68,11 @@
...
@@ -60,16 +68,11 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"交易订单号"
>
<el-input
v-model=
"searchFrom.out_trade_no"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"
收件人手机
号"
>
<el-form-item
label=
"
交易订单
号"
>
<el-input
v-model=
"searchFrom.
receive_mobile
"
></el-input>
<el-input
v-model=
"searchFrom.
out_trade_no
"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -105,7 +108,7 @@
...
@@ -105,7 +108,7 @@
className=
"f-c"
className=
"f-c"
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<img
class=
"avatar"
:src=
"scope.row.user_avatar"
/>
{{
scope
.
row
.
user_nickname
}}
<img
class=
"avatar"
:src=
"scope.row.user_avatar"
/>
{{
scope
.
row
.
user_nickname
}}
(ID:
{{
scope
.
row
.
user_id
}}
)
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -187,7 +190,7 @@
...
@@ -187,7 +190,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getOrderListApi
,
editOrderDescApi
}
from
"../../service/api"
;
import
{
getOrderListApi
,
editOrderDescApi
,
getGoodsListApi
}
from
"../../service/api"
;
import
page
from
'../framework/page'
import
page
from
'../framework/page'
import
addressDialog
from
'./dialog'
import
addressDialog
from
'./dialog'
import
refundDialog
from
'./refundDialog'
import
refundDialog
from
'./refundDialog'
...
@@ -227,12 +230,32 @@
...
@@ -227,12 +230,32 @@
show
:
false
,
show
:
false
,
detail
:
{}
detail
:
{}
},
},
goodList
:
[],
inviteTypeOption
:
INVITETYPEOPTION
,
inviteTypeOption
:
INVITETYPEOPTION
,
orderStatusOption
:
ORDERSTATUSOPTION
,
orderStatusOption
:
ORDERSTATUSOPTION
,
buyTypeOption
:
BUYTYPEOPTION
buyTypeOption
:
BUYTYPEOPTION
,
inviteSearchPlaceholder
:
''
,
}
}
},
},
methods
:
{
methods
:
{
getGoodsOption
(){
let
json
=
{
page
:
1
,
limit
:
100
};
getGoodsListApi
(
json
).
then
(
res
=>
{
this
.
goodList
=
res
.
list
;
})
},
onInviteTypeChange
(
val
){
if
(
val
===
0
)
{
this
.
inviteSearchPlaceholder
=
'用户ID'
}
else
if
(
val
===
1
)
{
this
.
inviteSearchPlaceholder
=
'老师ID'
}
else
if
(
val
===
2
)
{
this
.
inviteSearchPlaceholder
=
'推广人ID'
}
},
detail
(
row
){
detail
(
row
){
let
_detail
=
row
;
let
_detail
=
row
;
this
.
dialogDetailObj
=
{
this
.
dialogDetailObj
=
{
...
@@ -372,6 +395,7 @@
...
@@ -372,6 +395,7 @@
},
},
mounted
(){
mounted
(){
this
.
getOrderList
();
this
.
getOrderList
();
this
.
getGoodsOption
();
},
},
filters
:{
filters
:{
payMentFilter
(
val
){
payMentFilter
(
val
){
...
@@ -391,6 +415,9 @@
...
@@ -391,6 +415,9 @@
},
},
moneytFilter
(
val
){
moneytFilter
(
val
){
return
val
=
val
/
100
+
'元'
return
val
=
val
/
100
+
'元'
},
filterGoods
(
val
){
return
val
.
name
+
'['
+
val
.
current_price
/
100
+
'元]'
}
}
}
}
}
}
...
@@ -413,4 +440,7 @@
...
@@ -413,4 +440,7 @@
justify-content
:
flex-start
;
justify-content
:
flex-start
;
align-items
:
center
;
align-items
:
center
;
}
}
.test
>
div
>
.el-input
{
width
:
30%
;
}
</
style
>
</
style
>
src/components/periods/index.vue
View file @
7325e52b
...
@@ -25,6 +25,16 @@
...
@@ -25,6 +25,16 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"开始时间"
>
<el-date-picker
v-model=
"startTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:default-time=
"['00:00:00','23:59:59']"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
@
click=
"onSearch"
type=
"primary"
>
查询
</el-button>
<el-button
@
click=
"onSearch"
type=
"primary"
>
查询
</el-button>
</el-form-item>
</el-form-item>
...
@@ -75,15 +85,27 @@
...
@@ -75,15 +85,27 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"
周几不上课
"
label=
"
不上课日期
"
min-width=
"120"
>
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
rest_week_day
|
dayFilter
}}
{{
scope
.
row
.
rest_week_day
|
dayFilter
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"总的学员数"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
total_user_num
?
scope
.
row
.
total_user_num
:
''
}}
</
template
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"start_at"
prop=
"start_at"
label=
"期数开始时间"
>
label=
"开始时间"
>
</el-table-column>
<el-table-column
label=
"结束时间"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
over_at
?
scope
.
row
.
over_at
:
''
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"操作"
label=
"操作"
...
@@ -109,6 +131,7 @@
...
@@ -109,6 +131,7 @@
import
page
from
'../framework/page'
import
page
from
'../framework/page'
import
{
getPeriodsApi
,
delPeriodApi
,
getGoodsListApi
,
getLessonApi
}
from
"../../service/api"
;
import
{
getPeriodsApi
,
delPeriodApi
,
getGoodsListApi
,
getLessonApi
}
from
"../../service/api"
;
import
{
WEEKDAY
}
from
'../../util/wordbook'
;
import
{
WEEKDAY
}
from
'../../util/wordbook'
;
import
CommonJs
from
'../../util/common'
;
export
default
{
export
default
{
name
:
"index"
,
name
:
"index"
,
data
(){
data
(){
...
@@ -119,7 +142,9 @@
...
@@ -119,7 +142,9 @@
title
:
''
,
title
:
''
,
goodsId
:
null
,
goodsId
:
null
,
lessonId
:
null
,
lessonId
:
null
,
startAt
:
''
,
periodList
:
[],
periodList
:
[],
startTime
:
[],
newDialog
:
{
newDialog
:
{
form
:
{
form
:
{
id
:
0
,
id
:
0
,
...
@@ -172,6 +197,13 @@
...
@@ -172,6 +197,13 @@
if
(
this
.
lessonId
){
if
(
this
.
lessonId
){
json
.
course_id
=
this
.
lessonId
;
json
.
course_id
=
this
.
lessonId
;
}
}
if
(
this
.
startTime
&&
this
.
startTime
.
length
>
0
){
json
.
start_start_at
=
CommonJs
.
dateFmt
(
this
.
startTime
[
0
],
"yyyy-MM-dd"
)
json
.
start_end_at
=
CommonJs
.
dateFmt
(
this
.
startTime
[
1
],
"yyyy-MM-dd"
)
}
if
(
this
.
startAt
){
json
.
start_at
=
this
.
startAt
;
}
getPeriodsApi
(
json
).
then
(
res
=>
{
getPeriodsApi
(
json
).
then
(
res
=>
{
this
.
periodList
=
res
.
list
;
this
.
periodList
=
res
.
list
;
this
.
total
=
res
.
total
this
.
total
=
res
.
total
...
...
src/components/shop/dialog.vue
View file @
7325e52b
...
@@ -74,7 +74,9 @@
...
@@ -74,7 +74,9 @@
<el-upload
<el-upload
list-type=
"picture-card"
list-type=
"picture-card"
class=
"upload-demo"
class=
"upload-demo"
:class=
"form.desc.customer_service && form.desc.customer_service.length > 0 ? 'uploadService' : ''"
action=
"/api/public/upload"
action=
"/api/public/upload"
:limit=
"1"
:http-request=
"uploadFileMainService"
:http-request=
"uploadFileMainService"
:file-list=
"form.desc.customer_service"
:file-list=
"form.desc.customer_service"
>
>
...
...
src/components/shop/index.vue
View file @
7325e52b
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
编辑
编辑
</el-button>
</el-button>
<el-button
size=
"mini"
plain
@
click=
"copyUrl(scope.row.id)"
>
<el-button
size=
"mini"
plain
@
click=
"copyUrl(scope.row.id)"
>
商品
链接
复制
链接
</el-button>
</el-button>
<el-button
size=
"mini"
plain
type=
"danger"
@
click=
"onDel(scope.row)"
>
<el-button
size=
"mini"
plain
type=
"danger"
@
click=
"onDel(scope.row)"
>
删除
删除
...
...
src/components/userDetail/index.vue
View file @
7325e52b
...
@@ -51,10 +51,6 @@
...
@@ -51,10 +51,6 @@
<el-table
<el-table
:data=
"periodList"
:data=
"periodList"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
prop=
"id"
label=
"ID"
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"periods_title"
prop=
"periods_title"
label=
"期数名称"
>
label=
"期数名称"
>
...
...
src/service/api.js
View file @
7325e52b
...
@@ -131,7 +131,7 @@ export const deleteGoodsApi = function (id) {
...
@@ -131,7 +131,7 @@ export const deleteGoodsApi = function (id) {
// 商品上架
// 商品上架
const
upGoodsUrl
=
`
${
_baseUrl
}
api/admin/goods/putaway/`
;
const
upGoodsUrl
=
`
${
_baseUrl
}
api/admin/goods/putaway/`
;
export
const
upGoodsApi
=
function
(
id
)
{
export
const
upGoodsApi
=
function
(
id
)
{
return
Vue
.
prototype
.
$patch
(
`
${
upGoodsUrl
}
/
${
id
}
`
)
return
Vue
.
prototype
.
$patch
(
`
${
upGoodsUrl
}${
id
}
`
)
};
};
// 商品下架
// 商品下架
const
downGoodsUrl
=
`
${
_baseUrl
}
api/admin/goods/soldout/`
;
const
downGoodsUrl
=
`
${
_baseUrl
}
api/admin/goods/soldout/`
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment