SmartStorage/apis/http.js

95 lines
3.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class HttpConfig {
// #ifdef H5
baseUrl = "/api"
// #endif
// #ifdef APP-PLUS
baseUrl = "http://112.29.103.165:21624"
// #endif
// 演示基地址
authPath = `${this.baseUrl}/auth`
systemPath = `${this.baseUrl}/system`
basePath = `${this.baseUrl}/base`
materialPath = `${this.baseUrl}/material`
// 14服务器
/* authPath = 'http://192.168.0.14:21624/auth'
systemPath = 'http://192.168.0.14:21624/system'
basePath = 'http://192.168.0.14:21624/base'
materialPath = 'http://192.168.0.14:21624/material' */
/*
调试ip
刘川10.40.92.209
丁杰:
*/
//基地址
/* authPath = 'http://169.254.91.222:9200'
systemPath = 'http://169.254.91.222:9201'
basePath = 'http://169.254.91.222:9301'
materialPath = 'http://169.254.91.222:9302' */
// 短链
serviceUrl = {
login: {
code: '/sendCode', // 获取验证码
},
user: {
logOut: '/logout', // 退出登录
},
index: {
noticeCont: '/sysNotice/getList', // 获取公告内容
waitDo: '/app/getToDoList', // 获取待办事项
keyData: '/app/getCriticalData' // 获取关键数据
},
fetchMaterial: {
fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表
getDeptList: '/select/getUnitCbx', // 获取往来单位列表
getProjList: '/select/getSectionEngineeringCbx', // 获取工程列表
},
fetchExam: {
fetchExamList: '/tm_task/getLeaseAuditList', // 获取领料审批清单
},
fetchMaterialOutStore: {
fetchInfoByCode: '/leaseOutDetails/getMaMachineByCode', // 根据maId获取机具详情
subOutStore: '/leaseOutDetails/submitOut', // 领料出库提交
},
exitMaterial: {
exitDeptList: '/back_apply/getbackUnit', // 获取退料单位,工程列表
exitMaterialList: '/back_apply/getbackList', // 获取机具退料列表
exitMaterialDetail: '/back_apply/view', // 获取退料设备详情
subExitMaterial: '/back_apply/upload', // 提交退料清单
delMaterial: '/back_apply/del', // 删除退料申请
newExitList: '/back_apply/addBackTask', // 新建退料任务单
selectMaterial: '/back_apply/materialList', // 退料物料选择
ifAgreement: '/select/getAgreementInfoById', // 单位id和工程id是否匹配
},
exitExam: {
exitExamList: '/back_apply/examineList', // 获取退料审核列表
exitExamDetail: '/back_apply/examineView', // 获取退料审核明细
subExitExam: '/back_apply/audit', // 提交单个审核
},
newInStore: {
},
fix: {
fixList: '/repair/getAppRepairTaskList', // 获取维修列表
fixDetail: '/repair/getAppRepairMaTypeList', // 获取维修明细
fixExam: '/repair/endRepairTask', // 提交维修审核
},
repairTestInStore: {
repairTestInStoreList: '/RepairTestInput/getAppRepairedList', // 获取修试后入库列表
repairTestInStoreDetail: '/RepairTestInput/getAppRepairedDetailList', // 获取修试后列表详情
processOrReject: '/RepairTestInput/inputByType', // 修试审核通过或驳回
},
backMaterialReceive: {
backMaterialReceiveList: '/backReceive/getbackReceiveList', // 获取退料接收列表
backMaterialReceiveDetail: '/backReceive/receiveView',
backMaterialSetNumBack: '/backReceive/setNumBack',
backMaterialQrcodeQuery:'backReceive/qrcodeQuery',
backMaterialSetCodeBack:'backReceive/setCodeBack',
backReceiveCodeQuery:"backReceive/codeQuery"
}
}
}
export default new HttpConfig()