Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
web
soss
Commits
5c7fd7d5
Commit
5c7fd7d5
authored
May 21, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
f469cdff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
25 deletions
+45
-25
src/components/SelectGoods/index.vue
+7
-12
src/views/shop/shop/components/commodity.vue
+38
-13
No files found.
src/components/SelectGoods/index.vue
View file @
5c7fd7d5
...
...
@@ -65,20 +65,13 @@ export default {
pageNum
:
1
,
pageSize
:
10
,
spuName
:
null
,
productionTime
:
null
,
discountPrice
:
null
,
originalPrice
:
null
,
label
:
null
,
desc
:
null
,
createUserId
:
null
,
updateUserId
:
null
,
shelfTime
:
null
,
status
:
null
,
category
:
null
,
state
:
3
,
},
};
},
created
()
{
this
.
getList
();
//
this.getList();
},
methods
:
{
getPicsList
(
str
){
...
...
@@ -108,7 +101,8 @@ export default {
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
queryParams
.
spuName
=
null
;
this
.
queryParams
.
category
=
null
;
this
.
handleQuery
();
},
// 多选框选中数据
...
...
@@ -121,7 +115,8 @@ export default {
//this.reset();
},
openModal
()
{
this
.
open
=
true
this
.
open
=
true
;
this
.
getList
();
},
submit
()
{
this
.
$emit
(
'callback'
,
this
.
ids
)
...
...
src/views/shop/shop/components/commodity.vue
View file @
5c7fd7d5
...
...
@@ -135,23 +135,48 @@ export default {
this
.
outIds
=
selection
.
map
((
item
)
=>
item
.
id
);
},
soldOutGoos
(){
this
.
$confirm
(
'是否确认下架所选商品?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
offGoods
({
"shopId"
:
this
.
shopId
,
"goodsIds"
:
this
.
outIds
}).
then
(({
response
})
=>
{
if
(
response
.
code
==
"200"
){
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
});
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
});
});
// offGoods({"shopId":this.shopId,"goodsIds":this.outIds}).then(({ response }) => {
// console.log("response",response);
// })
this
.
$modal
.
confirm
(
'是否确认下架所选商品?'
)
.
then
(
function
()
{
return
offGoods
({
"shopId"
:
this
.
shopId
,
"goodsIds"
:
this
.
outIds
});
})
.
then
((
response
)
=>
{
// console.log("response",response);
// if(response.code=="200"){
// this.getList();
//this.$modal.msgSuccess('' + mess + '成功');
// }
})
.
catch
(()
=>
{
});
//
this.$modal
//
.confirm('是否确认下架所选商品?')
//
.then(function () {
//
return offGoods({"shopId":this.shopId,"goodsIds":this.outIds});
//
})
//
.then((response) => {
//
// console.log("response",response);
//
// if(response.code=="200"){
//
// this.getList();
//
//this.$modal.msgSuccess('' + mess + '成功');
//
// }
//
})
//
.catch(() => { });
...
...
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