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
5ce0097d
Commit
5ce0097d
authored
Jul 06, 2022
by
dcy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
1e6a36c0
7986b1e4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
15 deletions
+79
-15
offer.js
src/api/ecw/offer.js
+12
-3
index.js
src/router/index.js
+5
-5
special.vue
src/views/ecw/offer/special.vue
+3
-3
specialDiscount.vue
src/views/ecw/offer/specialDiscount.vue
+59
-4
No files found.
src/api/ecw/offer.js
View file @
5ce0097d
...
...
@@ -79,3 +79,12 @@ export function getProductFee(calculationFeeParamVO){
data
:
calculationFeeParamVO
})
}
// 特价申请
export
function
createOfferSpecial
(
data
)
{
return
request
({
url
:
'
/ecw/offer/special/apply
'
,
method
:
'
put
'
,
data
:
data
})
}
src/router/index.js
View file @
5ce0097d
...
...
@@ -271,15 +271,15 @@ export const constantRoutes = [
path
:
'
special/:offerId(
\\
d+)
'
,
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/offer/special
'
),
props
:
true
,
name
:
'
offer
'
,
meta
:
{
title
:
'
特价申请
'
,
icon
:
''
,
activeMenu
:
'
/offer/
special
'
}
name
:
'
special
'
,
meta
:
{
title
:
'
特价申请
'
,
icon
:
''
,
activeMenu
:
'
/offer/
index
'
}
},
{
path
:
'
discount
/:id(
\\
d+)
'
,
path
:
'
discount
'
,
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/offer/specialDiscount
'
),
props
:
true
,
name
:
'
offer
'
,
meta
:
{
title
:
'
优惠申请
'
,
icon
:
''
,
activeMenu
:
'
/offer/
discount
'
}
name
:
'
discount
'
,
meta
:
{
title
:
'
优惠申请
'
,
icon
:
''
,
activeMenu
:
'
/offer/
index
'
}
},
]
}
...
...
src/views/ecw/offer/special.vue
View file @
5ce0097d
...
...
@@ -49,9 +49,9 @@
prop=
"address"
label=
"操作"
>
<
template
v-slot=
"{row}"
>
<el-button
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:offer:update']"
@
click=
"$router.push(
'/offer/discount/' + row.lineId
)"
>
优惠申请
</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']"
@
click=
"$router.push(
`'/offer/discount?offerId=$
{row.offerId}
&
offerProdId=${row.offerProdId}`
)">优惠申请
</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
>
</el-table-column>
...
...
src/views/ecw/offer/specialDiscount.vue
View file @
5ce0097d
<
template
>
<div
class=
"app-container"
>
<el-row
type=
"flex"
justify=
"center"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"20"
:xl=
"16"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
优惠申请
</span>
</div>
offerId:
{{
form
.
offerId
}}
<br>
offerProdId:
{{
form
.
offerProdId
}}
<br>
clearanceFreight:
{{
form
.
clearanceFreight
}}
<br>
seaFreight:
{{
form
.
seaFreight
}}
<div>
<h3>
优惠申请
</h3>
{{
id
}}
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
提交
</el-button>
</div>
</el-card>
</el-col>
</el-row>
</div>
</
template
>
<
script
>
import
{
createOfferSpecial
,
getOffer
}
from
"
@/api/ecw/offer
"
export
default
{
name
:
"
specialDiscount
"
,
props
:
{
id
:
String
},
created
()
{
if
(
this
.
$route
.
query
.
offerId
){
this
.
form
.
offerId
=
this
.
$route
.
query
.
offerId
-
0
}
if
(
this
.
$route
.
query
.
offerProdId
){
this
.
form
.
offerProdId
=
this
.
$route
.
query
.
offerProdId
-
0
}
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
}
})
},
data
()
{
return
{
form
:
{
// "applyResult": "",
// "applyStatus": 0,
"
clearanceFreight
"
:
0
,
"
offerId
"
:
0
,
"
offerProdId
"
:
0
,
"
seaFreight
"
:
0
}
}
},
methods
:
{
handleSubmit
(){
createOfferSpecial
(
this
.
form
).
then
(
r
=>
{
this
.
$message
.
success
(
r
.
msg
||
'
提交成功
'
)
})
}
}
}
</
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