feat: 移除操作区域代码

This commit is contained in:
duanshuwen
2025-07-30 11:57:25 +08:00
parent 27ea45145b
commit 6831004189
3 changed files with 0 additions and 58 deletions

View File

@@ -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">