删除
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/consume/downRecord'
|
||||
|
||||
export interface DownRecordResp {
|
||||
id: string
|
||||
equipmentId: string
|
||||
gh: string
|
||||
peopleName: string
|
||||
equipmentName: string
|
||||
peopleId: string
|
||||
downTime: string
|
||||
downResult: number
|
||||
operType: number
|
||||
createTime: string
|
||||
msg: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface DownRecordQuery {
|
||||
equipmentId: number | undefined
|
||||
peopleName: string | undefined
|
||||
startTime: string | undefined
|
||||
endTime: string | undefined
|
||||
downResult: number | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
type Long = number
|
||||
export interface DownRecordPageQuery extends DownRecordQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询设备下发记录列表 */
|
||||
export function listDownRecord(query: DownRecordPageQuery) {
|
||||
return http.get<PageRes<DownRecordResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 导出设备下发记录 */
|
||||
export function exportDownRecord(query: DownRecordQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
|
||||
/** @desc 重新下发(仅支持单个下发,传入设备ID+人员ID+规则ID) */
|
||||
export function downSinglePeople(equipmentId: Long, peopleId: Long) {
|
||||
return http.patch(`${BASE_URL}/down/${equipmentId}/${peopleId}`)
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
import type { LabelValueState } from '@/types/global'
|
||||
|
||||
const BASE_URL = '/consume/group'
|
||||
|
||||
export interface GroupResp {
|
||||
id: number
|
||||
groupName: string
|
||||
money: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateBy: string
|
||||
updateTime: string
|
||||
branchId: string
|
||||
subsidyDate: string
|
||||
timedConsumption: number
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
peopleSelect: Array<LabelValueState>
|
||||
peopleIds: Array<number>
|
||||
}
|
||||
export interface GroupQuery {
|
||||
groupName?: string
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface GroupPageQuery extends GroupQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询消费组列表 */
|
||||
export function listGroup(query: GroupPageQuery) {
|
||||
return http.get<PageRes<GroupResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询消费组详情 */
|
||||
export function getGroup(id: number) {
|
||||
return http.get<GroupResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增消费组 */
|
||||
export function addGroup(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改消费组 */
|
||||
export function updateGroup(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除消费组 */
|
||||
export function deleteGroup(id: number) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出消费组 */
|
||||
export function exportGroup(query: GroupQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/admin/rechargeRecord'
|
||||
|
||||
export interface RechargeRecordResp {
|
||||
id: string
|
||||
accountId: string
|
||||
accountName: string
|
||||
adminRecharge: string
|
||||
base64: string
|
||||
consumeMoney: string
|
||||
discountMoney: string
|
||||
clearCzje: string
|
||||
clearBtje: string
|
||||
empId: string
|
||||
startTime: string
|
||||
endTime: string
|
||||
orderType: string
|
||||
outTradeId: string
|
||||
payMode: string
|
||||
resultCode: string
|
||||
ver: string
|
||||
createUser: string
|
||||
createTime: string
|
||||
updateUser: string
|
||||
updateTime: string
|
||||
rechargeMode: number
|
||||
rechargeWay: number
|
||||
rechargeType: number
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface RechargeRecordQuery {
|
||||
empId: string | undefined
|
||||
accountName: string | undefined
|
||||
startTime: string | undefined
|
||||
endTime: string | undefined
|
||||
rechargeType: string | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface RechargeRecordPageQuery extends RechargeRecordQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询充值记录列表 */
|
||||
export function listRechargeRecord(query: RechargeRecordPageQuery) {
|
||||
return http.get<PageRes<RechargeRecordResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询充值记录详情 */
|
||||
export function getRechargeRecord(id: string) {
|
||||
return http.get<RechargeRecordResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增充值记录 */
|
||||
export function addRechargeRecord(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改充值记录 */
|
||||
export function updateRechargeRecord(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除充值记录 */
|
||||
export function deleteRechargeRecord(id: string | Array<string>) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出充值记录 */
|
||||
export function exportRechargeRecord(query: RechargeRecordQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,74 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/consume/record'
|
||||
|
||||
export interface RecordResp {
|
||||
id: string
|
||||
ver: number
|
||||
empId: string
|
||||
accountId: string
|
||||
base64: string
|
||||
consumeType: number
|
||||
consumeMoney: number
|
||||
subsidyMoney: number
|
||||
rechargeMoney: number
|
||||
btje: number
|
||||
czje: number
|
||||
discountMoney: number
|
||||
outTradeId: string
|
||||
startTime: string
|
||||
endTime: string
|
||||
resultCode: number
|
||||
payMode: number
|
||||
orderType: number
|
||||
walletConsumeMode: number
|
||||
likeId: string
|
||||
cardSn: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateBy: string
|
||||
updateTime: string
|
||||
startDate: string
|
||||
endDate: string
|
||||
consumeResult: number
|
||||
remark: string
|
||||
devId: string
|
||||
timeId: string
|
||||
buyerId: string
|
||||
openid: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface RecordQuery {
|
||||
accountName: string | undefined
|
||||
empId: string | undefined
|
||||
outTradeId: string | undefined
|
||||
startDate: string | undefined
|
||||
endDate: string | undefined
|
||||
resultCode: string | undefined
|
||||
payMode: string | undefined
|
||||
devId: string | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface RecordPageQuery extends RecordQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询消费记录列表 */
|
||||
export function listRecord(query: RecordPageQuery) {
|
||||
return http.get<PageRes<RecordResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询消费记录详情 */
|
||||
export function getRecord(id: string) {
|
||||
return http.get<RecordResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 删除消费记录 */
|
||||
export function deleteRecord(ids: string | Array<string>) {
|
||||
return http.del(`${BASE_URL}/${ids}`)
|
||||
}
|
||||
|
||||
/** @desc 导出消费记录 */
|
||||
export function exportRecord(query: RecordQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,88 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
import type {RecordQuery} from "@/apis/consume/record";
|
||||
|
||||
const BASE_URL = '/consume/report'
|
||||
|
||||
export interface ReportResp {
|
||||
totalCount: number
|
||||
totalAmount: string
|
||||
unitPriceCount: number
|
||||
unitPriceAmount: string
|
||||
fixedValueCount: number
|
||||
fixedValueAmount: string
|
||||
countingCount: number
|
||||
countingAmount: string
|
||||
qrcodeCount: number
|
||||
qrcodeAmount: string
|
||||
}
|
||||
|
||||
export interface MerchantResp extends ReportResp {
|
||||
merchant: string
|
||||
equipmentName: string
|
||||
}
|
||||
|
||||
export interface MealResp extends ReportResp {
|
||||
merchant: string
|
||||
equipmentName: string
|
||||
tmrtype: string
|
||||
}
|
||||
|
||||
export interface BranchResp extends ReportResp {
|
||||
branchName: string
|
||||
}
|
||||
|
||||
export interface PeopleResp extends ReportResp {
|
||||
peopleName: string
|
||||
gh: string
|
||||
branchName: string
|
||||
}
|
||||
|
||||
export interface ReportQuery {
|
||||
createTime?: string[]
|
||||
tmrtype?: number
|
||||
branchId?: string
|
||||
peopleName?: string
|
||||
gh?: string
|
||||
}
|
||||
|
||||
export interface ReportPageQuery extends ReportQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询商户报表 */
|
||||
export function listMerchant(query: ReportQuery) {
|
||||
return http.get<MerchantResp[]>(`${BASE_URL}/merchant`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询餐段报表 */
|
||||
export function listMeal(query: ReportQuery) {
|
||||
return http.get<MealResp[]>(`${BASE_URL}/meal`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询部门报表 */
|
||||
export function listBranch(query: ReportQuery) {
|
||||
return http.get<BranchResp[]>(`${BASE_URL}/branch`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询个人报表 */
|
||||
export function listPeople(query: ReportPageQuery) {
|
||||
return http.get<PeopleResp[]>(`${BASE_URL}/people`, query)
|
||||
}
|
||||
|
||||
/** @desc 导出商户报表 */
|
||||
export function exportMerchant(query: ReportQuery) {
|
||||
return http.download(`${BASE_URL}/exportMerchant`, query)
|
||||
}
|
||||
|
||||
/** @desc 导出餐段报表 */
|
||||
export function exportMeal(query: ReportQuery) {
|
||||
return http.download(`${BASE_URL}/exportMeal`, query)
|
||||
}
|
||||
|
||||
/** @desc 导出部门报表 */
|
||||
export function exportBranch(query: ReportQuery) {
|
||||
return http.download(`${BASE_URL}/exportBranch`, query)
|
||||
}
|
||||
|
||||
/** @desc 导出个人报表 */
|
||||
export function exportPeople(query: ReportQuery) {
|
||||
return http.download(`${BASE_URL}/exportPeople`, query)
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/consume/tenant'
|
||||
|
||||
export interface TenantResp {
|
||||
id: string
|
||||
name: string
|
||||
type: number
|
||||
zfbAppId: string
|
||||
zfbSysServiceProviderId: string
|
||||
zfbRsaPrivateKey: string
|
||||
zfbStop: string
|
||||
zfbMode: string
|
||||
wxAppid: string
|
||||
wxMchId: string
|
||||
wxSubMchId: string
|
||||
wxKey: string
|
||||
wxStop: string
|
||||
wxMode: string
|
||||
paramId: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateBy: string
|
||||
updateTime: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface TenantQuery {
|
||||
name?: string
|
||||
type?: number
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface TenantPageQuery extends TenantQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询商户信息列表 */
|
||||
export function listTenant(query: TenantPageQuery) {
|
||||
return http.get<PageRes<TenantResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询商户信息详情 */
|
||||
export function getTenant(id: string) {
|
||||
return http.get<TenantResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增商户信息 */
|
||||
export function addTenant(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改商户信息 */
|
||||
export function updateTenant(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除商户信息 */
|
||||
export function deleteTenant(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出商户信息 */
|
||||
export function exportTenant(query: TenantQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/consume/timeInterval'
|
||||
|
||||
export interface TimeIntervalResp {
|
||||
id: string
|
||||
startTime: string
|
||||
endTime: string
|
||||
useMode: string
|
||||
tmrtype: string
|
||||
mark: string
|
||||
level: string
|
||||
maxcount: string
|
||||
fixmoney: string
|
||||
consumeType: string
|
||||
paramId: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateBy: string
|
||||
updateTime: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface TimeIntervalQuery {
|
||||
useMode?: number
|
||||
consumeType?: number
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface TimeIntervalPageQuery extends TimeIntervalQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询消费时段列表 */
|
||||
export function listTimeInterval(query: TimeIntervalPageQuery) {
|
||||
return http.get<PageRes<TimeIntervalResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询消费时段详情 */
|
||||
export function getTimeInterval(id: string) {
|
||||
return http.get<TimeIntervalResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增消费时段 */
|
||||
export function addTimeInterval(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改消费时段 */
|
||||
export function updateTimeInterval(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除消费时段 */
|
||||
export function deleteTimeInterval(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出消费时段 */
|
||||
export function exportTimeInterval(query: TimeIntervalQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/sysDownRecord/record'
|
||||
|
||||
export interface DownRecordResp {
|
||||
id: string
|
||||
equipmentId: string
|
||||
gh: string
|
||||
peopleName: string
|
||||
equipmentName: string
|
||||
ruleName: string
|
||||
peopleId: string
|
||||
downTime: string
|
||||
ruleId: string
|
||||
downResult: number
|
||||
operType: number
|
||||
createTime: string
|
||||
msg: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface DownRecordQuery {
|
||||
equipmentId: number | undefined
|
||||
peopleName: string | undefined
|
||||
downTime: string | undefined
|
||||
downTimeStart: string | undefined
|
||||
downTimeEnd: string | undefined
|
||||
downResult: number | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
type Long = number
|
||||
export interface DownRecordPageQuery extends DownRecordQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询设备下发记录列表 */
|
||||
export function listDownRecord(query: DownRecordPageQuery) {
|
||||
return http.get<PageRes<DownRecordResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 导出设备下发记录 */
|
||||
export function exportDownRecord(query: DownRecordQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
|
||||
/** @desc 重新下发(仅支持单个下发,传入设备ID+人员ID+规则ID) */
|
||||
export function downSinglePeople(equipmentId: Long, peopleId: Long, ruleId: Long){
|
||||
return http.get(`${BASE_URL}/down/${equipmentId}/${peopleId}/${ruleId}`)
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/system/equipment'
|
||||
|
||||
export interface EquipmentResp {
|
||||
id: number
|
||||
productId: number
|
||||
productName: string
|
||||
avatar: string
|
||||
name: string
|
||||
sequence: string
|
||||
ip: string
|
||||
password: string
|
||||
remark: string
|
||||
createUser: string
|
||||
createTime: string
|
||||
updateUser: string
|
||||
updateTime: string
|
||||
state: string
|
||||
flag: string
|
||||
entryExitType: string
|
||||
backUrl: string
|
||||
}
|
||||
|
||||
export interface EquipmentQuery {
|
||||
name: string | undefined
|
||||
sequence: string | undefined
|
||||
productId: number | undefined
|
||||
flag: number | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
|
||||
/** @desc 查询设备列表 */
|
||||
export function pageEquipment(query: EquipmentQuery) {
|
||||
return http.get<PageRes<EquipmentResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 获取设备名称列表 */
|
||||
export function getEquipmentNameList(query: EquipmentQuery) {
|
||||
return http.get(`${BASE_URL}/getEquipmentNameList`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询设备信息详情 */
|
||||
export function getEquipment(id: string) {
|
||||
return http.get<EquipmentResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增设备信息 */
|
||||
export function addEquipment(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改设备信息 */
|
||||
export function updateEquipment(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除设备 */
|
||||
export function deleteEquipment(ids: string | Array<string>) {
|
||||
return http.del(`${BASE_URL}/${ids}`)
|
||||
}
|
||||
|
||||
/** @desc 导出设备信息 */
|
||||
export function exportEquipment(query: EquipmentQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,92 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/equipment/product'
|
||||
|
||||
export interface ProductResp {
|
||||
id: string
|
||||
avatar: string
|
||||
name: string
|
||||
version: string
|
||||
bigtype: string
|
||||
subtype: string
|
||||
genre: string
|
||||
describes: string
|
||||
network: string
|
||||
dataFormat: string
|
||||
scale: string
|
||||
attestation: string
|
||||
createUser: string
|
||||
createTime: string
|
||||
updateUser: string
|
||||
updateTime: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface ProductDetailResp {
|
||||
id: string
|
||||
avatar: string
|
||||
name: string
|
||||
version: string
|
||||
bigtype: string
|
||||
subtype: string
|
||||
genre: string
|
||||
describes: string
|
||||
network: string
|
||||
dataFormat: string
|
||||
scale: string
|
||||
attestation: string
|
||||
createUser: string
|
||||
createTime: string
|
||||
updateUser: string
|
||||
updateTime: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
}
|
||||
export interface ProductQuery {
|
||||
name: string | undefined
|
||||
genre: string | undefined
|
||||
version: string | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface ProductPageQuery extends ProductQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询产品信息列表 */
|
||||
export function listProduct(query: ProductPageQuery) {
|
||||
return http.get<PageRes<ProductResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 获取产品名称列表(下拉) */
|
||||
export function getProductNameList() {
|
||||
return http.get(`${BASE_URL}/getProductNameList`)
|
||||
}
|
||||
|
||||
/** @desc 查询产品信息详情 */
|
||||
export function getProduct(id: string) {
|
||||
return http.get<ProductDetailResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增产品信息 */
|
||||
export function addProduct(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改产品信息 */
|
||||
export function updateProduct(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除产品信息 */
|
||||
export function deleteProduct(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出产品信息 */
|
||||
export function exportProduct(query: ProductQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
|
||||
/** @desc 导出产品信息 */
|
||||
export function test(query: ProductQuery) {
|
||||
return http.download(`${BASE_URL}/test`, query)
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/rule/empowerRecord'
|
||||
|
||||
export interface EmpowerRecordResp {
|
||||
id: string
|
||||
name: string
|
||||
peopleId: string
|
||||
infoDown: string
|
||||
empower: string
|
||||
equipmentId: string
|
||||
status: string
|
||||
remark: string
|
||||
createUser: string
|
||||
createTime: string
|
||||
updateUser: string
|
||||
updateTime: string
|
||||
ruleId: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
peopleAvatar: string
|
||||
equipmentName: string
|
||||
entryExitType: string
|
||||
peopleName: string
|
||||
}
|
||||
export interface EmpowerRecordQuery {
|
||||
name?: string
|
||||
equipmentId?: string
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface EmpowerRecordPageQuery extends EmpowerRecordQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询授权记录列表 */
|
||||
export function listEmpowerRecord(query: EmpowerRecordPageQuery) {
|
||||
return http.get<PageRes<EmpowerRecordResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询授权记录详情 */
|
||||
export function getEmpowerRecord(id: string) {
|
||||
return http.get<EmpowerRecordResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增授权记录 */
|
||||
export function addEmpowerRecord(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改授权记录 */
|
||||
export function updateEmpowerRecord(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除授权记录 */
|
||||
export function deleteEmpowerRecord(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出授权记录 */
|
||||
export function exportEmpowerRecord(query: EmpowerRecordQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/rule/peopleRecord'
|
||||
|
||||
export interface PeopleRecordResp {
|
||||
id: string
|
||||
peopleId: string
|
||||
equipmentId: string
|
||||
deviceIp: string
|
||||
admitGuid: string
|
||||
recMode: string
|
||||
filePath: string
|
||||
showTime: string
|
||||
showDate: string
|
||||
aliveType: string
|
||||
recScore: string
|
||||
deviceNo: string
|
||||
deviceVersion: string
|
||||
source: string
|
||||
type: string
|
||||
cardNo: string
|
||||
deviceName: string
|
||||
recType: string
|
||||
result: string
|
||||
permissionTimeType: string
|
||||
passTimeType: string
|
||||
recModeType: string
|
||||
storageId: string
|
||||
timestamp: string
|
||||
admitName: string
|
||||
remark: string
|
||||
createUser: string
|
||||
createTime: string
|
||||
updateUser: string
|
||||
updateTime: string
|
||||
flag: string
|
||||
groupId: string
|
||||
sign: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface PeopleRecordQuery {
|
||||
name?: string
|
||||
equipmentId?: string
|
||||
showDateList?: Array<string>
|
||||
branchName?: string
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface PeopleRecordPageQuery extends PeopleRecordQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询人员识别记录列表 */
|
||||
export function listPeopleRecord(query: PeopleRecordPageQuery) {
|
||||
return http.get<PageRes<PeopleRecordResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 删除人员识别记录 */
|
||||
export function deletePeopleRecord(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出人员识别记录 */
|
||||
export function exportPeopleRecord(query: PeopleRecordQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/rule/rule'
|
||||
|
||||
export interface RuleResp {
|
||||
id: string
|
||||
name: string
|
||||
startTime: string
|
||||
endTime: string
|
||||
admittanceStart: string
|
||||
admittanceEnd: string
|
||||
spaceId: string
|
||||
pointId: string
|
||||
remark: string
|
||||
createUser: string
|
||||
createTime: string
|
||||
updateUser: string
|
||||
updateTime: string
|
||||
type: string
|
||||
permission: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
export interface RuleQuery {
|
||||
name: string | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface RulePageQuery extends RuleQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询通行规则列表 */
|
||||
export function pageRule(query: RulePageQuery) {
|
||||
return http.get<PageRes<RuleResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询通行规则详情 */
|
||||
export function getRule(id: string) {
|
||||
return http.get<RuleResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 查询通行规则下拉 */
|
||||
export function getRuleNameList() {
|
||||
return http.get(`${BASE_URL}/getRuleNameList`)
|
||||
}
|
||||
|
||||
/** @desc 新增通行规则 */
|
||||
export function addRule(data: any) {
|
||||
return http.post(`${BASE_URL}/add1`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改通行规则 */
|
||||
export function updateRule(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/update1/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除通行规则 */
|
||||
export function deleteRule(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出通行规则 */
|
||||
export function exportRule(query: RuleQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/space/point'
|
||||
|
||||
export interface PointResp {
|
||||
id: string
|
||||
name: string
|
||||
spaceId: string
|
||||
remark: string
|
||||
createUser: string
|
||||
createTime: string
|
||||
updateUser: string
|
||||
updateTime: string
|
||||
sort: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
}
|
||||
|
||||
export interface PointQuery {
|
||||
name: string | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface PointPageQuery extends PointQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询点位管理列表 */
|
||||
export function listPoint(query: PointPageQuery) {
|
||||
return http.get<PageRes<PointResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询点位管理详情 */
|
||||
export function getPoint(id: string) {
|
||||
return http.get<PointResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增点位管理 */
|
||||
export function addPoint(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改点位管理 */
|
||||
export function updatePoint(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除点位管理 */
|
||||
export function deletePoint(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出点位管理 */
|
||||
export function exportPoint(query: PointQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/space/space'
|
||||
|
||||
export interface SpaceResp {
|
||||
id: string
|
||||
name: string
|
||||
parentId: string
|
||||
ancestors: string
|
||||
type: string
|
||||
remark: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateBy: string
|
||||
updateTime: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
children: SpaceResp[]
|
||||
}
|
||||
|
||||
export interface SpaceQuery {
|
||||
name: string | undefined
|
||||
type: string | undefined
|
||||
}
|
||||
|
||||
/** @desc 查询空间管理列表 */
|
||||
export function listSpace(query: SpaceQuery) {
|
||||
return http.get<PageRes<SpaceResp[]>>(`${BASE_URL}/tree`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询空间管理详情 */
|
||||
export function getSpace(id: string) {
|
||||
return http.get<SpaceResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增空间管理 */
|
||||
export function addSpace(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改空间管理 */
|
||||
export function updateSpace(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除空间管理 */
|
||||
export function deleteSpace(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出空间管理 */
|
||||
export function exportSpace(query: SpaceQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/sysPeople/branch'
|
||||
|
||||
export interface BranchResp {
|
||||
id: string
|
||||
name: string
|
||||
leader: string
|
||||
phone: string
|
||||
parentId: string
|
||||
ancestors: string
|
||||
spaceId: string
|
||||
remark: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateBy: string
|
||||
updateTime: string
|
||||
deptId: string
|
||||
level: string
|
||||
deptCode: string
|
||||
ruleId: string
|
||||
ladderRuleId: string
|
||||
isExamine: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
children: BranchResp[]
|
||||
}
|
||||
export interface BranchQuery {
|
||||
name: string
|
||||
leader: string
|
||||
}
|
||||
|
||||
/** @desc 查询部门管理列表 */
|
||||
export function listBranch(query: BranchQuery) {
|
||||
return http.get<BranchResp[]>(`${BASE_URL}/tree`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询部门管理详情 */
|
||||
export function getBranch(id: string) {
|
||||
return http.get<BranchResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增部门管理 */
|
||||
export function addBranch(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改部门管理 */
|
||||
export function updateBranch(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除部门管理 */
|
||||
export function deleteBranch(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出部门管理 */
|
||||
export function exportBranch(query: BranchQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
@@ -1,170 +0,0 @@
|
||||
import http from '@/utils/http'
|
||||
import type {LabelValueState} from "@/types/global";
|
||||
|
||||
const BASE_URL = '/sysPeople/people'
|
||||
|
||||
export type * from '../system/type'
|
||||
|
||||
export interface PeopleResp {
|
||||
id: string
|
||||
name: string
|
||||
phone: string
|
||||
sex: number
|
||||
avatar: string
|
||||
branchId: number
|
||||
branchName: string
|
||||
position: string
|
||||
idcard: string
|
||||
carNo: string
|
||||
doorNo: string
|
||||
guid: string
|
||||
faceGuid: string
|
||||
userId: number
|
||||
userName: string
|
||||
remark: string
|
||||
createBy: string
|
||||
createTime: string
|
||||
updateBy: string
|
||||
updateTime: string
|
||||
gh: string
|
||||
fingerprint: string
|
||||
joinTime: string
|
||||
down: number
|
||||
delFlag: string
|
||||
openid: string
|
||||
createUserString: string
|
||||
updateUserString: string
|
||||
disabled: boolean
|
||||
xfFlag: string
|
||||
czje: string
|
||||
btje: string
|
||||
isConsume: number
|
||||
freeze: number
|
||||
xfje: string
|
||||
xfcs: string
|
||||
}
|
||||
|
||||
export interface PeopleDepositImportResp {
|
||||
importKey: string
|
||||
totalRows: number
|
||||
validRows: number
|
||||
duplicateUserRows: number
|
||||
unEnabledRows: number
|
||||
}
|
||||
|
||||
type Long = number
|
||||
|
||||
export interface PeopleQuery {
|
||||
name: string | undefined
|
||||
branchId: string | undefined
|
||||
sort: Array<string>
|
||||
}
|
||||
export interface PeoplePageQuery extends PeopleQuery, PageQuery {}
|
||||
|
||||
/** @desc 查询人员管理列表 */
|
||||
export function listPeople(query: PeoplePageQuery) {
|
||||
return http.get<PageRes<PeopleResp[]>>(`${BASE_URL}`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询人员消费列表 */
|
||||
export function pageConsume(query: PeoplePageQuery) {
|
||||
return http.get<PageRes<PeopleResp[]>>(`${BASE_URL}/pageConsume`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询人员名称下拉数据 */
|
||||
export function getPeopleNameList(query: PeopleQuery) {
|
||||
return http.get(`${BASE_URL}/getPeopleNameList`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询人员管理详情 */
|
||||
export function getPeople(id: string) {
|
||||
return http.get<PeopleResp>(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 新增人员管理 */
|
||||
export function addPeople(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改人员管理 */
|
||||
export function updatePeople(data: any, id: string) {
|
||||
return http.put(`${BASE_URL}/${id}`, data)
|
||||
}
|
||||
|
||||
/** @desc 删除人员管理 */
|
||||
export function deletePeople(id: string) {
|
||||
return http.del(`${BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出人员管理 */
|
||||
export function exportPeople(query: PeopleQuery) {
|
||||
return http.download(`${BASE_URL}/export`, query)
|
||||
}
|
||||
|
||||
/** @desc 导出模板 */
|
||||
export function exportTemplate() {
|
||||
return http.download(`${BASE_URL}/import/template`)
|
||||
}
|
||||
|
||||
/** @desc 解析用户导入数据 */
|
||||
export function parseImportUser(data: FormData) {
|
||||
return http.post(`${BASE_URL}/import/parse`, data)
|
||||
}
|
||||
|
||||
/** @desc 导入用户 */
|
||||
export function importPeople(data: any) {
|
||||
return http.post(`${BASE_URL}/import`, data)
|
||||
}
|
||||
|
||||
export function downPeople(id: Long[]) {
|
||||
return http.get(`${BASE_URL}/down/${id}`)
|
||||
}
|
||||
|
||||
/** @desc 导出消费人员充值 */
|
||||
export function exportConsumePeople(query: PeopleQuery) {
|
||||
return http.download(`${BASE_URL}/exportConsume`, query)
|
||||
}
|
||||
|
||||
/** @desc 下载人员充值导入模板 */
|
||||
export function downloadConsumeImportTemplate() {
|
||||
return http.download(`${BASE_URL}/import/template`)
|
||||
}
|
||||
|
||||
/** @desc 解析人员充值导入数据 */
|
||||
export function parseConsumeImportUser(data: FormData) {
|
||||
return http.post(`${BASE_URL}/consume/import/parse`, data)
|
||||
}
|
||||
/** @desc 导入人员充值 */
|
||||
export function importConsumeUser(data: any) {
|
||||
return http.post(`${BASE_URL}/consume/import`, data)
|
||||
}
|
||||
|
||||
/** @desc 退款人员 */
|
||||
export function refundPeople(data: any) {
|
||||
return http.post(`${BASE_URL}/refund`, data)
|
||||
}
|
||||
|
||||
/** @desc 充值人员 */
|
||||
export function depositPeople(data: any) {
|
||||
return http.post(`${BASE_URL}/deposit`, data)
|
||||
}
|
||||
|
||||
/** @desc 补贴人员 */
|
||||
export function subsidyPeople(data: any) {
|
||||
return http.post(`${BASE_URL}/subsidy`, data)
|
||||
}
|
||||
|
||||
/** @desc 补贴人员 */
|
||||
export function freeze(ids: Long[]) {
|
||||
return http.post(`${BASE_URL}/freeze`, ids)
|
||||
}
|
||||
|
||||
/** @desc 补贴人员 */
|
||||
export function unFreeze(ids: Long[]) {
|
||||
return http.post(`${BASE_URL}/unFreeze`, ids)
|
||||
}
|
||||
|
||||
/** @desc 补贴人员 */
|
||||
export function resetMoney(data: any) {
|
||||
return http.post(`${BASE_URL}/resetMoney`, data)
|
||||
}
|
||||
Reference in New Issue
Block a user