| | |
| | | safeAreaInsetTop |
| | | > |
| | | <template #right> |
| | | <text v-if="isOperatorOrRepair()" class="text-white">提交</text> |
| | | <text v-if="isLineOrRepair()" class="text-white">提交</text> |
| | | <text v-else-if="isLeader()" class="text-white">验证</text> |
| | | </template> |
| | | </wd-navbar> |
| | |
| | | <wd-cell |
| | | title="保养完成(操作工)" |
| | | title-width="200px" |
| | | v-if="order.status === '1' && isOperatorOrRepair()" |
| | | v-if="order.status === '1' && isLineOrRepair()" |
| | | > |
| | | <view style="text-align: right"> |
| | | <wd-switch v-model="isFinish" /> |
| | |
| | | import { reactive, onMounted } from 'vue' |
| | | import { FormRules } from 'wot-design-uni/components/wd-form/types' |
| | | import { useToast, useMessage } from 'wot-design-uni' |
| | | import { isLeader, isOperatorOrRepair } from '@/utils/RoleUtils' |
| | | import { isLeader, isLineOrRepair } from '@/utils/RoleUtils' |
| | | const toast = useToast() |
| | | const message = useMessage() |
| | | |
| | |
| | | toast.warning('当前工单完成状态,不可操作') |
| | | break |
| | | } |
| | | } else if (isOperatorOrRepair()) { |
| | | } else if (isLineOrRepair()) { |
| | | switch (order.status) { |
| | | case '0': |
| | | break |