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
607a25ba
Commit
607a25ba
authored
Jul 21, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品审核通过
parent
3b839a2a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
26 deletions
+46
-26
src/views/businessGoods/details.vue
+29
-26
src/views/businessGoods/index.vue
+3
-0
src/views/businessOrder/details.vue
+14
-0
No files found.
src/views/businessGoods/details.vue
View file @
607a25ba
<
template
>
<
template
>
<div
class=
"execution"
>
<div
class=
"execution"
>
<basic-container
v-loading=
"loading"
>
<basic-container
v-loading=
"loading"
>
...
@@ -140,10 +139,8 @@
...
@@ -140,10 +139,8 @@
</div>
</div>
<div
class=
"layout_v"
>
<div
class=
"layout_v"
>
<el-button
class=
"self_center"
@
click=
"shipsImmediatelySub"
>
立即发货
</el-button>
<el-button
class=
"self_center"
@
click=
"handleClose"
>
返回
</el-button>
<el-button
class=
"self_center"
@
click=
"cancelOrderSub"
>
取消订单
</el-button>
</div>
</div>
</basic-container>
</basic-container>
</div>
</div>
...
@@ -153,6 +150,7 @@
...
@@ -153,6 +150,7 @@
<
script
>
<
script
>
import
{
getGoodsDetails
,
getGoodsInfo
,
shipsImmediatelyApi
,
cancelOrderSubApi
}
from
'@/api/mall/merchantMallgoods'
import
{
getGoodsDetails
,
getGoodsInfo
,
shipsImmediatelyApi
,
cancelOrderSubApi
}
from
'@/api/mall/merchantMallgoods'
import
{
ZmMixin
}
from
'@/mixins/ZmMixin.js'
import
{
ZmMixin
}
from
'@/mixins/ZmMixin.js'
import
{
mock
}
from
"@/views/businessGoods/goodsEdit/mock_data"
;
export
default
{
export
default
{
mixins
:
[
ZmMixin
],
mixins
:
[
ZmMixin
],
data
()
{
data
()
{
...
@@ -161,7 +159,23 @@
...
@@ -161,7 +159,23 @@
//选择的规格
//选择的规格
specs
:
[],
specs
:
[],
info
:
{},
info
:
{},
form
:
{}
form
:
{
goodsName
:
""
,
goodsClassId
:
""
,
listImage
:
""
,
detailImage
:
""
,
videoUrl
:
""
,
authUrl
:
""
,
details
:
""
,
fakeNumber
:
0
,
needReal
:
true
,
payWithA
:
true
,
needVideo
:
true
,
needContract
:
true
,
needDelivery
:
true
,
hireRate
:
0
,
skus
:
[],
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -226,14 +240,17 @@
...
@@ -226,14 +240,17 @@
}
}
},
},
loadInfo
()
{
loadInfo
()
{
this
.
loading
=
true
getGoodsDetails
({
id
:
this
.
id
}).
then
(
r
=>
{
getGoodsDetails
({
if
(
this
.
zmRes
(
r
).
skus
){
id
:
this
.
id
this
.
form
=
this
.
zmRes
(
r
)
}).
then
(
r
=>
{
}
}).
catch
(
r
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
refill
(
this
.
zmRes
(
r
))
this
.
error
(
'加载信息失败'
)
return
getGoodsInfo
({
id
:
this
.
id
})
})
}).
then
(
r
=>
{
getGoodsInfo
({
id
:
this
.
id
}).
then
(
r
=>
{
this
.
info
=
this
.
zmRes
(
r
)
this
.
info
=
this
.
zmRes
(
r
)
}).
catch
(
r
=>
{
}).
catch
(
r
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -244,20 +261,6 @@
...
@@ -244,20 +261,6 @@
handleClose
()
{
handleClose
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
},
},
shipsImmediatelySub
()
{
shipsImmediatelyApi
().
then
(
r
=>
{
}).
catch
(
e
=>
{
})
},
cancelOrderSub
()
{
cancelOrderSubApi
().
then
(
r
=>
{
}).
catch
(
e
=>
{
})
},
}
}
}
}
</
script
>
</
script
>
...
...
src/views/businessGoods/index.vue
View file @
607a25ba
...
@@ -167,6 +167,9 @@
...
@@ -167,6 +167,9 @@
if
(
a
.
search
(
'平台下架'
)
!=
-
1
){
if
(
a
.
search
(
'平台下架'
)
!=
-
1
){
this
.
$message
.
error
(
'平台下架商品,无法操作'
)
this
.
$message
.
error
(
'平台下架商品,无法操作'
)
return
;
return
;
}
else
if
(
a
.
search
(
'有效'
)
!=
-
1
)
{
this
.
$message
.
error
(
'商品已经上架'
)
return
;
}
else
{
}
else
{
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
this
.
$confirm
(
'请确认是否上架已勾选的商品'
,
'提示'
,
{
this
.
$confirm
(
'请确认是否上架已勾选的商品'
,
'提示'
,
{
...
...
src/views/businessOrder/details.vue
View file @
607a25ba
...
@@ -169,6 +169,7 @@
...
@@ -169,6 +169,7 @@
<
script
>
<
script
>
import
{
getOrderInfo
,
cancelOrderMethod
}
from
'@/api/mall/merchantMallorder'
import
{
getOrderInfo
,
cancelOrderMethod
}
from
'@/api/mall/merchantMallorder'
import
{
ZmMixin
}
from
'@/mixins/ZmMixin.js'
import
{
ZmMixin
}
from
'@/mixins/ZmMixin.js'
import
{
cancelOrderSubApi
,
shipsImmediatelyApi
}
from
"@/api/mall/merchantMallgoods"
;
export
default
{
export
default
{
name
:
"businessOrder"
,
name
:
"businessOrder"
,
mixins
:
[
ZmMixin
],
mixins
:
[
ZmMixin
],
...
@@ -336,6 +337,19 @@
...
@@ -336,6 +337,19 @@
this
.
error
(
'加载信息失败'
)
this
.
error
(
'加载信息失败'
)
})
})
},
},
shipsImmediatelySub
()
{
shipsImmediatelyApi
().
then
(
r
=>
{
}).
catch
(
e
=>
{
})
},
cancelOrderSub
()
{
cancelOrderSubApi
().
then
(
r
=>
{
}).
catch
(
e
=>
{
})
},
}
}
}
}
</
script
>
</
script
>
...
...
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