Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
integralMall
integral-mall
Commits
25b7842d
Commit
25b7842d
authored
Feb 15, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: bugfix
parent
8b8249d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
7 deletions
+24
-7
goodsSelect.vue
src/components/goodsSelect.vue
+3
-1
deliverSet.vue
src/views/setting/deliverSet.vue
+21
-6
No files found.
src/components/goodsSelect.vue
View file @
25b7842d
...
@@ -402,8 +402,10 @@ export default {
...
@@ -402,8 +402,10 @@ export default {
color
:
#606266
;
color
:
#606266
;
height
:
22px
;
height
:
22px
;
line-height
:
22px
;
line-height
:
22px
;
/* width: 230px; */
font-size
:
14px
;
font-size
:
14px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
.category-ellipsis
{
.category-ellipsis
{
color
:
#909399
;
color
:
#909399
;
...
...
src/views/setting/deliverSet.vue
View file @
25b7842d
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
</el-button>
</el-button>
<el-button
<el-button
plain
plain
@
click=
"multipleClose"
@
click=
"multipleClose
()
"
style=
"margin:0 10px 0 0"
style=
"margin:0 10px 0 0"
v-if=
"$getButtonLimit($buttonCode.deliverSetBatchDeActive)"
v-if=
"$getButtonLimit($buttonCode.deliverSetBatchDeActive)"
:limit-code=
"$buttonCode.deliverSetBatchDeActive"
:limit-code=
"$buttonCode.deliverSetBatchDeActive"
...
@@ -158,6 +158,14 @@
...
@@ -158,6 +158,14 @@
>
>
编辑
编辑
</el-button>
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.isValid==1&&$getButtonLimit($buttonCode.deliverSetDeActive)"
@
click=
"multipleClose(scope.row)"
:limit-code=
"$buttonCode.deliverSetDeActive"
>
失效
</el-button>
<el-popover
<el-popover
placement=
"top"
placement=
"top"
width=
"160"
width=
"160"
...
@@ -445,17 +453,24 @@ export default {
...
@@ -445,17 +453,24 @@ export default {
}
}
});
});
},
},
multipleClose
()
{
multipleClose
(
row
)
{
if
(
this
.
selectList
.
length
<
1
)
{
if
(
!
row
&&
this
.
selectList
.
length
<
1
)
{
this
.
$message
.
error
(
'未选择任何自提点,不能操作批量失效'
);
this
.
$message
.
error
(
'未选择任何自提点,不能操作批量失效'
);
return
;
return
;
}
}
this
.
$confirm
(
`您已选择
${
this
.
selectList
.
length
}
个自提点,是否确认操作批量失效?操作后这些自提点将不能用于门店自提商品的自提`
,
'提示'
,
{
const
len
=
row
?
1
:
this
.
selectList
.
length
;
this
.
$confirm
(
`您已选择
${
len
}
个自提点,是否确认操作批量失效?操作后这些自提点将不能用于门店自提商品的自提`
,
'提示'
,
{
type
:
'warning'
,
type
:
'warning'
,
}).
then
(
_
=>
{
}).
then
(
_
=>
{
this
.
loading
=
true
;
this
.
loading
=
true
;
const
integralMallPickUpPointIdList
=
this
.
selectList
.
map
(
item
=>
item
.
integralMallPickUpPointId
);
let
data
=
{};
request
.
post
(
'/api-integral-mall/unvalid-pick-up-point'
,
{
integralMallPickUpPointIdList
}).
then
(
res
=>
{
if
(
row
)
{
data
=
{
integralMallPickUpPointIdList
:
[
row
.
integralMallPickUpPointId
]
};
}
else
{
const
integralMallPickUpPointIdList
=
this
.
selectList
.
map
(
item
=>
item
.
integralMallPickUpPointId
);
data
=
{
integralMallPickUpPointIdList
};
}
request
.
post
(
'/api-integral-mall/unvalid-pick-up-point'
,
data
).
then
(
res
=>
{
this
.
$message
.
success
(
'失效成功'
);
this
.
$message
.
success
(
'失效成功'
);
this
.
getList
();
this
.
getList
();
}).
finally
(
_
=>
{
}).
finally
(
_
=>
{
...
...
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