You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
958 lines
16 KiB
958 lines
16 KiB
12 months ago
|
import request from '@/api/httpRequest.js'
|
||
|
|
||
|
// let devUrl = "http://dev.ccwin-in.com:59096"
|
||
|
let devUrl = getApp().globalData.dev_url;
|
||
|
devUrl = "http://dev.ccwin-in.com:23132"
|
||
|
|
||
|
|
||
|
export function test(params) {
|
||
|
return request({
|
||
|
url: "http://www.baidu.com",
|
||
|
method: "get",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export function login(params) {
|
||
|
return request({
|
||
|
url: devUrl + "/system/login",
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export function logOut() {
|
||
|
return request({
|
||
|
url: devUrl + "/system/logout",
|
||
|
method: "post",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export function authorize() {
|
||
|
return request({
|
||
|
url: devUrl + "/system/authorize/permissions",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export function getUserInfo() {
|
||
|
return request({
|
||
|
url: devUrl + "/organization/user/current/info",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*获取业务类型}
|
||
|
* locationCode 获取配置字典
|
||
|
*/
|
||
|
export function getBusinesstypeList(params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/basic/getBusinesstypeList",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* Number 按托码查询库存
|
||
|
*/
|
||
|
export function getBalanceByContainer(Number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/query/getBalanceByContainer?Number=" + Number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* Number 按托码查询托码明细
|
||
|
*/
|
||
|
export function getContainerDetailByNumber(Number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/basic/query/getContainerDetailByNumber?Number=" + Number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*器具代码}
|
||
|
* ContainerNumber 按器具查询库存明细
|
||
|
*/
|
||
|
export function getBalanceByContainerNumberGroup(ContainerNumber) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/query/getBalanceByContainerNumberGroup?ContainerNumber=" +
|
||
|
ContainerNumber,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} itemcode
|
||
|
* 按数量管理查询库存
|
||
|
*/
|
||
|
export function getBalanceByItemCode(itemcode) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/query/getBalanceByItemCode?itemcode=" + itemcode,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} itemCode
|
||
|
* 按物品查询库存汇总
|
||
|
*/
|
||
|
export function getBalanceByCodeGroup(itemCode) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/query/getBalanceByCodeGroup?itemCode=" + itemCode,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 按物品查询库存明细
|
||
|
* @param {*} itemCode
|
||
|
*
|
||
|
*/
|
||
|
export function getBalanceByCode(itemCode) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/query/getBalanceByCode?itemCode=" + itemCode,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} code 物品代码
|
||
|
* 查询管理精度按库位查询接口未完成
|
||
|
*/
|
||
|
export function getProductionlineByItemcode_copy_copy(code) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/basic/getProductionlineByItemcode_copy_copy?code=" + code,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} code 物品代码
|
||
|
* 查询管理精度按物品查询接口未完成
|
||
|
*/
|
||
|
export function getProductionlineByItemcode_copy_copy_copy(code) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/basic/getProductionlineByItemcode_copy_copy_copy?code=" + code,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} code 生产线代码
|
||
|
* 查询生产线信息接口
|
||
|
*/
|
||
|
export function getProductionlineByItemcode_copy(code) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/basic/getProductionlineByItemcode_copy?code=" + code,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} number 器具代码
|
||
|
* 根据器具查询包装信息(无器具号)
|
||
|
*/
|
||
|
// export function getBalanceByContainer(number) {
|
||
|
// return request({
|
||
|
// url: devUrl + "/magic-api/pda/basic/getBalanceByContainer?number=" + number,
|
||
|
// method: "get",
|
||
|
// data: {},
|
||
|
// });
|
||
|
// }
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} number ASN编号
|
||
|
* 按ASN查询任务接口
|
||
|
*/
|
||
|
export function getPurchaseReturnByAsnNumber(asnNumber) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/purchasereturn/getJobByAsnNumber?asnNumber=" + asnNumber,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* 承接任务
|
||
|
* jobStatusId:任务id
|
||
|
jobStatusTableName:任务主表表名
|
||
|
jobStatusTableNameDetail:任务子表表名
|
||
|
jobStatusSchemaCode:工作流模板编号
|
||
|
jobStatusStatusType:状态类型 1 取消承接 2 承接 3 执行
|
||
|
*/
|
||
|
export function takeJob(params) {
|
||
|
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/public/jobStatusUpdate?jobStatusId="
|
||
|
+params.jobStatusId
|
||
|
+"&jobStatusTableName="+params.jobStatusTableName
|
||
|
+"&jobStatusTableNameDetail="+params.jobStatusTableNameDetail
|
||
|
+"&jobStatusSchemaCode="+params.jobStatusSchemaCode
|
||
|
+"&jobStatusStatusType="+2,
|
||
|
method: "post",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* 取消承接任务
|
||
|
* jobStatusId:任务id
|
||
|
jobStatusTableName:任务主表表名
|
||
|
jobStatusTableNameDetail:任务子表表名
|
||
|
jobStatusSchemaCode:工作流模板编号
|
||
|
jobStatusStatusType:状态类型 1 取消承接 2 承接 3 执行
|
||
|
*/
|
||
|
export function cancelTakeJob(params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/public/jobStatusUpdate?jobStatusId="
|
||
|
+params.jobStatusId
|
||
|
+"&jobStatusTableName="+params.jobStatusTableName
|
||
|
+"&jobStatusTableNameDetail="+params.jobStatusTableNameDetail
|
||
|
+"&jobStatusSchemaCode="+params.jobStatusSchemaCode
|
||
|
+"&jobStatusStatusType="+1,
|
||
|
method: "post",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} id 任务id
|
||
|
* 暂存任务
|
||
|
*/
|
||
|
export function jobStatusToTemporary(id) {
|
||
|
return request({
|
||
|
url: devUrl + `/magic-api/pda/job/purchasereceipt/jobStatusToTemporary${id}`,
|
||
|
method: "post",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} id 任务id
|
||
|
* 获取任务明细暂存
|
||
|
* {masterID,page,size
|
||
|
}
|
||
|
*/
|
||
|
export function getJobDetailStaging(params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/purchasereceipt/getJobDetailStaging",
|
||
|
method: "get",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/**采购收货
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getPurchaseReceiptJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/purchasereceipt/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} number ASN编号
|
||
|
* 按ASN查询任务接口
|
||
|
*/
|
||
|
export function getPurchasereceiptByAsnNumber(asnNumber) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/purchasereceipt/getJobByAsnNumber?asnNumber=" + asnNumber,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* 获取任务总数量
|
||
|
*/
|
||
|
export function purchasereceiptGetJobCount() {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/purchasereceipt/getJobCount",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* 获取新增任务数量
|
||
|
*/
|
||
|
export function purchasereceiptNewJobCount() {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/purchasereceipt/getNewJobCount",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 到货检验任务 提交
|
||
|
* @param {*} params
|
||
|
*/
|
||
|
export function submitInspectJob(id, params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/purchasereturn/jobSubmit?id=" + id,
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} packingNumber
|
||
|
* 按唯一码管理查询库存
|
||
|
*/
|
||
|
export function getBalanceByUniquecode(packingNumber) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/basic/getBalanceByUniquecode?packingNumber=" + packingNumber,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} requestTime Creatorld
|
||
|
* 发料任务筛选接口
|
||
|
*/
|
||
|
export function getIssueJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/issue/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} 任务id
|
||
|
* 提交任务
|
||
|
*/
|
||
|
export function issueJobSubmit(id, params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/issue/jobSubmit?id=" + id,
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
export function getPurchaseReturnJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/purchasereturn/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 采购退货 申请列表
|
||
|
* @param {*}
|
||
|
* 任务状态
|
||
|
* CreationTimeStart 开始日期
|
||
|
* CreationTimeEnd 结束日期
|
||
|
* 获取日期任务列表
|
||
|
*/
|
||
|
export function getPurchaseReturnRequestList(params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/request/purchasereturn/getRequestList",
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 原料上架
|
||
|
* @param {*}
|
||
|
* status 任务状态
|
||
|
* CreationTimeStart 开始日期
|
||
|
* CreationTimeEnd 结束日期
|
||
|
* 获取日期任务列表
|
||
|
*/
|
||
|
export function getPutawayJobList(params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/putaway/getJobList",
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} id 任务id
|
||
|
* 原料上架获取任务明细
|
||
|
*/
|
||
|
export function putawayGetJobDetail(id) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/putaway/getJobDetail?id=" + id,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**原料上架
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getPutawayJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/putaway/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**生产收料
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getProductionReceiptJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productionreceipt/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**生产退料
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getProductionreturnJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productionreturn/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**盘点
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getJobCountByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/count/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} id 任务id
|
||
|
* 制品收货 承接任务
|
||
|
*/
|
||
|
export function takeProductReceiptJob(id) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productreceipt/jobStatusToDoing?id=" + id,
|
||
|
method: "post",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} id 任务id
|
||
|
* 制品收货 取消承接任务
|
||
|
*/
|
||
|
export function cancelTakeProductReceiptJob(id) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productreceipt/jobStatusToOpen?id=" + id,
|
||
|
method: "post",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**制品收货
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getProductReceipJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productreceipt/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} 任务id
|
||
|
* 提交制品收货
|
||
|
*/
|
||
|
export function submitProductReceiptJob(id, params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productreceipt/jobSubmit?id=" + id,
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* 获取任务总数量
|
||
|
*/
|
||
|
export function getProductReceiptJobCount() {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productreceipt/getJobCount",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* 获取新增任务数量
|
||
|
*/
|
||
|
export function getProductReceiptJobNewCount() {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productreceipt/getNewJobCount",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**制品收货
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getProductPutawayJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productputaway/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*} 任务id
|
||
|
* 提交制品收货
|
||
|
*/
|
||
|
export function submitProductPutawayJob(id, params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productputaway/jobSubmit?id=" + id,
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* 获取任务总数量
|
||
|
*/
|
||
|
export function getProductPutawayJobCount() {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productputaway/getJobCount",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*}
|
||
|
* 获取新增任务数量
|
||
|
*/
|
||
|
export function getProductPutawayJobNewCount() {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/productputaway/getNewJobCount",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {*按编号查询生产线}
|
||
|
*
|
||
|
*/
|
||
|
export function getProductionlineByCode(param) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/basic/getProductionlineByCode",
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**计划外入库
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getJobUnPlannedReceiptByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/unplannedreceipt/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**计划外出库
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getJobUnPlannedIssueByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/unPlannedIssue/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**库存转移
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getInventoryMoveJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/inventorymove/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**制品发货
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getDeliverJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/deliver/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 制品发货提交
|
||
|
* @param {*} params
|
||
|
*/
|
||
|
export function deliverJobSubmit(id, params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/deliver/jobSubmit?id=" + id,
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**客户退货
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getCustomerReturnJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/customerreturn/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 客户退货提交
|
||
|
* @param {*} params
|
||
|
*/
|
||
|
export function customerReturnSubmit(id, params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/customerreturn/jobSubmit?id=" + id,
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**调拨入库
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getTransferReceiptJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/transferreceipt/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 调拨入库提交
|
||
|
* @param {*} params
|
||
|
*/
|
||
|
export function transferReceiptSubmit(id, params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/transferreceipt/jobSubmit?id=" + id,
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**调拨出库
|
||
|
*
|
||
|
* @param {*} number 任务编号
|
||
|
* 按任务编号查询任务
|
||
|
*/
|
||
|
export function getTransferIssueJobByNumber(number) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/transferissue/getJobByNumber?Number=" + number,
|
||
|
method: "get",
|
||
|
data: {},
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* 调拨出库提交
|
||
|
* @param {*} params
|
||
|
*/
|
||
|
export function transferIssueSubmit(id, params) {
|
||
|
return request({
|
||
|
url: devUrl + "/magic-api/pda/job/transferissue/jobSubmit?id=" + id,
|
||
|
method: "post",
|
||
|
data: params,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|