|
@ -1,11 +1,9 @@ |
|
|
import request from '@/utils/request' |
|
|
import request from '@/utils/request' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
|
|
|
|
|
|
// 查询分页列表
|
|
|
// 查询分页列表
|
|
|
listPage: function(params) { |
|
|
listPage: function(params) { |
|
|
return request({ |
|
|
return request({ |
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
|
|
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/listPage', |
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/listPage', |
|
|
method: 'post', |
|
|
method: 'post', |
|
|
data: params, |
|
|
data: params, |
|
@ -14,10 +12,8 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
deleteBySids: function(data) { |
|
|
deleteBySids: function(data) { |
|
|
return request({ |
|
|
return request({ |
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
|
|
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/delBySids', |
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/delBySids', |
|
|
method: 'DELETE', |
|
|
method: 'DELETE', |
|
|
data: data, |
|
|
data: data, |
|
@ -26,59 +22,49 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 保存物流信息
|
|
|
// 保存物流信息
|
|
|
saveLogisticsInfo: function(data) { |
|
|
saveLogisticsInfo: function(data) { |
|
|
return request({ |
|
|
return request({ |
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
|
|
|
|
url: '/wms/v1/wmsinventoryallocatebilllogistics/saveLogisticsInfo', |
|
|
url: '/wms/v1/wmsinventoryallocatebilllogistics/saveLogisticsInfo', |
|
|
method: 'post', |
|
|
method: 'post', |
|
|
data: data, |
|
|
data: data, |
|
|
headers: { |
|
|
headers: { |
|
|
'Content-Type': 'application/json' |
|
|
'Content-Type': 'application/json' |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 新增、保存
|
|
|
// 新增、保存
|
|
|
save: function(data) { |
|
|
save: function(data) { |
|
|
return request({ |
|
|
return request({ |
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
|
|
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/save', |
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/save', |
|
|
method: 'post', |
|
|
method: 'post', |
|
|
data: data, |
|
|
data: data, |
|
|
headers: { |
|
|
headers: { |
|
|
'Content-Type': 'application/json' |
|
|
'Content-Type': 'application/json' |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 初始化
|
|
|
// 初始化
|
|
|
init: function(data) { |
|
|
init: function(data) { |
|
|
return request({ |
|
|
return request({ |
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
|
|
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/fetchDetailsBySid/' + data, |
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/fetchDetailsBySid/' + data, |
|
|
method: 'get' |
|
|
method: 'get' |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 调拨
|
|
|
// 调拨
|
|
|
allocation: function(data) { |
|
|
allocation: function(data) { |
|
|
return request({ |
|
|
return request({ |
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
|
|
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/submitApply', |
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/submitApply', |
|
|
method: 'post', |
|
|
method: 'post', |
|
|
data: data, |
|
|
data: data, |
|
|
headers: { |
|
|
headers: { |
|
|
'Content-Type': 'application/json' |
|
|
'Content-Type': 'application/json' |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询所有商品
|
|
|
// 查询所有商品
|
|
|
getGoods: function(params) { |
|
|
getGoods: function(params) { |
|
|
return request({ |
|
|
return request({ |
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
|
|
|
|
url: '/wms/apiadmin/inventory/wmsinventory/alloGoodsListPage', |
|
|
url: '/wms/apiadmin/inventory/wmsinventory/alloGoodsListPage', |
|
|
method: 'post', |
|
|
method: 'post', |
|
|
data: params, |
|
|
data: params, |
|
@ -87,7 +73,6 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 查询所有仓库
|
|
|
// 查询所有仓库
|
|
|
getWarehouses: function(params) { |
|
|
getWarehouses: function(params) { |
|
|
return request({ |
|
|
return request({ |
|
@ -99,8 +84,6 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 根据仓库查询库位
|
|
|
// 根据仓库查询库位
|
|
|
getWarehouseareas: function(data) { |
|
|
getWarehouseareas: function(data) { |
|
|
return request({ |
|
|
return request({ |
|
@ -110,12 +93,8 @@ export default { |
|
|
headers: { |
|
|
headers: { |
|
|
'Content-Type': 'application/json' |
|
|
'Content-Type': 'application/json' |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 流程审批(同意)
|
|
|
// 流程审批(同意)
|
|
|
complete: function(params) { |
|
|
complete: function(params) { |
|
|
return request({ |
|
|
return request({ |
|
@ -197,6 +176,5 @@ export default { |
|
|
method: 'get', |
|
|
method: 'get', |
|
|
params: data |
|
|
params: data |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|