123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- import { axios } from '@/utils/request'
- // 调回单列表
- export const shelfRecallList = (params) => {
- const url = `/shelfRecall/queryPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('列表查询')
- }
- })
- }
- // 调回单详情列表
- export const shelfRecallDetailList = (params) => {
- const url = 'shelfRecall/detail/queryList'
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('明细列表')
- }
- })
- }
- // 确认退库
- export const warehouseCascadeList = (params) => {
- const url = '/shelfRecall/confirm'
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('退库-确认退库')
- }
- })
- }
- // 取消调回单
- export const shelfRecallCancel = params => {
- return axios({
- url: '/shelfRecall/cancel',
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('取消调回单')
- }
- })
- }
- // 删除回调单
- export const shelfRecallDelete = params => {
- return axios({
- url: `/shelfRecall/delete/${params.recallBillSn}`,
- method: 'get',
- headers:{
- 'module': encodeURIComponent('删除')
- }
- })
- }
- // 保存 调回单
- export const shelfRecallSave = params => {
- return axios({
- url: '/shelfRecall/insert',
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('新增调回单-确认调回')
- }
- })
- }
- // 查询不同状态的数据条数
- export const shelfRecallStateCount = (params) => {
- return axios({
- url: '/shelfRecall/queryStateCount',
- data: params,
- method: 'post'
- })
- }
- // 获取调回单详情
- export const shelfRecallDetail = params => {
- return axios({
- url: `/shelfRecall/findBySn/${params.recallSn}`,
- method: 'get',
- headers:{
- 'module': encodeURIComponent('调回单详情')
- }
- })
- }
- // 生成销售退货单
- export const generateSaleReturnBill = params => {
- return axios({
- url: `/shelfRecall/generateSaleReturnBill`,
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('生成销售退货单')
- }
- })
- }
- // 调回入库列表
- export const recallStockList = (params) => {
- const url = `/shelfRecall/queryStockPutPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('调回入库列表')
- }
- })
- }
- // 调回入库信息
- export const recallrStockDetail = params => {
- return axios({
- url: `/stockPut/findBySn/${params.stockPutSn}`,
- method: 'get',
- headers:{
- 'module': encodeURIComponent('调回入库详情')
- }
- })
- }
- // 调回单入库明细列表
- export const recallrStockDetailList = params => {
- return axios({
- url: `/stockPut/detail/query`,
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('调回入库明细列表')
- }
- })
- }
- // 修改仓库仓位
- export const updateSelective = (params) => {
- return axios({
- url: '/stockPut/detail/updateSelective',
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('修改仓库仓位')
- }
- })
- }
- // 确认入库
- export const confirmPutStock = (params) => {
- return axios({
- url: '/shelfRecall/confirmPutStock',
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('确认入库')
- }
- })
- }
- // 待入库数量
- export const stockPutCount = params => {
- return axios({
- url: '/shelfRecall/queryStockPutCount',
- data: params,
- method: 'post',
- headers:{
- 'module': encodeURIComponent('待入库数量')
- }
- })
- }
|