Browse Source

工作负责人历史记录

wuhb 4 tháng trước cách đây
mục cha
commit
3669064bec

+ 16 - 0
api/user/list.uts

@@ -20,6 +20,22 @@ export const getUserList = (deptId: any): Promise<any> => {
     })
 }
 
+/**
+ * 获取用户列表
+ */
+export const getLeaderList = (deptId: any): Promise<any> => {
+	let url = `/gxt/leader/listLeader?status=0`
+	if (deptId != null ) {
+	    // 支持工单编码和风机编号查询
+	    url += `&deptId=${deptId}`
+	}
+
+    return request({
+        url: url,
+        method: 'GET'
+    })
+}
+
 // /**
 //  * 获取所有用户列表(用于负责人选择)
 //  */

+ 2 - 2
pages/order/detail/acceptIndex.uvue

@@ -180,7 +180,7 @@
     import { getOrderInfoById, getRepairOrderInfoById, acceptOrder } from '../../../api/order/detail'
 	import type { SysDictData } from '../../../types/dict'
 	import { getDictDataByType } from '../../../api/dict/index'
-	import { getUserList } from '../../../api/user/list'
+	import { getLeaderList } from '../../../api/user/list'
 	import type { UserInfo } from '../../../types/user'
 	import {checkPermi} from '../../../utils/storage'
 
@@ -241,7 +241,7 @@
 	const loadTeamLeaderList = async (): Promise<void> => {
 	    try {
 			const deptId = detailData.value.gxtCenterId
-	        const result = await getUserList(-1)
+	        const result = await getLeaderList(-1)
 	        const resultObj = result as UTSJSONObject
 
 	        if (resultObj['code'] == 200) {

+ 2 - 2
pages/order/detail/approveIndex.uvue

@@ -135,7 +135,7 @@
     import { getOrderInfoById, getRepairOrderInfoById, approveOrder } from '../../../api/order/detail'
 	import type { SysDictData } from '../../../types/dict'
 	import { getDictDataByType } from '../../../api/dict/index'
-	import { getUserList } from '../../../api/user/list'
+	import { getLeaderList } from '../../../api/user/list'
 	import type { UserInfo } from '../../../types/user'
 	import {checkPermi} from '../../../utils/storage'
 
@@ -195,7 +195,7 @@
 	const loadTeamLeaderList = async (): Promise<void> => {
 	    try {
 			const deptId = detailData.value.gxtCenterId
-	        const result = await getUserList(deptId)
+	        const result = await getLeaderList(deptId)
 	        const resultObj = result as UTSJSONObject
 
 	        if (resultObj['code'] == 200) {

+ 0 - 1
pages/order/detail/resetIndex.uvue

@@ -127,7 +127,6 @@
     import { getOrderInfoById, getRepairOrderInfoById, resetAndStart } from '../../../api/order/detail'
 	import type { SysDictData } from '../../../types/dict'
 	import { getDictDataByType } from '../../../api/dict/index'
-	import { getUserList } from '../../../api/user/list'
 	import type { UserInfo } from '../../../types/user'
 	import {checkPermi} from '../../../utils/storage'
 

+ 2 - 2
pages/order/detail/resumeIndex.uvue

@@ -95,7 +95,7 @@
     import { getOrderInfoById, getRepairOrderInfoById, resumeOrder } from '../../../api/order/detail'
 	import type { SysDictData } from '../../../types/dict'
 	import { getDictDataByType } from '../../../api/dict/index'
-	import { getUserList } from '../../../api/user/list'
+	import { getLeaderList } from '../../../api/user/list'
 	import type { UserInfo } from '../../../types/user'
 	import {checkPermi} from '../../../utils/storage'
 
@@ -169,7 +169,7 @@
 	const loadTeamLeaderList = async (): Promise<void> => {
 	    try {
 			const deptId = detailData.value.gxtCenterId
-	        const result = await getUserList(deptId)
+	        const result = await getLeaderList(deptId)
 	        const resultObj = result as UTSJSONObject
 
 	        if (resultObj['code'] == 200) {

+ 0 - 1
pages/order/detail/returnIndex.uvue

@@ -142,7 +142,6 @@
     import { getOrderInfoById, getRepairOrderInfoById, returnRepairOrder } from '../../../api/order/detail'
 	import type { SysDictData } from '../../../types/dict'
 	import { getDictDataByType } from '../../../api/dict/index'
-	import { getUserList } from '../../../api/user/list'
 	import type { UserInfo } from '../../../types/user'
 	import {checkPermi} from '../../../utils/storage'
 

+ 0 - 1
pages/order/detail/suspendIndex.uvue

@@ -145,7 +145,6 @@
     import { getOrderInfoById, getRepairOrderInfoById, suspendOrder } from '../../../api/order/detail'
 	import type { SysDictData } from '../../../types/dict'
 	import { getDictDataByType } from '../../../api/dict/index'
-	import { getUserList } from '../../../api/user/list'
 	import type { UserInfo } from '../../../types/user'
 	import {checkPermi} from '../../../utils/storage'
 

+ 2 - 2
utils/request.uts

@@ -14,8 +14,8 @@ export type RequestConfig = {
 
 // 基础 URL
 // const BASE_URL = "http://192.168.110.105:8080";
-// const BASE_URL = "http://222.243.138.146:5095";
-const BASE_URL = "http://10.170.129.135:8089";
+const BASE_URL = "http://222.243.138.146:5095";
+// const BASE_URL = "http://10.170.129.135:8089";
 
 /**
  * 获取基础 URL