feat(storegoods): 新增成品采购进仓模块
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+17
-8
@@ -9,13 +9,7 @@ const install = (Vue, vm) => {
|
||||
console.log('install u',config)
|
||||
|
||||
// 接口前缀统一走 hcscm(apiurl 已在 config.js 配置为 hcscm 服务)
|
||||
// 部分基础资料(往来单位、营销体系)仍在 hcscm_weave
|
||||
const getApiUrl = () => String(vm.$store.state.apiurl || '');
|
||||
const getWeaveApiUrl = () => {
|
||||
const url = getApiUrl();
|
||||
if (url.indexOf('hcscm_weave') !== -1) return url;
|
||||
return url.replace('/hcscm/', '/hcscm_weave/');
|
||||
};
|
||||
|
||||
const GFM_OTHER_DELIVERY_PREFIX = '/grey_fabric_manage/gfmOtherDeliveryOrder/';
|
||||
const gfmOtherDeliveryUrl = (name) => getApiUrl() + GFM_OTHER_DELIVERY_PREFIX + name;
|
||||
@@ -32,6 +26,9 @@ const install = (Vue, vm) => {
|
||||
const FPM_PROCESS_OUT_PREFIX = '/product/fpmProcessOutOrder/';
|
||||
const fpmProcessOutUrl = (name) => getApiUrl() + FPM_PROCESS_OUT_PREFIX + name;
|
||||
|
||||
const FPM_PRC_IN_PREFIX = '/product/fpmPrcInOrder/';
|
||||
const fpmPrcInUrl = (name) => getApiUrl() + FPM_PRC_IN_PREFIX + name;
|
||||
|
||||
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
||||
vm.$u.api = {
|
||||
|
||||
@@ -100,6 +97,18 @@ const install = (Vue, vm) => {
|
||||
getOutTypeEnum: (params = {}) => vm.$u.get(getApiUrl() + '/product/enum/getProcessOutTypeTypeEnum', params),
|
||||
},
|
||||
|
||||
// 成品采购进仓单
|
||||
fpmPrcInOrder: {
|
||||
list: (params = {}) => vm.$u.get(fpmPrcInUrl('getFpmPrcInOrderList'), params),
|
||||
detail: (params = {}) => vm.$u.get(fpmPrcInUrl('getFpmPrcInOrder'), params),
|
||||
add: (params = {}) => vm.$u.postJson(fpmPrcInUrl('addFpmPrcInOrder'), params),
|
||||
scanUpdate: (params = {}) => vm.$u.putJson(fpmPrcInUrl('updateFpmPrcInOrder'), params),
|
||||
statusPass: (params = {}) => vm.$u.putJson(fpmPrcInUrl('updateFpmPrcInOrderStatusPass'), params),
|
||||
statusWait: (params = {}) => vm.$u.putJson(fpmPrcInUrl('updateFpmPrcInOrderStatusWait'), params),
|
||||
statusReject: (params = {}) => vm.$u.putJson(fpmPrcInUrl('updateFpmPrcInOrderStatusReject'), params),
|
||||
statusCancel: (params = {}) => vm.$u.putJson(fpmPrcInUrl('updateFpmPrcInOrderStatusCancel'), params),
|
||||
},
|
||||
|
||||
// 物理仓库下拉
|
||||
physicalWarehouse: {
|
||||
getDropdownList: (params = {}) => vm.$u.get('/warehouse/physicalWarehouse/getPhysicalWarehouseDropdownList', params),
|
||||
@@ -110,9 +119,9 @@ const install = (Vue, vm) => {
|
||||
getByQrCode: (params = {}) => vm.$u.get('/warehouse/warehouseBin/getWarehouseBin', params),
|
||||
},
|
||||
|
||||
// 营销体系下拉(基础资料在 hcscm_weave)
|
||||
// 营销体系下拉
|
||||
saleSystem: {
|
||||
getDropdownList: (params = {}) => vm.$u.get(getWeaveApiUrl() + '/saleSystem/getSaleSystemDropdownList', params),
|
||||
getDropdownList: (params = {}) => vm.$u.get(getApiUrl() + '/saleSystem/getSaleSystemDropdownList', params),
|
||||
},
|
||||
|
||||
// 往来单位列表
|
||||
|
||||
Reference in New Issue
Block a user