diff --git a/src/api/api_equipment.js b/src/api/api_equipment.js index 0aa96a2..daa6c16 100644 --- a/src/api/api_equipment.js +++ b/src/api/api_equipment.js @@ -120,3 +120,13 @@ export const apiGetRePrintCode = (data, code) => { return http({ url: `/lz_management/oneCode/re/print?code=${code}`, method: 'get', data }) } +// 批量生成制定数量的编码 +export const apiGetNewPrintCodes = (data, count) => { + return http({ url: `/lz_management/oneCode/new/prints?counts=${count}`, method: 'get', data }) +} + +// 获取编码 +export const apiGetCodes = data => { + return http({ url: `/lz_management/oneCode/get/getPrints`, method: 'post', data }) +} + diff --git a/src/assets/img/equipment/ding_sao_yi_sao.png b/src/assets/img/equipment/ding_sao_yi_sao.png new file mode 100644 index 0000000..8e30554 Binary files /dev/null and b/src/assets/img/equipment/ding_sao_yi_sao.png differ diff --git a/src/router/index.js b/src/router/index.js index 73c3ed3..40bddf8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -33,10 +33,7 @@ const dingtalkRoutes=[ { path: '/devicemark', component: _import('modules/device/device-mark'), name: 'devicemark', meta: { title: '设备备注' } }, { path: '/devicestaff', component: _import('modules/device/device-staff-device'), name: 'devicestaff', meta: { title: '人员资产信息' } }, { path: '/devicestaffdepat', component: _import('modules/device/device-staff-depat'), name: 'devicestaffdepat', meta: { title: '搜索人员' } }, - { path: '/devicespec', component: _import('modules/device-manage/device-spec'), name: 'devicespec', meta: { title: '设备规格管理' } }, - { path: '/devicetypes', component: _import('modules/device-manage/device-type'), name: 'devicetypes', meta: { title: '设备类型管理' } }, - { path: '/devicebrand', component: _import('modules/device-manage/device-brand'), name: 'devicebrand', meta: { title: '设备品牌管理' } }, - { path: '/devicelist', component: _import('modules/device-manage/device-list'), name: 'devicelist', meta: { title: '设备列表管理' } }, + { path: '/devicedetail', component: _import('modules/device/device-detail'), name: 'devicedetail', meta: { title: '资产盘点设备详情页' } } ] @@ -108,13 +105,13 @@ router.beforeEach((to, from, next) => { if (router.options.isAddDynamicMenuRoutes || fnCurrentRouteType(to, globalRoutes) === 'global') { next() } else if (fnIsInRoutes(to, dingtalkRoutes)) {//判断是否全屏路由 - /*if(fnCheckToken()){ + if(fnCheckToken()){ next() } else { clearLoginInfo() next({ name: 'login' }) - }*/ - next() + } + //next() /*console.log(to) let newpage = router.resolve({ name: to.path, diff --git a/src/views/modules/device-manage/device-brand-detail.vue b/src/views/modules/device-manage/device-brand-detail.vue index 73dd544..2427fc4 100644 --- a/src/views/modules/device-manage/device-brand-detail.vue +++ b/src/views/modules/device-manage/device-brand-detail.vue @@ -1,5 +1,5 @@