diff --git a/src/api/wholeNetwork/index.js b/src/api/wholeNetwork/index.js new file mode 100644 index 0000000..27320c1 --- /dev/null +++ b/src/api/wholeNetwork/index.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' + +export function getSystemSourceList() { + return request({ + url: '/system//pub/enums/product-source', + method: 'get' + }) +} diff --git a/src/api/wholeNetwork/orderSync.js b/src/api/wholeNetwork/orderSync.js new file mode 100644 index 0000000..a2043c1 --- /dev/null +++ b/src/api/wholeNetwork/orderSync.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +export function getOrderSyncFailList(params) { + return request({ + url: '/sale/manage/order-sync/list', + method: 'get', + params + }) +} + +export function updateOrderSyncStatus(data) { + return request({ + url: '/sale/manage/order-sync/updateStatus', + method: 'post', + data + }) +} diff --git a/src/api/wholeNetwork/productManage.js b/src/api/wholeNetwork/productManage.js new file mode 100644 index 0000000..90bd3c8 --- /dev/null +++ b/src/api/wholeNetwork/productManage.js @@ -0,0 +1,48 @@ +import request from '@/utils/request' + +export function getProductList(params) { + return request({ + url: '/sale/manage/all-product/list', + method: 'get', + params + }) +} + +export function addProductInfo(params) { + return request({ + url: '/sale/manage/all-product/save', + method: 'post', + data: params + }) +} + +export function updateProductInfo(params) { + return request({ + url: '/sale/manage/all-product/update', + method: 'post', + data: params + }) +} + +export function deleteProduct(id) { + return request({ + url: `/sale/manage/all-product/${id}`, + method: 'delete' + }) +} + +export function updateProductInventory(params) { + return request({ + url: '/sale/manage/all-product/change-inventory', + method: 'post', + data: params + }) +} + +export function getProductDetailsList(params) { + return request({ + url: '/sale/manage/all-product-detail/list', + method: 'get', + params + }) +} diff --git a/src/router/index.js b/src/router/index.js index f9cd7fd..f90cb50 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2081,7 +2081,7 @@ export const constantRoutes = [ path: 'distributionCenter', name: 'DistributionCenter', component: () => import('@/views/configManage/memberRetailRegion/DistributionCenter'), - meta: { title: i18n.t('配送中心配置') } + meta: { title: i18n.t('配送中心管理') } } ] @@ -4042,17 +4042,28 @@ export const constantRoutes = [ } ] }, - // { - // path: 'external-link', - // component: Layout, - // children: [ - // { - // path: 'https://panjiachen.github.io/vue-element-admin-site/#/', - // meta: { title: 'External Link', icon: 'link' } - // } - // ] - // }, + { + path: '/whole-network', + name: 'WholeNetwork', + component: Layout, + meta: { title: '全网管理', icon: 'info', icon1: 'infoSel' }, + children: [ + { + path: 'productManageSummary', + name: 'WholeNetworkProductManageSummary', + component: () => import('@/views/wholeNetwork/productManage/summary'), + meta: { title: '全网产品统计' } + }, + { + path: 'orderSyncFail', + name: 'WholeNetworkOrderSyncFail', + component: () => import('@/views/wholeNetwork/orderSyncFail/index'), + meta: { title: '同步失败订单' } + } + + ] + }, // 404 page must be placed at the end !!! { path: '*', redirect: '/404', hidden: true }, { diff --git a/src/views/configManage/memberRetailRegion/DistributionCenter.vue b/src/views/configManage/memberRetailRegion/DistributionCenter.vue index ee95e63..9be101f 100644 --- a/src/views/configManage/memberRetailRegion/DistributionCenter.vue +++ b/src/views/configManage/memberRetailRegion/DistributionCenter.vue @@ -109,14 +109,14 @@
{{ '添加' }} + + + + diff --git a/src/views/wholeNetwork/productManage/summary.vue b/src/views/wholeNetwork/productManage/summary.vue new file mode 100644 index 0000000..ffd14b9 --- /dev/null +++ b/src/views/wholeNetwork/productManage/summary.vue @@ -0,0 +1,15 @@ + + + + +