商家工位订单因接口新加字段导致的页面不能正常显示bug修复

This commit is contained in:
BAKEYi 2026-04-23 10:13:27 +08:00
parent d25533df33
commit a159fbdb22
1 changed files with 9 additions and 6 deletions

View File

@ -377,15 +377,18 @@
}) })
.then((res) => { .then((res) => {
if (this.identity == 0) { if (this.identity == 0) {
// 使使
const provider = res.data.user_syr || res.data.user_sj || {};
this.orderInfo = res.data ? { this.orderInfo = res.data ? {
...res.data.order, ...res.data.order,
...res.data.work_seat, ...res.data.work_seat,
...res.data.user_syr, ...provider,
work_hour_id: res.data.work_seat.id, work_hour_id: res.data.work_seat.id,
order_id: res.data.order.id, order_id: res.data.order.id,
user_sj_id: res.data.user_syr.id, user_sj_id: provider.id,
} : {}; } : {};
} else if (this.identity == 1) { } else if (this.identity == 1) {
//
this.orderInfo = res.data ? { this.orderInfo = res.data ? {
...res.data.order, ...res.data.order,
...res.data.work_hour, ...res.data.work_hour,