Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
3c7493c7
Commit
3c7493c7
authored
Jul 20, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商家
parent
175d23a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
6 deletions
+34
-6
src/views/businessGoods/index.vue
+11
-0
src/views/businessOrder/index.vue
+23
-6
No files found.
src/views/businessGoods/index.vue
View file @
3c7493c7
...
...
@@ -202,6 +202,17 @@
return
}
let
a
=
d
.
map
(
r
=>
{
return
r
.
stateName
}).
join
(
','
)
if
(
a
.
search
(
'平台下架'
)
!=
-
1
){
this
.
$message
.
error
(
'只能下架,上架商品'
)
return
;
}
else
if
(
a
.
search
(
'有效'
)
!=
-
1
){
this
.
$message
.
error
(
'只能下架,上架商品'
)
return
;
}
else
if
(
a
.
search
(
''
)
!=
-
1
){
this
.
$message
.
error
(
'只能下架,上架商品'
)
return
;
}
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
this
.
$confirm
(
'请确认是否下架已勾选的商品'
,
'提示'
,
{
...
...
src/views/businessOrder/index.vue
View file @
3c7493c7
...
...
@@ -19,17 +19,19 @@
<!-- 1.行内按钮-->
<template
slot-scope=
"scope"
slot=
"menu"
>
<el-button
type=
"button"
size=
"small"
v-if=
"qxqAuth(scope.row)>=0"
@
click=
"checkTheDetails(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
详情
</el-button>
<el-button
type=
"button"
size=
"small"
v-if=
"qwlAuth(scope.row)>=0"
@
click=
"viewLogistics(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
查看物流
</el-button>
<el-button
type=
"button"
size=
"small"
v-if=
"
scope.row.state ==
0"
v-if=
"
ljfhAuth(scope.row)>=
0"
@
click=
"shipsImmediately(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
立即发货
</el-button>
<el-button
type=
"button"
size=
"small"
v-if=
"delAuth(scope.row)>=0"
@
click=
"handleDel(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
删除
</el-button>
<el-button
type=
"button"
size=
"small"
v-if=
"
cancelOrderBut
Auth(scope.row)>=0"
v-if=
"
qxdd
Auth(scope.row)>=0"
@
click=
"cancelOrder(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
取消订单
</el-button>
</
template
>
</avue-crud>
...
...
@@ -186,15 +188,30 @@
}
},
qwlAuth
:
function
(
row
)
{
qwlAuth
:
function
(
row
)
{
//查看物流
let
str
=
row
.
state
let
text
=
'3,6'
//待收货,已完成
let
text
=
'4,6'
//待收货,已完成
return
text
.
search
(
str
)
},
ljfhAuth
:
function
(
row
)
{
//立即发货
let
str
=
row
.
state
let
text
=
'3'
//待发货
return
text
.
search
(
str
)
},
qxqAuth
:
function
(
row
)
{
//查看详情
let
str
=
row
.
state
let
text
=
'3,4,6,7'
//待发货,待收货,已完成,已取消
return
text
.
search
(
str
)
},
delAuth
:
function
(
row
)
{
//删除
let
str
=
row
.
state
let
text
=
'6,7'
//已完成,已取消
return
text
.
search
(
str
)
},
// 是否可以取消订单
cancelOrderBut
Auth
:
function
(
row
)
{
qxdd
Auth
:
function
(
row
)
{
let
str
=
row
.
state
let
text
=
'
0,1,2,3,4
'
let
text
=
'
3
'
return
text
.
search
(
str
)
},
contains
:
function
(
row
)
{
...
...
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