From 3069de6529e509f733bf1f872f2883f238659c6a Mon Sep 17 00:00:00 2001 From: fengdong777 <1478994744@qq.com> Date: Wed, 24 May 2023 11:20:27 +0800 Subject: [PATCH] 5.24 --- .../yxt-supervise-cyf-ui/.env.development | 4 +- .../src/api/baseInfo/commodityBrand/index.js | 41 +++ .../src/layout/components/Sidebar/index.vue | 10 + .../yxt-supervise-cyf-ui/src/router/index.js | 9 + .../baseInfo/commodityBrand/commodity.vue | 143 ++++++++++ .../views/baseInfo/commodityBrand/index.vue | 248 ++++++++++++++++++ .../src/views/inventory/oilTankList/index.vue | 12 +- .../inventory/oilTypeInBoundList/index.vue | 12 +- .../inventory/oilTypeOutBoundList/index.vue | 10 +- 9 files changed, 473 insertions(+), 16 deletions(-) create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/baseInfo/commodityBrand/index.js create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/baseInfo/commodityBrand/commodity.vue create mode 100644 yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/baseInfo/commodityBrand/index.vue diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development b/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development index 0afd6b35..cde457b7 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development @@ -5,8 +5,8 @@ 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://5wchzg.natappfree.cc" +VUE_APP_URL = "http://192.168.1.177:7101" # VUE_APP_URL = "http://192.168.1.193:7101" diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/baseInfo/commodityBrand/index.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/baseInfo/commodityBrand/index.js new file mode 100644 index 00000000..c30b373f --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/baseInfo/commodityBrand/index.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' +let tokens = window.sessionStorage.getItem('tokenValue') +export default { + + // 新增商品品牌 + save: function(params) { + return request({ + url: '/cyf/productInfo/save', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, + // 查询列表 + listPage: function(params) { + return request({ + url: '/cyf/productInfo/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, + // 修改 + update: function(params) { + return request({ + url: '/cyf/productInfo/update', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, +} 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 3d06a62d..030ca252 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 @@ -277,6 +277,16 @@ export default { name: "/baseInfo/supplier", path: "/baseInfo/supplier", }, + { + alwaysShow: true, + component: "index", + meta: { + icon: "el-icon-help", + title: "商品品牌", + }, + name: "/baseInfo/commodityBrand", + path: "/baseInfo/commodityBrand", + }, ], }, // { 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 4b3f5761..01c49ae6 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 @@ -122,6 +122,15 @@ export const constantRoutes = [{ title: '供应商信息' } }, + { + path: '/baseInfo/commodityBrand', + component: () => + import('@/views/baseInfo/commodityBrand/index.vue'), + name: 'index', + meta: { + title: '商品品牌' + } + }, ] }, { path: '/supervise', diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/baseInfo/commodityBrand/commodity.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/baseInfo/commodityBrand/commodity.vue new file mode 100644 index 00000000..a0f1d018 --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/baseInfo/commodityBrand/commodity.vue @@ -0,0 +1,143 @@ + + + + + + 商品品牌 + + + 保存 + 关闭 + + + + + + + + 类型名称: + + + + 类型编码: + + + + + + + + + + + + \ No newline at end of file diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/baseInfo/commodityBrand/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/baseInfo/commodityBrand/index.vue new file mode 100644 index 00000000..88082444 --- /dev/null +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/baseInfo/commodityBrand/index.vue @@ -0,0 +1,248 @@ + + + + + + + {{ searchxianshitit }} + + + + + + + + 查询 + 重置 + + + + + 油罐列表 + + + + + + + + + + + 编辑 + + + + + + + + + + + + + + + + + + + 类型名称 + + + + + + 类型编号 + + + + + + + 保存 + + + + + + + + + + \ No newline at end of file diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTankList/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTankList/index.vue index 463181de..ea9ac2a5 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTankList/index.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTankList/index.vue @@ -128,12 +128,12 @@ {{ form.height }} - - - + + + @@ -198,6 +198,7 @@ export default { ], logList: [], form: {}, + SrcList:{}, logListQuery: { current: 1, size: 10, @@ -304,7 +305,8 @@ export default { this.dialogTitle = "数据"; this.editDialog = true; req.selectRecordBySid(row.sid).then((res) => { - this.form = res.data; + this.form=res.data[0] + this.SrcList=res.data }); }, resetState() { diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeInBoundList/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeInBoundList/index.vue index 451c2708..e3a4be15 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeInBoundList/index.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeInBoundList/index.vue @@ -133,10 +133,10 @@ - - - - + + + + @@ -171,6 +171,7 @@ dialogTitle:'', editDialog:false, form:{}, + SrcList:{}, btnList: [ // 右上角按钮 // { // type: 'success', @@ -285,7 +286,8 @@ this.dialogTitle = "数据"; this.editDialog = true; req.selectStorageBySid(row.sid).then((res)=>{ - this.form=res.data + this.form=res.data[0] + this.SrcList=res.data }) }, handleOrder(tab, event) { diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeOutBoundList/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeOutBoundList/index.vue index c60a19d2..8cacd344 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeOutBoundList/index.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeOutBoundList/index.vue @@ -124,9 +124,9 @@ - - - + + + @@ -159,6 +159,7 @@ dialogTitle:'', editDialog:false, form:{}, + SrcList:{}, btnList: [ // 右上角按钮 // { // type: 'success', @@ -244,7 +245,8 @@ this.dialogTitle = "数据"; this.editDialog = true; req.getCrudeBySid(row.sid).then((res)=>{ - this.form=res.data + this.form=res.data[0] + this.SrcList=res.data }) }, resetQuery() {