import request from '@/api/httpRequest3.js' import storage from '@/common/utils/storage' // const baseApi = "/api/admin-api" //公司地址 // 本地地址 const baseApi = "" /** * 获取验证码 * @param {*} */ export function getCaptchaImage(params) { return request({ url: baseApi + "/system/captcha/captchaImage", method: "get", data: params, }); } /** * 登录方法 */ export function login(username, password, code, uuid) { return request({ url: baseApi + '/system/auth/login', headers: { isToken: false }, method: 'post', data: { username, password, code, uuid } }) } /** * 退出 */ export function logout() { return request({ url: baseApi + "/system/auth/logout", method: "post", data: {}, }); } /** * 获取登录用户的权限信息 */ export function getPermissionInfo() { return request({ url: baseApi + "/system/auth/get-permission-info", method: "get", data: {}, }); } /** * 获取租户信息 */ export function getTenantInfo(name) { var params = { name: name, pageNo: 1, pageSize: 100, } return request({ url: baseApi + "/system/tenant/page", method: "get", data: params, }); } /** * 获取登录用户信息 */ export function getUserProfile() { return request({ url: baseApi + '/system/user/profile/get', method: 'get' }) } /** * 修改个人用户密码 */ export function updateUserPwd(oldPassword, newPassword) { const data = { oldPassword, newPassword } return request({ url: baseApi + '/system/user/profile/update-password', method: 'PUT', params: data }) } /** * 获取配置字典 * @param {*} * */ export function getDictionaryItem(params) { return request({ url: baseApi + "/system/dict-type/getDictByTypes", method: "post", data: params, }); } /** * 查询 客户信息 * @param {*} 物品代码 * */ export function getBasicCustomerList() { return request({ url: baseApi + "/wms/customer/list", method: "get", data: {}, }); } /** * 根据业务代码查询业务类型 * @param {*} Code * */ export function getBusinesstypeByCode(code) { var params = { code: code, pageNo: 1, pageSize: 100 } return request({ url: baseApi + "/wms/businesstype/page", method: "get", data: params, }); } /** * 按物料代码查询库存明细 * @param {*} itemCode * */ export function getBalanceByItemCode(params) { return request({ url: baseApi + "/wms/balance/page", method: "get", data: params, }); } /** * 按物品查询预计入 * @param {*} itemCode * */ export function getExpectinByItemcode(params) { return request({ url: baseApi + "/wms/expectin/page", method: "get", data: params, }); } /** * 按物品查询预计出 * @param {*} itemCode * */ export function getExpectoutByItemcode(params) { return request({ url: baseApi + "/wms/expectout/page", method: "get", data: params, }); } /** * 按库位查询库存汇总 * @param {*} * */ export function getBalanceByLocationcodeGroup(params) { return request({ url: baseApi + "/wms/balance/page", method: "get", data: params, }); } /** * 按库位查询库存明细 * @param {*} */ export function getBalanceByLocationcode(params) { return request({ url: baseApi + "/wms/balance/page", method: "get", data: params, }); } /** * 查询器具信息接口 * @param {*} number 器具代码 */ export function getContainerByNumber(number) { var params = { number: number, pageNo: 1, pageSize: 100 } return request({ url: baseApi + "/wms/container-main/page", method: "get", data: params, }); } /** * 查询器具信息接口 * @param {*} number 器具代码 */ export function getContainerDetailByNumber(number) { return request({ url: baseApi + "/wms/container-main/getContainerByNumber?number=" + number, method: "get", data: {}, }); } /** * 按器具查询库存明细 * @param {*器具代码} * */ export function getBalanceByContainerNumberGroup(params) { return request({ url: baseApi + "/wms/balance/page", method: "get", data: params, }); } /** * 按器具查询库存明细(无器具) * @param {*器具代码} * */ export function getBalanceByContainerNumber(params) { return request({ url: baseApi + "/wms/balance/page", method: "get", data: params, }); } /**标签 * * @param {*} header version * 获取标签设置信息 */ export function getLabelByHeader(header, version) { var params = { header: header, version: version, } return request({ url: baseApi + "/wms/labeltype/getDetailsByHeader", method: "get", data: params, }); } /**包装 * 获取包装信息 * @param {*} * */ export function getPackageByNumber(number) { var params = { number: number, pageNo: 1, pageSize: 100 } return request({ url: baseApi + "/wms/package/page", method: "get", data: params, }); } /** * 查询库位信息接口 * @param {*} code 库位代码 * */ export function getBasicLocationByCode(code) { var parmas = { code: code, pageNo: 1, pageSize: 100 } return request({ url: baseApi + "/wms/location/page", method: "get", data: parmas, }); } /** * 校验库位零件关系 * @param {*} * */ export function validateItemAndLocation(parmas) { return request({ url: baseApi + "/wms/location/validate", method: "post", data: parmas, }); } /** * 查询上架推荐库位 * @param {*} * supplierCode * itemCode * batch * inventoryStatus */ export function getPutawayRecommendLocation(params) { return request({ url: baseApi + "/wms/location/recommendLocation", method: "post", data: params, }); } /** * 查询物品信息接口 * @param {*} code 物品代码 * */ export function getBasicItemByCode(itemCode) { var params = { code: itemCode, pageNo: 1, pageSize: 100 } return request({ url: baseApi + "/wms/itembasic/page", method: "get", data: params, }); } /** * 按物品查询库存汇总 * @param {*} itemCode * */ export function getBalanceByCodeGroup(params) { return request({ url: baseApi + "/wms/balance/page", method: "get", data: params, }); } /** * 查询包装信息接口 * @param {*} itemCode 物品代码 * */ export function getItempackagingByItemcode(itemCode) { return request({ url: baseApi + "/wms/itempackaging/page?itemCode=" + itemCode, method: "get", data: {}, }); } /** * 查询生产线物料关系 * @param {*} productionLineCode 生产线code * */ export function getProductionlineItem(params) { return request({ url: baseApi + "/wms/productionlineitem/page", method: "get", data: params, }); } /** * 查询生产线-车间-工位 * @param {*} * */ export function getWorkShopLineStation() { return request({ url: baseApi + "/wms/issue-request-main/get-workshop-productionline-workstation", method: "get", data: {}, }); } /** * 查询客户物品 */ export function getCustomerItemList(params) { return request({ url: baseApi + "/wms/customeritem/senior", method: "post", data: params, }); } /** * 供应商发货 * * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getSupplierDeliverRecordList(params) { return request({ url: baseApi + "/wms/supplierdeliver-record-main/senior", method: "post", data: params, }); } /** * 供应商发货 详情 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getSupplierDeliverRecordDetail(id) { return request({ url: baseApi + "/wms/supplierdeliver-record-main/getSupplierdeliverRecordById?id=" + id, method: "get", data: {}, }); } /** * 报检单查询 = request_inspect * 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getInspectRequestList(params) { return request({ url: baseApi + "/wms/inspect-request-main/senior", method: "post", data: params, }); } /** * 检验单查询 详情 * 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getInspectRequestDetail(id) { return request({ url: baseApi + "/wms/inspect-request-main/getInspectRequestById?id=" + id, method: "get", data: {}, }); } /** * 采购收货 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getPurchaseReceiptJobList(params) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/senior", method: "post", data: params, }); } /** * 采购收货 任务承接 * @param {*} id * */ export function takePurchaseReceiptJob(id) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 采购收货 放弃承接 * @param {*} id * */ export function cancleTakePurchaseReceiptJob(id) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 采购收货 获取任务明细 * @param {*} id 任务id * */ export function getPurchaseReceiptJobDetail(id) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/getPurchasereceiptJobyId?id=" + id, method: "get", data: {}, }); } /** * 采购收货 任务提交 * @param {*} 任务id * */ export function purchaseReceiptJobSubmit(params) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/execute", method: "put", data: params, }); } /** * 采购退货 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * 获取任务明细 */ export function getPurchaseReturnJobList(params) { return request({ url: baseApi + "/wms/purchasereturn-job-main/senior", method: "post", data: params, }); } /** * 采购退货 获取任务明细 * @param {*} id 任务id * */ export function getPurchasereturnJobDetail(id) { return request({ url: baseApi + "/wms/purchasereturn-job-main/getReturnJobById?id=" + id, method: "get", data: {}, }); } /** * 采购退货 承接任务 * @param {*} id * */ export function takePurchasereturnJob(id) { return request({ url: baseApi + "/wms/purchasereturn-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 采购退货 放弃承接 * @param {*} id * */ export function cancleTakePurchasereturnJob(id) { return request({ url: baseApi + "/wms/purchasereturn-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 采购退货 任务提交 * @param {*} params */ export function purchaseReturnJobsubmit(params) { return request({ url: baseApi + "/wms/purchasereturn-job-main/execute", method: "put", data: params, }); } /** * 采购退货 申请列表 * 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getPurchaseReturnRequestList(params) { return request({ url: baseApi + "/wms/purchasereturn-request-main/senior", method: "post", data: params, }); } /** * 采购退货 获取申请任务明细 * @param {*} id 任务id * */ export function getPurchaseReturnRequestDetail(id) { return request({ url: baseApi + "/wms/purchasereturn-request-main/getPurchasereturnRequestById?id=" + id, method: "get", data: {}, }); } /** * 采购退货申请 关闭任务 * @param {*} params */ export function purchaseReturnRequestClose(id) { return request({ url: baseApi + "/wms/purchasereturn-request-main/close?id=" + id, method: "put", data: {}, }); } /** * 采购退货申请 提交审批 * @param {*} params */ export function purchaseReturnRequestApprove(id) { return request({ url: baseApi + "/wms/purchasereturn-request-main/submit?id=" + id, method: "put", data: {}, }); } /** * 采购退货申请 提交审批通过 * @param {*} params */ export function purchaseReturnRequestApproveAgree(id) { return request({ url: baseApi + "/wms/purchasereturn-request-main/agree?id=" + id, method: "put", data: {}, }); } /** * 采购退货申请 审批驳回 * @param {*} params */ export function purchaseReturnRequestApproveRefused(id) { return request({ url: baseApi + "/wms/purchasereturn-request-main/refused?id=" + id, method: "put", data: {}, }); } /** * 采购退货申请 处理 * @param {*} params */ export function purchaseReturnRequestHandle(id) { return request({ url: baseApi + "/wms/purchasereturn-request-main/handle?id=" + id, method: "put", data: {}, }); } /** * 采购退货申请 提交 * @param {*} params */ export function purchaseReturnRequestCreate(params) { return request({ url: baseApi + "/wms/purchasereturn-request-main/create", method: "post", data: params, }); } /** * 采购退货 记录提交 * @param {*} params */ export function purchaseReturnRecordSubmit(params) { return request({ url: baseApi + "/wms/purchasereturn-record-main/create", method: "post", data: params, }); } /** * 到货检验 任务 * * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getInspectJobList(params) { return request({ url: baseApi + "/wms/inspect-job-main/senior", method: "post", data: params, }); } /** * 到货检验 获取任务明细 * @param {*} id 任务id * */ export function getInspectJobDetail(id) { return request({ url: baseApi + "/wms/inspect-job-main/getInspectJobById?id=" + id, method: "get", data: {}, }); } /** * 到货检验 任务承接 * @param {*} id * */ export function takeInspectJob(id) { return request({ url: baseApi + "/wms/inspect-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 到货检验 放弃承接 * @param {*} id * */ export function cancleTakeInspectJob(id) { return request({ url: baseApi + "/wms/inspect-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 到货检验 任务提交 * @param {*} 任务id * */ export function inspectJobSubmit(params) { return request({ url: baseApi + "/wms/inspect-job-main/execute", method: "put", data: params, }); } /** * 原料上架 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getPutawayJobList(params) { return request({ url: baseApi + "/wms/putaway-job-main/senior", method: "post", data: params, }); } /** * 原料上架 获取任务明细 * @param {*} id 任务id * */ export function getPutawayJobDetail(id) { return request({ url: baseApi + "/wms/putaway-job-main/getPutawayJobById?id=" + id, method: "get", data: {}, }); } /** * 原料上架 承接任务 * @param {*} id * */ export function takePutawayJob(id) { return request({ url: baseApi + "/wms/putaway-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 原料上架 放弃承接 * @param {*} id * */ export function cancleTakePutawayJob(id) { return request({ url: baseApi + "/wms/putaway-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 原料上架 任务提交 * @param {*} params */ export function putawayJobSubmit(params) { return request({ url: baseApi + "/wms/putaway-job-main/execute", method: "put", data: params, }); } /** * 原料上架申请 获取任务列表 * 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getPutawayRequestList(params) { return request({ url: baseApi + "/wms/putaway-request-main/senior", method: "post", data: params, }); } /** * 原料上架申请 获取任务明细 * @param {*} id 任务id * */ export function getPutawayRequestDetail(id) { return request({ url: baseApi + "/wms/putaway-request-main/getPutawayRequestById?id=" + id, method: "get", data: {}, }); } /** * 原料上架申请 提交 * @param {*} params */ export function putawayRequestSubmit(params) { return request({ url: baseApi + "/wms/putaway-request-main/create", method: "post", data: params, }); } /** * 原料上架记录 提交 * @param {*} params */ export function putawayRecordSubmit(params) { return request({ url: baseApi + "/wms/putaway-record-main/create", method: "post", data: params, }); } /** * 发料任务 列表 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getIssueJobList(params) { return request({ url: baseApi + "/wms/issue-job-main/senior", method: "post", data: params, }); } /** * 发料任务明细 * @param {*} 任务id * */ export function getIssueJobDetail(id) { return request({ url: baseApi + "/wms/issue-job-main/getIssueJobById?id=" + id, method: "get", data: {}, }); } /** * 获取推荐明细接口 * @param {*} 任务id * /wms/issue-request-main */ export function getBalanceByBatchOffShelf(itemCode, qty) { return request({ url: baseApi + "/wms/issue-request-main/getBalanceByBatchOffShelf?itemCode=" + itemCode + "&&qty=" + qty, method: "get", data: {}, }); } /** * 发料 任务承接 * @param {*} id * */ export function takeIssueJob(id) { return request({ url: baseApi + "/wms/issue-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 发料 放弃承接 * @param {*} id * */ export function cancleTakeIssueJob(id) { return request({ url: baseApi + "/wms/issue-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 发料任务 提交 * @param {*} params */ export function issueJobSubmit(params) { return request({ url: baseApi + "/wms/issue-job-main/execute", method: "put", data: params, }); } /** * 生产收料 任务列表 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getProductionReceiptJobList(params) { return request({ url: baseApi + "/wms/productionreceipt-job-main/senior", method: "post", data: params, }); } /** * 生产收料 获取任务明细 * @param {*} id 任务id * */ export function getProductionReceiptJobDetail(id) { return request({ url: baseApi + "/wms/productionreceipt-job-main/getProductionreceiptJobById?id=" + id, method: "get", data: {}, }); } /** * 生产收料 任务承接 * @param {*} id * */ export function takeProductionReceiptJob(id) { return request({ url: baseApi + "/wms/productionreceipt-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 生产收料 放弃承接 * @param {*} id * */ export function cancleTakeProductionReceiptJob(id) { return request({ url: baseApi + "/wms/productionreceipt-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 生产收料任务 提交 * @param {*} params */ export function productionReceiptJobSubmit(params) { return request({ url: baseApi + "/wms/productionreceipt-job-main/execute", method: "put", data: params, }); } /** * 生产收料记录 提交 * @param {*} params */ export function productionReceiptRecordSubmit(params) { return request({ url: baseApi + "/wms/productreceipt-record-main/create", method: "post", data: params, }); } /** * 库存转移 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getInventoryMoveJobList(params) { return request({ url: baseApi + "/wms/inventorymove-job-main/senior", method: "post", data: params, }); } /** * 库存转移 获取任务明细 * @param {*} id 任务id * */ export function getInventoryMoveJobDetail(id) { return request({ url: baseApi + "/wms/inventorymove-job-main/getInventorymoveJobById?id=" + id, method: "get", data: {}, }); } /** * 库存转移任务 任务承接 * @param {*} id * */ export function takeInventoryMoveJob(id) { return request({ url: baseApi + "/wms/inventorymove-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 库存转移任务 放弃承接 * @param {*} id * */ export function cancleTakeInventoryMoveJob(id) { return request({ url: baseApi + "/wms/inventorymove-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 库存转移 任务提交 * @param {*} 任务id * */ export function inventoryMoveSubmit(params) { return request({ url: baseApi + "/wms/inventorymove-job-main/execute", method: "put", data: params, }); } /** * 库存转移记录 提交 * @param {*} 任务id * */ export function inventoryMoveRecordSubmit(params) { return request({ url: baseApi + "/wms/inventorymove-record-main/create", method: "post", data: params, }); } /** * 盘点 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getCountJobList(params) { return request({ url: baseApi + "/wms/count-job-main/senior", method: "post", data: params, }); } /** * 盘点 获取任务明细 * @param {*} id 任务id * */ export function getCountJobDetail(id) { return request({ url: baseApi + "/wms/count-job-main/getCountJobById?id=" + id, method: "get", data: {}, }); } /** * 盘点任务 任务承接 * @param {*} id * */ export function takeCountJob(id) { return request({ url: baseApi + "/wms/count-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 盘点任务 放弃承接 * @param {*} id * */ export function cancleTakeCountJob(id) { return request({ url: baseApi + "/wms/count-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 盘点任务 提交 * @param {*} 任务id * */ export function countJobSubmit(params) { return request({ url: baseApi + "/wms/count-job-main/execute", method: "put", data: params, }); } /** * 计划外入库 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取任务列表 * @param {*} */ export function getUnPlannedReceiptJobList(params) { return request({ url: baseApi + "/wms/unplannedreceipt-job-main/senior", method: "post", data: params, }); } /** * 计划外入库 获取任务明细 * @param {*} id 任务id * */ export function getUnPlannedReceiptJobDetail(id) { return request({ url: baseApi + "/wms/unplannedreceipt-job-main/getUnplannedreceiptJobById?id=" + id, method: "get", data: {}, }); } /** * 计划外入库任务 任务承接 * @param {*} id * */ export function takeUnPlannedReceiptJob(id) { return request({ url: baseApi + "/wms/unplannedreceipt-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 计划外入库 放弃承接 * @param {*} id * */ export function cancleTakeUnPlannedReceiptJob(id) { return request({ url: baseApi + "/wms/unplannedreceipt-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 计划外入库任务 提交 * @param {*} params */ export function unPlannedReceiptJobSubmit(params) { return request({ url: baseApi + "/wms/unplannedreceipt-job-main/execute", method: "put", data: params, }); } /** * 计划外入库申请 创建 * @param {*} params */ export function unPlannedReceiptRequestCreate(params) { return request({ url: baseApi + "/wms/unplannedreceipt-request-main/create", method: "post", data: params, }); } /** * 计划外入库申请 提交审批 * @param {*} params */ export function unPlannedReceiptRequestApprove(id) { return request({ url: baseApi + "/wms/unplannedreceipt-request-main/submit?id=" + id, method: "put", data: {}, }); } /** * 计划外入库申请 关闭 * @param {*} params */ export function unPlannedReceiptRequestClose(id) { return request({ url: baseApi + "/wms/unplannedreceipt-request-main/close?id=" + id, method: "put", data: {}, }); } /** * 计划外入库申请 审批通过 * @param {*} params */ export function unPlannedReceiptRequestApproveAgree(id) { return request({ url: baseApi + "/wms/unplannedreceipt-request-main/agree?id=" + id, method: "put", data: {}, }); } /** * 计划外入库申请 审批驳回 * @param {*} params */ export function unPlannedReceiptRequestApproveRefused(id) { return request({ url: baseApi + "/wms/unplannedreceipt-request-main/refused?id=" + id, method: "put", data: {}, }); } /** * 计划外入库申请 处理 * @param {*} params */ export function unPlannedReceiptRequestHandle(id) { return request({ url: baseApi + "/wms/unplannedreceipt-request-main/handle?id=" + id, method: "put", data: {}, }); } /** * 计划外入库记录 提交 * @param {*} params */ export function unPlannedReceiptRecordbSubmit(params) { return request({ url: baseApi + "/wms/unplannedreceipt-record-main/create", method: "post", data: params, }); } /** * 计划外出库 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取任务列表 * @param {*} */ export function getUnPlannedIssueJobList(params) { return request({ url: baseApi + "/wms/unplannedissue-job-main/senior", method: "post", data: params, }); } /** * 计划外出库 获取任务明细 * @param {*} id 任务id * */ export function getUnPlannedIssueJobDetail(id) { return request({ url: baseApi + "/wms/unplannedissue-job-main/getUnplannedissueJobById?id=" + id, method: "get", data: {}, }); } /** * 计划外出库任务 承接 * @param {*} id * */ export function takeUnPlannedIssueJob(id) { return request({ url: baseApi + "/wms/unplannedissue-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 计划外出库任务 放弃承接 * @param {*} id * */ export function cancleTakeUnPlannedIssueJob(id) { return request({ url: baseApi + "/wms/unplannedissue-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 计划外出库任务 提交 * @param {*} params */ export function unPlannedIssueJobSubmit(params) { return request({ url: baseApi + "/wms/unplannedissue-job-main/execute", method: "put", data: params, }); } /** * 计划外出库申请 提交 * @param {*} params */ export function unPlannedIssueRequestCreate(params) { return request({ url: baseApi + "/wms/unplannedissue-request-main/create", method: "post", data: params, }); } /** * 计划外出库申请 提交审批 * @param {*} params */ export function unPlannedIssueRequestApprove(id) { return request({ url: baseApi + "/wms/unplannedissue-request-main/submit?id=" + id, method: "put", data: {}, }); } /** * 计划外出库申请 关闭 * @param {*} params */ export function unPlannedIssueRequestClose(id) { return request({ url: baseApi + "/wms/unplannedissue-request-main/close?id=" + id, method: "put", data: {}, }); } /** * 计划外出库申请 审批通过 * @param {*} params */ export function unPlannedIssueRequestApproveAgree(id) { return request({ url: baseApi + "/wms/unplannedissue-request-main/agree?id=" + id, method: "put", data: {}, }); } /** * 计划外出库申请 审批驳回 * @param {*} params */ export function unPlannedIssueRequestApproveRefused(id) { return request({ url: baseApi + "/wms/unplannedissue-request-main/refused?id=" + id, method: "put", data: {}, }); } /** * 计划外出库申请 处理 * @param {*} params */ export function unPlannedIssueRequestHandle(id) { return request({ url: baseApi + "/wms/unplannedissue-request-main/handle?id=" + id, method: "put", data: {}, }); } /** * 计划外出库记录 提交 * @param {*} params */ export function unPlannedIssueRecordSubmit(params) { return request({ url: baseApi + "/wms/unplannedissue-record-main/create", method: "post", data: params, }); } /** * 制品收货 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getProductReceiptJobList(params) { return request({ url: baseApi + "/wms/productreceipt-job-main/senior", method: "post", data: params, }); } /** * 制品收货 获取任务明细 * @param {*} id 任务id * */ export function getProductReceiptJobDetail(id) { return request({ url: baseApi + "/wms/productreceipt-job-main/getProductreceiptJobById?id=" + id, method: "get", data: {}, }); } /** * 制品收货任务 承接 * @param {*} id * */ export function takeProductReceiptJob(id) { return request({ url: baseApi + "/wms/productreceipt-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 制品收货任务 放弃承接 * @param {*} id * */ export function cancleTakeProductReceiptJob(id) { return request({ url: baseApi + "/wms/productreceipt-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 制品收货任务 提交 * @param {*} params */ export function productReceiptJobsubmit(params) { return request({ url: baseApi + "/wms/productreceipt-job-main/execute", method: "put", data: params, }); } /** * 制品收货记录 提交 * @param {*} params */ export function productReceiptRecordsubmit(params) { return request({ url: baseApi + "/wms/productreceipt-record-main/create", method: "post", data: params, }); } /** * 制品上架 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getProductPutawayJobList(params) { return request({ url: baseApi + "/wms/productputaway-job-main/senior", method: "post", data: params, }); } /** * 制品上架 获取任务明细 * @param {*} id 任务id * */ export function getProductPutawayJobDetail(id) { return request({ url: baseApi + "/wms/productputaway-job-main/getProductputawayJobById?id=" + id, method: "get", data: {}, }); } /** * 制品上架任务 承接 * @param {*} id * */ export function takeProductPutawayJob(id) { return request({ url: baseApi + "/wms/productputaway-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 制品上架任务 放弃承接 * @param {*} id * */ export function cancleTakeProductPutawayJob(id) { return request({ url: baseApi + "/wms/productputaway-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 制品上架任务 提交 * @param {*} 任务id * */ export function productPutawayJobSubmit(params) { return request({ url: baseApi + "/wms/productputaway-job-main/execute", method: "put", data: params, }); } /** * 制品上架记录 提交 * @param {*} 任务id * */ export function productPutawayRecordSubmit(params) { return request({ url: baseApi + "/wms/productputaway-record-main/create", method: "post", data: params, }); } /** * 制品拆解 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getProductDismantleJobList(params) { return request({ url: baseApi + "/wms/productdismantle-job-main/senior", method: "post", data: params, }); } /** * 制品拆解 获取任务明细 * @param {*} id 任务id * */ export function getProductDismantleJobDetail(id) { return request({ url: baseApi + "/wms/productdismantle-job-main/getProductdismantleJobById?id=" + id, method: "get", data: {}, }); } /** * 制品拆解 任务承接 * @param {*} id * */ export function takeProductDismantleJob(id) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 制品拆解 放弃承接 * @param {*} id * */ export function cancleTakeProductDismantleJob(id) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 制品拆解 任务提交 * @param {*} 任务id * */ export function productDismantleJobSubmit(params) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/abandon", method: "put", data: {}, }); } /** * 制品拆解 任务提交 * @param {*} 任务id * */ export function productDismantleRecordSubmit(params) { return request({ url: baseApi + "/wms/purchasereceipt-job-main/abandon", method: "put", data: params, }); } /** * 制品发货 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getDeliverJobList(params) { return request({ url: baseApi + "/wms/deliver-job-main/senior", method: "post", data: params, }); } /** * 制品发货 获取任务明细 * @param {*} id 任务id * */ export function getDeliverDetail(id) { return request({ url: baseApi + "/wms/deliver-job-main/getDeliverJobById?id=" + id, method: "get", data: {}, }); } /** * 制品发货任务 承接 * @param {*} id * */ export function takeDeliverJob(id) { return request({ url: baseApi + "/wms/deliver-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 制品发货任务 放弃承接 * @param {*} id * */ export function cancleTakeDeliverJob(id) { return request({ url: baseApi + "/wms/deliver-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 制品发货 任务提交 * @param {*} 任务id * */ export function deliverJobSubmit(params) { return request({ url: baseApi + "/wms/deliver-job-main/execute", method: "put", data: params, }); } /** * 制品发货申请 * 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getDeliverRequestList(params) { return request({ url: baseApi + "/wms/deliver-request-main/senior", method: "post", data: params, }); } /** * 制品发货申请 获取任务明细 * @param {*} id 任务id * */ export function getDeliverRequestDetail(id) { return request({ url: baseApi + "/wms/deliver-request-main/getDeliverRequestById?id=" + id, method: "get", data: {}, }); } /** * 制品发货申请 提交 * @param {*} params */ export function deliverRequestSubmit(params) { return request({ url: baseApi + "/wms/deliver-request-main/create", method: "post", data: params, }); } /** * 制品发货记录 提交 * @param {*} params */ export function deliverRecordSubmit(params) { return request({ url: baseApi + "/wms/deliver-record-main/create", method: "post", data: params, }); } /** * 客户退货 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getCustomerReturnJobList(params) { return request({ url: baseApi + "/wms/customerreturn-job-main/senior", method: "post", data: params, }); } /** * 客户退货 获取任务明细 * @param {*} id 任务id * */ export function getCustomerReturnJobDetail(id) { return request({ url: baseApi + "/wms/customerreturn-job-main/getCustomerreturnJobById?id=" + id, method: "get", data: {}, }); } /** * 客户退货任务 承接 * @param {*} id * */ export function takeCustomerReturnJob(id) { return request({ url: baseApi + "/wms/customerreturn-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 客户退货任务 放弃承接 * @param {*} id * */ export function cancleTakeCustomerReturnJob(id) { return request({ url: baseApi + "/wms/customerreturn-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 客户退货任务 提交 * @param {*} 任务id * */ export function customerReturnJobSubmit(params) { return request({ url: baseApi + "/wms/customerreturn-job-main/execute", method: "put", data: params, }); } /** * 客户退货申请 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getCustomerReturnRequestList(params) { return request({ url: baseApi + "/wms/customerreturn-request-main/senior", method: "post", data: params, }); } /** * 客户退货申请 任务明细 * @param {*} id 任务id * */ export function getCustomerReturnRequestDetail(id) { return request({ url: baseApi + "/wms/customerreturn-request-main/getCustomerreturnRequestById?id=" + id, method: "get", data: {}, }); } /** * 客户退货申请 提交 * @param {*} params */ export function customerReturnRequestSubmit(params) { return request({ url: baseApi + "/wms/customerreturn-request-main/create", method: "post", data: params, }); } /** * 客户退货 记录提交 * @param {*} params */ export function customerReturnRecordSubmit(params) { return request({ url: baseApi + "/wms/customerreturn-record-main/create", method: "post", data: params, }); } /** * 调拨入库 任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getTransferReceiptJobList(params) { return request({ url: baseApi + "/wms/transferreceipt-job-main/senior", method: "post", data: params, }); } /** * 调拨入库 获取任务明细 * @param {*} id 任务id * */ export function getTransferReceiptJobDetail(id) { return request({ url: baseApi + "/wms/transferreceipt-job-main/getTransferreceiptJobById?id=" + id, method: "get", data: {}, }); } /** * 调拨入库任务 承接 * @param {*} id * */ export function takeTransferReceiptJob(id) { return request({ url: baseApi + "/wms/transferreceipt-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 调拨入库 放弃承接 * @param {*} id * */ export function cancleTakeTransferReceiptJob(id) { return request({ url: baseApi + "/wms/transferreceipt-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 调拨入库任务 提交 * @param {*} 任务id * */ export function transferReceiptJobSubmit(params) { return request({ url: baseApi + "/wms/transferreceipt-job-main/execute", method: "put", data: params, }); } /** * 调拨入库记录 提交 * @param {*} id * */ export function transferReceiptRecordSubmit(params) { return request({ url: baseApi + "/wms/transferreceipt-record-main/create", method: "post", data: params, }); } /** * 调拨出库 任务列表 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getTransferIssueJobList(params) { return request({ url: baseApi + "/wms/transferissue-job-main/senior", method: "post", data: params, }); } /** * 调拨出库 获取任务明细 * @param {*} id 任务id * */ export function getTransferIssueJobDetail(id) { return request({ url: baseApi + "/wms/transferissue-job-main/getTransferissueJobById?id=" + id, method: "get", data: {}, }); } /** * 调拨出库任务 承接 * @param {*} id * */ export function takeTransferIssueJob(id) { return request({ url: baseApi + "/wms/transferissue-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 调拨出库任务 放弃承接 * @param {*} id * */ export function cancleTakeTransferIssueJob(id) { return request({ url: baseApi + "/wms/transferissue-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 调拨出库任务 提交 * @param {*} 任务id * */ export function transferIssueJobSubmit(params) { return request({ url: baseApi + "/wms/transferissue-job-main/execute", method: "put", data: params, }); } /** * 调拨出库记录 提交 * @param {*} * */ export function transferIssueRecordSubmit(params) { return request({ url: baseApi + "/wms/transferissue-record-main/create", method: "post", data: params, }); } /** * 制品上架申请 * 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getProductPutawayRequestList(params) { return request({ url: baseApi + "/wms/productputaway-request-main/senior", method: "post", data: params, }); } /** * 制品上架申请 获取任务明细 * @param {*} id 任务id * */ export function getProductPutawayRequestDetail(id) { return request({ url: baseApi + "/wms/productputaway-request-main/getProductputawayRequestById?id=" + id, method: "get", data: {}, }); } /** * 制品上架申请 提交 * @param {*} params */ export function productPutawayRequestSubmit(params) { return request({ url: baseApi + "/wms/productputaway-request-main/create", method: "post", data: params, }); } /** * 制品上架申请 处理 * @param {*} params */ export function productPutawayRequestHandle(id) { return request({ url: baseApi + "/wms/productputaway-request-main/handle?id=" + id, method: "put", data: {}, }); } /** * 制品上架申请 提交审批 * @param {*} params */ export function productPutawayRequestApprove(id) { return request({ url: baseApi + "/wms/productputaway-request-main/submit?id=" + id, method: "put", data: {}, }); } /** * 制品上架申请 提交审批通过 * @param {*} params */ export function productPutawayRequestApproveAgree(id) { return request({ url: baseApi + "/wms/productputaway-request-main/agree?id=" + id, method: "put", data: {}, }); } /** * 制品上架申请 审批驳回 * @param {*} params */ export function productPutawayRequestApproveRefused(id) { return request({ url: baseApi + "/wms/productputaway-request-main/refused?id=" + id, method: "put", data: {}, }); } /** * 制品上架申请 关闭任务 * @param {*} params */ export function productPutawayRequestClose(id) { return request({ url: baseApi + "/wms/productputaway-request-main/close?id=" + id, method: "put", data: {}, }); } /** * 发料申请列表 * @param {*} params */ export function getIssueRequestList(params) { return request({ url: baseApi + "/wms/issue-request-main/senior", method: "post", data: params, }); } /** * 发料申请明细 * @param {*} id */ export function getIssueRequestDetail(id) { return request({ url: baseApi + "/wms/issue-request-main/getIssueRequestById?id=" + id, method: "get", data: {}, }); } /** * 发料申请 提交 * @param {*} params */ export function issueRequestSubmit(params) { return request({ url: baseApi + "/wms/issue-request-main/create", method: "post", data: params, }); } /** * 发料申请 处理 * @param {*} params */ export function issueRequestHandle(id) { return request({ url: baseApi + "/wms/issue-request-main/handle?id=" + id, method: "put", data: {}, }); } /** * 发料申请 提交审批 * @param {*} params */ export function issueRequestSubmitApprove(id) { return request({ url: baseApi + "/wms/issue-request-main/submit?id=" + id, method: "put", data: {}, }); } /** * 发料申请 审批通过 * @param {*} params */ export function issueRequestSubmitApproveAgree(id) { return request({ url: baseApi + "/wms/issue-request-main/agree?id=" + id, method: "put", data: {}, }); } /** * 发料申请 审批驳回 * @param {*} params */ export function issueRequestSubmitApproveRefused(id) { return request({ url: baseApi + "/wms/issue-request-main/refused?id=" + id, method: "put", data: {}, }); } /** * 发料申请 申请关闭 * @param {*} params */ export function issueRequestClose(id) { return request({ url: baseApi + "/wms/issue-request-main/close?id=" + id, method: "put", data: {}, }); } /** * 发料记录 提交 * @param {*} params */ export function issueRecordSubmit(params) { return request({ url: baseApi + "/wms/issue-record-main/create", method: "post", data: params, }); } /** * 生产退料 任务获取任务列表 * 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getProductionreturnJobList(params) { return request({ url: baseApi + "/wms/productionreturn-job-main/senior", method: "post", data: params, }); } /** * 生产退料任务 获取任务明细 * @param {*} id 任务id * */ export function getProductionReturnJobDetail(id) { return request({ url: baseApi + "/wms/productionreturn-job-main/getProductionreturnJobById?id=" + id, method: "get", data: {}, }); } /** * 生产退料 承接任务 * @param {*} id * */ export function takeProductionReturnJob(id) { return request({ url: baseApi + "/wms/productionreturn-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 生产退料 放弃承接 * @param {*} id * */ export function cancleTakeProductionReturnJob(id) { return request({ url: baseApi + "/wms/productionreturn-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 生产退料 任务提交 * @param {*} 任务id * */ export function productionReturnJobSubmit(params) { return request({ url: baseApi + "/wms/productionreturn-job-main/execute", method: "put", data: params, }); } /** * 生产退料申请 获取任务列表 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getProductionReturnRequestList(params) { return request({ url: baseApi + "/wms/productionreturn-request-main/senior", method: "post", data: params, }); } /** * 生产退料申请 获取申请明细 * @param {*} id * */ export function getProductionReturnRequestDetail(id) { return request({ url: baseApi + "/wms/productionreturn-request-main/getProductionreturnRequestById?id=" + id, method: "get", data: {}, }); } /** * 生产退料申请 处理 * @param {*} id * */ export function productionReturnRequestHandle(id) { return request({ url: baseApi + "/wms/productionreturn-request-main/handle?id=" + id, method: "put", data: {}, }); } /** * 生产退料申请 提交审批 * @param {*} id * */ export function productionReturnRequestSubmitApprove(id) { return request({ url: baseApi + "/wms/productionreturn-request-main/submit?id=" + id, method: "put", data: {}, }); } /** * 生产退料申请 审批通过 * @param {*} id * */ export function productionReturnRequestSubmitApproveAgree(id) { return request({ url: baseApi + "/wms/productionreturn-request-main/agree?id=" + id, method: "put", data: {}, }); } /** * 生产退料申请 审批驳回 * @param {*} id * */ export function productionReturnRequestSubmitApproveRefused(id) { return request({ url: baseApi + "/wms/productionreturn-request-main/refused?id=" + id, method: "put", data: {}, }); } /** * 生产退料申请 关闭 * @param {*} id * */ export function productionReturnRequestClose(id) { return request({ url: baseApi + "/wms/productionreturn-request-main/close?id=" + id, method: "put", data: {}, }); } /** * 生产退料申请 创建 * @param {*} params */ export function productionReturnRequestCreate(params) { return request({ url: baseApi + "/wms/productionreturn-request-main/create", method: "post", data: params, }); } /** * 生产退料记录 提交 * @param {*} params */ export function productionReturnRecordSubmit(params) { return request({ url: baseApi + "/wms/productionreturn-record-main/create", method: "post", data: params, }); } /** * 计划外出库申请 * 任务状态 * 开始日期 * 结束日期 * 获取任务列表 * @param {*} */ export function getUnPlannedIssueRequestList(params) { return request({ url: baseApi + "/wms/unplannedissue-request-main/senior", method: "post", data: params, }); } /** * 计划外出库申请 获取明细 * @param {*} id 任务id * */ export function getUnPlannedIssueRequestDetail(id) { return request({ url: baseApi + "/wms/unplannedissue-request-main/getUnplannedissueRequestById?id=" + id, method: "get", data: {}, }); } /** * 计划外入库 申请 * status 任务状态 * 开始日期 * 结束日期 * 获取任务列表 * @param {*} */ export function getUnPlannedReceiptRequestList(params) { return request({ url: baseApi + "/wms/unplannedreceipt-request-main/senior", method: "post", data: params, }); } /** * 计划外入库申请 获取任务明细 * @param {*} id 任务id * */ export function getUnPlannedReceiptRequestDetail(id) { return request({ url: baseApi + "/wms/unplannedreceipt-request-main/getUnplannedreceiptRequestById?id=" + id, method: "get", data: {}, }); } /** * 计划外入库 申请提交 * @param {*} params */ export function unPlannedReceiptRequestSubmit(params) { return request({ url: baseApi + "/wms/purchasereturn-request-main/submit", method: "put", data: params, }); } /** * 报废出库任务 * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getScrapJobList(params) { return request({ url: baseApi + "/wms/scrap-job-main/senior", method: "post", data: params, }); } /** 报废出库 获取任务明细 * @param {*} id 任务id */ export function getScrapJobDetail(id) { return request({ url: baseApi + "/wms/scrap-job-main/getScrapJobById?id=" + id, method: "get", data: {}, }); } /** * 报废出库 任务承接 * @param {*} id * */ export function takeScrapJob(id) { return request({ url: baseApi + "/wms/scrap-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 报废出库 放弃承接 * @param {*} id * */ export function cancleTakeScrapJob(id) { return request({ url: baseApi + "/wms/scrap-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 报废出库 任务提交 * @param {*} 任务id * */ export function scrapJobSubmit(params) { return request({ url: baseApi + "/wms/scrap-job-main/execute", method: "put", data: params, }); } /** * 报废出库 申请 * status 任务状态 * 开始日期 * 结束日期 * 获取任务列表 * @param {*} */ export function getScrapRequestList(params) { return request({ url: baseApi + "/wms/scrap-request-main/senior", method: "post", data: params, }); } /** * 报废出库申请 获取申请明细 * @param {*} id 任务id * */ export function getScrapRequestDetail(id) { return request({ url: baseApi + "/wms/scrap-request-main/getScrapRequestById?id=" + id, method: "get", data: {}, }); } /** * 报废出库申请 创建 * @param {*} params */ export function scrapRequestCreate(params) { return request({ url: baseApi + "/wms/scrap-request-main/create", method: "post", data: params, }); } /** * 报废出库申请 提交审批 * @param {*} params */ export function scrapRequestApprove(id) { return request({ url: baseApi + "/wms/scrap-request-main/submit?id=" + id, method: "put", data: {}, }); } /** * 报废出库申请 关闭 * @param {*} params */ export function scrapRequestClose(id) { return request({ url: baseApi + "/wms/scrap-request-main/close?id=" + id, method: "put", data: {}, }); } /** * 报废出库申请 审批通过 * @param {*} params */ export function scrapRequestApproveAgree(id) { return request({ url: baseApi + "/wms/scrap-request-main/agree?id=" + id, method: "put", data: {}, }); } /** * 报废出库申请 审批驳回 * @param {*} params */ export function scrapRequestApproveRefused(id) { return request({ url: baseApi + "/wms/scrap-request-main/refused?id=" + id, method: "put", data: {}, }); } /** * 报废出库申请 审批驳回 * @param {*} params */ export function scrapRequestHandle(id) { return request({ url: baseApi + "/wms/scrap-request-main/handle?id=" + id, method: "put", data: {}, }); } /** * 报废出库记录 提交 * @param {*} params */ export function scrapRecordSubmit(params) { return request({ url: baseApi + "/wms/scrap-record-main/create", method: "post", data: params, }); } /** * 补料任务 列表 * * status 任务状态 * 开始日期 * 结束日期 * 获取日期任务列表 * @param {*} */ export function getRepleinshJobList(params) { return request({ url: baseApi + "/wms/repleinsh-job-main/senior", method: "post", data: params, }); } /** * 补料任务 获取任务明细 * @param {*} id 任务id * */ export function getRepleinshJobDetail(id) { return request({ url: baseApi + "/wms/repleinsh-job-main/getRepleinshJobById?id=" + id, method: "get", data: {}, }); } /** * 补料 任务承接 * @param {*} id * */ export function takeRepleinshJob(id) { return request({ url: baseApi + "/wms/repleinsh-job-main/accept?id=" + id, method: "put", data: {}, }); } /** * 补料任务 放弃承接 * @param {*} id * */ export function cancleTakeRepleinshJob(id) { return request({ url: baseApi + "/wms/repleinsh-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** * 补料任务 提交 * @param {*} params */ export function repleinshJobSubmit(params) { return request({ url: baseApi + "/wms/repleinsh-job-main/execute", method: "put", data: params, }); } /** * 补料申请 提交 * @param {*} params */ export function repleinshRequestSubmit(params) { return request({ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit", method: "put", data: params, }); } /** * 补料记录 提交 * @param {*} params */ export function repleinshRecordSubmit(params) { return request({ url: baseApi + "/wms/repleinsh-record-main/create", method: "post", data: params, }); } /** * 托盘绑定 提交 * @param {*} params */ export function bindPalledtRecordSubmit(params) { return request({ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit", method: "put", data: params, }); } /** * 托盘解绑 提交 * @param {*} params */ export function unbindPalledtRecordSubmit(params) { return request({ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit", method: "put", data: params, }); } /** * 拆包 提交 * @param {*} params */ export function splitPackageRecordSubmit(params) { return request({ url: baseApi + "/wms/packagesplit-main/create", method: "post", data: params, }); } /** * 合包 提交 * @param {*} params */ export function mergePackageRecordSubmit(params) { return request({ url: baseApi + "/wms/packagemerge-main/create", method: "post", data: params, }); } /** * 翻包 提交 * @param {*} params */ export function overPackageRecordSubmit(params) { return request({ url: baseApi + "/wms/packageover-main/create", method: "post", data: params, }); } /** * "itemCodes": [], "locationCode":"INSPECT" 管理精度策略 * @param {*} * */ export function getManagementPrecision(params) { return request({ url: baseApi + "/wms/rule/getPrecisionStrategyByItemCodes", method: "post", data: params, }); } /** * 查询库存通过多种条件 高级筛选 * @param {*} * */ export function getBalanceByFilter(param) { return request({ url: baseApi + "/wms/balance/senior", method: "post", data: param, }); } /** * 查询管理精度,多个零件,多个库位 * @param {*} * */ export function getPrecisionStrategy(param) { return request({ url: baseApi + "/wms/rule/getPrecisionStrategy", method: "post", 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) }, }); }