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
e324c798
Commit
e324c798
authored
Dec 29, 2018
by
wangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/development' into development
parents
4da70632
504d7638
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
7 deletions
+47
-7
index.vue
src/components/monthOrder/index.vue
+30
-1
newDialog.vue
src/components/monthOrder/newDialog.vue
+4
-3
index.vue
src/components/oldUser/index.vue
+1
-1
dialog.vue
src/components/teacher/dialog.vue
+0
-1
wordbook.js
src/util/wordbook.js
+12
-1
No files found.
src/components/monthOrder/index.vue
View file @
e324c798
...
...
@@ -41,6 +41,16 @@
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"支付类型"
>
<el-select
v-model=
"searchFrom.order_type"
placeholder=
"请选择"
@
change=
"getOrderList"
clearable
>
<el-option
v-for=
"item in orderTypeOption"
:key=
"item.id"
:label=
"item.value"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"订单状态"
>
<el-select
multiple
v-model=
"searchFrom.status"
placeholder=
"请选择"
@
change=
"getOrderList"
clearable
>
...
...
@@ -148,6 +158,14 @@
<el-button
type=
"text"
v-if=
"scope.row.status === 5 || scope.row.status === 3"
@
click=
"showRef(scope.row)"
>
{{
scope
.
row
.
status
|
status
}}
</el-button>
<div
v-if=
"scope.row.status !== 5 && scope.row.status !== 3"
>
{{
scope
.
row
.
status
|
status
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"order_type"
label=
"支付类型"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
order_type
|
buyTypeWay
}}
</
template
>
</el-table-column>
<el-table-column
label=
"实付金额"
...
...
@@ -280,7 +298,7 @@
import
detailDialog
from
'./detail'
import
refundDetail
from
'./refundDetail'
import
AddressArray
from
'../framework/address-picker/addr'
import
{
INVITETYPE
,
ORDERSTATUS
,
BUYTYPE
,
BUYTYPEOPTION
,
ORDERSTATUSOPTION
,
INVITETYPEOPTION
,
GOODSTYPE
}
from
"../../util/wordbook"
;
import
{
INVITETYPE
,
ORDERSTATUS
,
BUYTYPE
,
BUYTYPEOPTION
,
ORDERSTATUSOPTION
,
INVITETYPEOPTION
,
GOODSTYPE
,
BUYWay
,
BUYTYPEWAY
}
from
"../../util/wordbook"
;
import
CommonJs
from
'../../util/common'
;
export
default
{
...
...
@@ -308,6 +326,7 @@
invite_type
:
''
,
invite_id
:
''
,
buy_type
:
''
,
order_type
:
''
,
status
:
[
1
,
4
,
5
],
goods_id
:
''
,
out_trade_no
:
''
,
...
...
@@ -334,6 +353,7 @@
inviteTypeOption
:
INVITETYPEOPTION
,
orderStatusOption
:
ORDERSTATUSOPTION
,
buyTypeOption
:
BUYTYPEOPTION
,
orderTypeOption
:
BUYWay
,
inviteSearchPlaceholder
:
''
,
rules
:{
value
:[
...
...
@@ -390,6 +410,9 @@
}
if
(
this
.
searchFrom
.
buy_type
)
{
json
.
buy_type
=
this
.
searchFrom
.
buy_type
}
if
(
this
.
searchFrom
.
order_type
)
{
json
.
order_type
=
this
.
searchFrom
.
order_type
}
if
(
this
.
searchFrom
.
status
)
{
json
.
status
=
this
.
searchFrom
.
status
.
toString
()
...
...
@@ -490,6 +513,9 @@
}
if
(
this
.
searchFrom
.
buy_type
)
{
json
.
buy_type
=
this
.
searchFrom
.
buy_type
}
if
(
this
.
searchFrom
.
order_type
)
{
json
.
order_type
=
this
.
searchFrom
.
order_type
}
if
(
this
.
searchFrom
.
status
)
{
json
.
status
=
this
.
searchFrom
.
status
.
toString
()
...
...
@@ -677,6 +703,9 @@
},
filterGoods
(
val
){
return
'['
+
GOODSTYPE
[
val
.
goods_type
]
+
']'
+
'['
+
val
.
current_price
/
100
+
'元]'
+
val
.
name
},
buyTypeWay
(
value
){
return
BUYTYPEWAY
[
value
]
}
}
}
...
...
src/components/monthOrder/newDialog.vue
View file @
e324c798
...
...
@@ -66,9 +66,10 @@
<el-select
v-model=
"form.order_type"
placeholder=
"请选择"
>
<el-option
v-for=
"item in buyWayOptioms"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
:key=
"item.id"
:label=
"item.value"
:value=
"item.id"
:disabled=
"item.disabled"
>
</el-option>
</el-select>
</el-form-item>
...
...
src/components/oldUser/index.vue
View file @
e324c798
...
...
@@ -34,7 +34,7 @@
</el-table-column>
<el-table-column
prop=
"start_time"
label=
"开课时间"
sortable
>
label=
"开课时间"
>
</el-table-column>
<el-table-column
label=
"操作"
v-if=
"!$store.state.readonly"
>
...
...
src/components/teacher/dialog.vue
View file @
e324c798
...
...
@@ -92,7 +92,6 @@
<
script
>
import
{
getTeacherDetailApi
,
addTeacherApi
,
editTeacherApi
,
uploadFileApi
}
from
"../../service/api"
;
import
{
TEACHERTYPE
}
from
"../../util/wordbook"
;
export
default
{
name
:
"dialogObj"
,
props
:[
...
...
src/util/wordbook.js
View file @
e324c798
...
...
@@ -67,17 +67,28 @@ export const BUYTYPEOPTION = [
export
const
BUYWay
=
[
{
id
:
1
,
value
:
'微信'
value
:
'微信'
,
disabled
:
true
},
{
id
:
2
,
value
:
'支付宝'
},
{
id
:
4
,
value
:
'京东'
},
{
id
:
3
,
value
:
'其他'
}
]
export
const
BUYTYPEWAY
=
{
'1'
:
'微信'
,
'2'
:
'支付宝'
,
'4'
:
'京东'
,
'3'
:
'其他'
};
export
const
ORDERSTATUSOPTION
=
[
{
id
:
0
,
...
...
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