Prechádzať zdrojové kódy

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

panyong 3 rokov pred
rodič
commit
c0625b2c3e

+ 12 - 6
htmldev/manage/src/views/business/oms/list/index.vue

@@ -1,21 +1,26 @@
 <template>
   <div class="padding-20">
     <div class="search-box">
-      <el-form ref="form" :inline="true" :model="searchForm" clearable label-width="100px" class="mt-10">
-        <el-form-item label="创建时间:">
+      <el-form
+        ref="form"
+        :inline="true"
+        :model="searchForm"
+        clearable
+        class="mt-10">
+        <el-form-item label="订单编号:">
+          <el-input v-model="searchForm.order_number" placeholder="请输入订单编号" clearable></el-input>
+        </el-form-item>
+        <el-form-item label="订单创建时间:">
           <el-date-picker
             :editable="false"
             v-model="time"
-            @change="timearr => {timearr ? (searchForm.start_time = timearr[0] + ' 00:00:00', searchForm.end_time = timearr[1] + ' 23:59:59') : searchForm.start_time = searchForm.end_time = undefined}"
+            @change="timearr => {timearr ? (searchForm.order_start_time = timearr[0] + ' 00:00:00', searchForm.order_end_time = timearr[1] + ' 23:59:59') : searchForm.order_start_time = searchForm.order_end_time = undefined}"
             type="daterange"
             value-format="yyyy-MM-dd"
             start-placeholder="开始时间"
             end-placeholder="结束时间"
           ></el-date-picker>
         </el-form-item>
-        <el-form-item label="部门名称:">
-          <el-input v-model="searchForm.department_name" placeholder="请输入部门名称" clearable></el-input>
-        </el-form-item>
         <el-form-item class="ml-10">
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
         </el-form-item>
@@ -29,6 +34,7 @@
               border
               :max-height="vheight">
       <el-table-column label="订单ID" prop="id"></el-table-column>
+      <el-table-column label="订单编号" prop="order_number"></el-table-column>
       <el-table-column label="桌号" prop="place_number"></el-table-column>
       <el-table-column label="点单用户" prop="order_user_name"></el-table-column>
       <el-table-column label="手机号" prop="order_user_phone"></el-table-column>

+ 3 - 4
htmldev/manage/src/views/business/pms/category/index.vue

@@ -1,14 +1,14 @@
 <template>
   <div class="padding-20">
     <div class="search-box">
+      <!--todo 商品分类不支持搜索-->
       <el-form ref="form"
                :inline="true"
                :model="searchForm"
                clearable
-               label-width="100px"
                class="mt-10">
         <el-form-item label="座位名称:">
-          <el-input v-model="searchForm.department_name" placeholder="请输入座位名称" clearable></el-input>
+          <el-input v-model="searchForm.category_name" placeholder="请输入座位名称" clearable></el-input>
         </el-form-item>
         <el-form-item class="ml-10">
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
@@ -80,7 +80,6 @@ export default {
         show: false,
         exData: {}
       },
-      time: [],
       searchForm: {},
       tableData: [],
       tableUrl: '/v1/bar/product/category/list'
@@ -111,7 +110,7 @@ export default {
   },
   mounted () {
     this.init()
-  },
+  }
 }
 </script>
 

+ 3 - 16
htmldev/manage/src/views/business/pms/goods/index.vue

@@ -5,21 +5,9 @@
                :inline="true"
                :model="searchForm"
                clearable
-               label-width="100px"
                class="mt-10">
-        <el-form-item label="创建时间:">
-          <el-date-picker
-            :editable="false"
-            v-model="time"
-            @change="timearr => {timearr ? (searchForm.start_time = timearr[0] + ' 00:00:00', searchForm.end_time = timearr[1] + ' 23:59:59') : searchForm.start_time = searchForm.end_time = undefined}"
-            type="daterange"
-            value-format="yyyy-MM-dd"
-            start-placeholder="开始时间"
-            end-placeholder="结束时间"
-          ></el-date-picker>
-        </el-form-item>
-        <el-form-item label="部门名称:">
-          <el-input v-model="searchForm.department_name" placeholder="请输入部门名称" clearable></el-input>
+        <el-form-item label="商品名称:">
+          <el-input v-model="searchForm.product_name" placeholder="请输入商品名称" clearable></el-input>
         </el-form-item>
         <el-form-item class="ml-10">
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
@@ -186,7 +174,6 @@ export default {
         show: false,
         exData: {}
       },
-      time: [],
       searchForm: {},
       tableData: [],
       tableUrl: '/v1/bar/product/list',
@@ -243,7 +230,7 @@ export default {
     this.init()
     this.fetchCategory()
     this.fetchGoodsAttr()
-  },
+  }
 }
 </script>
 

+ 3 - 5
htmldev/manage/src/views/business/pms/goodsAttr/index.vue

@@ -5,10 +5,9 @@
                :inline="true"
                :model="searchForm"
                clearable
-               label-width="100px"
                class="mt-10">
-        <el-form-item label="座位名称:">
-          <el-input v-model="searchForm.department_name" placeholder="请输入座位名称" clearable></el-input>
+        <el-form-item label="附加名称:">
+          <el-input v-model="searchForm.attach_name" placeholder="请输入附加名称" clearable></el-input>
         </el-form-item>
         <el-form-item class="ml-10">
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
@@ -76,7 +75,6 @@ export default {
         show: false,
         exData: {}
       },
-      time: [],
       searchForm: {},
       tableData: [],
       tableUrl: '/v1/bar/product/attach/list'
@@ -107,7 +105,7 @@ export default {
   },
   mounted () {
     this.init()
-  },
+  }
 }
 </script>