Jelajahi Sumber

维修工单退回

HD_wangm 5 bulan lalu
induk
melakukan
c27c4a555c
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      ygtx-ui/src/views/gxt/repairOrder/index.vue

+ 2 - 2
ygtx-ui/src/views/gxt/repairOrder/index.vue

@@ -277,7 +277,7 @@
               v-hasPermi="['gxt:repairOrder:suspend']"
           ><i class="fa fa-stop"></i>挂起</el-button>
           <el-button
-              v-if="scope.row.workOrderStatus === 'to_finish'"
+              v-if="scope.row.workOrderStatus === 'to_finish'&& (scope.row.acceptUserId == userStore.id || userStore.roles.includes('admin'))"
               type="warning"
               link
               @click="handleReturn(scope.row)"
@@ -3020,7 +3020,7 @@ function handleApprove(row) {
   })
 }
 
-/** 审批挂起 */
+/** 退回 */
 function handleReturn(row) {
   getRepairOrder(row.id).then(response => {
     returnForm.value = response.data