|
|
|
@ -8,80 +8,80 @@ export const getList = (current, size, params) => {
|
|
|
|
|
...params, |
|
|
|
|
current, |
|
|
|
|
size, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export const stockUp = ( params) => { |
|
|
|
|
export const stockUp = params => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/stockUp', |
|
|
|
|
method: 'get', |
|
|
|
|
params: { |
|
|
|
|
...params, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export const getStockUpArea = () => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/getStockUpArea', |
|
|
|
|
method: 'get', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export const getDetail = (id) => { |
|
|
|
|
export const getDetail = id => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/detail', |
|
|
|
|
method: 'get', |
|
|
|
|
params: { |
|
|
|
|
id |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
id, |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export const remove = (ids) => { |
|
|
|
|
export const remove = ids => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/remove', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
ids, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
export const disable = (ids) => { |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
export const disable = ids => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/disable', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
ids, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
export const enable = (ids) => { |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
export const enable = ids => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/enable', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
ids, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export const add = (row) => { |
|
|
|
|
export const add = row => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/save', |
|
|
|
|
method: 'post', |
|
|
|
|
data: row |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
data: row, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export const update = (row) => { |
|
|
|
|
export const update = row => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/update', |
|
|
|
|
method: 'post', |
|
|
|
|
data: row |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
data: row, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export const getWarehouseList = (current, size, params) => { |
|
|
|
|
return request({ |
|
|
|
@ -91,9 +91,9 @@ export const getWarehouseList = (current, size, params) => {
|
|
|
|
|
...params, |
|
|
|
|
current, |
|
|
|
|
size, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
// /**
|
|
|
|
|
// * 货区下拉列表数据获取
|
|
|
|
|
// * @param current
|
|
|
|
@ -122,8 +122,8 @@ export const getGoodsAreaList = () => {
|
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/list', |
|
|
|
|
method: 'get', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
/** |
|
|
|
|
* 货区列表信息 |
|
|
|
|
* @param id 仓库ID |
|
|
|
@ -133,8 +133,8 @@ export const getGoodsAreaNodeList = () => {
|
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/getNode', |
|
|
|
|
method: 'get', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
/** |
|
|
|
|
* 货区列表信息 |
|
|
|
|
* @param id 仓库ID |
|
|
|
@ -144,25 +144,32 @@ export const getGoodsAreaoptionList = () => {
|
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/getAreaoption', |
|
|
|
|
method: 'get', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 查询当前登录人所能操作的备货区 |
|
|
|
|
* @param params |
|
|
|
|
* @returns {AxiosPromise} |
|
|
|
|
*/ |
|
|
|
|
export const stockUpInfo = ( params) => { |
|
|
|
|
export const stockUpInfo = params => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/stockUpInfo', |
|
|
|
|
method: 'get', |
|
|
|
|
params: { |
|
|
|
|
params, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
/** |
|
|
|
|
* 查询当前登录人所能操作的备货区 |
|
|
|
|
* @param params |
|
|
|
|
* @returns {AxiosPromise} |
|
|
|
|
*/ |
|
|
|
|
export const $_stockUpInfo = params => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/api/logpm-basicdata/goodsArea/stockUpInfo', |
|
|
|
|
method: 'get', |
|
|
|
|
params, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|