From 59ead9d68b097834bef442518a9d3d8a83b3834a Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 8 Jul 2024 16:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=95=86=E5=93=81=E9=80=80?= =?UTF-8?q?=E8=B4=A7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../merchandiseReturn/merchandiseReturn.js | 44 ++ src/router/index.js | 19 +- .../merchandiseReturn/merchandiseReturn.vue | 312 ++++++++++++ .../merchandiseReturnAdd.vue | 455 ++++++++++++++++++ .../merchandiseReturnInfo.vue | 248 ++++++++++ 5 files changed, 1076 insertions(+), 2 deletions(-) create mode 100644 src/api/merchandiseReturn/merchandiseReturn.js create mode 100644 src/views/merchandiseReturn/merchandiseReturn.vue create mode 100644 src/views/merchandiseReturn/merchandiseReturnAdd.vue create mode 100644 src/views/merchandiseReturn/merchandiseReturnInfo.vue diff --git a/src/api/merchandiseReturn/merchandiseReturn.js b/src/api/merchandiseReturn/merchandiseReturn.js new file mode 100644 index 0000000..6568633 --- /dev/null +++ b/src/api/merchandiseReturn/merchandiseReturn.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +export default { + // 查询分页列表 + listPage: function(params) { + return request({ + url: '/oms/v1/smssalesreturn/listPage', + method: 'post', + data: params, + headers: { 'Content-Type': 'application/json' } + }) + }, + // 选择商品 + chooseProducts: function(params) { + return request({ + url: '/oms/apiadmin/base/basegoodsspu/getGoodsForSales', + method: 'post', + data: params, + headers: { 'Content-Type': 'application/json' } + }) + }, + fetchBySid: function(data) { + return request({ + url: '/oms/v1/smssalesreturn/fetchDetailsBySid/' + data, + method: 'get' + }) + }, + deleteBySids: function(data) { + return request({ + url: '/oms/v1/smssalesreturn/delBySids', + method: 'DELETE', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + }, + saveOrUpdate: function(data) { + return request({ + url: '/oms/v1/smssalesreturn/save', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + } +} diff --git a/src/router/index.js b/src/router/index.js index cc6a8b9..a283b57 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -65,9 +65,24 @@ export const constantRoutes = [ title: '销售订单管理', noCache: true } + }] + }, + { + path: '/merchandiseReturn', + component: Layout, + redirect: '/merchandiseReturn', + meta: { + title: '商品退货管理' }, - - ] + children: [{ + path: '/merchandiseReturn/merchandiseReturn', + component: () => import('@/views/merchandiseReturn/merchandiseReturn'), + name: 'MerchandiseReturn', + meta: { + title: '商品退货管理', + noCache: true + } + }] }, { path: '/purchase', diff --git a/src/views/merchandiseReturn/merchandiseReturn.vue b/src/views/merchandiseReturn/merchandiseReturn.vue new file mode 100644 index 0000000..5aae1e5 --- /dev/null +++ b/src/views/merchandiseReturn/merchandiseReturn.vue @@ -0,0 +1,312 @@ + + + + diff --git a/src/views/merchandiseReturn/merchandiseReturnAdd.vue b/src/views/merchandiseReturn/merchandiseReturnAdd.vue new file mode 100644 index 0000000..9d1cd15 --- /dev/null +++ b/src/views/merchandiseReturn/merchandiseReturnAdd.vue @@ -0,0 +1,455 @@ + + + + + diff --git a/src/views/merchandiseReturn/merchandiseReturnInfo.vue b/src/views/merchandiseReturn/merchandiseReturnInfo.vue new file mode 100644 index 0000000..2bbb382 --- /dev/null +++ b/src/views/merchandiseReturn/merchandiseReturnInfo.vue @@ -0,0 +1,248 @@ + + + + +