From 27149f1bec6e562f35c8d7239f5ec007c2bebb12 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Mon, 8 May 2023 18:15:04 +0800 Subject: [PATCH] 2023-05-08 --- .../oilTypeInAndOutBound.js} | 0 .../rawMaterialInAndOutBound.js | 92 +++++ .../api/rawMaterialInfo/rawMaterialInfo.js | 67 ++++ .../api/rawMaterialType/rawMaterialType.js | 46 +++ .../src/layout/components/Sidebar/index.vue | 36 +- .../yxt-supervise-cyf-ui/src/router/index.js | 53 ++- .../flowInstrument/flowInstrumentAdd.vue | 2 +- .../src/views/flowInstrument/index.vue | 4 +- .../src/views/oilTank/index.vue | 2 +- .../src/views/oilType/index.vue | 2 +- .../inBoundAdd.vue | 23 +- .../index.vue | 32 +- .../outBoundAdd.vue | 4 +- .../rawMaterialInAndOutBound/inBoundAdd.vue | 229 ++++++++++++ .../views/rawMaterialInAndOutBound/index.vue | 348 ++++++++++++++++++ .../rawMaterialInAndOutBound/outBoundAdd.vue | 219 +++++++++++ .../src/views/rawMaterialInfo/index.vue | 262 +++++++++++++ .../rawMaterialInfo/rawMaterialInfoAdd.vue | 190 ++++++++++ .../src/views/rawMaterialType/index.vue | 225 +++++++++++ .../src/views/rawMaterialType/oilTypeInfo.vue | 254 +++++++++++++ .../rawMaterialType/rawMaterialTypeAdd.vue | 179 +++++++++ 21 files changed, 2224 insertions(+), 45 deletions(-) rename yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/{inAndOutBound/inAndOutBound.js => oilTypeInAndOutBound/oilTypeInAndOutBound.js} (100%) create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialInAndOutBound/rawMaterialInAndOutBound.js create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialInfo/rawMaterialInfo.js create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/rawMaterialType/rawMaterialType.js rename yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/{inAndOutBound => oilTypeInAndOutBound}/inBoundAdd.vue (97%) rename yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/{inAndOutBound => oilTypeInAndOutBound}/index.vue (91%) rename yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/{inAndOutBound => oilTypeInAndOutBound}/outBoundAdd.vue (98%) create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/inBoundAdd.vue create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/index.vue create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInAndOutBound/outBoundAdd.vue create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInfo/index.vue create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialInfo/rawMaterialInfoAdd.vue create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/index.vue create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/oilTypeInfo.vue create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/rawMaterialType/rawMaterialTypeAdd.vue 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 @@ + + + +