diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development b/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development index cde457b7..b3b405d6 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development @@ -5,9 +5,9 @@ ENV = 'development' VUE_APP_BASE_API = '/api' ## 配置测试和本地开发时的 接口地址 -# VUE_APP_URL = "http://5wchzg.natappfree.cc" -VUE_APP_URL = "http://192.168.1.177:7101" + VUE_APP_URL = "http://cg9jzr.natappfree.cc" +## VUE_APP_URL = "http://192.168.1.177:7101" -# VUE_APP_URL = "http://192.168.1.193:7101" +## VUE_APP_URL = "http://192.168.1.193:7101" ##VUE_APP_URL = "http://8.130.39.13:8112" diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagInAndOutBound/packagInAndOutBound.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagInAndOutBound/packagInAndOutBound.js new file mode 100644 index 00000000..b6d719d1 --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagInAndOutBound/packagInAndOutBound.js @@ -0,0 +1,94 @@ +import request from '@/utils/request' +let tokens = window.sessionStorage.getItem('tokenValue') +export default { + + // 获取包装物类型 + typeList: function(params) { + return request({ + url: '/cyf/packtype/typeList', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, + + // 获取包装物信息 by 类型sid + PackagList: function(sid) { + return request({ + url: '/cyf/packinventory/getInventory/' + sid + }) + }, + + + + // 入库 + logPagerList: function(params) { + return request({ + url: '/cyf/packstorage/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, + + intAddInfo: function(data) { + return request({ + url: '/cyf/packstorage/save', + method: 'post', + data: data + }); + }, + + + // 出库 + // 查询分页列表 + in112PagerList: function(params) { + return request({ + url: '/cyf/packoutbound/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, + + outAddInfo: function(data) { + return request({ + url: '/cyf/packoutbound/save', + method: 'post', + data: data + }); + }, + + + // 盘库 + inventoryPagerList: function(params) { + return request({ + url: '/cyf/packrecord/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, + + inventoryAddInfo: function(data) { + return request({ + url: '/cyf/packrecord/save', + method: 'post', + data: data + }); + }, + + +} \ No newline at end of file diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/layout/components/Sidebar/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/layout/components/Sidebar/index.vue index d5ee36b3..ef880c95 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/layout/components/Sidebar/index.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/layout/components/Sidebar/index.vue @@ -2,470 +2,520 @@
- - + +
diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/router/index.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/router/index.js index c198922a..9875b5d4 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/router/index.js +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/router/index.js @@ -68,7 +68,7 @@ export const constantRoutes = [{ meta: { title: '原料信息' } - },{ + }, { path: '/baseInfo/packagType', component: () => import('@/views/baseInfo/packagType/index.vue'), @@ -175,6 +175,33 @@ export const constantRoutes = [{ title: '原油出库登记' } }, + { + path: '/supervise/packagInBound', + component: () => + import('@/views/supervise/packagInBound/index.vue'), + name: 'index', + meta: { + title: '包装物入库登记' + } + }, + { + path: '/supervise/packagOutBound', + component: () => + import('@/views/supervise/packagOutBound/index.vue'), + name: 'index', + meta: { + title: '包装物出库登记' + } + }, + { + path: '/supervise/packagInventory', + component: () => + import('@/views/supervise/packagInventory/index.vue'), + name: 'index', + meta: { + title: '包装物盘库登记' + } + }, { path: '/supervise/EnterRegister', component: () => @@ -203,14 +230,22 @@ export const constantRoutes = [{ }, children: [ { + path: '/inventory/oilTankInfo', + component: () => + import('@/views/inventory/oilTankInfo/index.vue'), + name: 'index', + meta: { + title: '油罐库存信息' + } + },{ path: '/inventory/oilTankList', component: () => import('@/views/inventory/oilTankList/index.vue'), name: 'index', meta: { - title: '油罐库存记录' + title: '油罐登记库存记录' } - },{ + }, { path: '/inventory/oilTypeInBoundList', component: () => import('@/views/inventory/oilTypeInBoundList/index.vue'), @@ -228,13 +263,32 @@ export const constantRoutes = [{ title: '原油出库记录' } }, + { - path: '/inventory/oilTankInfo', + path: '/supervise/packagInBound', component: () => - import('@/views/inventory/oilTankInfo/index.vue'), + import('@/views/supervise/packagInBound/index.vue'), + name: 'index', + meta: { + title: '包装物入库登记' + } + }, + { + path: '/supervise/packagOutBound', + component: () => + import('@/views/supervise/packagOutBound/index.vue'), + name: 'index', + meta: { + title: '包装物出库登记' + } + }, + { + path: '/supervise/packagInventory', + component: () => + import('@/views/supervise/packagInventory/index.vue'), name: 'index', meta: { - title: '库存信息' + title: '包装物盘库登记' } }, { @@ -387,4 +441,4 @@ export function resetRouter() { router.matcher = newRouter.matcher // reset router } -export default router +export default router \ No newline at end of file diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTankInfo/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTankInfo/index.vue index 8328640a..2b8e91e2 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTankInfo/index.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTankInfo/index.vue @@ -1,10 +1,10 @@