Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
small-program-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8ae8ba28
authored
Jul 03, 2019
by
duanguohui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
0936c2e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
src/views/orderList/OrderList.vue
+15
-8
No files found.
src/views/orderList/OrderList.vue
View file @
8ae8ba28
...
...
@@ -117,11 +117,7 @@
width=
"120"
align=
"center"
label=
"操作"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.type == 'CS'"
>
<a
href=
"javascript:;"
v-if=
"scope.row.status == 'DQR'"
@
click=
"orderConfirm(scope.row.id, $event)"
class=
"btn_edit"
>
确认订单
</a>
<a
href=
"javascript:;"
v-if=
"scope.row.status == 'YQR'"
@
click=
"orderComplete(scope.row.id, $event)"
class=
"btn_delete"
>
完成
</a>
</
template
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.type == 'WM'"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.type == 'CS' || scope.row.type == 'WM'"
>
<a
href=
"javascript:;"
v-if=
"scope.row.status == 'DQR'"
@
click=
"orderConfirm(scope.row.id, $event)"
class=
"btn_edit"
>
确认订单
</a>
<a
href=
"javascript:;"
v-if=
"scope.row.status == 'YQR'"
@
click=
"orderComplete(scope.row.id, $event)"
class=
"btn_delete"
>
完成
</a>
</
template
>
...
...
@@ -167,7 +163,7 @@
<el-col
:sm=
"8"
:offset=
"1"
>
<el-form-item
label=
"类型"
style=
"margin-left: 30px"
>
<el-select
v-model=
"formInline.type"
>
<
el-option
label=
"全部"
value=
""
></el-option
>
<
!-- <el-option label="全部" value=""></el-option> --
>
<el-option
label=
"外卖"
value=
"WM"
></el-option>
<el-option
label=
"家政"
value=
"JZ"
></el-option>
<el-option
label=
"超市"
value=
"CS"
></el-option>
...
...
@@ -199,13 +195,13 @@
>
</el-table-column>
<el-table-column
prop=
"t
radeNo
"
prop=
"t
itleName
"
label=
"名称"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"
userNo
"
prop=
"
num
"
label=
"数量"
align=
"center"
>
...
...
@@ -292,6 +288,15 @@ export default {
url
:
'/pc/trade/get/list?p='
+
this
.
allPage
+
'&c='
+
this
.
currentPage
,
data
:
parms
}).
then
((
res
)
=>
{
res
.
data
.
data
.
resultList
.
forEach
((
item
)
=>
{
if
(
item
.
type
==
'WM'
||
item
.
type
==
'CS'
)
{
item
.
titleName
=
''
item
.
detail
.
forEach
((
info
)
=>
{
item
.
titleName
+=
info
.
foodName
+
','
})
item
.
titleName
=
item
.
titleName
.
slice
(
0
,
item
.
titleName
.
length
-
1
)
}
})
this
.
orderListData
=
res
.
data
.
data
.
resultList
this
.
countPage
=
res
.
data
.
data
.
countPage
this
.
page
=
res
.
data
.
data
.
page
...
...
@@ -312,7 +317,9 @@ export default {
this
.
getOrderList
()
},
statistical
()
{
this
.
formInline
.
type
=
'WM'
this
.
dialogVisible
=
true
this
.
getOrderList
()
},
},
computed
:
{
...
...
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