290 lines
5.7 KiB
JavaScript
290 lines
5.7 KiB
JavaScript
|
|
import request from '@/utils/request';
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @data 查询 变电站列表-下拉
|
||
|
|
*/
|
||
|
|
export function substationListAPI(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_app_manage/substation/list',
|
||
|
|
method: 'get',
|
||
|
|
params: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @data 查询 定值单下拉
|
||
|
|
*/
|
||
|
|
export function protectionOrderListAPI(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_app_manage/protectionOrder/list',
|
||
|
|
method: 'get',
|
||
|
|
params: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// ---------识别记录------------
|
||
|
|
// 查询 定值单列表
|
||
|
|
export function protectionOrderPageAPI(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_manage/protectionOrder/list',
|
||
|
|
method: 'get',
|
||
|
|
params: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 查询 定值单识别详情
|
||
|
|
export function getProdectionInfoByIdApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_manage/protectionOrder/detail',
|
||
|
|
method: 'get',
|
||
|
|
params: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 查询 装置识别记录列表
|
||
|
|
export function protectionCheckOrderPageAPI(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_manage/protectionCheckOrder/list',
|
||
|
|
method: 'get',
|
||
|
|
params: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 查询 装置识别记录详情
|
||
|
|
export function getProdectionCheckInfoByIdApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_manage/protectionCheckOrder/detail',
|
||
|
|
method: 'get',
|
||
|
|
params: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
// /**
|
||
|
|
// * @data 识别解析定值单-传拍摄的图片上传后的路径
|
||
|
|
// */
|
||
|
|
export function editProtectionOrderApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_manage/protectionOrder/edit',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
//屏幕图片识别
|
||
|
|
export function protectionAnalysisCheckApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_manage/protectionAnalysis/check',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//屏幕图片识别结果
|
||
|
|
//参数protectionId analysisId subId 结果:当前图片识别结果
|
||
|
|
//参数protectionId analysisId 结果:当次识别所有结果
|
||
|
|
export function protectionAnalysisCheckResultApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_app_manage/protectionAnalysis/checkResultNoUp',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//屏幕图片识别结果确认
|
||
|
|
export function confirmAnalysisResultApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_app_manage/protectionAnalysis/confirm',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
//整次识别结果确认
|
||
|
|
export function confirmAnalysisApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/protection/protection_app_manage/protectionAnalysis/confirmCheck',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// /**
|
||
|
|
// * @data 查询参数 获取钱包余额
|
||
|
|
// */
|
||
|
|
// export function getWalletBalanceAPI(data) {
|
||
|
|
// return request({
|
||
|
|
// url: '/smart-canteen/acc_info/wallet/balance',
|
||
|
|
// method: 'post',
|
||
|
|
// data
|
||
|
|
// })
|
||
|
|
// }
|
||
|
|
|
||
|
|
|
||
|
|
// /**
|
||
|
|
// * @data 查询参数 获取评价列表
|
||
|
|
// */
|
||
|
|
// export function canteenEvaluateListAPI(data) {
|
||
|
|
// return request({
|
||
|
|
// url: '/smart-canteen/basic_canteen_evaluate/list',
|
||
|
|
// method: 'get',
|
||
|
|
// params: data
|
||
|
|
// })
|
||
|
|
// }
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @data 用户获取通知消息列表
|
||
|
|
*/
|
||
|
|
export function updateDetailInfoCasualForAppApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/custCasual/updateDetailInfoCasualForApp',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @data 用户获取通知消息列表
|
||
|
|
*/
|
||
|
|
export function queryUserInformApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/system/notice/list',
|
||
|
|
method: 'get',
|
||
|
|
params:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @data 获取未读消息数量
|
||
|
|
*/
|
||
|
|
export function queryUnreadInformNumApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v2/applet/inform/queryUnreadInformNum',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @data 修改通知状态
|
||
|
|
*/
|
||
|
|
export function updateNoticeStatusApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v2/applet/inform/updateStatus',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @data 查询人脸照片地址和状态
|
||
|
|
*/
|
||
|
|
export function queryFacePhotoApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v4/app/custInfo/queryFacePhoto',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @data 小程序保存人脸图片
|
||
|
|
*/
|
||
|
|
export function uploadPhotoGenCodeForAppApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/userFace/uploadUserFace',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @data 移动端卡片管理 - web端卡片管理
|
||
|
|
*/
|
||
|
|
export function getCardListApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/acc_card/list',
|
||
|
|
method: 'get',
|
||
|
|
params:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @data 移动端卡片管理 - 挂失
|
||
|
|
*/
|
||
|
|
export function lossCardApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/acc_card/loss',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @data 移动端卡片管理 - 解挂
|
||
|
|
*/
|
||
|
|
export function cancelLossCardApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/acc_card/relieve',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
//获取食堂列表
|
||
|
|
export function getAllCanteenStallApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/basic_canteen/listAll',
|
||
|
|
method: 'get',
|
||
|
|
params:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通过食堂查询档口
|
||
|
|
export function getStallByCanteenApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/basic_stall/listAll',
|
||
|
|
method: 'get',
|
||
|
|
params:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// 评价及投诉建议
|
||
|
|
//投诉建议(提交)
|
||
|
|
export function postCanteenPlaintApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/basic_canteen_suggestion',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
//投诉建议(历史记录)
|
||
|
|
export function getqueryPlaintApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/basic_canteen_suggestion/list',
|
||
|
|
method: 'get',
|
||
|
|
params:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
//重新绑定手机号
|
||
|
|
export function rebindMobileApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/custInfo/rebind/mobile',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|