From aedc739a3d68509d677747048ee6bc7bd97c316e Mon Sep 17 00:00:00 2001 From: mrsun <1078706823@qq.com> Date: Thu, 25 Jan 2024 16:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=BA=93=E5=AD=98=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/productAttr.js | 131 ++++++++-------- src/router/index.js | 16 +- src/views/product/inventoryRecords/index.vue | 156 +++++++++++++++++++ 3 files changed, 236 insertions(+), 67 deletions(-) create mode 100644 src/views/product/inventoryRecords/index.vue diff --git a/src/api/product/productAttr.js b/src/api/product/productAttr.js index 0ed6494..b54d4ae 100644 --- a/src/api/product/productAttr.js +++ b/src/api/product/productAttr.js @@ -1,208 +1,215 @@ import request from '@/utils/request' -var service_name = 'oil-mall' +var service_name = 'oil-mall' export default { - productAddGetSites(productId) { + productAddGetSites(productId) { return request({ url: `/${service_name}/mallProductSiteRelation/get/${productId}`, - method: 'GET', + method: 'GET', }) }, - productAddGetEdit(productId) { + productAddGetEdit(productId) { return request({ url: `/${service_name}/mallProductInfo/getEdit/${productId}`, - method: 'GET', + method: 'GET', }) }, - productListAuditingDetailgetByPage(productId) { + productListAuditingDetailgetByPage(productId) { return request({ url: `/${service_name}/mallProductAuditHistory/getListByProductId/${productId}`, - method: 'GET', + method: 'GET', }) }, - productListDelete(data) { + productListDelete(data) { return request({ url: `/${service_name}/mallProductInfo/delete`, - method: 'post', + method: 'post', data }) }, - productListAuditProduct(data) { + productListAuditProduct(data) { return request({ url: `/${service_name}/mallProductInfo/auditProduct`, - method: 'post', + method: 'post', data }) }, - productListUpdateBatchList(data) { + productListUpdateBatchList(data) { return request({ url: `/${service_name}/mallProductStock/updateBatchList`, - method: 'post', + method: 'post', data }) }, - productListGetByPage(data) { + productListGetByPage(data) { return request({ url: `/${service_name}/mallProductInfo/getByPage`, - method: 'post', + method: 'post', data }) }, - addUpdate(data) { + addUpdate(data) { return request({ url: `/${service_name}/mallProductInfo/update`, - method: 'post', + method: 'post', data }) }, - addSave(data) { + addSave(data) { return request({ url: `/${service_name}/mallProductInfo/save`, - method: 'post', + method: 'post', data }) }, - getAllSites(data) { + getAllSites(data) { return request({ url: `/${service_name}/mallProductSiteRelation/getAllSites`, - method: 'post', + method: 'post', data }) }, - brandGetAll(data) { + brandGetAll(data) { return request({ url: `/${service_name}/mallProductBrands/getAll`, - method: 'post', + method: 'post', data }) }, - brandUpdate(data) { + brandUpdate(data) { return request({ url: `/${service_name}/mallProductBrands/update`, - method: 'post', + method: 'post', data }) }, - brandDelete(data) { + brandDelete(data) { return request({ url: `/${service_name}/mallProductBrands/delete`, - method: 'post', + method: 'post', data }) }, - brandSave(data) { + brandSave(data) { return request({ url: `/${service_name}/mallProductBrands/save`, - method: 'post', + method: 'post', data }) - }, - brandGetByPage(data) { + }, + brandGetByPage(data) { return request({ url: `/${service_name}/mallProductBrands/getByPage`, - method: 'post', + method: 'post', data }) - }, - getAllAttributesType() { + }, + getAllAttributesType() { return request({ url: `/${service_name}/mallProductAttributesType/getAllAttributesType`, - method: 'get', + method: 'get', }) - }, - getClassificationTree() { + }, + getClassificationTree() { return request({ url: `/${service_name}/mallProductClassification/getClassificationTree`, - method: 'get', + method: 'get', }) - }, - classifySave(page) { + }, + classifySave(page) { return request({ url: `/${service_name}/mallProductClassification/save`, method: 'post', data: page }) - }, - classifyUpdate(page) { + }, + classifyUpdate(page) { return request({ url: `/${service_name}/mallProductClassification/update`, method: 'post', data: page }) - }, + }, classifyGetByPage(page) { // 分页查询 return request({ url: `/${service_name}/mallProductClassification/getByPage`, method: 'post', data: page }) - }, + }, typeFindByPage(page) { // 分页查询 return request({ url: `/${service_name}/mallProductAttributesType/getByPage`, method: 'post', data: page }) - }, + }, getByPage(page) { // 分页查询 return request({ url: `/${service_name}/mallProductAttributes/getByPage`, method: 'post', data: page }) - }, + }, getAttrList(id) { // 分页查询 return request({ url: `/${service_name}/mallProductAttributes/get/${id}`, - method: 'GET', + method: 'GET', }) - }, -delete(page) { + }, +delete(page) { return request({ url: `/${service_name}/mallProductAttributes/delete`, method: 'post', data: page }) - }, - classifyDelete(page) { + }, + classifyDelete(page) { return request({ url: `/${service_name}/mallProductClassification/delete`, method: 'post', data: page }) - }, - typeSave(page) { + }, + typeSave(page) { return request({ url: `/${service_name}/mallProductAttributesType/save`, method: 'post', data: page }) - }, - save(page) { + }, + save(page) { return request({ url: `/${service_name}/mallProductAttributes/save`, method: 'post', data: page }) - }, - typeUpdate(page) { + }, + typeUpdate(page) { return request({ url: `/${service_name}/mallProductAttributes/update`, method: 'post', data: page }) - }, - update(page) { + }, + update(page) { return request({ url: `/${service_name}/mallProductAttributesType/update`, method: 'post', data: page }) - }, - typeDelete(page) { + }, + typeDelete(page) { return request({ url: `/${service_name}/mallProductAttributesType/delete`, method: 'post', data: page }) - }, + }, + getInventoryRecords(page) { + return request({ + url: `/oil-mongo-log/updateStock/getRecords`, + method: 'post', + data: page + }) + }, } diff --git a/src/router/index.js b/src/router/index.js index 05d2062..63d8cdd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -24,7 +24,7 @@ export const constantRoutes = [{ redirect: 'productList', meta: { title: '商品', icon: 'iconkongzhitai', affix: true }, children: [ - { + { path: '/productList', component: () => import('@/views/product/productList/index'), name: 'productList', @@ -53,10 +53,16 @@ export const constantRoutes = [{ component: () => import('@/views/product/productAttr/index'), name: 'productAttr', meta: { title: '商品属性', icon: 'iconkongzhitai', affix: true } - }, + }, + { + path: '/inventoryRecords', + component: () => import('@/views/product/inventoryRecords/index'), + name: 'inventoryRecords', + meta: { title: '库存记录', icon: 'iconkongzhitai', affix: true } + }, ] }, -{ path: '/CustomerMarket', component: CustomerMarket }, +{ path: '/CustomerMarket', component: CustomerMarket }, { path: '/profile', component: Layout, @@ -70,7 +76,7 @@ export const constantRoutes = [{ meta: { title: '个人中心', icon: 'user', noCache: true } } ] -}, +}, { path: '/redirect', component: Layout, @@ -91,7 +97,7 @@ export const constantRoutes = [{ path: '/login', component: () => import('@/views/login/index'), hidden: true -}, +}, { path: '/distribution', component: () => import('@/views/distribution/distribution'), diff --git a/src/views/product/inventoryRecords/index.vue b/src/views/product/inventoryRecords/index.vue new file mode 100644 index 0000000..9f67310 --- /dev/null +++ b/src/views/product/inventoryRecords/index.vue @@ -0,0 +1,156 @@ + + + +