|
|
@@ -0,0 +1,71 @@
|
|
|
+import request from '/@/utils/micro_request.js'
|
|
|
+const basePath = import.meta.env.VITE_INSTR_ADMIN
|
|
|
+// 参数设置
|
|
|
+export function useUseAppointApi() {
|
|
|
+ return {
|
|
|
+ //预约列表
|
|
|
+ list(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'GetList', query)
|
|
|
+ },
|
|
|
+ //按权限查预约列表
|
|
|
+ getListByPermission(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'GetListByInst', query)
|
|
|
+ },
|
|
|
+ // 导出预约列表
|
|
|
+ exportExcel(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'ExportExcel', query)
|
|
|
+ },
|
|
|
+ // 预约
|
|
|
+ add(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'Create', query)
|
|
|
+ },
|
|
|
+ // 编辑预约
|
|
|
+ update(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'UpdateById', query)
|
|
|
+ },
|
|
|
+ // 取消预约
|
|
|
+ cancelAppoint(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'AdminCancel', query)
|
|
|
+ },
|
|
|
+ // 取消预约
|
|
|
+ userCancelAppoint(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'UserCancel', query)
|
|
|
+ },
|
|
|
+ // 获取全部预约情况
|
|
|
+ getAppointInfo(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'AppointInfo', query)
|
|
|
+ },
|
|
|
+ // 获取设备预约情况
|
|
|
+ getInstrAppointInfo(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'GetEntityById', query)
|
|
|
+ },
|
|
|
+ // 获取用户信息
|
|
|
+ getUserId(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'MyAppointment', 'UserInfo', query)
|
|
|
+ },
|
|
|
+ // 获取用户是否㤇资质申请
|
|
|
+ getNeedGrant(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrumentAppointment', 'NeedGrantRequest', query)
|
|
|
+ },
|
|
|
+ // 统计预约记录
|
|
|
+ getAppointReportStatistic(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrument', 'Statistic', query)
|
|
|
+ },
|
|
|
+ // 统计预约记录
|
|
|
+ onStatisticExport(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'TusInstrument', 'StatisticExport', query)
|
|
|
+ },
|
|
|
+ // 预约记录
|
|
|
+ getZunYiAppointRecord(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'ZunyiCustom', 'GetAppointmentList', query)
|
|
|
+ },
|
|
|
+ // 预约记录详情
|
|
|
+ getZunYiAppointEntityById(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'ZunyiCustom', 'GetEntityById', query)
|
|
|
+ },
|
|
|
+ // Export预约记录
|
|
|
+ getZunYiAppointRecordExport(query?: object) {
|
|
|
+ return request.postRequest(basePath, 'ZunyiCustom', 'GetAppointmentListExport', query)
|
|
|
+ },
|
|
|
+ }
|
|
|
+}
|