Commit 480fa6aa by 吕明尚

更改订单管理页面

parent 350c911d
......@@ -56,3 +56,10 @@ export function oauthToken(code) {
method: 'get'
})
}
export function queryCouponList() {
return request({
url: '/system/consumerCoupon/query',
method: 'get'
})
}
......@@ -67,3 +67,10 @@ export function deleteRoomDevice(data) {
data: data
})
}
export function queryRoom() {
return request({
url: '/system/room/query',
method: 'get'
})
}
......@@ -108,8 +108,7 @@
<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>
<dict-tag :options="dict.type.store_is_use_coupon" :value="scope.row.firstOrderAvailable"/>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
......@@ -160,10 +159,13 @@
<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-radio-group v-model="form.firstOrderAvailable">
<el-radio
v-for="dict in dict.type.store_is_use_coupon"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
......@@ -184,6 +186,7 @@ import {getRoom, getRoomPack} from "@/api/system/room";
let roomPackList = [];
export default {
name: "Pack",
dicts: [ 'store_is_use_coupon'],
data() {
return {
// 遮罩层
......
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