新增订单打印失败状态
This commit is contained in:
@@ -89,6 +89,11 @@
|
||||
用餐模式:{{ filterLable("dineMode", scope.row.dineMode) }}
|
||||
</div>
|
||||
<div class="row">订单备注:{{ scope.row.remark }}</div>
|
||||
<div class="row">打印状态:
|
||||
<template v-if="scope.row.printStatus.length > 0">
|
||||
打印失败({{scope.row.printStatus.map(item => item.name).join('、')}})
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -286,6 +291,7 @@ async function orderListAjax() {
|
||||
const res = await orderList(queryForm.value);
|
||||
res.records.map(item => {
|
||||
item.payLoading = false
|
||||
item.printStatus = JSON.parse(item.printStatus || '[]')
|
||||
})
|
||||
tableData.list = [];
|
||||
tableData.list = res.records;
|
||||
@@ -293,6 +299,8 @@ async function orderListAjax() {
|
||||
|
||||
tableRef.value.setScrollTop(0);
|
||||
tableRef.value.setScrollLeft(0);
|
||||
|
||||
console.log("订单列表:", res);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user