Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
9eee52fe
Commit
9eee52fe
authored
Jul 08, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特价组件流程测试
parent
23f660d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
19 deletions
+32
-19
offer.js
src/api/ecw/offer.js
+1
-1
index.js
src/router/index.js
+1
-1
special.vue
src/views/ecw/offer/special.vue
+1
-1
specialDiscount.vue
src/views/ecw/offer/specialDiscount.vue
+29
-16
No files found.
src/api/ecw/offer.js
View file @
9eee52fe
...
@@ -92,7 +92,7 @@ export function createOfferSpecial(data) {
...
@@ -92,7 +92,7 @@ export function createOfferSpecial(data) {
// 特价详情
// 特价详情
export
function
getOfferSpecial
(
offerProdId
)
{
export
function
getOfferSpecial
(
offerProdId
)
{
return
request
({
return
request
({
url
:
'
/ecw/offer/special/info/
'
+
offerProdId
+
'
?offerProdId=
'
+
offerProdId
,
url
:
'
/ecw/offer/special/info/
'
+
offerProdId
,
method
:
'
get
'
method
:
'
get
'
})
})
}
}
...
...
src/router/index.js
View file @
9eee52fe
...
@@ -275,7 +275,7 @@ export const constantRoutes = [
...
@@ -275,7 +275,7 @@ export const constantRoutes = [
meta
:
{
title
:
'
特价申请
'
,
icon
:
''
,
activeMenu
:
'
/offer/index
'
}
meta
:
{
title
:
'
特价申请
'
,
icon
:
''
,
activeMenu
:
'
/offer/index
'
}
},
},
{
{
path
:
'
discount
'
,
path
:
'
discount
/:id(
\\
d+)
'
,
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/offer/specialDiscount
'
),
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/offer/specialDiscount
'
),
props
:
true
,
props
:
true
,
name
:
'
discount
'
,
name
:
'
discount
'
,
...
...
src/views/ecw/offer/special.vue
View file @
9eee52fe
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
prop=
"address"
prop=
"address"
label=
"操作"
>
label=
"操作"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:offer:update']"
@
click=
"$router.push(`/offer/discount
?offerId=$
{row.offerId}
&
offerProdId=${row.offerProd
Id}`)">优惠申请
</el-button>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:offer:update']"
@
click=
"$router.push(`/offer/discount
/$
{row.offerProdId}?offerId=${row.offer
Id}`)">优惠申请
</el-button>
<!--
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:offer:update']"
>
佣金规则
</el-button>
-->
<!--
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:offer:update']"
>
佣金规则
</el-button>
-->
<!--
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:offer:update']"
>
管理折扣
</el-button>
-->
<!--
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:offer:update']"
>
管理折扣
</el-button>
-->
</
template
>
</
template
>
...
...
src/views/ecw/offer/specialDiscount.vue
View file @
9eee52fe
...
@@ -38,27 +38,21 @@ import {createOfferSpecial, getOffer, getOfferSpecial} from "@/api/ecw/offer"
...
@@ -38,27 +38,21 @@ import {createOfferSpecial, getOffer, getOfferSpecial} from "@/api/ecw/offer"
export
default
{
export
default
{
name
:
"
specialDiscount
"
,
name
:
"
specialDiscount
"
,
props
:
{
props
:
{
id
:
Number
},
},
created
()
{
created
()
{
// if(this.offerId){
// this.form.offerId = this.offerId
// }
if
(
this
.
$route
.
query
.
offerId
){
if
(
this
.
$route
.
query
.
offerId
){
this
.
form
.
offerId
=
this
.
$route
.
query
.
offerId
-
0
this
.
form
.
offerId
=
this
.
$route
.
query
.
offerId
-
0
}
}
if
(
this
.
$route
.
query
.
offerProdId
){
this
.
form
.
offerProdId
=
this
.
id
this
.
form
.
offerProdId
=
this
.
$route
.
query
.
offerProdId
-
0
// if(this.offerProdId){
}
// }else if(this.$route.query.offerProdId){
getOffer
(
this
.
form
.
offerId
).
then
(
r
=>
{
// this.form.offerProdId = this.$route.query.offerProdId - 0
const
line
=
r
.
data
.
offerProdRespVOList
.
find
(
e
=>
e
.
offerProdId
=
this
.
form
.
offerProdId
)
// }
console
.
log
(
line
)
if
(
this
.
form
.
offerId
)
this
.
getOffer
()
const
{
clearanceFreight
,
seaFreight
}
=
line
this
.
form
=
{
...
this
.
form
,
clearanceFreight
,
seaFreight
}
})
this
.
getOfferSpecial
()
this
.
getOfferSpecial
()
},
},
data
()
{
data
()
{
...
@@ -80,9 +74,28 @@ export default {
...
@@ -80,9 +74,28 @@ export default {
this
.
$message
.
success
(
r
.
msg
||
'
提交成功
'
)
this
.
$message
.
success
(
r
.
msg
||
'
提交成功
'
)
})
})
},
},
getOffer
(){
getOffer
(
this
.
form
.
offerId
).
then
(
r
=>
{
const
line
=
r
.
data
.
offerProdRespVOList
.
find
(
e
=>
e
.
offerProdId
=
this
.
form
.
offerProdId
)
console
.
log
(
line
)
const
{
clearanceFreight
,
seaFreight
}
=
line
this
.
form
=
{
...
this
.
form
,
clearanceFreight
,
seaFreight
}
})
},
getOfferSpecial
(){
getOfferSpecial
(){
getOfferSpecial
(
this
.
form
.
offerProdId
).
then
(
r
=>
{
getOfferSpecial
(
this
.
form
.
offerProdId
).
then
(
r
=>
{
this
.
follow
=
r
.
data
this
.
follow
=
r
.
data
if
(
!
this
.
form
.
offerId
)
{
this
.
form
.
offerId
=
r
.
data
.
offerId
}
})
})
}
}
}
}
...
...
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