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
99e2b8b4
Commit
99e2b8b4
authored
Sep 26, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠投放状态和路线批量加价
parent
51239613
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
351 additions
and
5 deletions
+351
-5
coupon.js
src/api/ecw/coupon.js
+10
-1
productPrice.js
src/api/ecw/productPrice.js
+9
-0
index.vue
src/components/RoutersSelector/index.vue
+7
-3
index.vue
src/views/ecw/coupon/index.vue
+33
-1
batchIncrease.vue
src/views/ecw/productPrice/batchIncrease.vue
+292
-0
No files found.
src/api/ecw/coupon.js
View file @
99e2b8b4
...
...
@@ -78,4 +78,13 @@ export function updateEndtime(data){
method
:
'
put
'
,
data
})
}
\ No newline at end of file
}
// 更新投放状态
export
function
updatePutonStatus
(
data
){
return
request
({
url
:
'
/product/coupon/update/putonStatus
'
,
method
:
'
put
'
,
data
})
}
src/api/ecw/productPrice.js
View file @
99e2b8b4
...
...
@@ -116,3 +116,12 @@ export function updateOrderInquiry(data) {
data
:
data
})
}
// 批量加价
export
function
batchAddPrice
(
data
)
{
return
request
({
url
:
'
/ecw/product-price/batchAddPrice
'
,
method
:
'
put
'
,
data
})
}
src/components/RoutersSelector/index.vue
View file @
99e2b8b4
<
template
>
<div>
<div
class=
"filters mb-10"
>
<div
class=
"filters mb-10"
v-if=
"showFilter"
>
{{
$t
(
'
运输方式
'
)
}}
<dict-selector
:type=
'DICT_TYPE.ECW_TRANSPORT_TYPE'
v-model=
"transportType"
:placeholder=
"$t('请选择运输方式')"
:filter=
"transportFilter"
style=
"width:150px"
/>
...
...
@@ -22,7 +22,7 @@
</
template
>
</div>
<div
class=
"mb-10 flex-row"
>
<div
class=
"mb-10 flex-row"
v-if=
"showFilter"
>
<el-radio-group
v-model=
"checkAll"
>
<el-radio
:label=
"true"
>
{{$t('全选')}}
</el-radio>
<el-radio
:label=
"false"
>
{{$t('全不选')}}
</el-radio>
...
...
@@ -88,7 +88,11 @@ export default {
},
option
:
Object
,
// 类型,sea海运,air空运
type
:
String
type
:
String
,
showFilter
:{
type
:
Boolean
,
default
:
true
}
},
data
(){
return
{
...
...
src/views/ecw/coupon/index.vue
View file @
99e2b8b4
...
...
@@ -90,10 +90,21 @@
<
dict
-
tag
:
type
=
"
DICT_TYPE.ECW_IS_DRAFT
"
:
value
=
"
row.status
"
/>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('投放状态')
"
align
=
"
center
"
prop
=
"
putonStatus
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
{row
}
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.ECW_COUPON_PUTON_STATUS
"
:
value
=
"
row.putonStatus
"
/>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('操作')
"
align
=
"
center
"
fixed
=
"
right
"
class
-
name
=
"
small-padding fixed-width
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleDetail(scope.row, true)
"
v
-
hasPermi
=
"
['ecw:coupon:show']
"
>
{{
$t
(
'
查看
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.putonStatus == 1
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
setPutonStatus(scope.row, -1)
"
v
-
hasPermi
=
"
['ecw:coupon:show']
"
>
{{
$t
(
'
取消投放
'
)
}}
<
/el-button
>
<
el
-
button
v
-
else
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
setPutonStatus(scope.row, 1)
"
v
-
hasPermi
=
"
['ecw:coupon:show']
"
>
{{
$t
(
'
投放
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status != 1
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleUpdate(scope.row)
"
v
-
hasPermi
=
"
['ecw:coupon:update']
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleCopy(scope.row)
"
...
...
@@ -133,11 +144,22 @@
<
/template
>
<
script
>
import
{
createCoupon
,
updateCoupon
,
deleteCoupon
,
getCoupon
,
getCouponPage
,
exportCouponExcel
,
updateEndtime
}
from
"
@/api/ecw/coupon
"
;
import
{
createCoupon
,
updateCoupon
,
deleteCoupon
,
getCoupon
,
getCouponPage
,
exportCouponExcel
,
updateEndtime
,
updatePutonStatus
}
from
"
@/api/ecw/coupon
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
export
default
{
name
:
"
EcwCouponIndex
"
,
components
:
{
Template
}
,
data
()
{
return
{
...
...
@@ -292,6 +314,16 @@ export default {
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
}
)
}
,
// 投放,取消投放就
setPutonStatus
(
row
,
status
){
updatePutonStatus
({
couponId
:
row
.
couponId
,
putonStatus
:
status
}
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
this
.
getList
()
}
)
}
,
/** 导出按钮操作 */
handleExport
()
{
// 处理查询参数
...
...
src/views/ecw/productPrice/batchIncrease.vue
0 → 100644
View file @
99e2b8b4
This diff is collapsed.
Click to expand it.
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