|
|
|
@ -13,7 +13,7 @@
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<view class="dispatch-header">
|
|
|
|
<view class="dispatch-header">
|
|
|
|
<text class="dispatch-status" :class="dispatchStatusClass(item.status)">
|
|
|
|
<text class="dispatch-status" :class="dispatchStatusClassMap[item.status] || ''">
|
|
|
|
{{ getDispatchStatusText(item.status) }}
|
|
|
|
{{ getDispatchStatusText(item.status) }}
|
|
|
|
</text>
|
|
|
|
</text>
|
|
|
|
<text class="dispatch-time">{{ item.assignTime }}</text>
|
|
|
|
<text class="dispatch-time">{{ item.assignTime }}</text>
|
|
|
|
@ -87,7 +87,12 @@ export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
records: [],
|
|
|
|
records: [],
|
|
|
|
loading: false
|
|
|
|
loading: false,
|
|
|
|
|
|
|
|
dispatchStatusClassMap: {
|
|
|
|
|
|
|
|
0: 'pending',
|
|
|
|
|
|
|
|
1: 'doing',
|
|
|
|
|
|
|
|
2: 'done'
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
@ -139,15 +144,6 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
return statusMap[status] || '未知状态';
|
|
|
|
return statusMap[status] || '未知状态';
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 获取派单状态样式类
|
|
|
|
|
|
|
|
dispatchStatusClass(status) {
|
|
|
|
|
|
|
|
const classMap = {
|
|
|
|
|
|
|
|
0: 'pending',
|
|
|
|
|
|
|
|
1: 'doing',
|
|
|
|
|
|
|
|
2: 'done'
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
return classMap[status] || '';
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 关闭弹窗
|
|
|
|
// 关闭弹窗
|
|
|
|
close() {
|
|
|
|
close() {
|
|
|
|
this.$emit('update:visible', false);
|
|
|
|
this.$emit('update:visible', false);
|
|
|
|
|