订单逻辑完工

This commit is contained in:
2026-01-12 22:21:00 +08:00
parent 913afc07c1
commit 88c8a4517b
4 changed files with 27 additions and 26 deletions

View File

@@ -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),