diff --git a/src/api/shop.js b/src/api/shop.js index be51817..16fb3d2 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -4,75 +4,90 @@ import request from '@/utils/axios.js' * @description 商品列表 */ export function storeListApi(id, data) { - return request.get(`server/${id}/product/lst`, { params: data }) + return request.get(`server/${id}/product/lst`, { params: data }) } /** * @description 商品详情 */ export function getAttrValue(id, data) { - return request.get(`store/product/detail/${id}`, { params: data }) + return request.get(`store/product/detail/${id}`, { params: data }) } /** * @description 免审编辑 */ export function userFreeTrialApi(id, data) { - return request.post(`user_free_trial/${id}`, data) + return request.post(`user_free_trial/${id}`, data) } /** * @description 商品状态分类数量 */ export function productTitleApi(id, data) { - return request.get(`server/${id}/product/title`, { params: data }) + return request.get(`server/${id}/product/title`, { params: data }) } /** * @description 上下架 */ export function productStatusApi(store_id, id, data) { - return request.post(`server/${store_id}/product/status/${id}`, data) + return request.post(`server/${store_id}/product/status/${id}`, data) } /** * @description 平台分类 */ export function categoryListApi(store_id, data) { - return request.get(`server/${store_id}/category/list`, { params: data }) + return request.get(`server/${store_id}/category/list`, { params: data }) } /** * @description 添加商品 */ export function productCreateApi(store_id, data) { - return request.post(`server/${store_id}/product/create`, data) + return request.post(`server/${store_id}/product/create`, data) } /** * @description 编辑商品 */ export function productUpdateApi(store_id, id, data) { - return request.post(`server/${store_id}/product/update/${id}`, data) + return request.post(`server/${store_id}/product/update/${id}`, data) } /** * @description 商品详情 */ export function productDetailApi(store_id, id, data) { - return request.get(`server/${store_id}/product/detail/${id}`, { params: data }) + return request.get(`server/${store_id}/product/detail/${id}`, { params: data }) } /** * @description 批发商品列表 */ export function saleStoreListApi(data) { - return request.get(`/store_product/storeProduct/lists`, { params: data }) + return request.get(`/store_product/storeProduct/lists`, { params: data }) } /** * @description 店铺商品分类 */ export function merchantCategoryListApi(data) { - return request.get(`goods/goodsclass/lists`, { params: data }) + return request.get(`goods/goodsclass/lists`, { params: data }) +} + + +/** + * @description 门店入库操作列表 + */ +export function storeStorageInfoListsApi(data) { + return request.get('/system_store_storage/systemstorestorage/lists', { params: data }) +} + +/** + * @description 门店入库操作入库 + */ +export function storeStorageInfoEditApi(data) { + return request.post('/system_store_storage/systemstorestorage/edit', data) } \ No newline at end of file diff --git a/src/layout/myAside.vue b/src/layout/myAside.vue index 57f844f..73af1e2 100644 --- a/src/layout/myAside.vue +++ b/src/layout/myAside.vue @@ -72,10 +72,16 @@ const list = ref([ }, { name: "statistics", - title: "盈收统计 ", + title: "盈收统计", ico: "TrendCharts", count: 0, }, + { + name: "putStorage", + title: "入库登记", + ico: "Van", + count: 0, + }, // { name: "purchaseOrder", title: "采购订单", ico: "Van", count: 0 }, // { name: "orderCount", title: "订单统计", ico: "DocumentRemove", count: 0 }, // { name: "wallet", title: "余额提现", ico: "Wallet", count: 0 }, diff --git a/src/router/index.js b/src/router/index.js index 5703e48..38a3af4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -20,21 +20,15 @@ const routes = [ { path: '/saleOrder', name: 'saleOrder', - meta: { title: '采购订单' }, + meta: { title: '收银订单' }, component: () => import('@/views/saleOrder/index.vue'), }, { path: '/order', name: 'order', - meta: { title: '待提采购' }, + meta: { title: '线上采购' }, component: () => import('@/views/order/index.vue'), }, - { - path: '/purchaseOrder', - name: 'purchaseOrder', - meta: { title: '采购订单' }, - component: () => import('@/views/purchaseOrder/index.vue'), - }, { path: '/orderCount', name: 'orderCount', @@ -59,6 +53,12 @@ const routes = [ meta: { title: '盈收统计' }, component: () => import('@/views/statistics/index.vue'), }, + { + path: '/putStorage', + name: 'putStorage', + meta: { title: '入库登记' }, + component: () => import('@/views/putStorage/index.vue'), + }, { path: '/test', name: 'test', diff --git a/src/views/putStorage/index.vue b/src/views/putStorage/index.vue new file mode 100644 index 0000000..996298a --- /dev/null +++ b/src/views/putStorage/index.vue @@ -0,0 +1,132 @@ + + + + +