新增订单打印状态
This commit is contained in:
@@ -14,14 +14,22 @@ const contentConfig: IContentConfig = {
|
||||
pageSize: 10,
|
||||
pageSizes: [10, 20, 30, 50],
|
||||
},
|
||||
indexAction: function (params) {
|
||||
async indexAction(params) {
|
||||
console.log(params);
|
||||
if (params.createAt) {
|
||||
params.startTime = params.createAt[0];
|
||||
params.endTime = params.createAt[1];
|
||||
delete params.createAt;
|
||||
}
|
||||
return OrderApi.getList(params);
|
||||
|
||||
const res = await OrderApi.getList(params)
|
||||
console.log('OrderApi.getList', res);
|
||||
|
||||
res.records.map(item => {
|
||||
item.payLoading = false
|
||||
item.printStatus = JSON.parse(item.printStatus || '[]')
|
||||
})
|
||||
return res;
|
||||
},
|
||||
indexActionData: {},
|
||||
// deleteAction: OrderApi.delete,
|
||||
@@ -93,7 +101,14 @@ const contentConfig: IContentConfig = {
|
||||
templet: "custom",
|
||||
slotName: "options",
|
||||
},
|
||||
|
||||
{
|
||||
label: "打印状态",
|
||||
align: "center",
|
||||
prop: "printStatus",
|
||||
width: 120,
|
||||
templet: "custom",
|
||||
slotName: "printStatus",
|
||||
},
|
||||
{
|
||||
label: "状态",
|
||||
align: "center",
|
||||
|
||||
@@ -51,6 +51,13 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- 打印状态 -->
|
||||
<template #printStatus="scope">
|
||||
<span v-if="scope.row.printStatus.length > 0" style="color: var(--el-color-danger)">
|
||||
打印失败({{scope.row.printStatus.map(item => item.name).join('、')}})
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<template #options="scope">
|
||||
{{ returnOptionsLabel(scope.prop, scope.row[scope.prop]) }}
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user