Эх сурвалжийг харах

管理后台:点单列表、预定座位列表新增合计

panyong 3 жил өмнө
parent
commit
9d6d200dd9

+ 10 - 1
htmldev/manage/src/views/business/oms/list/index.vue

@@ -70,7 +70,13 @@
           </el-tag>
         </template>
       </el-table-column>
-      <el-table-column label="支付方式" prop="order_pay_type" sortable width="120">
+      <el-table-column
+        :filter-method="filterTag"
+        :filters="[{ text: '微信', value: 1 }, { text: '支付宝', value: 2 }, { text: '现场支付', value: 3 }, { text: '美团支付', value: 4 }, { text: '赠送', value: 5 }]"
+        filter-placement="bottom-end"
+        label="支付方式"
+        prop="order_pay_type"
+        width="100">
         <template slot-scope="scope">
           <p>{{ ['', '微信', '支付宝', '现场支付', '美团支付', '赠送'][scope.row.order_pay_type] }}</p>
         </template>
@@ -285,6 +291,9 @@ export default {
       })
 
       return sums
+    },
+    filterTag(value, row) {
+      return row.order_pay_type === value
     }
   },
   mounted() {

+ 9 - 1
htmldev/manage/src/views/business/place/reserve/index.vue

@@ -62,7 +62,12 @@
           <p>{{ scope.row.order_pay_price | fen2Yuan }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="支付方式" prop="order_pay_type" sortable width="120">
+      <el-table-column
+        :filter-method="filterTag"
+        :filters="[{ text: '微信', value: 1 }, { text: '支付宝', value: 2 }, { text: '现场支付', value: 3 }, { text: '美团支付', value: 4 }, { text: '赠送', value: 5 }]"
+        filter-placement="bottom-end"
+        label="支付方式"
+        prop="order_pay_type">
         <template slot-scope="scope">
           <p>{{ ['', '微信', '支付宝', '现场支付', '美团支付', '赠送'][scope.row.order_pay_type] }}</p>
         </template>
@@ -154,6 +159,9 @@ export default {
       })
 
       return sums
+    },
+    filterTag(value, row) {
+      return row.order_pay_type === value
     }
   },
   mounted() {