|
|
@@ -1355,8 +1355,8 @@ import {
|
|
|
} from "@/api/gxt/repairOrder";
|
|
|
import { listDept,getDept } from "@/api/system/dept";
|
|
|
import { listFaultCodes } from "@/api/gxt/faultCodes"
|
|
|
-import { listGxtOrder } from "@/api/gxt/gxtOrder";
|
|
|
-import { listUser } from "@/api/system/user";
|
|
|
+/*import { listGxtOrder } from "@/api/gxt/gxtOrder";*/
|
|
|
+import { listUser,listUserNoPermi } from "@/api/system/user";
|
|
|
import EquipmentSelectSingle from "@/components/equipmentSelect/single.vue"
|
|
|
import { ElMessage, ElMessageBox, ElNotification, ElLoading } from 'element-plus'
|
|
|
import { listMaintenanceCenters, listStationsByMaintenanceCenter } from "@/api/gxt/equipment"
|
|
|
@@ -2027,7 +2027,7 @@ function handleRelatedOrderChange() {
|
|
|
}
|
|
|
|
|
|
/** 搜索维保工单 */
|
|
|
-function searchWorkOrders(query) {
|
|
|
+/*function searchWorkOrders(query) {
|
|
|
if (!query) {
|
|
|
workOrderOptions.value = []
|
|
|
return
|
|
|
@@ -2041,7 +2041,7 @@ function searchWorkOrders(query) {
|
|
|
workOrderSearchLoading.value = false
|
|
|
workOrderOptions.value = []
|
|
|
})
|
|
|
-}
|
|
|
+}*/
|
|
|
|
|
|
/** 选择维保工单 */
|
|
|
function handleWorkOrderChange(val) {
|
|
|
@@ -2086,11 +2086,15 @@ function handleAccept(row) {
|
|
|
acceptForm.value.pcsStationPid = response.data.pcsStationPid
|
|
|
// 根据场站ID查询该场站的用户列表
|
|
|
if (acceptForm.value.pcsStationPid) {
|
|
|
- listUser({ pageNum: 1, pageSize: 100, deptId: acceptForm.value.pcsStationPid }).then(response => {
|
|
|
+ /*listUser({ pageNum: 1, pageSize: 100, deptId: acceptForm.value.pcsStationPid }).then(response => {
|
|
|
userList.value = response.rows
|
|
|
acceptDialogVisible.value = true
|
|
|
+ })*/
|
|
|
+ listUserNoPermi({ deptId: acceptForm.value.pcsStationPid }).then(response => {
|
|
|
+ userList.value = response.data
|
|
|
+ acceptDialogVisible.value = true
|
|
|
})
|
|
|
- }else if (acceptForm.value.pcsStationId) {
|
|
|
+ }/*else if (acceptForm.value.pcsStationId) {
|
|
|
// 先获取部门信息,判断level是否为4,如果是则查找其父部门直到level为3
|
|
|
getDeptAndUserByLevel(acceptForm.value.pcsStationId).then(deptId => {
|
|
|
// 确保 deptId 是有效的再调用 listUser
|
|
|
@@ -2105,7 +2109,7 @@ function handleAccept(row) {
|
|
|
acceptDialogVisible.value = true
|
|
|
}
|
|
|
})
|
|
|
- } else {
|
|
|
+ }*/ else {
|
|
|
proxy.$modal.msgWarning("未找到有效的部门信息,无法加载用户列表");
|
|
|
acceptDialogVisible.value = true
|
|
|
}
|