fix(shop): 修复店铺骑手状态显示和字段配置问题

- 修正了骑手编辑页面状态选项值与标签对应关系
- 更新了骑手列表页面工作状态和启用状态的显示逻辑
- 重新调整了表格列配置中状态字段的顺序
- 启用了被注释掉的状态字段显示功能
- 修改了开发环境API地址配置为启用状态
This commit is contained in:
2026-02-11 13:54:02 +08:00
parent ac16fd5329
commit 520fc2bc49
3 changed files with 16 additions and 11 deletions

View File

@@ -155,8 +155,8 @@
</a-form-item>
<a-form-item label="状态" name="status">
<a-radio-group v-model:value="form.status">
<a-radio :value="0">正常</a-radio>
<a-radio :value="1">禁用</a-radio>
<a-radio :value="1">启用</a-radio>
<a-radio :value="0">禁用</a-radio>
</a-radio-group>
</a-form-item>
</a-form>

View File

@@ -26,9 +26,14 @@
<template v-if="column.key === 'storeName'">
<a-tag v-if="record.storeName" color="orange">{{ record.storeName }}</a-tag>
</template>
<template v-if="column.key === 'workStatus'">
<a-tag v-if="record.status === 2" color="red">忙碌</a-tag>
<a-tag v-if="record.status === 1" color="green">在线</a-tag>
<a-tag v-if="record.status === 0">休息</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
<a-tag v-if="record.status === 1" color="green">启用</a-tag>
<a-tag v-if="record.status === 0" color="red">禁用</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
@@ -133,12 +138,6 @@
dataIndex: 'idCardNo',
key: 'idCardNo'
},
// {
// title: '状态',
// dataIndex: 'status',
// key: 'status',
// align: 'center'
// },
{
title: '接单状态',
dataIndex: 'workStatus',
@@ -197,6 +196,12 @@
// key: 'sortNumber',
// width: 120
// },
{
title: '状态',
dataIndex: 'status',
key: 'status',
align: 'center'
},
{
title: '创建时间',
dataIndex: 'createTime',