SmartStorage/apis/apis.js

837 lines
17 KiB
JavaScript
Raw Normal View History

2024-08-21 17:23:45 +08:00
import Http from './request'
2023-12-20 15:15:23 +08:00
import HttpConfig from './http'
2024-08-21 17:23:45 +08:00
2023-12-23 11:54:30 +08:00
const login = {
2024-08-21 17:23:45 +08:00
async codeLogin(data = {}, header = {}) {
2023-12-20 15:15:23 +08:00
return await Http.post(
HttpConfig.authPath,
HttpConfig.serviceUrl.login.code,
data,
header
)
2024-01-08 17:41:15 +08:00
},
2024-08-23 16:20:04 +08:00
async getMessageCode(data = {}, header = {}) {
return await Http.post(
HttpConfig.authPath,
HttpConfig.serviceUrl.login.code,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async checkCode(data = {}, header = {}) {
2024-01-08 17:41:15 +08:00
return await Http.post(
HttpConfig.authPath,
HttpConfig.serviceUrl.login.checkCode,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async log(data = {}, header = {}) {
2024-01-08 17:41:15 +08:00
return await Http.post(
HttpConfig.authPath,
2024-08-21 17:23:45 +08:00
HttpConfig.serviceUrl.login.log,
2024-01-08 17:41:15 +08:00
data,
header
)
2024-08-23 16:20:04 +08:00
},
2023-12-20 15:15:23 +08:00
}
2023-12-23 11:54:30 +08:00
const user = {
2024-08-21 17:23:45 +08:00
async logOut(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.delete(
HttpConfig.authPath,
HttpConfig.serviceUrl.user.logOut,
data,
header
)
}
}
2023-12-20 15:15:23 +08:00
const index = {
2024-08-21 17:23:45 +08:00
async noticeCont(data = {}, header = {}) {
2023-12-20 15:15:23 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.index.noticeCont,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async singleNotice(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.get(
2024-07-31 09:55:39 +08:00
HttpConfig.systemPath,
2024-03-13 17:55:34 +08:00
HttpConfig.serviceUrl.index.singleNotice,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async waitDo(data = {}, header = {}) {
2023-12-20 15:15:23 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.index.waitDo,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async keyData(data = {}, header = {}) {
2023-12-20 15:15:23 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.index.keyData,
data,
header
)
2024-03-13 17:55:34 +08:00
},
2024-08-21 17:23:45 +08:00
async getUserInfo(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.get(
HttpConfig.systemPath,
HttpConfig.serviceUrl.index.getUserInfo,
data,
header
2024-04-07 15:52:22 +08:00
)
},
2024-08-21 17:23:45 +08:00
async fetchCompanyName(data = {}, header = {}) {
2024-04-07 15:52:22 +08:00
return await Http.get(
HttpConfig.systemPath,
HttpConfig.serviceUrl.index.fetchCompanyName,
data,
header
2024-03-13 17:55:34 +08:00
)
2023-12-20 15:15:23 +08:00
}
}
const fetchMaterial = {
2024-08-21 17:23:45 +08:00
async fetchMaterialList(data = {}, header = {}) {
2023-12-20 15:15:23 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterial.fetchMaterialList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async getDeptList(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.post(
HttpConfig.systemPath,
HttpConfig.serviceUrl.fetchMaterial.getDeptList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async getProjList(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.post(
HttpConfig.systemPath,
HttpConfig.serviceUrl.fetchMaterial.getProjList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subCart(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterial.subCart,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async getDeviceDetail(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterial.getDeviceDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async addItemToCart(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterial.addItemToCart,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async delCart(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.delete(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterial.delCart,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async getCartDetail(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterial.getCartDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async itemNumChange(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterial.itemNumChange,
data,
header
)
},
2023-12-23 11:54:30 +08:00
}
const fetchExam = {
2024-08-21 17:23:45 +08:00
async fetchExamList(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.fetchExamList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subExam(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.subExam,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subExamCq(data = {}, header = {}) {
2024-04-20 17:39:08 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.subExamCq,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async rejectExam(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.rejectExam,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async rejectExamCq(data = {}, header = {}) {
2024-04-20 17:39:08 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.rejectExamCq,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fetchExamListAll(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.fetchExamListAll,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fetchTrueExamList(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.fetchTrueExamList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fetchTrueExamListCq(data = {}, header = {}) {
2024-04-20 17:39:08 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.fetchTrueExamListCq,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fetchDetailList(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchExam.fetchDetailList,
data,
header
)
},
2023-12-20 15:15:23 +08:00
}
2024-01-08 17:41:15 +08:00
const newInStore = {
2024-08-21 17:23:45 +08:00
async fetchNewInStoreList(data = {}, header = {}) {
2024-01-08 17:41:15 +08:00
return await Http.get(
2024-08-21 17:23:45 +08:00
HttpConfig.materialPath,
2024-01-08 17:41:15 +08:00
HttpConfig.serviceUrl.newInStore.fetchNewInStoreList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fetchNewBuyDetail(data = {}, header = {}) {
2024-01-08 17:41:15 +08:00
return await Http.get(
2024-07-31 09:55:39 +08:00
HttpConfig.materialPath,
2024-01-08 17:41:15 +08:00
HttpConfig.serviceUrl.newInStore.fetchNewBuyDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subNewBuy(data = {}, header = {}) {
2024-01-08 17:41:15 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.newInStore.subNewBuy,
data,
header
)
},
}
2023-12-23 23:21:42 +08:00
const fetchMaterialOutStore = {
2024-08-21 17:23:45 +08:00
async fetchInfoByCode(data = {}, header = {}) {
2023-12-23 23:21:42 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterialOutStore.fetchInfoByCode,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subOutStore(data = {}, header = {}) {
2023-12-23 23:21:42 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterialOutStore.subOutStore,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subOutStoreArr(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterialOutStore.subOutStoreArr,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fetchInfoByQrCode(data = {}) {
2023-12-24 18:44:01 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterialOutStore.fetchInfoByQrCode,
data
)
2024-03-13 17:55:34 +08:00
},
2024-08-21 17:23:45 +08:00
async fetchSingleDetail(data = {}) {
2024-03-13 17:55:34 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterialOutStore.fetchSingleDetail,
data
)
},
2024-08-21 17:23:45 +08:00
async searchRfid(data = {}) {
2024-03-13 17:55:34 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterialOutStore.searchRfid,
data
)
2023-12-24 18:44:01 +08:00
}
2023-12-23 23:21:42 +08:00
}
2023-12-20 15:15:23 +08:00
const exitMaterial = {
2024-08-21 17:23:45 +08:00
async exitDeptList(data = {}, header = {}) {
2023-12-21 11:01:48 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitMaterial.exitDeptList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async exitMaterialList(data = {}, header = {}) {
2023-12-20 15:15:23 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitMaterial.exitMaterialList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async exitMaterialDetail(data = {}, header = {}) {
2023-12-20 15:15:23 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitMaterial.exitMaterialDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subExitMaterial(data = {}, header = {}) {
2023-12-21 11:01:48 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitMaterial.subExitMaterial,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async delMaterial(data = {}, header = {}) {
2023-12-21 11:01:48 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitMaterial.delMaterial,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async newExitList(data = {}, header = {}) {
2023-12-21 11:01:48 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitMaterial.newExitList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async selectMaterial(data = {}, header = {}) {
2023-12-21 11:01:48 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitMaterial.selectMaterial,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async ifAgreement(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.post(
HttpConfig.systemPath,
HttpConfig.serviceUrl.exitMaterial.ifAgreement,
data,
header
)
},
2023-12-21 11:01:48 +08:00
}
const exitExam = {
2024-08-21 17:23:45 +08:00
async exitExamList(data = {}, header = {}) {
2023-12-21 11:01:48 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitExam.exitExamList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async exitExamDetail(data = {}, header = {}) {
2023-12-21 11:01:48 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitExam.exitExamDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subExitExam(data = {}, header = {}) {
2023-12-21 11:01:48 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitExam.subExitExam,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async rejectExitExam(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.exitExam.rejectExitExam,
data,
header
)
},
2023-12-20 15:15:23 +08:00
}
2023-12-23 11:54:30 +08:00
const fix = {
2024-08-21 17:23:45 +08:00
async fixList(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fix.fixList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fixDetail(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fix.fixDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fixExam(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fix.fixExam,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async completeFix(data = {}, header = {}) {
2024-01-02 13:26:42 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fix.completeFix,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async submitFix(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.fix.submitFix,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fixCrew(data = {}, header = {}) {
2024-01-08 17:41:15 +08:00
return await Http.get(
2024-08-27 14:37:11 +08:00
HttpConfig.systemPath,
2024-01-08 17:41:15 +08:00
HttpConfig.serviceUrl.fix.fixCrew,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async maList(data = {}, header = {}) {
2024-01-08 17:41:15 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fix.maList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async fixFactory(data = {}, header = {}) {
2024-01-08 17:41:15 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fix.fixFactory,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async uploadPic(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.upload(
HttpConfig.systemPath,
HttpConfig.serviceUrl.fix.uploadPic,
data,
header
)
},
2023-12-23 11:54:30 +08:00
}
const repairTestInStore = {
2024-08-21 17:23:45 +08:00
async repairTestInStoreList(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.post(
HttpConfig.materialPath,
HttpConfig.serviceUrl.repairTestInStore.repairTestInStoreList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async repairTestInStoreDetail(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.post(
HttpConfig.materialPath,
HttpConfig.serviceUrl.repairTestInStore.repairTestInStoreDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async processOrReject(data = {}, header = {}) {
2023-12-23 11:54:30 +08:00
return await Http.post(
HttpConfig.materialPath,
HttpConfig.serviceUrl.repairTestInStore.processOrReject,
data,
header
)
},
}
2023-12-24 02:19:29 +08:00
const backMaterialReceive = {
2024-08-21 17:23:45 +08:00
async backMaterialReceiveList(data = {}, header = {}) {
2023-12-24 14:19:53 +08:00
return await Http.get(
2023-12-24 02:19:29 +08:00
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.backMaterialReceiveList,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async backMaterialReceiveDetail(data = {}, header = {}) {
2023-12-24 02:19:29 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.backMaterialReceiveDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async backMaterialSetNumBack(data = {}, header = {}) {
2023-12-24 14:19:53 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.backMaterialSetNumBack,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async backMaterialQrcodeQuery(data = {}, header = {}) {
2023-12-24 16:28:36 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.backMaterialQrcodeQuery,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async backMaterialSetCodeBack(data = {}, header = {}) {
2023-12-24 16:28:36 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.backMaterialSetCodeBack,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async backReceiveCodeQuery(data = {}, header = {}) {
2023-12-24 16:28:36 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.backReceiveCodeQuery,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async backReceiveEndBack(data = {}, header = {}) {
2023-12-24 16:50:36 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.backReceiveEndBack,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async seeBackMaterialDetail(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.seeBackMaterialDetail,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async searchRfid(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.searchRfid,
data,
header
)
},
2024-08-21 17:23:45 +08:00
async subRfid(data = {}, header = {}) {
2024-03-13 17:55:34 +08:00
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.subRfid,
data,
header
)
},
2023-12-24 16:50:36 +08:00
// fetchMaterialOutStore
2024-08-21 17:23:45 +08:00
async searchByCode(data = {}, header = {}) {
2024-06-14 10:22:42 +08:00
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.searchByCode,
data,
header
)
},
2024-08-27 14:37:11 +08:00
// fetchMaterialOutStore
async searchCodeDevice(data = {}, header = {}) {
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.searchCodeDevice,
data,
header
)
},
// fetchMaterialOutStore
async returnGetRecord(data = {}, header = {}) {
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.returnGetRecord,
data,
header
)
},
2023-12-24 02:19:29 +08:00
}
2024-01-04 15:13:09 +08:00
const crashExam = {
async crashExamList(data = {}, header = {}) {
return await Http.get(
2024-03-13 17:55:34 +08:00
HttpConfig.materialPath,
2024-01-04 15:13:09 +08:00
HttpConfig.serviceUrl.crashExam.crashExamList,
data,
header
)
},
async crashExamDetails(data = {}, header = {}) {
return await Http.get(
2024-03-13 17:55:34 +08:00
HttpConfig.materialPath,
2024-01-04 15:13:09 +08:00
HttpConfig.serviceUrl.crashExam.crashExamDetails,
data,
header
)
},
async crashExamAudit(data = {}, header = {}) {
return await Http.post(
2024-03-13 17:55:34 +08:00
HttpConfig.materialPath,
2024-01-04 15:13:09 +08:00
HttpConfig.serviceUrl.crashExam.crashExamAudit,
data,
header
)
},
}
const testExam = {
2024-03-13 17:55:34 +08:00
async testExamList(data = {}, header = {}) {
return await Http.get(
HttpConfig.materialPath,
HttpConfig.serviceUrl.testExam.testExamList,
data,
header
)
},
async testExamDetails(data = {}, header = {}) {
return await Http.get(
HttpConfig.materialPath,
HttpConfig.serviceUrl.testExam.testExamDetails,
data,
header
)
},
async testExamAudit(data = {}, header = {}) {
return await Http.post(
HttpConfig.materialPath,
HttpConfig.serviceUrl.testExam.testExamAudit,
data,
header
)
},
}
const authManage = {
async fetchAuthList(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.get(
HttpConfig.basePath,
2024-03-13 17:55:34 +08:00
HttpConfig.serviceUrl.authManage.fetchAuthList,
2024-01-04 15:13:09 +08:00
data,
header
)
},
2024-03-13 17:55:34 +08:00
async fetchIsUsing(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.get(
HttpConfig.basePath,
2024-03-13 17:55:34 +08:00
HttpConfig.serviceUrl.authManage.fetchIsUsing,
2024-01-04 15:13:09 +08:00
data,
header
)
},
2024-03-13 17:55:34 +08:00
async subAdd(data = {}, header = {}) {
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.authManage.subAdd,
data,
header
)
},
async subDel(data = {}, header = {}) {
return await Http.delete(
HttpConfig.basePath,
HttpConfig.serviceUrl.authManage.subDel,
data,
header
)
},
}
const searchProjUsing = {
async fetchProjUsingList(data = {}, header = {}) {
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.searchProjUsing.fetchProjUsingList,
data,
header
)
},
}
const searchFetchRecord = {
async fetchRecordList(data = {}, header = {}) {
2024-01-04 15:13:09 +08:00
return await Http.post(
HttpConfig.basePath,
2024-03-13 17:55:34 +08:00
HttpConfig.serviceUrl.searchFetchRecord.fetchRecordList,
data,
header
)
},
}
const update = {
async fetchAppVer(data = {}, header = {}) {
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.update.fetchAppVer,
data,
header
)
},
}
const rfidBinding = {
async bindRfid(data = {}, header = {}) {
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.rfidBinding.bindRfid,
data,
header
)
},
}
const qrcodeBinding = {
async bindQrcode(data = {}, header = {}) {
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.qrcodeBinding.bindQrcode,
data,
header
)
},
async fetchDeviceType(data = {}, header = {}) {
return await Http.get(
HttpConfig.materialPath,
HttpConfig.serviceUrl.qrcodeBinding.fetchDeviceType,
data,
header
)
},
async fetchDeviceSpec(data = {}, header = {}) {
return await Http.get(
HttpConfig.materialPath,
HttpConfig.serviceUrl.qrcodeBinding.fetchDeviceSpec,
data,
header
)
},
}
const indexScan = {
async infoByCode(data = {}, header = {}) {
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.indexScan.infoByCode,
2024-01-04 15:13:09 +08:00
data,
header
)
},
}
2024-06-19 15:29:22 +08:00
const url = HttpConfig.systemPath
2024-08-21 17:23:45 +08:00
export default {
2023-12-23 11:54:30 +08:00
login,
2023-12-20 15:15:23 +08:00
index,
2023-12-23 11:54:30 +08:00
user,
2023-12-20 15:15:23 +08:00
fetchMaterial,
2023-12-23 11:54:30 +08:00
fetchExam,
2024-01-08 17:41:15 +08:00
newInStore,
2023-12-23 23:21:42 +08:00
fetchMaterialOutStore,
2023-12-21 11:01:48 +08:00
exitMaterial,
2023-12-23 11:54:30 +08:00
fix,
exitExam,
2023-12-24 02:19:29 +08:00
repairTestInStore,
2024-01-04 15:13:09 +08:00
backMaterialReceive,
crashExam,
2024-03-13 17:55:34 +08:00
testExam,
authManage,
searchProjUsing,
searchFetchRecord,
update,
rfidBinding,
qrcodeBinding,
2024-06-19 15:29:22 +08:00
indexScan,
url
2023-12-20 15:15:23 +08:00
}