liuleilei
2023-09-11 faf1d3cc35a3a5f83558946c8056537a4d77fa1f
minipro_standard/util/api/ExWarehouse.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,252 @@
const http = uni.$u.http
// å‡ºå…¥åº“详情
export function getList(params) {
   return http.get('/ext/wOutboundExt/findById', { params })
}
// export function getList(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/findById',
//         method: 'get',
//         params
//     })
// }
// å‡ºåº“/入库扫描篮筐码 - H5
export function outScanAppliances(params) {
   return http.get('/ext/wOutboundExt/outScanAppliances', { params })
}
// export function outScanAppliances(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/outScanAppliances',
//         method: 'get',
//         params
//     })
// }
// æ ¹æ®è½¬åº“单获取出库信息 - H5
export function getOutByWTransferId(params) {
   return http.get('/ext/wOutboundExt/getOutByWTransferId', { params })
}
// export function getOutByWTransferId(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/getOutByWTransferId',
//         method: 'get',
//         params
//     })
// }
// å‡ºåº“单保存
export function saveOut(data) {
   return http.post('/ext/wOutboundExt/saveOut', data)
}
// export function saveOut(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/saveOut',
//         method: 'post',
//         data
//     })
// }
// å…¥åº“单保存
export function saveIn(data) {
   return http.post('/ext/wOutboundExt/saveIn', data)
}
// export function saveIn(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/saveIn',
//         method: 'post',
//         data
//     })
// }
// æ ¹æ®è½¬åº“单获取入库信息
export function getInByWTransferId(params) {
   return http.get('/ext/wOutboundExt/getInByWTransferId', { params })
}
// export function getInByWTransferId(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/getInByWTransferId',
//         method: 'get',
//         params
//     })
// }
// æ ¹æ®ID查询货位信息
export function getLocationInfo(id) {
   return http.get(`/ext/warehouseLocationExt/${id}`)
}
// export function getLocationInfo(id: string | number): Promise<any> {
//     return httpRequest({
//         url: `ext/warehouseLocationExt/${id}`,
//         method: 'get'
//     })
// }
// æ ¹æ®ID查询货位信息
export function finishedInBill(params) {
   return http.get('/ext/wOutboundExt/finishedInBill', { params })
}
// export function finishedInBill(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/finishedInBill',
//         method: 'get',
//         params
//     })
// }
// èŽ·å–è½¬åº“å•ä¿¡æ¯
export function wTransferForInOut(params) {
   return http.get('/ext/wTransferExt/wTransferForInOut', { params })
}
// export function wTransferForInOut(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wTransferExt/wTransferForInOut',
//         method: 'get',
//         params
//     })
// }
// èŽ·å–å‡ºå…¥åº“å•ä¿¡æ¯
export function wOutBoundForInOut(params) {
   return http.get('/ext/wOutboundExt/wOutBoundForInOut', { params })
}
// export function wOutBoundForInOut(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/wOutBoundForInOut',
//         method: 'get',
//         params
//     })
// }
// èŽ·å–è½¬åº“å•ä¿¡æ¯
export function saveOutCK (data) {
  return request.post('/ext/wOutboundExt/saveOut', data)
}
// export function saveOutCK(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/saveOut',
//         method: 'post',
//         data
//     })
// }
// æäº¤è½¬åº“单出入库
export function wTransferForInOutUpload(params) {
   return http.get('/ext/wTransferExt/wTransferForInOutUpload', { params })
}
// export function wTransferForInOutUpload(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wTransferExt/wTransferForInOutUpload',
//         method: 'get',
//         params
//     })
// }
// è°ƒæ•´å…¥åº“
export function wOutBoundForStockUp (data) {
  return request.post('/ext/wOutboundExt/wOutBoundForStockUp', data)
}
// export function wOutBoundForStockUp(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/createForStandard',
//         method: 'post',
//         data
//     })
// }
// å‡ºå…¥åº“业务处理提交
export function wOutBoundForUpload(params) {
   return http.get('/ext/wOutboundExt/wOutBoundForUpload', { params })
}
// export function wOutBoundForUpload(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wOutboundExt/wOutBoundForUpload',
//         method: 'get',
//         params
//     })
// }
// ç‰©æ–™åˆ†é…ä¿¡æ¯åˆ†é¡µæŸ¥è¯¢
export function materialDistributeExt (data) {
  return http.post('/ext/materialDistributeExt/page', data)
}
// export function materialDistributeExt(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/materialDistributeExt/page',
//         method: 'post',
//         data
//     })
// }
// æ ¹æ®ç‰©æ–™ä¸»é”®æŸ¥è¯¢ç‰©æ–™åˆ†é…æ•°æ®
export function getMaterialItem(params) {
   return http.get('/ext/materialDistributeExt/findByMaterialId', { params })
}
// export function getMaterialItem(params: any): Promise<any> {
//     return httpRequest({
//         url: `ext/materialDistributeExt/findByMaterialId`,
//         method: 'get',
//         params
//     })
// }
// æ ¹æ®ç‰©æ–™åˆ†é…ä¸»é”®æŸ¥è¯¢
export function getListByMaterialId(params) {
   return http.get('/ext/proceduresExt/getListByMaterialId', { params })
}
// export function getListByMaterialId(params: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/proceduresExt/getListByMaterialId',
//         method: 'get',
//         params
//     })
// }
// æ ¹æ®è½¬åº“单查询库存
export function choiceStockPageByTransfer (data) {
  return http.post('/ext/wStockExt/choiceStockPageByTransfer', data)
}
// export function choiceStockPageByTransfer(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wStockExt/choiceStockPageByTransfer',
//         method: 'post',
//         data
//     })
// }
// è½¬åº“出库业务 - H5
export function transferToOutNew (data) {
  return http.post('/ext/wTransferExt/transferToOutNew', data)
}
// export function transferToOutNew(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/wTransferExt/transferToOutNew',
//         method: 'post',
//         data
//     })
// }
// è½¬åº“入库业务 - H5
export function transferToInNew (data) {
  return http.post('/ext/wTransferExt/transferToInNew', data)
}
// export function transferToInNew(data: any): Promise<any> {
//     return httpRequest({
//         url:  '/ext/wTransferExt/transferToInNew',
//         method: 'post',
//         data
//     })
// }
// æ ¹æ®ä¾›éœ€è®¡åˆ’查询可用库存
export function getStockByPlansForStandard (data) {
  return http.post('/ext/workorderRecordExt/getStockByPlansForStandard', data)
}
// export function getStockByPlansForStandard(data: any): Promise<any> {
//     return httpRequest({
//         url:  '/ext/workorderRecordExt/getStockByPlansForStandard',
//         method: 'post',
//         data
//     })
// }