Commit 350c911d by 吕明尚

套餐管理增加是否首次可用

parent 3d77cef8
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="用户ID" prop="consumerId">
<!-- <el-form-item label="用户ID" prop="consumerId">-->
<!-- <el-input-->
<!-- v-model="queryParams.consumerId"-->
<!-- placeholder="请输入用户ID"-->
......@@ -467,6 +467,7 @@ export default {
getList() {
this.loading = true
listConsumerCoupon(this.queryParams).then(response => {
console.log(response,90999999999)
this.consumerCouponList = response.rows
this.total = response.total
this.loading = false
......
......@@ -41,6 +41,12 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否首次下单可用" prop="firstOrderAvailable">
<el-select v-model="queryParams.firstOrderAvailable" placeholder="请选择是否首次下单可用" clearable>
<el-option label="是" value="1" />
<el-option label="否" value="0" />
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
......@@ -100,6 +106,12 @@
<el-table-column label="金额" align="center" prop="price" />
<el-table-column label="套餐开始时段" align="center" prop="packaStartPeriod" />
<el-table-column label="套餐结束时段" align="center" prop="packaEndPeriod" />
<el-table-column label="是否首次下单可用" align="center" prop="firstOrderAvailable" >
<template slot-scope="scope">
<span v-if="scope.row.firstOrderAvailable==1"></span>
<span v-else></span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
......@@ -147,6 +159,12 @@
<el-form-item label="套餐结束时段" prop="packaEndPeriod">
<el-input v-model="form.packaEndPeriod" placeholder="请输入套餐结束时段" />
</el-form-item>
<el-form-item label="是否首次下单可用" prop="firstOrderAvailable">
<el-select v-model="form.firstOrderAvailable" placeholder="请选择是否首次下单可用" clearable>
<el-option label="是" value="1" />
<el-option label="否" value="0" />
</el-select>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
</el-form-item>
......@@ -196,6 +214,7 @@ export default {
price: null,
packaStartPeriod: null,
packaEndPeriod: null,
firstOrderAvailable: null
},
// 表单参数
form: {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment