...
|
...
|
@@ -2,159 +2,165 @@ const _ = require('lodash'); |
|
|
|
|
|
// api调用列表
|
|
|
let domainApis = {
|
|
|
erp: {
|
|
|
login: '/erp-gateway-web/account/profile/login',
|
|
|
update: '/erp-gateway-web/account/profile/update',
|
|
|
getPurview: '/erp-gateway-web/account/menu/query_by_pid',
|
|
|
allotList: '/erp-gateway-web/purchase/queryPurchaseList',
|
|
|
allotPurchaseList: '/erp-gateway-web/purchase/list',
|
|
|
allotDelivery: '/erp-gateway-web/purchase/delivery',
|
|
|
allotExpressList: '/erp-gateway-web/purchase/expressList',
|
|
|
allotExpressDetail: '/erp-gateway-web/purchase/expressDetail',
|
|
|
allotWarehouseInfo: '/erp-gateway-web/purchase/queryBySupplierId',
|
|
|
allotStockOut: '/erp-gateway-web/purchase/stockOut',
|
|
|
allotExpressNumList: '/erp-gateway-web/purchase/queryExpressListByExpressNumber',
|
|
|
allotExpressCompList: '/erp-gateway-web/logistics_company/list',
|
|
|
allotExportList: '/erp-gateway-web/export/exportForPurchaseForm',
|
|
|
allotPrintExpressDetail: '/erp-gateway-web/purchase/queryExpressListByExpressNumber',
|
|
|
diffWorkOrderList: '/erp-gateway-web/logistics/workOrder/shop/queryPage',
|
|
|
diffWorkOrderDetail: '/erp-gateway-web/logistics/workOrder/shop/queryInfo',
|
|
|
diffWorkOrderInfo: '/erp-gateway-web/logistics/workOrder/shop/queryDiff',
|
|
|
diffEditWorkOrderOtherInfo: '/erp-gateway-web/logistics/workOrder/shop/editOtherInfo',
|
|
|
returnSupplierList: '/erp-gateway-web/return_supplier_list/list',
|
|
|
returnSupplierDetail: '/erp-gateway-web/return_supplier_list/detail',
|
|
|
exportProductReturnList: '/erp-gateway-web/export/exportReturnForInvoice',
|
|
|
exportProductReturnDetail: '/erp-gateway-web/export/exportReturnDetailForInvoice',
|
|
|
jitProductList: '/erp-gateway-web/product/jitProductList',
|
|
|
getJitStorageListBySkn: '/erp-gateway-web/product/getJitStorageListBySkn',
|
|
|
importJitStorage: '/erp-gateway-web/product/importJitStorage',
|
|
|
storerooms: '/erp-gateway-web/storehouse/list',
|
|
|
invoiceList: '/erp-gateway-web/invoices/list',
|
|
|
invoiceInfo: '/erp-gateway-web/invoices/info',
|
|
|
invoiceCreate: '/erp-gateway-web/invoices/create',
|
|
|
invoiceUpdate: '/erp-gateway-web/invoices/update',
|
|
|
invoiceDelete: '/erp-gateway-web/invoices/delete',
|
|
|
invoiceCommit: '/erp-gateway-web/invoices/commit',
|
|
|
invoiceSend: '/erp-gateway-web/invoices/goods/sendExpress',
|
|
|
goodsList: '/erp-gateway-web/invoices/goods/list',
|
|
|
invoiceGoodsAvailable: '/erp-gateway-web/invoices/goods/available',
|
|
|
invoiceGoodsAdd: '/erp-gateway-web/invoices/goods/add',
|
|
|
invoiceGoodsUpdate: '/erp-gateway-web/invoices/goods/update',
|
|
|
invoiceGoodsDelete: '/erp-gateway-web/invoices/goods/delete',
|
|
|
invoiceGoodsImport: '/erp-gateway-web/invoices/goods/import',
|
|
|
supplementProductList: '/erp-gateway-web/supplementProduct/list',
|
|
|
expressList: '/erp-gateway-web/purchase/expressList',
|
|
|
expressDetail: '/erp-gateway-web/purchase/expressDetail',
|
|
|
exportAllExpressDetail: '/erp-gateway-web/purchase/exportAllExpressDetail',
|
|
|
exportExpressDetail: '/erp-gateway-web/purchase/exportExpressDetail',
|
|
|
expressExport: '/erp-gateway-web/export/exportExpressForInvoice',
|
|
|
balanceList: '/erp-gateway-web/financeBill/balanceList',
|
|
|
balanceDetail: '/erp-gateway-web/financeBill/balanceDetail',
|
|
|
settlementList: '/erp-gateway-web/financeBill/settlementList',
|
|
|
inventoryLedgerList: '/erp-gateway-web/fms/inventoryLedger/list',
|
|
|
exportBalanceList: '/erp-gateway-web/export/exportBalanceList',
|
|
|
exportInventoryLedgerList: '/erp-gateway-web/export/exportInventoryLedgerList',
|
|
|
exportSettlementDetail: '/erp-gateway-web/export/exportSettlementDetail',
|
|
|
exportBalanceDetail: '/erp-gateway-web/export/exportBalanceDetail',
|
|
|
balanceDetailSum: '/erp-gateway-web/financeBill/balanceDetailSum',
|
|
|
settlementListSum: '/erp-gateway-web/financeBill/settlementListSum',
|
|
|
defectGoodsList: '/erp-gateway-web/wms/defectGoods/list',
|
|
|
defectGoodsImg: '/erp-gateway-web/wms/defectGoods/detail',
|
|
|
storageList: '/erp-gateway-web/storageDetail/stock',
|
|
|
exportStorageDetailList: '/erp-gateway-web/export/exportStorageDetailList',
|
|
|
favoriteBalanceList: '/erp-gateway-web/finance/favoriteBalanceDetail/pageList',
|
|
|
favoriteBalanceCheck: '/erp-gateway-web/finance/favoriteBalanceDetail/check',
|
|
|
clearingList: '/erp-gateway-web/favorite/clearing/list',
|
|
|
clearingDetail: '/erp-gateway-web/favorite/clearingDetail/list',
|
|
|
queryByPidForFavorite: '/erp-gateway-web/account/profile/queryByPidForFavorite',
|
|
|
exportFavoriteClearingList: '/erp-gateway-web/export/favoriteClearingList',
|
|
|
exportFavoriteClearingDetail: '/erp-gateway-web/export/favoriteClearingDetail',
|
|
|
exportFavoriteBalanceDetail: '/erp-gateway-web/export/exportFavoriteBalanceDetail'
|
|
|
},
|
|
|
platform: {
|
|
|
queryShopsByAdminPid: '/SellerShopController/queryShopsByAdminPid',
|
|
|
getSellerBrandInfo: '/SellerProductController/getSellerBrandInfo',
|
|
|
getSellerSortInfo: '/SellerProductController/getSellerSortInfo',
|
|
|
querySellerProductColors: '/SellerProductController/querySellerProductColors',
|
|
|
querySortSize: '/SellerSortSizeController/querySortSize',
|
|
|
addProduct: '/SellerProductController/addProduct',
|
|
|
queryProductParamBySortId: '/SellerStandardController/queryProductParamBySortId',
|
|
|
selectAttributes: '/SellerProductAttributeController/selectAttributes',
|
|
|
querySellerProductMaterial: '/SellerProductController/querySellerProductMaterial',
|
|
|
updateSellerProductNetSaleInfo: '/SellerProductController/updateSellerProductNetSaleInfo',
|
|
|
querySellerProductList: '/SellerProductController/querySellerProductList',
|
|
|
queryVipProductList: '/sellerVip/queryProductVipList',
|
|
|
changeVipPriceStatus: '/sellerVip/batchChangeStatus',
|
|
|
productOutSale: '/SellerSknStatusController/productOutSale',
|
|
|
productOnSale: '/SellerSknStatusController/productOnSale',
|
|
|
queryProdSizeList: '/SellerProductSize/queryProdSizeList',
|
|
|
saveProdSizeInfo: '/SellerProductSize/saveProdSizeInfo',
|
|
|
getSellerAllSortInfo: '/SellerProductController/getSellerAllSortInfo',
|
|
|
exportSellerProductList: '/SellerProductController/exportSellerProductList',
|
|
|
updateSellerPrice: '/SellerPriceController/updateSellerPrice',
|
|
|
updateProduct: '/SellerProductController/updateProduct',
|
|
|
getProduct: '/SellerProductController/getProduct',
|
|
|
getShopDetailById: '/SellerShopController/getShopDetailById',
|
|
|
updateShopBaseInfoById: '/SellerShopController/updateShopBaseInfoById',
|
|
|
uploads: '/fileupload/uploads',
|
|
|
findBusinessShopsDecorator: '/ShopsDecoratorRest/findBusinessShopsDecorator',
|
|
|
getShopsCategoryList: '/SellerShopController/getShopsCategoryList',
|
|
|
addOrUpdateShopsCategory: '/SellerShopController/addOrUpdateShopsCategory',
|
|
|
deleteShopsCategory: '/SellerShopController/deleteShopsCategory',
|
|
|
getAllProduct: '/SellerShopController/getAllProduct',
|
|
|
getBindProductCount: '/SellerShopController/getBindProductCount',
|
|
|
getBindProduct: '/SellerShopController/getBindProduct',
|
|
|
addCategoryLinkProduct: '/SellerShopController/addCategoryLinkProduct',
|
|
|
deleteCategoryLinkProduct: '/SellerShopController/deleteCategoryLinkProduct',
|
|
|
getRemoteImageUrlBySku: '/product/getRemoteImageUrlBySku',
|
|
|
importSeller: '/batch/importSeller',
|
|
|
downloadFile: '/exceltemplate/download/CreateProductForShops',
|
|
|
getSellType: '/SellerProductController/getSellType',
|
|
|
queryProductPhotoList: '/sellerProductPhoto/queryProductPhotoList',
|
|
|
getConsultList: '/seller/consult/getConsultList',
|
|
|
consultReply: '/seller/consult/reply',
|
|
|
getShareOrderList: '/seller/shareOrder/shareOrderList',
|
|
|
sensitiveWordValidate: '/sensitiveWord/validate',
|
|
|
queryOneShopOverview: '/merchant/queryOneShopOverview',
|
|
|
queryOneShopDayTrend: '/merchant/queryOneShopDayTrend',
|
|
|
exportOneShopOverview: '/merchant/exportOneShopOverview',
|
|
|
queryOneShopProductOverview: '/merchant/queryOneShopProductOverview',
|
|
|
exportOneShopProductOverview: '/merchant/exportOneShopProductOverview',
|
|
|
batchAddProduct: '/SellerDistributionController/batchAddProduct',
|
|
|
queryWarehouseProductList: '/SellerDistributionController/queryWarehouseProductList',
|
|
|
batchDelProduct: '/SellerDistributionController/batchDelProduct',
|
|
|
queryPoolProductList: '/SellerDistributionController/queryPoolProductList',
|
|
|
getBrandNames: '/SellerDistributionController/getBrandNames'
|
|
|
},
|
|
|
shop: {
|
|
|
login: '/loginInter',
|
|
|
switchShop: '/index/ajaxshop'
|
|
|
}
|
|
|
erp: {
|
|
|
login: '/erp-gateway-web/account/profile/login',
|
|
|
update: '/erp-gateway-web/account/profile/update',
|
|
|
getPurview: '/erp-gateway-web/account/menu/query_by_pid',
|
|
|
allotList: '/erp-gateway-web/purchase/queryPurchaseList',
|
|
|
allotPurchaseList: '/erp-gateway-web/purchase/list',
|
|
|
allotDelivery: '/erp-gateway-web/purchase/delivery',
|
|
|
allotExpressList: '/erp-gateway-web/purchase/expressList',
|
|
|
allotExpressDetail: '/erp-gateway-web/purchase/expressDetail',
|
|
|
allotWarehouseInfo: '/erp-gateway-web/purchase/queryBySupplierId',
|
|
|
allotStockOut: '/erp-gateway-web/purchase/stockOut',
|
|
|
allotExpressNumList: '/erp-gateway-web/purchase/queryExpressListByExpressNumber',
|
|
|
allotExpressCompList: '/erp-gateway-web/logistics_company/list',
|
|
|
allotExportList: '/erp-gateway-web/export/exportForPurchaseForm',
|
|
|
allotPrintExpressDetail: '/erp-gateway-web/purchase/queryExpressListByExpressNumber',
|
|
|
diffWorkOrderList: '/erp-gateway-web/logistics/workOrder/shop/queryPage',
|
|
|
diffWorkOrderDetail: '/erp-gateway-web/logistics/workOrder/shop/queryInfo',
|
|
|
diffWorkOrderInfo: '/erp-gateway-web/logistics/workOrder/shop/queryDiff',
|
|
|
diffEditWorkOrderOtherInfo: '/erp-gateway-web/logistics/workOrder/shop/editOtherInfo',
|
|
|
returnSupplierList: '/erp-gateway-web/return_supplier_list/list',
|
|
|
returnSupplierDetail: '/erp-gateway-web/return_supplier_list/detail',
|
|
|
exportProductReturnList: '/erp-gateway-web/export/exportReturnForInvoice',
|
|
|
exportProductReturnDetail: '/erp-gateway-web/export/exportReturnDetailForInvoice',
|
|
|
jitProductList: '/erp-gateway-web/product/jitProductList',
|
|
|
getJitStorageListBySkn: '/erp-gateway-web/product/getJitStorageListBySkn',
|
|
|
importJitStorage: '/erp-gateway-web/product/importJitStorage',
|
|
|
storerooms: '/erp-gateway-web/storehouse/list',
|
|
|
invoiceList: '/erp-gateway-web/invoices/list',
|
|
|
invoiceInfo: '/erp-gateway-web/invoices/info',
|
|
|
invoiceCreate: '/erp-gateway-web/invoices/create',
|
|
|
invoiceUpdate: '/erp-gateway-web/invoices/update',
|
|
|
invoiceDelete: '/erp-gateway-web/invoices/delete',
|
|
|
invoiceCommit: '/erp-gateway-web/invoices/commit',
|
|
|
invoiceSend: '/erp-gateway-web/invoices/goods/sendExpress',
|
|
|
goodsList: '/erp-gateway-web/invoices/goods/list',
|
|
|
invoiceGoodsAvailable: '/erp-gateway-web/invoices/goods/available',
|
|
|
invoiceGoodsAdd: '/erp-gateway-web/invoices/goods/add',
|
|
|
invoiceGoodsUpdate: '/erp-gateway-web/invoices/goods/update',
|
|
|
invoiceGoodsDelete: '/erp-gateway-web/invoices/goods/delete',
|
|
|
invoiceGoodsImport: '/erp-gateway-web/invoices/goods/import',
|
|
|
supplementProductList: '/erp-gateway-web/supplementProduct/list',
|
|
|
expressList: '/erp-gateway-web/purchase/expressList',
|
|
|
expressDetail: '/erp-gateway-web/purchase/expressDetail',
|
|
|
exportAllExpressDetail: '/erp-gateway-web/purchase/exportAllExpressDetail',
|
|
|
exportExpressDetail: '/erp-gateway-web/purchase/exportExpressDetail',
|
|
|
expressExport: '/erp-gateway-web/export/exportExpressForInvoice',
|
|
|
balanceList: '/erp-gateway-web/financeBill/balanceList',
|
|
|
balanceDetail: '/erp-gateway-web/financeBill/balanceDetail',
|
|
|
settlementList: '/erp-gateway-web/financeBill/settlementList',
|
|
|
inventoryLedgerList: '/erp-gateway-web/fms/inventoryLedger/list',
|
|
|
exportBalanceList: '/erp-gateway-web/export/exportBalanceList',
|
|
|
exportInventoryLedgerList: '/erp-gateway-web/export/exportInventoryLedgerList',
|
|
|
exportSettlementDetail: '/erp-gateway-web/export/exportSettlementDetail',
|
|
|
exportBalanceDetail: '/erp-gateway-web/export/exportBalanceDetail',
|
|
|
balanceDetailSum: '/erp-gateway-web/financeBill/balanceDetailSum',
|
|
|
settlementListSum: '/erp-gateway-web/financeBill/settlementListSum',
|
|
|
defectGoodsList: '/erp-gateway-web/wms/defectGoods/list',
|
|
|
defectGoodsImg: '/erp-gateway-web/wms/defectGoods/detail',
|
|
|
storageList: '/erp-gateway-web/storageDetail/stock',
|
|
|
exportStorageDetailList: '/erp-gateway-web/export/exportStorageDetailList',
|
|
|
favoriteBalanceList: '/erp-gateway-web/finance/favoriteBalanceDetail/pageList',
|
|
|
favoriteBalanceCheck: '/erp-gateway-web/finance/favoriteBalanceDetail/check',
|
|
|
clearingList: '/erp-gateway-web/favorite/clearing/list',
|
|
|
clearingDetail: '/erp-gateway-web/favorite/clearingDetail/list',
|
|
|
queryByPidForFavorite: '/erp-gateway-web/account/profile/queryByPidForFavorite',
|
|
|
exportFavoriteClearingList: '/erp-gateway-web/export/favoriteClearingList',
|
|
|
exportFavoriteClearingDetail: '/erp-gateway-web/export/favoriteClearingDetail',
|
|
|
exportFavoriteBalanceDetail: '/erp-gateway-web/export/exportFavoriteBalanceDetail'
|
|
|
},
|
|
|
platform: {
|
|
|
queryShopsByAdminPid: '/SellerShopController/queryShopsByAdminPid',
|
|
|
getSellerBrandInfo: '/SellerProductController/getSellerBrandInfo',
|
|
|
getSellerSortInfo: '/SellerProductController/getSellerSortInfo',
|
|
|
querySellerProductColors: '/SellerProductController/querySellerProductColors',
|
|
|
querySortSize: '/SellerSortSizeController/querySortSize',
|
|
|
addProduct: '/SellerProductController/addProduct',
|
|
|
queryProductParamBySortId: '/SellerStandardController/queryProductParamBySortId',
|
|
|
selectAttributes: '/SellerProductAttributeController/selectAttributes',
|
|
|
querySellerProductMaterial: '/SellerProductController/querySellerProductMaterial',
|
|
|
updateSellerProductNetSaleInfo: '/SellerProductController/updateSellerProductNetSaleInfo',
|
|
|
querySellerProductList: '/SellerProductController/querySellerProductList',
|
|
|
queryVipProductList: '/sellerVip/queryProductVipList',
|
|
|
changeVipPriceStatus: '/sellerVip/batchChangeStatus',
|
|
|
productOutSale: '/SellerSknStatusController/productOutSale',
|
|
|
productOnSale: '/SellerSknStatusController/productOnSale',
|
|
|
queryProdSizeList: '/SellerProductSize/queryProdSizeList',
|
|
|
saveProdSizeInfo: '/SellerProductSize/saveProdSizeInfo',
|
|
|
getSellerAllSortInfo: '/SellerProductController/getSellerAllSortInfo',
|
|
|
exportSellerProductList: '/SellerProductController/exportSellerProductList',
|
|
|
updateSellerPrice: '/SellerPriceController/updateSellerPrice',
|
|
|
updateProduct: '/SellerProductController/updateProduct',
|
|
|
getProduct: '/SellerProductController/getProduct',
|
|
|
getShopDetailById: '/SellerShopController/getShopDetailById',
|
|
|
updateShopBaseInfoById: '/SellerShopController/updateShopBaseInfoById',
|
|
|
uploads: '/fileupload/uploads',
|
|
|
findBusinessShopsDecorator: '/ShopsDecoratorRest/findBusinessShopsDecorator',
|
|
|
getShopsCategoryList: '/SellerShopController/getShopsCategoryList',
|
|
|
addOrUpdateShopsCategory: '/SellerShopController/addOrUpdateShopsCategory',
|
|
|
deleteShopsCategory: '/SellerShopController/deleteShopsCategory',
|
|
|
getAllProduct: '/SellerShopController/getAllProduct',
|
|
|
getBindProductCount: '/SellerShopController/getBindProductCount',
|
|
|
getBindProduct: '/SellerShopController/getBindProduct',
|
|
|
addCategoryLinkProduct: '/SellerShopController/addCategoryLinkProduct',
|
|
|
deleteCategoryLinkProduct: '/SellerShopController/deleteCategoryLinkProduct',
|
|
|
getRemoteImageUrlBySku: '/product/getRemoteImageUrlBySku',
|
|
|
importSeller: '/batch/importSeller',
|
|
|
downloadFile: '/exceltemplate/download/CreateProductForShops',
|
|
|
getSellType: '/SellerProductController/getSellType',
|
|
|
queryProductPhotoList: '/sellerProductPhoto/queryProductPhotoList',
|
|
|
getConsultList: '/seller/consult/getConsultList',
|
|
|
consultReply: '/seller/consult/reply',
|
|
|
getShareOrderList: '/seller/shareOrder/shareOrderList',
|
|
|
sensitiveWordValidate: '/sensitiveWord/validate',
|
|
|
queryOneShopOverview: '/merchant/queryOneShopOverview',
|
|
|
queryOneShopDayTrend: '/merchant/queryOneShopDayTrend',
|
|
|
exportOneShopOverview: '/merchant/exportOneShopOverview',
|
|
|
queryOneShopProductOverview: '/merchant/queryOneShopProductOverview',
|
|
|
exportOneShopProductOverview: '/merchant/exportOneShopProductOverview',
|
|
|
batchAddProduct: '/SellerDistributionController/batchAddProduct',
|
|
|
queryWarehouseProductList: '/SellerDistributionController/queryWarehouseProductList',
|
|
|
batchDelProduct: '/SellerDistributionController/batchDelProduct',
|
|
|
queryPoolProductList: '/SellerDistributionController/queryPoolProductList',
|
|
|
getBrandNames: '/SellerDistributionController/getBrandNames',
|
|
|
queryBrandsByShopId: '/SellerShopsBrandsController/queryBrandsByShopId', // 根据店铺Id获取品牌列表下拉框数据
|
|
|
queryProductInvoicingOverview: '/merchant/queryProductInvoicingOverview', // 商家进销存报表查询
|
|
|
exportProductInvoicingOverview: '/merchant/exportProductInvoicingOverview', // 商家进销存报表导出
|
|
|
},
|
|
|
shop: {
|
|
|
login: '/loginInter',
|
|
|
switchShop: '/index/ajaxshop'
|
|
|
}
|
|
|
};
|
|
|
|
|
|
// 域名列表
|
|
|
const domains = {
|
|
|
erp: 'http://192.168.103.82:9098',
|
|
|
/* erp: 'http://192.168.103.82:9098',
|
|
|
platform: 'http://192.168.102.202:8088/platform',
|
|
|
shop: 'http://192.168.102.211:30016'
|
|
|
shop: 'http://192.168.102.211:30016'*/
|
|
|
erp: 'http://192.168.103.48:9098',
|
|
|
platform: 'http://java-yoho-platform.test3.ingress.dev.yohocorp.com/platform',
|
|
|
shop: 'http://192.168.102.211:30016',
|
|
|
};
|
|
|
|
|
|
if (global.env.Test) {
|
|
|
domains.erp = 'http://192.168.103.82:9098';
|
|
|
domains.platform = 'http://192.168.102.202:8088/platform';
|
|
|
domains.shop = 'http://192.168.102.211:30016';
|
|
|
domains.erp = 'http://192.168.103.48:9098';
|
|
|
domains.platform = 'http://java-yoho-platform.test3.ingress.dev.yohocorp.com/platform';
|
|
|
domains.shop = 'http://192.168.102.211:30016';
|
|
|
}
|
|
|
|
|
|
if (global.env.Production) {
|
|
|
domains.erp = 'http://gateway.erp.yohoops.org';
|
|
|
domains.platform = 'http://api.platform.yohoops.org/platform';
|
|
|
domains.shop = 'http://10.66.50.140:30016';
|
|
|
domains.erp = 'http://gateway.erp.yohoops.org';
|
|
|
domains.platform = 'http://api.platform.yohoops.org/platform';
|
|
|
domains.shop = 'http://10.66.50.140:30016';
|
|
|
}
|
|
|
|
|
|
_.each(domainApis, (apis, domainName) => {
|
|
|
_.each(apis, (url, api) => {
|
|
|
apis[api] = _.get(domains, domainName, '') + url;
|
|
|
});
|
|
|
_.each(apis, (url, api) => {
|
|
|
apis[api] = _.get(domains, domainName, '') + url;
|
|
|
});
|
|
|
});
|
|
|
|
|
|
module.exports = domainApis; |
...
|
...
|
|