|
@ -1,4 +1,5 @@ |
|
|
import request from '@/api/httpRequest3.js' |
|
|
import request from '@/api/httpRequest3.js' |
|
|
|
|
|
import storage from '@/common/utils/storage' |
|
|
// const baseApi = "/api/admin-api"
|
|
|
// const baseApi = "/api/admin-api"
|
|
|
//公司地址
|
|
|
//公司地址
|
|
|
// 本地地址
|
|
|
// 本地地址
|
|
@ -624,7 +625,7 @@ export function getPurchaseReturnRequestDetail(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function purchaseReturnRequestClose(id) { |
|
|
export function purchaseReturnRequestClose(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/purchasereturn-request-main/close?id="+id, |
|
|
url: baseApi + "/wms/purchasereturn-request-main/close?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -636,7 +637,7 @@ export function purchaseReturnRequestClose(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function purchaseReturnRequestApprove(id) { |
|
|
export function purchaseReturnRequestApprove(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/purchasereturn-request-main/submit?id="+id, |
|
|
url: baseApi + "/wms/purchasereturn-request-main/submit?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -648,7 +649,7 @@ export function purchaseReturnRequestApprove(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function purchaseReturnRequestApproveAgree(id) { |
|
|
export function purchaseReturnRequestApproveAgree(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/purchasereturn-request-main/agree?id="+id, |
|
|
url: baseApi + "/wms/purchasereturn-request-main/agree?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -660,7 +661,7 @@ export function purchaseReturnRequestApproveAgree(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function purchaseReturnRequestApproveRefused(id) { |
|
|
export function purchaseReturnRequestApproveRefused(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/purchasereturn-request-main/refused?id="+id, |
|
|
url: baseApi + "/wms/purchasereturn-request-main/refused?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -672,7 +673,7 @@ export function purchaseReturnRequestApproveRefused(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function purchaseReturnRequestHandle(id) { |
|
|
export function purchaseReturnRequestHandle(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/purchasereturn-request-main/handle?id="+id, |
|
|
url: baseApi + "/wms/purchasereturn-request-main/handle?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1287,7 +1288,7 @@ export function unPlannedReceiptRequestCreate(params) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedReceiptRequestApprove(id) { |
|
|
export function unPlannedReceiptRequestApprove(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/submit?id="+id, |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/submit?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1299,7 +1300,7 @@ export function unPlannedReceiptRequestApprove(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedReceiptRequestClose(id) { |
|
|
export function unPlannedReceiptRequestClose(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/close?id="+id, |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/close?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1311,7 +1312,7 @@ export function unPlannedReceiptRequestClose(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedReceiptRequestApproveAgree(id) { |
|
|
export function unPlannedReceiptRequestApproveAgree(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/agree?id="+id, |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/agree?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1323,7 +1324,7 @@ export function unPlannedReceiptRequestApproveAgree(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedReceiptRequestApproveRefused(id) { |
|
|
export function unPlannedReceiptRequestApproveRefused(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/refused?id="+id, |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/refused?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1335,7 +1336,7 @@ export function unPlannedReceiptRequestApproveRefused(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedReceiptRequestHandle(id) { |
|
|
export function unPlannedReceiptRequestHandle(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/handle?id="+id, |
|
|
url: baseApi + "/wms/unplannedreceipt-request-main/handle?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1440,7 +1441,7 @@ export function unPlannedIssueRequestCreate(params) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedIssueRequestApprove(id) { |
|
|
export function unPlannedIssueRequestApprove(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedissue-request-main/submit?id="+id, |
|
|
url: baseApi + "/wms/unplannedissue-request-main/submit?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1452,7 +1453,7 @@ export function unPlannedIssueRequestApprove(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedIssueRequestClose(id) { |
|
|
export function unPlannedIssueRequestClose(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedissue-request-main/close?id="+id, |
|
|
url: baseApi + "/wms/unplannedissue-request-main/close?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1464,7 +1465,7 @@ export function unPlannedIssueRequestClose(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedIssueRequestApproveAgree(id) { |
|
|
export function unPlannedIssueRequestApproveAgree(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedissue-request-main/agree?id="+id, |
|
|
url: baseApi + "/wms/unplannedissue-request-main/agree?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1476,7 +1477,7 @@ export function unPlannedIssueRequestApproveAgree(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedIssueRequestApproveRefused(id) { |
|
|
export function unPlannedIssueRequestApproveRefused(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedissue-request-main/refused?id="+id, |
|
|
url: baseApi + "/wms/unplannedissue-request-main/refused?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -1488,7 +1489,7 @@ export function unPlannedIssueRequestApproveRefused(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function unPlannedIssueRequestHandle(id) { |
|
|
export function unPlannedIssueRequestHandle(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/unplannedissue-request-main/handle?id="+id, |
|
|
url: baseApi + "/wms/unplannedissue-request-main/handle?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2251,7 +2252,7 @@ export function issueRequestSubmit(params) { |
|
|
*/ |
|
|
*/ |
|
|
export function issueRequestHandle(id) { |
|
|
export function issueRequestHandle(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/issue-request-main/handle?id="+id, |
|
|
url: baseApi + "/wms/issue-request-main/handle?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2264,7 +2265,7 @@ export function issueRequestHandle(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function issueRequestSubmitApprove(id) { |
|
|
export function issueRequestSubmitApprove(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/issue-request-main/submit?id="+id, |
|
|
url: baseApi + "/wms/issue-request-main/submit?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2276,7 +2277,7 @@ export function issueRequestSubmitApprove(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function issueRequestSubmitApproveAgree(id) { |
|
|
export function issueRequestSubmitApproveAgree(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/issue-request-main/agree?id="+id, |
|
|
url: baseApi + "/wms/issue-request-main/agree?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2288,7 +2289,7 @@ export function issueRequestSubmitApproveAgree(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function issueRequestSubmitApproveRefused(id) { |
|
|
export function issueRequestSubmitApproveRefused(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/issue-request-main/refused?id="+id, |
|
|
url: baseApi + "/wms/issue-request-main/refused?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2300,7 +2301,7 @@ export function issueRequestSubmitApproveRefused(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function issueRequestClose(id) { |
|
|
export function issueRequestClose(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/issue-request-main/close?id="+id, |
|
|
url: baseApi + "/wms/issue-request-main/close?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2699,7 +2700,7 @@ export function scrapRequestCreate(params) { |
|
|
*/ |
|
|
*/ |
|
|
export function scrapRequestApprove(id) { |
|
|
export function scrapRequestApprove(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/scrap-request-main/submit?id="+id, |
|
|
url: baseApi + "/wms/scrap-request-main/submit?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2711,7 +2712,7 @@ export function scrapRequestApprove(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function scrapRequestClose(id) { |
|
|
export function scrapRequestClose(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/scrap-request-main/close?id="+id, |
|
|
url: baseApi + "/wms/scrap-request-main/close?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2723,7 +2724,7 @@ export function scrapRequestClose(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function scrapRequestApproveAgree(id) { |
|
|
export function scrapRequestApproveAgree(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/scrap-request-main/agree?id="+id, |
|
|
url: baseApi + "/wms/scrap-request-main/agree?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2735,7 +2736,7 @@ export function scrapRequestApproveAgree(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function scrapRequestApproveRefused(id) { |
|
|
export function scrapRequestApproveRefused(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/scrap-request-main/refused?id="+id, |
|
|
url: baseApi + "/wms/scrap-request-main/refused?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2747,7 +2748,7 @@ export function scrapRequestApproveRefused(id) { |
|
|
*/ |
|
|
*/ |
|
|
export function scrapRequestHandle(id) { |
|
|
export function scrapRequestHandle(id) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: baseApi + "/wms/scrap-request-main/handle?id="+id, |
|
|
url: baseApi + "/wms/scrap-request-main/handle?id=" + id, |
|
|
method: "put", |
|
|
method: "put", |
|
|
data: {}, |
|
|
data: {}, |
|
|
}); |
|
|
}); |
|
@ -2951,3 +2952,57 @@ export function getBalanceByFilter(param) { |
|
|
data: param, |
|
|
data: param, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 删除文件 |
|
|
|
|
|
* @param {*} |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
export function deleteFileById(id) { |
|
|
|
|
|
return request({ |
|
|
|
|
|
url: baseApi + "/infra/file/delete?id=" + id , |
|
|
|
|
|
method: "delete", |
|
|
|
|
|
data: {}, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 获取文件列表 |
|
|
|
|
|
* @param {*} |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
export function getFileList(tableName, tableId) { |
|
|
|
|
|
return request({ |
|
|
|
|
|
url: baseApi + "/infra/file/list?tableName=" + tableName + "&tableId=" + tableId, |
|
|
|
|
|
method: "get", |
|
|
|
|
|
data: {}, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 图片上传 |
|
|
|
|
|
* @param {*} |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
export function uploadFile(tableName, tableId,filePath,callBack) { |
|
|
|
|
|
var token = storage.getStorage(storage.constant.token) |
|
|
|
|
|
var url = getApp().globalData.request_url+baseApi |
|
|
|
|
|
uni.uploadFile({ |
|
|
|
|
|
url: url+"/infra/file/upload?tableName="+tableName + "&tableId=" + tableId, |
|
|
|
|
|
filePath: filePath, |
|
|
|
|
|
name: 'file', |
|
|
|
|
|
header: { |
|
|
|
|
|
"Authorization": "Bearer " + token, |
|
|
|
|
|
"tenant-id": 1 |
|
|
|
|
|
}, |
|
|
|
|
|
success: (uploadFileRes) => { |
|
|
|
|
|
callBack(uploadFileRes.data) |
|
|
|
|
|
console.log(uploadFileRes.data); |
|
|
|
|
|
}, |
|
|
|
|
|
fail: (error) => { |
|
|
|
|
|
callBack(undefined) |
|
|
|
|
|
}, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|