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 @@ + + + + +