Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0a567c05
authored
Dec 14, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复BUG
1 parent
bd45b804
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
src/api/modules/goods.js
src/views/goods/components/selectGoods.vue
src/api/modules/goods.js
View file @
0a567c0
...
@@ -157,6 +157,7 @@ const getSelfGoodsDetailApi = params => {
...
@@ -157,6 +157,7 @@ const getSelfGoodsDetailApi = params => {
const
getOilCouponListApi
=
params
=>
{
const
getOilCouponListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.goods.oil.coupon.list'
params
.
method
=
'scrm.api.shopmall.goods.oil.coupon.list'
params
.
status
=
1
params
.
status
=
1
params
.
filterStock
=
1
return
http
({
return
http
({
url
,
url
,
data
:
params
data
:
params
...
...
src/views/goods/components/selectGoods.vue
View file @
0a567c0
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
>
查询
</el-button>
>
查询
</el-button>
<el-button
<el-button
:size=
"size"
:size=
"size"
v-if=
"goodsInfo.goodsSource
==2
"
v-if=
"goodsInfo.goodsSource
!= 1
"
@
click=
"resetSearch"
@
click=
"resetSearch"
>
重置
</el-button>
>
重置
</el-button>
</span>
</span>
...
@@ -216,7 +216,9 @@ const gasGoodsTableCol = [
...
@@ -216,7 +216,9 @@ const gasGoodsTableCol = [
},
},
{
{
label
:
'库存'
,
label
:
'库存'
,
prop
:
'stock'
formatter
:
cellValue
=>
{
return
cellValue
.
stock
-
cellValue
.
usedStock
}
},
},
]
]
export
default
{
export
default
{
...
@@ -322,9 +324,11 @@ export default {
...
@@ -322,9 +324,11 @@ export default {
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
if
(
this
.
goodsInfo
.
goodsSource
==
2
)
{
const
{
goodsSource
}
=
this
.
goodsInfo
if
(
goodsSource
==
2
)
{
delete
this
.
searchForm
.
goodsType
delete
this
.
searchForm
.
goodsType
}
}
if
(
goodsSource
==
3
)
this
.
searchForm
.
aliasName
=
this
.
searchForm
.
goodsName
resolve
()
resolve
()
})
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment