diff --git a/src/api/Common/dictcommons.js b/src/api/Common/dictcommons.js index f562f3e..0af0b64 100644 --- a/src/api/Common/dictcommons.js +++ b/src/api/Common/dictcommons.js @@ -22,12 +22,10 @@ export function selAllByOrgSidPath(data) { return request({ url: '/oms/apiadmin/sysstafforg/selByOrgPath', method: 'post', - params: data, - + params: data }) } - // 根据部门sid获取客户信息 export function chooseCustomerList(data) { return request({ @@ -107,7 +105,6 @@ export function getWarehouseareas(data) { 'Content-Type': 'application/json' } }) - } // 查询商品分页列表 @@ -121,3 +118,13 @@ export function getGoodsListAllByOrg(params) { } }) } + +// 查询商品管理中的信息(商品名称、商品编码) +export function getGoodsForProduct(params) { + return request({ + url: '/oms/apiadmin/base/basegoodsspu/getGoodsForProduct', + method: 'post', + data: params, + headers: { 'Content-Type': 'application/json' } + }) +} diff --git a/src/api/goods/product/product.js b/src/api/goods/product/product.js new file mode 100644 index 0000000..1ec909d --- /dev/null +++ b/src/api/goods/product/product.js @@ -0,0 +1,36 @@ +import request from '@/utils/request' + +export default { + // 查询分页列表 + listPage: function(params) { + return request({ + url: '/oms/v1/product/listPage', + method: 'post', + data: params, + headers: { 'Content-Type': 'application/json' } + }) + }, + fetchBySid: function(data) { + return request({ + url: '/oms/v1/product/fetchBySid', + method: 'get', + params: data + }) + }, + deleteBySids: function(data) { + return request({ + url: '/oms/v1/product/delBySids', + method: 'DELETE', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + }, + saveOrUpdate: function(data) { + return request({ + url: '/oms/v1/product/saveOrUpdate', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + } +} diff --git a/src/router/index.js b/src/router/index.js index be51b05..97434b5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -172,7 +172,16 @@ export const constantRoutes = [ }, hidden: true }, - + { + path: '/product/product', + name: 'Product', + component: () => import('@/views/goods/product/product'), + meta: { + title: '产品管理', + icon: 'product-add' + }, + hidden: true + } ] }, diff --git a/src/views/goods/product/product.vue b/src/views/goods/product/product.vue new file mode 100644 index 0000000..d360526 --- /dev/null +++ b/src/views/goods/product/product.vue @@ -0,0 +1,307 @@ + + + + + + + + + {{ searchxianshitit }} + + + + + + + + + + + + + 查询 + 重置 + + + + + + 产品列表 + + + + + + + + + + + + {{ scope.row.rateType == '0' ? '产出率' : scope.row.rateType == '1' ? '配比' :'' }} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/goods/product/productAdd.vue b/src/views/goods/product/productAdd.vue new file mode 100644 index 0000000..f8e2fc3 --- /dev/null +++ b/src/views/goods/product/productAdd.vue @@ -0,0 +1,250 @@ + + + + + {{ viewTitle }} + + 保存 + 关闭 + + + + + + + *产品名称 + + + + + + + + 比例类型 + + + 产出率 + 配比 + + + + + + 原料列表 + + 添加 + + + + + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +