diff --git a/src/views/store/store_branch_product/index.vue b/src/views/store/store_branch_product/index.vue index ccad6ccb..d170cfd1 100644 --- a/src/views/store/store_branch_product/index.vue +++ b/src/views/store/store_branch_product/index.vue @@ -35,6 +35,13 @@ + + 全部 + 上架 + 下架 + 库存警告 + 已售罄 +
@@ -96,7 +103,9 @@ const queryParams = reactive({ store_name: '', bar_code: '', status: '', - exchange: 0 + exchange: 0, + is_show: null, + stock: null }) // 选中数据 @@ -169,5 +178,26 @@ const statusChange = (row:any)=>{ status: row.status }) } + +const producStatus = ref('0') +const changeProducStatus = (e: any)=>{ + if(e==0) { + queryParams.is_show = null; + queryParams.stock = null; + }else if(e==1) { + queryParams.is_show = 1; + queryParams.stock = null; + }else if(e==2) { + queryParams.is_show = 0; + queryParams.stock = null; + }else if(e==3) { + queryParams.is_show = null; + queryParams.stock = 0; + }else if(e==4) { + queryParams.is_show = null; + queryParams.stock = 10; + } + getLists(); +}