Commit 0a567c05 by 李伟康

修复BUG

1 parent bd45b804
......@@ -157,6 +157,7 @@ const getSelfGoodsDetailApi = params => {
const getOilCouponListApi = params => {
params.method = 'scrm.api.shopmall.goods.oil.coupon.list'
params.status = 1
params.filterStock = 1
return http({
url,
data: params
......
......@@ -23,7 +23,7 @@
>查询</el-button>
<el-button
:size="size"
v-if="goodsInfo.goodsSource==2"
v-if="goodsInfo.goodsSource != 1"
@click="resetSearch"
>重置</el-button>
</span>
......@@ -216,7 +216,9 @@ const gasGoodsTableCol = [
},
{
label: '库存',
prop: 'stock'
formatter: cellValue => {
return cellValue.stock - cellValue.usedStock
}
},
]
export default {
......@@ -322,9 +324,11 @@ export default {
},
beforeSearchFn () {
return new Promise(resolve => {
if (this.goodsInfo.goodsSource == 2) {
const {goodsSource} = this.goodsInfo
if (goodsSource == 2) {
delete this.searchForm.goodsType
}
if (goodsSource == 3)this.searchForm.aliasName = this.searchForm.goodsName
resolve()
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!