Browse Source

管理后台-商品列表、商品分类搜索

panyong 3 years ago
parent
commit
eff92fae08

+ 2 - 2
htmldev/manage/src/store/modules/common.js

@@ -57,14 +57,14 @@ const actions = {
   },
   // 获取门店列表
   async fetchOutletList ({ commit }) {
-    const { code, data } = await fetch('/api/admin/v1/bar/list?page=1&page_size=10000', {}, 'get')
+    const { code, data } = await fetch('/api/admin/v1/bar/list?page=1&page_size=10000&bar_status=1', {}, 'get')
     if (code === 200) {
       commit('SET_OUTLETLIST', data.list)
     }
   },
   // 获取商品分类列表
   async fetchCategory ({ commit }) {
-    const { code, data } = await fetch('/v1/bar/product/category/list?page=1&page_size=10000', {}, 'get')
+    const { code, data } = await fetch('/v1/bar/product/category/list?page=1&page_size=10000&category_status=1', {}, 'get')
     if (code === 200) {
       commit('SET_CATEGORYARR', data.list)
     }

+ 6 - 0
htmldev/manage/src/views/business/pms/category/index.vue

@@ -9,6 +9,12 @@
         <el-form-item label="分类名称:">
           <el-input v-model="searchForm.category_name" placeholder="请输入分类名称" clearable></el-input>
         </el-form-item>
+        <el-form-item label="分类状态:">
+          <el-select v-model="searchForm.category_status">
+            <el-option label="上架" :value="1"></el-option>
+            <el-option label="下架" :value="0"></el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item class="ml-10">
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
         </el-form-item>

+ 6 - 0
htmldev/manage/src/views/outlet/list/index.vue

@@ -12,6 +12,12 @@
             placeholder="请输入门店名称"
             clearable></el-input>
         </el-form-item>
+        <el-form-item label="酒吧状态:">
+          <el-select v-model="searchForm.bar_status">
+            <el-option label="有效" :value="1"></el-option>
+            <el-option label="无效" :value="0"></el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item class="ml-10">
           <el-button
             icon="el-icon-search"