liuleilei
2023-09-11 faf1d3cc35a3a5f83558946c8056537a4d77fa1f
minipro_standard/util/api/materialStorage.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,115 @@
const request = uni.$u.http
// è½¬åº“单列表
export function getTransferList (data) {
  return request.post('/ext/wTransferExt/pageList', data)
}
// export function getTransferList(data: any): Promise<any> {
//   return httpRequest({
//     url: '/ext/wTransferExt/pageList',
//     method: 'post',
//     data
//   })
// }
// è½¬åº“单详情
export function wTransferExtDetail (id) {
  return request.get(`/ext/wTransferExt/${id}`)
}
// export function wTransferExtDetail(id: any): Promise<any> {
//     return httpRequest({
//         url:  `/ext/wTransferExt/${id}`,
//         method: 'get'
//     })
// }
// åˆ†é¡µæŸ¥è¯¢åº“å­˜
export function getwStockExtList (data) {
  return request.post('/ext/wStockExt/pageForH5', data)
}
// export function getwStockExtList(data: any): Promise<any> {
//   return httpRequest({
//     url: '/ext/wStockExt/pageForH5',
//     method: 'post',
//     data
//   })
// }
// å‡ºå…¥åº“单列表
export function getBoundList (data) {
  return request.post('/ext/wOutboundExt/listPage', data)
}
// export function getBoundList(data: any): Promise<any> {
//   return httpRequest({
//     url: '/ext/wOutboundExt/listPage',
//     method: 'post',
//     data
//   })
// }
// æäº¤è½¬åº“单出入库
export function inOutSubmit(params) {
   return request.get('/ext/wTransferExt/wTransferForInOutUpload', { params })
}
// export function inOutSubmit(params: any): Promise<any> {
//   return httpRequest({
//     url: 'ext/wTransferExt/wTransferForInOutUpload',
//     method: 'get',
//     params
//   })
// }
// å‡ºå…¥åº“列表统计 - H5
export function pageCount (data) {
  return request.post('/ext/wOutboundExt/pageCount', data)
}
// export function pageCount(data: any): Promise<any> {
//   return httpRequest({
//     url: 'ext/wOutboundExt/pageCount',
//     method: 'post',
//     data
//   })
// }
// è½¬åº“列表统计 - H5
export function ZKPageCount (data) {
  return request.post('/ext/wTransferExt/pageCount', data)
}
// export function ZKPageCount(data: any): Promise<any> {
//   return httpRequest({
//     url: 'ext/wTransferExt/pageCount',
//     method: 'post',
//     data
//   })
// }
/**
 *
 * @param params id å‡ºå…¥åº“id
 * @returns
 */
export function getBoundDetail(params) {
   return request.get('/ext/wOutboundExt/findById', { params })
}
// export function getBoundDetail(params: any): Promise<any> {
//   return httpRequest({
//     url: '/ext/wOutboundExt/findById',
//     method: 'get',
//     params
//   })
// }
/**
 * å–消出入库单据
 * @param params id å‡ºå…¥åº“id
 * @returns
 */
export function cancelBound(params) {
   return request.get('/ext/wOutboundExt/cancel', { params })
}
// export function cancelBound(params: any): Promise<any> {
//   return httpRequest({
//     url: '/ext/wOutboundExt/cancel',
//     method: 'get',
//     params
//   })
// }