diff --git a/hb_client/src/api/sam.js b/hb_client/src/api/sam.js index 037a628..540441f 100644 --- a/hb_client/src/api/sam.js +++ b/hb_client/src/api/sam.js @@ -36,6 +36,12 @@ export function getContractList(query) { params: query }) } +export function getContract(id) { + return request({ + url: `/sam/contract/${id}/`, + method: 'get' + }) +} export function createContract(data) { return request({ url: '/sam/contract/', diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 321c51f..f5f751f 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -276,13 +276,21 @@ export const asyncRoutes = [ path: 'customer', name: 'customer', component: () => import('@/views/sam/customer'), - meta: { title: '客户信息', icon: 'example', perms: ['index_manage'] } + meta: { title: '客户管理', icon: 'example', perms: ['index_manage'] } }, { path: 'contract', name: 'contract', component: () => import('@/views/sam/contract'), - meta: { title: '合同信息', icon: 'example', perms: ['index_manage'] } + meta: { title: '合同管理', icon: 'example', perms: ['index_manage'] } + } + , + { + path: 'contractdetail/:id', + name: 'contractdetail', + component: () => import('@/views/sam/contractdetail'), + meta: { title: '合同详情', perms: ['vendor_manage'] }, + hidden: true } , @@ -290,9 +298,17 @@ export const asyncRoutes = [ path: 'order', name: 'order', component: () => import('@/views/sam/order'), - meta: { title: '订单信息', icon: 'example', perms: ['index_manage'] } + meta: { title: '订单管理', icon: 'example', perms: ['index_manage'] } } + , + { + path: 'orderdetail/:id', + name: 'orderdetail', + component: () => import('@/views/sam/orderdetail'), + meta: { title: '订单详情', perms: ['vendor_manage'] }, + hidden: true + }, { path: 'sales', name: 'sales', diff --git a/hb_client/src/views/em/detection.vue b/hb_client/src/views/em/detection.vue index 2f5461f..4091991 100644 --- a/hb_client/src/views/em/detection.vue +++ b/hb_client/src/views/em/detection.vue @@ -29,7 +29,7 @@ - + @@ -104,6 +104,7 @@ 编辑 diff --git a/hb_client/src/views/em/equipment.vue b/hb_client/src/views/em/equipment.vue index 6346164..2138828 100644 --- a/hb_client/src/views/em/equipment.vue +++ b/hb_client/src/views/em/equipment.vue @@ -29,7 +29,7 @@ - + @@ -113,6 +113,7 @@ 编辑 diff --git a/hb_client/src/views/em/record.vue b/hb_client/src/views/em/record.vue index bf1999e..afc20ef 100644 --- a/hb_client/src/views/em/record.vue +++ b/hb_client/src/views/em/record.vue @@ -29,7 +29,7 @@ - + @@ -72,6 +73,7 @@ 编辑 diff --git a/hb_client/src/views/inm/fifo.vue b/hb_client/src/views/inm/fifo.vue index b0e0a92..1225521 100644 --- a/hb_client/src/views/inm/fifo.vue +++ b/hb_client/src/views/inm/fifo.vue @@ -28,7 +28,7 @@ > - + @@ -70,11 +70,13 @@