Commit 480fa6aa by 吕明尚

更改订单管理页面

parent 350c911d
...@@ -56,3 +56,10 @@ export function oauthToken(code) { ...@@ -56,3 +56,10 @@ export function oauthToken(code) {
method: 'get' method: 'get'
}) })
} }
export function queryCouponList() {
return request({
url: '/system/consumerCoupon/query',
method: 'get'
})
}
...@@ -67,3 +67,10 @@ export function deleteRoomDevice(data) { ...@@ -67,3 +67,10 @@ export function deleteRoomDevice(data) {
data: data data: data
}) })
} }
export function queryRoom() {
return request({
url: '/system/room/query',
method: 'get'
})
}
...@@ -108,8 +108,7 @@ ...@@ -108,8 +108,7 @@
<el-table-column label="套餐结束时段" align="center" prop="packaEndPeriod" /> <el-table-column label="套餐结束时段" align="center" prop="packaEndPeriod" />
<el-table-column label="是否首次下单可用" align="center" prop="firstOrderAvailable" > <el-table-column label="是否首次下单可用" align="center" prop="firstOrderAvailable" >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.firstOrderAvailable==1"></span> <dict-tag :options="dict.type.store_is_use_coupon" :value="scope.row.firstOrderAvailable"/>
<span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
...@@ -160,10 +159,13 @@ ...@@ -160,10 +159,13 @@
<el-input v-model="form.packaEndPeriod" placeholder="请输入套餐结束时段" /> <el-input v-model="form.packaEndPeriod" placeholder="请输入套餐结束时段" />
</el-form-item> </el-form-item>
<el-form-item label="是否首次下单可用" prop="firstOrderAvailable"> <el-form-item label="是否首次下单可用" prop="firstOrderAvailable">
<el-select v-model="form.firstOrderAvailable" placeholder="请选择是否首次下单可用" clearable> <el-radio-group v-model="form.firstOrderAvailable">
<el-option label="是" value="1" /> <el-radio
<el-option label="否" value="0" /> v-for="dict in dict.type.store_is_use_coupon"
</el-select> :key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" /> <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
...@@ -184,6 +186,7 @@ import {getRoom, getRoomPack} from "@/api/system/room"; ...@@ -184,6 +186,7 @@ import {getRoom, getRoomPack} from "@/api/system/room";
let roomPackList = []; let roomPackList = [];
export default { export default {
name: "Pack", name: "Pack",
dicts: [ 'store_is_use_coupon'],
data() { data() {
return { 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