feat: 移除操作区域代码
This commit is contained in:
@@ -25,11 +25,6 @@
|
||||
|
||||
<!-- 卡片内容 -->
|
||||
<OrderCardContent :order-data="orderData" />
|
||||
|
||||
<!-- 操作区域 -->
|
||||
<view v-if="shouldShowActionArea()" class="action-area">
|
||||
<button class="action-btn" @click.stop="handleCall">立即呼叫</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -83,14 +78,6 @@ const getStatusIcon = () => {
|
||||
return ICON_MAP[props.orderData.orderType] || serviceIcon;
|
||||
};
|
||||
|
||||
// 判断是否显示操作区域
|
||||
const shouldShowActionArea = () => {
|
||||
// 工单情况:orderType 为 undefined,且 workOrderStatus = 0 时显示
|
||||
if (props.orderData.orderType === undefined) {
|
||||
return props.orderData.workOrderStatus === "0";
|
||||
}
|
||||
};
|
||||
|
||||
// 获取状态文本
|
||||
const getStatusText = (status) => {
|
||||
// 工单情况:orderType 为 undefined
|
||||
@@ -121,16 +108,6 @@ const getStatusText = (status) => {
|
||||
const handleCardClick = () => {
|
||||
emit("click", props.orderData);
|
||||
};
|
||||
|
||||
// 处理呼叫
|
||||
const handleCall = () => {
|
||||
emit("call", props.orderData);
|
||||
};
|
||||
|
||||
// 暴露方法
|
||||
defineExpose({
|
||||
getStatusText,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user