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