| | |
| | | :contactPhoneNumber="contactPhoneNumber" |
| | | > |
| | | <template #actions> |
| | | <template v-if="OrderUtils.isContainCheckIn(checkReceiveMethods)"> |
| | | <!-- <nut-button |
| | | v-if="!checkInTime" |
| | | type="primary" |
| | | class="task-check-card-phone-btn" |
| | | @click.stop="emit('checkInOrOut', CheckInOrOutEventEnum.CheckIn)" |
| | | >签到</nut-button |
| | | > |
| | | <nut-button |
| | | v-else-if="!checkOutTime" |
| | | type="primary" |
| | | class="task-check-card-phone-btn" |
| | | @click.stop="emit('checkInOrOut', CheckInOrOutEventEnum.CheckOut)" |
| | | >签出</nut-button |
| | | > |
| | | <div v-else class="task-check-card-phone-status" :style="{ color: Colors.Success }"> |
| | | {{ EnumTaskCheckReceiveStatusText[checkReceiveStatus] }} |
| | | </div> --> |
| | | <template |
| | | v-if="props.submitCheckReceiveStatus !== EnumTaskUserSubmitCheckReceiveStatus.Fail" |
| | | > |
| | | <nut-button |
| | | v-if="!checkInTime || !checkOutTime" |
| | | type="primary" |
| | | class="task-check-card-phone-btn" |
| | | @click.stop="handleMore" |
| | | >操作</nut-button |
| | | > |
| | | <div v-else class="task-check-card-phone-status" :style="{ color: Colors.Success }"> |
| | | {{ EnumTaskCheckReceiveStatusText[checkReceiveStatus] }} |
| | | </div> |
| | | </template> |
| | | </template> |
| | | <template v-else> |
| | | <nut-button |
| | | v-if="checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive" |
| | | type="primary" |
| | | class="task-check-card-phone-btn" |
| | | >验收</nut-button |
| | | > |
| | | <div v-else class="task-check-card-phone-status" :style="{ color: Colors.Success }"> |
| | | {{ EnumTaskCheckReceiveStatusText[checkReceiveStatus] }} |
| | | </div> |
| | | </template> |
| | | <div |
| | | class="task-check-card-phone-status" |
| | | :style="{ color: EnumTaskCheckReceiveStatusColor[checkReceiveStatus] }" |
| | | > |
| | | {{ EnumTaskCheckReceiveStatusText[checkReceiveStatus] }} |
| | | </div> |
| | | </template> |
| | | </TaskCheckPersonalView> |
| | | </div> |
| | |
| | | EnumTaskCheckReceiveMethod, |
| | | EnumGetCheckReceiveTasksQueryResultItemCheckStatus, |
| | | EnumTaskUserSubmitCheckReceiveStatus, |
| | | EnumTaskCheckReceiveStatusColor, |
| | | } from '@12333/constants'; |
| | | import { TaskCheckPersonalView } from '@12333/components'; |
| | | import { CheckInOrOutEventEnum } from '../constants'; |
| | |
| | | |
| | | const menuList = computed(() => { |
| | | let _menuList = []; |
| | | if (props.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn) { |
| | | // if (props.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn) { |
| | | _menuList.push({ |
| | | name: '未到岗', |
| | | value: ManageActions.OutWork, |
| | | }); |
| | | if (!props.checkInTime) { |
| | | _menuList.push({ |
| | | name: '未到岗', |
| | | value: ManageActions.OutWork, |
| | | name: '签到', |
| | | value: ManageActions.CheckIn, |
| | | }); |
| | | if (!props.checkInTime) { |
| | | _menuList.push({ |
| | | name: '签到', |
| | | value: ManageActions.CheckIn, |
| | | }); |
| | | } else if (!props.checkOutTime) { |
| | | _menuList.push({ |
| | | name: '签出', |
| | | value: ManageActions.CheckOut, |
| | | }); |
| | | } |
| | | } else if (!props.checkOutTime) { |
| | | _menuList.push({ |
| | | name: '签出', |
| | | value: ManageActions.CheckOut, |
| | | }); |
| | | } |
| | | // } |
| | | |
| | | return _menuList; |
| | | }); |