Commit 0a567c05 by 李伟康

修复BUG

1 parent bd45b804
...@@ -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
......
...@@ -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()
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!