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.
169 lines
3.8 KiB
169 lines
3.8 KiB
import request from '@/utils/request'
|
|
// 其他出库
|
|
export default {
|
|
|
|
// 查询分页列表
|
|
listPage: function(params) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/v1/wmsotheroutapply/listPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
deleteBySids: function(data) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/v1/wmsotheroutapply/delBySids',
|
|
method: 'DELETE',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
// 详情
|
|
fetchDetailsBySid: function(params) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/v1/wmsotheroutapply/fetchDetailsBySid/' + params,
|
|
method: 'get',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
// 获取商品
|
|
sourceBillBySid: function(params) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/apiadmin/inventory/wmsinventory/otherOutGoodsListPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
// 保存
|
|
save: function(data) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/v1/wmsotheroutapply/save',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
},
|
|
|
|
// 提交
|
|
submit: function(data) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/v1/wmsotheroutapply/submitApply',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
},
|
|
|
|
|
|
// 流程审批(同意)
|
|
complete: function(params) {
|
|
return request({
|
|
url: '/wms/v1/wmsotheroutapply/complete',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
// 流程审批(加签)
|
|
delegate: function(params) {
|
|
return request({
|
|
url: '/wms/v1/wmsotheroutapply/delegate',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
// 流程审批(转办)
|
|
assignTask: function(params) {
|
|
return request({
|
|
url: '/wms/v1/wmsotheroutapply/assignTask',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
// 流程审批(驳回)
|
|
reject: function(params) {
|
|
return request({
|
|
url: '/wms/v1/wmsotheroutapply/reject',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
// 流程审批(终止)
|
|
breakProcess: function(params) {
|
|
return request({
|
|
url: '/wms/v1/wmsotheroutapply/breakProcess',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
// 流程审批(撤回)
|
|
revokeProcess: function(params) {
|
|
return request({
|
|
url: '/wms/v1/wmsotheroutapply/revokeProcess',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
// 审批流程(同意)获取下一环节
|
|
getNextNodesForSubmit: function(data) {
|
|
return request({
|
|
url: '/wms/v1/wmsotheroutapply/getNextNodesForSubmit',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
},
|
|
// 审批流程(驳回)获取上一环节
|
|
getPreviousNodesForReject: function(data) {
|
|
return request({
|
|
url: '/wms/v1/wmsotheroutapply/getPreviousNodesForReject',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|