diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/inAndOutBound/inAndOutBound.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/oilTypeInAndOutBound/oilTypeInAndOutBound.js similarity index 100% rename from yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/inAndOutBound/inAndOutBound.js rename to yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/oilTypeInAndOutBound/oilTypeInAndOutBound.js diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialInAndOutBound/rawMaterialInAndOutBound.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialInAndOutBound/rawMaterialInAndOutBound.js new file mode 100644 index 00000000..215f5455 --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialInAndOutBound/rawMaterialInAndOutBound.js @@ -0,0 +1,92 @@ +import request from '@/utils/request' + +export default { + // 获取原料 + inventoryList: function(params) { + return request({ + url: '/cyf/rawinventory/inventoryList', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 入库 + + logPagerList: function(params) { + return request({ + url: '/cyf/rawstorage/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + intAddInfo: function(data) { + return request({ + url: '/cyf/rawstorage/save', + method: 'post', + data: data + }); + }, + + + // 出库 + // 查询分页列表 + in112PagerList: function(params) { + return request({ + url: '/cyf/rawoutbound/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + outAddInfo: function(data) { + return request({ + url: '/cyf/rawoutbound/save', + method: 'post', + data: data + }); + }, + + crudeinfoList: function(params) { + return request({ + url: '/cyf/crudeinfo/list', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + + fetchBySid: function(sid) { + return request({ + url: '/cyf/crudeinfo/getCrudeBySid/' + sid + }) + }, + + updateData: function(data) { + return request({ + url: '/cyf/crudeinfo/update', + method: 'post', + data: data + }); + }, + + delBySids: function(sid) { + return request({ + url: '/cyf/crudeinfo/delete/' + sid, + method: 'delete' + }) + }, + +} diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialInfo/rawMaterialInfo.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialInfo/rawMaterialInfo.js new file mode 100644 index 00000000..18041138 --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialInfo/rawMaterialInfo.js @@ -0,0 +1,67 @@ +import request from '@/utils/request' + +export default { + + // 查询分页列表 + listPage: function(params) { + return request({ + url: '/cyf/rawinventory/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + addInfo: function(data) { + return request({ + url: '/cyf/rawinventory/save', + method: 'post', + data: data + }); + }, + + rawMaterialType: function(params) { + return request({ + url: '/cyf/rawtype/typeList', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + + fetchBySid: function(sid) { + return request({ + url: '/cyf/crudeinfo/getCrudeBySid/' + sid + }) + }, + + updateData: function(data) { + return request({ + url: '/cyf/crudeinfo/update', + method: 'post', + data: data + }); + }, + + delBySids: function(sid) { + return request({ + url: '/cyf/crudeinfo/delete/' + sid, + method: 'delete' + }) + }, + + // 保存每次读取库存 + saveInfo: function(data) { + return request({ + url: '/cyf/crudeinventory/save', + method: 'post', + data: data + }); + }, + +} diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialType/rawMaterialType.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialType/rawMaterialType.js new file mode 100644 index 00000000..5af15e7d --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialType/rawMaterialType.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +export default { + + // 查询分页列表 + listPage: function(params) { + return request({ + url: '/cyf/rawtype/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + addInfo: function(data) { + return request({ + url: '/cyf/rawtype/save', + method: 'post', + data: data + }); + }, + + fetchBySid: function(sid) { + return request({ + url: '/cyf/rawtype/getTypeBySid/' + sid + }) + }, + + updateData: function(data) { + return request({ + url: '/cyf/rawtype/update', + method: 'post', + data: data + }); + }, + + delBySids: function(sid) { + return request({ + url: '/cyf/rawtype/delete/' + sid, + method: 'delete' + }) + }, + +} 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 88854d45..27e25f25 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 @@ -40,6 +40,24 @@ userSid: '', }, routes: [{ + alwaysShow: true, + component: 'index', + meta: { + icon: "el-icon-menu", + title: "原料类型" + }, + name: "/rawMaterialType/index", + path: "/rawMaterialType/index" + },{ + alwaysShow: true, + component: 'index', + meta: { + icon: "el-icon-menu", + title: "原料信息" + }, + name: "/rawMaterialInfo/index", + path: "/rawMaterialInfo/index" + },{ alwaysShow: true, component: 'index', meta: { @@ -54,7 +72,7 @@ component: 'index', meta: { icon: "el-icon-menu", - title: "油罐类型" + title: "油罐信息" }, name: "/oilTank/index", path: "/oilTank/index" @@ -74,10 +92,20 @@ component: 'index', meta: { icon: "el-icon-menu", - title: "出入库记录" + title: "原油出入库记录" + }, + name: "/oilTypeInAndOutBound/index", + path: "/oilTypeInAndOutBound/index" + }, + { + alwaysShow: true, + component: 'index', + meta: { + icon: "el-icon-menu", + title: "原料出入库记录" }, - name: "/inAndOutBound/index", - path: "/inAndOutBound/index" + name: "/rawMaterialInAndOutBound/index", + path: "/rawMaterialInAndOutBound/index" }, // { // alwaysShow: true, 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 7592e893..b41dd209 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 @@ -45,7 +45,33 @@ export const constantRoutes = [ affix: true } }] - }, + },{ + path: 'rawMaterialType', + component: Layout, + redirect: '/rawMaterialType', + children: [{ + path: '/rawMaterialType/index', + component: () => import('@/views/rawMaterialType/index.vue'), + name: 'index', + meta: { + title: '原料类型', + noCache: true + } + }] +},{ + path: 'rawMaterialInfo', + component: Layout, + redirect: '/rawMaterialInfo', + children: [{ + path: '/rawMaterialInfo/index', + component: () => import('@/views/rawMaterialInfo/index.vue'), + name: 'index', + meta: { + title: '原料信息', + noCache: true + } + }] +}, { path: 'oilType', component: Layout, @@ -68,7 +94,7 @@ export const constantRoutes = [ component: () => import('@/views/oilTank/index.vue'), name: 'index', meta: { - title: '油罐类型', + title: '油罐信息', noCache: true } }] @@ -86,15 +112,28 @@ export const constantRoutes = [ } }] },{ - path: 'inAndOutBound', + path: 'oilTypeInAndOutBound', + component: Layout, + redirect: '/oilTypeInAndOutBound', + children: [{ + path: '/oilTypeInAndOutBound/index', + component: () => import('@/views/oilTypeInAndOutBound/index.vue'), + name: 'index', + meta: { + title: '原油出入库记录', + noCache: true + } + }] +},{ + path: 'rawMaterialInAndOutBound', component: Layout, - redirect: '/inAndOutBound', + redirect: '/rawMaterialInAndOutBound', children: [{ - path: '/inAndOutBound/index', - component: () => import('@/views/inAndOutBound/index.vue'), + path: '/rawMaterialInAndOutBound/index', + component: () => import('@/views/rawMaterialInAndOutBound/index.vue'), name: 'index', meta: { - title: '出入库记录', + title: '原料出入库记录', noCache: true } }] diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/flowInstrument/flowInstrumentAdd.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/flowInstrument/flowInstrumentAdd.vue index 9fb2c5c4..0014d1cb 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/flowInstrument/flowInstrumentAdd.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/flowInstrument/flowInstrumentAdd.vue @@ -43,7 +43,7 @@ + diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/index.vue new file mode 100644 index 00000000..e85eb295 --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/index.vue @@ -0,0 +1,348 @@ + + + + diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/outBoundAdd.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/outBoundAdd.vue new file mode 100644 index 00000000..374eccd7 --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/outBoundAdd.vue @@ -0,0 +1,219 @@ + + + + diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInfo/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInfo/index.vue new file mode 100644 index 00000000..018e5a6f --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInfo/index.vue @@ -0,0 +1,262 @@ + + + + diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInfo/rawMaterialInfoAdd.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInfo/rawMaterialInfoAdd.vue new file mode 100644 index 00000000..6483ad3e --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInfo/rawMaterialInfoAdd.vue @@ -0,0 +1,190 @@ + + + + diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/index.vue new file mode 100644 index 00000000..a6120451 --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/index.vue @@ -0,0 +1,225 @@ + + + + diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/oilTypeInfo.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/oilTypeInfo.vue new file mode 100644 index 00000000..1a19a24b --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/oilTypeInfo.vue @@ -0,0 +1,254 @@ + + + + diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/rawMaterialTypeAdd.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/rawMaterialTypeAdd.vue new file mode 100644 index 00000000..e5ad70ab --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/rawMaterialTypeAdd.vue @@ -0,0 +1,179 @@ + + + +