车间能级提升-智能设备管理系统
eims-ui-mobile/src/pages/maint/order-detail.vue
@@ -17,7 +17,7 @@
      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>
@@ -61,7 +61,6 @@
        />
        <wd-cell title="保养图片" title-width="200rpx" prop="fileList">
          <wd-upload
            :auto-upload="false"
            :file-list="fileList"
            @change="handleFileChange"
          ></wd-upload>
@@ -94,7 +93,7 @@
      <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" />
@@ -110,7 +109,7 @@
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()
@@ -133,6 +132,7 @@
  endTime?: string
  maintDesc: string
  remark: string
  picture: string
}
const order = reactive<MaintOrder>({
@@ -238,7 +238,7 @@
        toast.warning('当前工单完成状态,不可操作')
        break
    }
  } else if (isOperatorOrRepair()) {
  } else if (isLineOrRepair()) {
    switch (order.status) {
      case '0':
        break