65 lines
1.9 KiB
JavaScript
65 lines
1.9 KiB
JavaScript
/**
|
|
* @Description: 工单API
|
|
* @Author: Zy
|
|
* @Date: 2026-05-19 16:29:20
|
|
* @LastEditor: Zy
|
|
* @LastEditTime: 2026-05-19 17:15:09
|
|
*/
|
|
import request, {
|
|
get,
|
|
filterParams,
|
|
post
|
|
} from './request.js'
|
|
|
|
|
|
|
|
/**
|
|
* @typedef myOrderListType 个人维修工单列表
|
|
* @property {String} id = [工单ID]
|
|
* @property {String} houseId = [维修房屋ID]
|
|
* @property {String} maintenanceItemId = [维修项目ID]
|
|
* @property {String} maintenanceItemName = [维修项目名称]
|
|
* @property {String} problem = [报修描述]
|
|
* @property {String} residentId = [报修用户ID]
|
|
* @property {String} residentName = [报修用户名称]
|
|
* @property {String} phone = [报修用户 联系方式]
|
|
* @property {String} orderDate = [工单日期]
|
|
* @property {String} problemImageUrl = [报修图片]
|
|
* @property {String} problemStatus = [报修状态]
|
|
* @property {String} repairDes = [维修描述]
|
|
* @property {String} repairImageUrl = [维修描述]
|
|
* @property {String} repairId = [维修ID]
|
|
* @property {String} repairName = [维修人员名称]
|
|
* @property {String} houseName = [维修房屋地址]
|
|
* @property {String} item = []
|
|
* @property {String} projectType = [报修项目类型]
|
|
* @property {String} projectTypeStr = [报修 项目 名称]
|
|
* @property {String} repairIsCheck = [维修人员 已读]
|
|
* @property {String} manageIsCheck = [管理人员 已读]
|
|
* @property {String} isCheckStr = [状态已读]
|
|
*/
|
|
/**
|
|
* @description: 获取我的维修工单
|
|
* @param {RequestParams<{
|
|
itemType?: 0 | 1
|
|
problemStatus:1|2
|
|
}>} data
|
|
* @return { Promise<RowsResult<myOrderListType>>}
|
|
*/
|
|
export function getUserTicketlist(data) {
|
|
return get(`/manage/repair/order/myorderlist`, filterParams(data))
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* @description: 获取工单详细信息 by id
|
|
* @param {string} id
|
|
* @return
|
|
*/
|
|
export function getTicketMainById(id) {
|
|
return get('/manage/repair/order/orderdetail', data)
|
|
}
|