feat: 工作台列表调试

This commit is contained in:
gcd 2025-04-03 18:34:02 +08:00
parent 1b01243434
commit 73a55d81ff
2 changed files with 34 additions and 1 deletions

View File

@ -56,7 +56,7 @@
<view class="operate-ctr flex-sb">
<view class="status-ctr flex-l">
<me-icon type="icon-progress-2-line" color="#E18F00" size="40rpx"></me-icon>
<text class="text">待联系客户</text>
<text class="text">{{getOrderStatusText(item.status)}}</text>
</view>
<view class="operate flex-r">
<view class="btn flex-c" hover-class="auto-mask-layer-radius8" hover-start-time="0" hover-stay-time="50">
@ -80,6 +80,11 @@ import MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
import MeTop from "../../components/me-top/me-top.vue";
import api from "../../api/api";
import helpers from "../../utils/helpers";
import enums from "../../utils/enums";
const getOrderStatusText = (status) => {
return enums.WORKBENCH_STATUS_TEXT[status]
}
/**
* 拨打电话

28
utils/enums.js Normal file
View File

@ -0,0 +1,28 @@
const enums = {
//派单状态
ORDER_DISPATCH_STATUS: {
STATUS_TOGET: 0, //待接
STATUS_GOTIT: 10, //已接
STATUS_PLANIT: 20, //已预约
STATUS_OVERTIME: 25, //超时(过了预约时间)
STATUS_CLOCK: 30, //已打卡
STATUS_FINISH: 60, //完成
STATUS_REFUSED: -10, //拒绝
STATUS_MOVE: -20, //中转
STATUS_CANCEL: -30, //取消
},
WORKBENCH_STATUS_TEXT: {
0: '待接单',
10: '待联系客户',
20: '待上门',
30: '服务中',
60: '已完成',
},
};
// 冻结对象,防止被修改
Object.freeze(enums);
// 导出枚举对象
export default enums;