| | |
| | | <view class="flex justify-between items-center"> |
| | | <view class="flex items-center menu-title-box"> |
| | | <view class="menu-indicator"></view> |
| | | <text class="ml-1 text-xs">{{ item.code }}</text> |
| | | <text class="ml-1 text-sm">{{ item.code }}</text> |
| | | </view> |
| | | |
| | | <view> |
| | |
| | | <text>报修人: {{ item.reqUserName }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="text-color-gray text-xs mt-1"> |
| | | <view class="text-color-gray text-sm mt-1"> |
| | | {{ item.location }} {{ item.madeIn }} |
| | | </view> |
| | | </view> |
| | | <view v-if="isSelectReq"> |
| | | <wd-button size="small" icon="edit-outline" @click.stop="handleSelectReq(item)"> |
| | | 选中 |
| | | 接单 |
| | | </wd-button> |
| | | </view> |
| | | </view> |
| | |
| | | * @param item |
| | | */ |
| | | function handleSelectReq(item: any) { |
| | | if (isSelectReq.value) { |
| | | emitSelectReq(item) |
| | | uni.navigateBack() |
| | | } |
| | | // 弹出确认是否接单弹窗 |
| | | message.confirm({ |
| | | msg: '确定接单?', |
| | | title: '提示', |
| | | beforeConfirm: ({ resolve }) => { |
| | | resolve(true) |
| | | // 接单逻辑处理 |
| | | if (isSelectReq.value) { |
| | | emitSelectReq(item) |
| | | uni.navigateBack() |
| | | } |
| | | }, |
| | | }) |
| | | } |
| | | |
| | | /** |