订单逻辑完工
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
<view class="room-grid-card">
|
||||
<view class="grid-item-content">
|
||||
<view class="room-name">{{room.room_name}}</view>
|
||||
<view class="room-info" @click="onShowInfoPopup(room)">
|
||||
<view class="room-id" v-if="room.tel">尾号: {{room.tel}}</view>
|
||||
<view class="remark" v-if="room.remarks">备注: {{room.remarks}}</view>
|
||||
<view class="room-info" >
|
||||
<view class="room-id" @click="onShowInfoPopup(room)" v-if="room.tel">尾号: {{room.tel}}</view>
|
||||
<view class="remark" @click="onShowInfoPopup(room)" v-if="room.remarks">备注: {{room.remarks}}</view>
|
||||
</view>
|
||||
<view class="room-buttons">
|
||||
<view v-if="room.status === 1">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -131,55 +131,56 @@ const _sfc_main = {
|
||||
a: common_vendor.t(room.room_name),
|
||||
b: room.tel
|
||||
}, room.tel ? {
|
||||
c: common_vendor.t(room.tel)
|
||||
c: common_vendor.t(room.tel),
|
||||
d: common_vendor.o(($event) => onShowInfoPopup(room), index)
|
||||
} : {}, {
|
||||
d: room.remarks
|
||||
e: room.remarks
|
||||
}, room.remarks ? {
|
||||
e: common_vendor.t(room.remarks)
|
||||
f: common_vendor.t(room.remarks),
|
||||
g: common_vendor.o(($event) => onShowInfoPopup(room), index)
|
||||
} : {}, {
|
||||
f: common_vendor.o(($event) => onShowInfoPopup(room), index),
|
||||
g: room.status === 1
|
||||
h: room.status === 1
|
||||
}, room.status === 1 ? {
|
||||
h: common_vendor.o(($event) => onBooking(room), index),
|
||||
i: "1cf27b2a-1-" + i0,
|
||||
j: common_vendor.p({
|
||||
i: common_vendor.o(($event) => onBooking(room), index),
|
||||
j: "1cf27b2a-1-" + i0,
|
||||
k: common_vendor.p({
|
||||
size: "small",
|
||||
type: "primary",
|
||||
shape: "square"
|
||||
})
|
||||
} : room.status === 2 ? {
|
||||
l: common_vendor.o(($event) => onUnBooking(room), index),
|
||||
m: "1cf27b2a-2-" + i0,
|
||||
n: common_vendor.p({
|
||||
m: common_vendor.o(($event) => onUnBooking(room), index),
|
||||
n: "1cf27b2a-2-" + i0,
|
||||
o: common_vendor.p({
|
||||
size: "small",
|
||||
type: "warning",
|
||||
plain: true,
|
||||
shape: "square"
|
||||
})
|
||||
} : {}, {
|
||||
k: room.status === 2,
|
||||
o: room.status === 3
|
||||
l: room.status === 2,
|
||||
p: room.status === 3
|
||||
}, room.status === 3 ? {
|
||||
p: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)(`/pages/index/orderEdit?roomId=${room.id}`), index),
|
||||
q: "1cf27b2a-3-" + i0,
|
||||
r: common_vendor.p({
|
||||
q: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)(`/pages/index/orderEdit?roomId=${room.id}`), index),
|
||||
r: "1cf27b2a-3-" + i0,
|
||||
s: common_vendor.p({
|
||||
size: "small",
|
||||
type: "info",
|
||||
plain: true,
|
||||
shape: "square"
|
||||
})
|
||||
} : {
|
||||
s: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)(`/pages/index/orderAdd?roomId=${room.id}`), index),
|
||||
t: "1cf27b2a-4-" + i0,
|
||||
v: common_vendor.p({
|
||||
t: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)(`/pages/index/orderAdd?roomId=${room.id}`), index),
|
||||
v: "1cf27b2a-4-" + i0,
|
||||
w: common_vendor.p({
|
||||
size: "small",
|
||||
type: "success",
|
||||
plain: true,
|
||||
shape: "square"
|
||||
})
|
||||
}, {
|
||||
w: index,
|
||||
x: common_vendor.s(getRoomStyle(room.status))
|
||||
x: index,
|
||||
y: common_vendor.s(getRoomStyle(room.status))
|
||||
});
|
||||
}),
|
||||
e: common_vendor.t(tempRoom == null ? void 0 : tempRoom.room_name),
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="page-content data-v-1cf27b2a"><view class="data-v-1cf27b2a" style="{{'z-index:10000;position:sticky' + ';' + c}}"><view class="top-bar data-v-1cf27b2a"><nut-button wx:if="{{b}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{a}}" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{b}}"> 新增商品订单 </nut-button></view></view><view class="room-grid data-v-1cf27b2a"><view wx:for="{{d}}" wx:for-item="room" wx:key="w" class="room-grid-item data-v-1cf27b2a" style="{{room.x}}"><view class="room-grid-card data-v-1cf27b2a"><view class="grid-item-content data-v-1cf27b2a"><view class="room-name data-v-1cf27b2a">{{room.a}}</view><view class="room-info data-v-1cf27b2a" bindtap="{{room.f}}"><view wx:if="{{room.b}}" class="room-id data-v-1cf27b2a">尾号: {{room.c}}</view><view wx:if="{{room.d}}" class="remark data-v-1cf27b2a">备注: {{room.e}}</view></view><view class="room-buttons data-v-1cf27b2a"><view wx:if="{{room.g}}" class="data-v-1cf27b2a"><nut-button wx:if="{{room.j}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{room.h}}" u-i="{{room.i}}" bind:__l="__l" u-p="{{room.j}}">预约</nut-button></view><view wx:elif="{{room.k}}" class="data-v-1cf27b2a"><nut-button wx:if="{{room.n}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{room.l}}" u-i="{{room.m}}" bind:__l="__l" u-p="{{room.n}}">取消预约</nut-button></view><view wx:if="{{room.o}}" class="data-v-1cf27b2a"><nut-button wx:if="{{room.r}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{room.p}}" u-i="{{room.q}}" bind:__l="__l" u-p="{{room.r}}">详情</nut-button></view><view wx:else class="data-v-1cf27b2a"><nut-button wx:if="{{room.v}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{room.s}}" u-i="{{room.t}}" bind:__l="__l" u-p="{{room.v}}">开台</nut-button></view></view></view></view></view></view><nut-popup wx:if="{{p}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclose="{{n}}" u-i="1cf27b2a-5" bind:__l="__l" bindupdateVisible="{{o}}" u-p="{{p}}"><view class="data-v-1cf27b2a"><view class="title data-v-1cf27b2a">{{e}}</view><nut-form class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="1cf27b2a-6,1cf27b2a-5" bind:__l="__l"><nut-form-item wx:if="{{h}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="1cf27b2a-7,1cf27b2a-6" bind:__l="__l" u-p="{{h}}"><nut-input wx:if="{{g}}" class="data-v-1cf27b2a" u-i="1cf27b2a-8,1cf27b2a-7" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></nut-input></nut-form-item><nut-form-item wx:if="{{k}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="1cf27b2a-9,1cf27b2a-6" bind:__l="__l" u-p="{{k}}"><nut-textarea wx:if="{{j}}" class="data-v-1cf27b2a" u-i="1cf27b2a-10,1cf27b2a-9" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></nut-textarea></nut-form-item></nut-form><view class="data-v-1cf27b2a" style="padding:0rpx 80rpx"><nut-button wx:if="{{m}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{l}}" u-i="1cf27b2a-11,1cf27b2a-5" bind:__l="__l" u-p="{{m}}"> 预约 </nut-button></view></view></nut-popup><nut-popup wx:if="{{y}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclose="{{w}}" u-i="1cf27b2a-12" bind:__l="__l" bindupdateVisible="{{x}}" u-p="{{y}}"><view class="data-v-1cf27b2a"><view class="title data-v-1cf27b2a">{{q}}</view><view class="room-info data-v-1cf27b2a"><view wx:if="{{r}}" class="room-id data-v-1cf27b2a">尾号: {{s}}</view><view wx:if="{{t}}" class="remark data-v-1cf27b2a">备注: {{v}}</view></view></view></nut-popup></view>
|
||||
<view class="page-content data-v-1cf27b2a"><view class="data-v-1cf27b2a" style="{{'z-index:10000;position:sticky' + ';' + c}}"><view class="top-bar data-v-1cf27b2a"><nut-button wx:if="{{b}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{a}}" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{b}}"> 新增商品订单 </nut-button></view></view><view class="room-grid data-v-1cf27b2a"><view wx:for="{{d}}" wx:for-item="room" wx:key="x" class="room-grid-item data-v-1cf27b2a" style="{{room.y}}"><view class="room-grid-card data-v-1cf27b2a"><view class="grid-item-content data-v-1cf27b2a"><view class="room-name data-v-1cf27b2a">{{room.a}}</view><view class="room-info data-v-1cf27b2a"><view wx:if="{{room.b}}" class="room-id data-v-1cf27b2a" bindtap="{{room.d}}">尾号: {{room.c}}</view><view wx:if="{{room.e}}" class="remark data-v-1cf27b2a" bindtap="{{room.g}}">备注: {{room.f}}</view></view><view class="room-buttons data-v-1cf27b2a"><view wx:if="{{room.h}}" class="data-v-1cf27b2a"><nut-button wx:if="{{room.k}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{room.i}}" u-i="{{room.j}}" bind:__l="__l" u-p="{{room.k}}">预约</nut-button></view><view wx:elif="{{room.l}}" class="data-v-1cf27b2a"><nut-button wx:if="{{room.o}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{room.m}}" u-i="{{room.n}}" bind:__l="__l" u-p="{{room.o}}">取消预约</nut-button></view><view wx:if="{{room.p}}" class="data-v-1cf27b2a"><nut-button wx:if="{{room.s}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{room.q}}" u-i="{{room.r}}" bind:__l="__l" u-p="{{room.s}}">详情</nut-button></view><view wx:else class="data-v-1cf27b2a"><nut-button wx:if="{{room.w}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{room.t}}" u-i="{{room.v}}" bind:__l="__l" u-p="{{room.w}}">开台</nut-button></view></view></view></view></view></view><nut-popup wx:if="{{p}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclose="{{n}}" u-i="1cf27b2a-5" bind:__l="__l" bindupdateVisible="{{o}}" u-p="{{p}}"><view class="data-v-1cf27b2a"><view class="title data-v-1cf27b2a">{{e}}</view><nut-form class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="1cf27b2a-6,1cf27b2a-5" bind:__l="__l"><nut-form-item wx:if="{{h}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="1cf27b2a-7,1cf27b2a-6" bind:__l="__l" u-p="{{h}}"><nut-input wx:if="{{g}}" class="data-v-1cf27b2a" u-i="1cf27b2a-8,1cf27b2a-7" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></nut-input></nut-form-item><nut-form-item wx:if="{{k}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="1cf27b2a-9,1cf27b2a-6" bind:__l="__l" u-p="{{k}}"><nut-textarea wx:if="{{j}}" class="data-v-1cf27b2a" u-i="1cf27b2a-10,1cf27b2a-9" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></nut-textarea></nut-form-item></nut-form><view class="data-v-1cf27b2a" style="padding:0rpx 80rpx"><nut-button wx:if="{{m}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclick="{{l}}" u-i="1cf27b2a-11,1cf27b2a-5" bind:__l="__l" u-p="{{m}}"> 预约 </nut-button></view></view></nut-popup><nut-popup wx:if="{{y}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindclose="{{w}}" u-i="1cf27b2a-12" bind:__l="__l" bindupdateVisible="{{x}}" u-p="{{y}}"><view class="data-v-1cf27b2a"><view class="title data-v-1cf27b2a">{{q}}</view><view class="room-info data-v-1cf27b2a"><view wx:if="{{r}}" class="room-id data-v-1cf27b2a">尾号: {{s}}</view><view wx:if="{{t}}" class="remark data-v-1cf27b2a">备注: {{v}}</view></view></view></nut-popup></view>
|
||||
Reference in New Issue
Block a user