From 089a2cdf9753b8bea644a811332a7e43b9fb1107 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Thu, 2 Nov 2023 17:15:23 +0800 Subject: [PATCH] 2023-11-02 --- supervise-uniapp/common/config.js | 4 +- supervise-uniapp/common/request.api.js | 56 ++-- .../pages/index/ProjectDetail.vue | 14 +- supervise-uniapp/pages/index/SetUp.vue | 2 +- supervise-uniapp/pages/index/SetUp2.vue | 2 +- .../project_web_ui-xxs/.env.development | 2 +- .../src/api/supervise/commodityFile.js | 81 +++++ .../src/layout/components/Sidebar/index.vue | 20 ++ .../src/router/modules/codemenu.js | 21 +- .../src/views/brand/brandManagementInfo.vue | 265 +++++++++++++++ .../views/brand/brandManagementInfoAdd.vue | 157 +++++++++ .../classification/classManagementInfo.vue | 309 ++++++++++++++++++ .../classification/classManagementInfoAdd.vue | 157 +++++++++ .../initial_value/add/productAdd.vue | 2 +- .../views/component/initial_value/product.vue | 1 - 15 files changed, 1057 insertions(+), 36 deletions(-) create mode 100644 warehousing-system/project_web_ui-xxs/src/api/supervise/commodityFile.js create mode 100644 warehousing-system/project_web_ui-xxs/src/views/brand/brandManagementInfo.vue create mode 100644 warehousing-system/project_web_ui-xxs/src/views/brand/brandManagementInfoAdd.vue create mode 100644 warehousing-system/project_web_ui-xxs/src/views/classification/classManagementInfo.vue create mode 100644 warehousing-system/project_web_ui-xxs/src/views/classification/classManagementInfoAdd.vue diff --git a/supervise-uniapp/common/config.js b/supervise-uniapp/common/config.js index 7c31ff99..716f5c06 100644 --- a/supervise-uniapp/common/config.js +++ b/supervise-uniapp/common/config.js @@ -7,8 +7,8 @@ */ module.exports = { // baseUrl: 'http://jg.yyundong.com',// 测试 - baseUrl: 'https://supervise.yxtsoft.com',//正式 - // baseUrl: 'http://192.168.1.107:7009/api', + // baseUrl: 'https://supervise.yxtsoft.com/reportwxmpapi',//正式 + baseUrl: 'http://192.168.1.103:7009', // baseUrl: 'http://192.168.1.110:8112', tokenName: "Authorization", // 请求头中token的名字,与服务器端对应 loginTimeoutCode: "5001", // 登录超时或失效的情况下,服务器端返回的错误码 diff --git a/supervise-uniapp/common/request.api.js b/supervise-uniapp/common/request.api.js index e11bb60d..6c16387f 100644 --- a/supervise-uniapp/common/request.api.js +++ b/supervise-uniapp/common/request.api.js @@ -22,85 +22,85 @@ export default { selectBusinessRiskInfo: (params = {}) => request.post("/wxmpapi/v1/businessData/selectBusinessRiskInfo", params), // 获取审核报告内容 - getReportInfo: (params = {}) => request.post("/reportwxmpapi/reportwxmpapi/v1/csmcashreport/getCsmReportByComSid", + getReportInfo: (params = {}) => request.post("/v1/csmcashreport/getCsmReportByComSid", params), // 获取今日回款明细 getCsmReportTodayByComSid: (params = {}) => request.post( - "/reportwxmpapi/reportwxmpapi/v1/csmcashreportcashed/getCsmReportTodayByComSid", + "/v1/csmcashreportcashed/getCsmReportTodayByComSid", params), // 获取昨日销售报表 getCsmReportYesterdayByComSid: (params = {}) => request.post( - "/reportwxmpapi/reportwxmpapi/v1/csmcashreportsales/getCsmReportYesterdayByComSid", + "/v1/csmcashreportsales/getCsmReportYesterdayByComSid", params), // 库存汇总表 getReportInventoryDayGather: (params = {}) => request.get( - "/reportwxmpapi/reportinventory/getReportInventoryDayGather/" + params, params), + "/reportinventory/getReportInventoryDayGather/" + params, params), // 仓库库存明细表 getReportInventoryDayStore: (params = {}) => request.get( - "/reportwxmpapi/reportinventory/getReportInventoryDayStore/" + params, params), + "/reportinventory/getReportInventoryDayStore/" + params, params), // 烟草仓库库存明细表 getReportInventoryDayToStore: (params = {}) => request.get( - "/reportwxmpapi/reportinventory/getReportInventoryDayToStore/" + params, params), + "/reportinventory/getReportInventoryDayToStore/" + params, params), // 质物库存汇总-表头 getDayGather: (params = {}) => request.get( - "/reportwxmpapi/reportstock/getDayGather/" + params.projectSid + "/" + params.orderDate, params), + "/reportstock/getDayGather/" + params.projectSid + "/" + params.orderDate, params), // "/report/reportstock/getDayGather/" + params.projectSid + "/" + params.orderDate, params), // 质物库存汇总-仓库列表 getDayStore: (params = {}) => request.get( - "/reportwxmpapi/reportstock/getDayStore/" + params.projectSid + "/" + params.orderDate, params), + "/reportstock/getDayStore/" + params.projectSid + "/" + params.orderDate, params), // "/report/reportstock/getDayStore/" + params.projectSid + "/" + params.orderDate, params), // 质物库存汇总-明细 getDayProduct: (params = {}) => request.get( - "/reportwxmpapi/reportstock/getDayProduct/" + params, params), + "/reportstock/getDayProduct/" + params, params), // "/report/reportstock/getDayProduct/" + params, params), // 监管数据总览 getProjectDaily: (params = {}) => request.post( - "/reportwxmpapi/projectdaily/getProjectDaily", params), + "/projectdaily/getProjectDaily", params), // "/report/projectdaily/getProjectDaily", params), // 账户余额数据 getAccountByProjectSid: (params = {}) => request.get( - "/api/crm/projectAccount/getAccountByProjectSid/"+params, params), + "/app/projectaccount/getAccountByProjectSidApp/"+params, params), // "/crm/projectAccount/getAccountByProjectSid/"+params, params), // 项目监管报表 getProjectDailyFiles: (params = {}) => request.get( - "/reportwxmpapi/projectdaily/getProjectDailyFiles/" + params.projectSid + "/" + params.orderDate, params), + "/projectdaily/getProjectDailyFiles/" + params.projectSid + "/" + params.orderDate, params), // "/report/projectdaily/getProjectDailyFiles/" + params.projectSid + "/" + params.orderDate, params), // 设备异常信息 getDeviceExceptionInfo: (params = {}) => request.get( - "/reportwxmpapi/RiskMessagesLog/getMessageBySid/" + params.sid + "/" + params.wxCode, params), + "/RiskMessagesLog/getMessageBySid/" + params.sid + "/" + params.wxCode, params), // "/report/RiskMessagesLog/getMessageBySid/" + params.sid + "/" + params.wxCode, params), // 货物比对异常信息 getGoodsExceptionInfo: (params = {}) => request.get( - "/reportwxmpapi/ImgMessagesLog/getMessageBySid/" + params.sid + "/" + params.wxCode, params), + "/ImgMessagesLog/getMessageBySid/" + params.sid + "/" + params.wxCode, params), // "/report/ImgMessagesLog/getMessageBySid/" + params.sid + "/" + params.wxCode, params), // 获取首页面数据 - getWorkData: (params = {}) => request.get("/reportwxmpapi/messagepushlog/numberOfJobs/" + params, params), + getWorkData: (params = {}) => request.get("/messagepushlog/numberOfJobs/" + params, params), // 获取消息类型列表 - messageTypeList: (params = {}) => request.post("/reportwxmpapi/MessageType/list ", params), + messageTypeList: (params = {}) => request.post("/MessageType/list ", params), // 获取风险预警消息 - riskListPage: (params = {}) => request.post("/reportwxmpapi/ImgMessagesLog/listPage", params), + riskListPage: (params = {}) => request.post("/ImgMessagesLog/listPage", params), // 获取待阅工作、已阅工作 - messageListPage: (params = {}) => request.post("/reportwxmpapi/messagepushlog/listPage", params), + messageListPage: (params = {}) => request.post("/messagepushlog/listPage", params), // 获取设备状态 - deviceListPage: (params = {}) => request.post("/reportwxmpapi/RiskMessagesLog/listPage", params), + deviceListPage: (params = {}) => request.post("/RiskMessagesLog/listPage", params), // 获取待办工作列表 @@ -133,35 +133,37 @@ export default { storeHouseListPage: (params = {}) => request.post("/api/portal/v1/flow/storeHouseListPage", params), // 获取云仓详情 storeHouseDetail: (params = {}) => request.get("/api/portal/v1/flow/fetchDetailsBySid/" + params, params), + + // 获取我的项目 - getProjectByUserSid: (params = {}) => request.get("/api/crm/v1/projectinformation/getProjectByUserSid/" + params, + getProjectByUserSid: (params = {}) => request.get("/v1/app/project/getProjectByUserSidApp/" + params, params), // 获取我的项目详情 - getProjectBySid: (params = {}) => request.get("/api/crm/v1/projectinformation/getProjectBySid/" + params, + getProjectBySid: (params = {}) => request.get("/v1/app/project/getProjectBySidApp/" + params, params), // 获取我的项目-仓库详情 - getStorehouseBySid: (params = {}) => request.post("/api/crm/v1/storehouseproject/selectStoreBySid/" + params, + getStorehouseBySid: (params = {}) => request.get("/v1/app/project/selectStoreHouse/" + params, params), // 获取库存信息列表 - inventoryInfoListPage: (params = {}) => request.post("/reportwxmpapi/prodStock/selectListPage", params), + inventoryInfoListPage: (params = {}) => request.post("/prodStock/selectListPage", params), // 获取数据总览列表 - projectListPage: (params = {}) => request.post("/reportwxmpapi/projectdaily/selectListPage", params), + projectListPage: (params = {}) => request.post("/projectdaily/selectListPage", params), // 获取数据总览列表 - projectListPageNew: (params = {}) => request.post("/reportwxmpapi/projectdaily/selectList", params), + projectListPageNew: (params = {}) => request.post("/projectdaily/selectList", params), // 修改密码 - updatePassword: (params = {}) => request.post("/api/portal/v1/sysuser/updatePassword", params), + updatePassword: (params = {}) => request.post("/v1/app/sysuser/updatePassword", params), // 修改头像 - uploadHandImage: (params = {}) => request.post("/api/portal/v1/sysuser/uploadImage", params), + uploadHandImage: (params = {}) => request.post("/v1/app/sysuser/uploadImage", params), } \ No newline at end of file diff --git a/supervise-uniapp/pages/index/ProjectDetail.vue b/supervise-uniapp/pages/index/ProjectDetail.vue index 89ee2b34..b6dbd1f1 100644 --- a/supervise-uniapp/pages/index/ProjectDetail.vue +++ b/supervise-uniapp/pages/index/ProjectDetail.vue @@ -161,7 +161,7 @@ }, onLoad(option) { this.loadData1(option.sid); - this.loadData2(option.sid); + // this.loadData2(option.sid); }, methods: { loadData1(sid) { @@ -169,6 +169,18 @@ // if (resp.success) { console.log('1111', resp) this.info = resp.baseInfo + + this.imageArr = [] + for (var i = 0; i < resp.warehouse.length; i++) { + this.isShow = true + let item = resp.warehouse[i] + console.log('item', item.name) + this.imageArr.push({ + src: item.picUrl, + sid: item.shSid, + title: item.name + }) + } }).catch(e => { console.log('eeeee', e) diff --git a/supervise-uniapp/pages/index/SetUp.vue b/supervise-uniapp/pages/index/SetUp.vue index 158d55ac..23bbc5b0 100644 --- a/supervise-uniapp/pages/index/SetUp.vue +++ b/supervise-uniapp/pages/index/SetUp.vue @@ -49,7 +49,7 @@ methods: { itemClick(index) { switch (index) { - case "0": + case "1": uni.navigateTo({ url: '../index/ChangePassword' }); diff --git a/supervise-uniapp/pages/index/SetUp2.vue b/supervise-uniapp/pages/index/SetUp2.vue index ffe0a641..473ef112 100644 --- a/supervise-uniapp/pages/index/SetUp2.vue +++ b/supervise-uniapp/pages/index/SetUp2.vue @@ -14,7 +14,7 @@ export default { data() { return { - uploadAction: config.baseUrl + "/api/portal/v1/sysuser/uploadfile", + uploadAction: config.baseUrl + "/v1/app/sysuser/uploadfile", headImage: getApp().globalData.headImage==""?"https://supervise.yxtsoft.com/img/user/userImage.png":getApp().globalData.headImage // headImage: "https://supervise.yxtsoft.com/img/user/userImage.png" } diff --git a/warehousing-system/project_web_ui-xxs/.env.development b/warehousing-system/project_web_ui-xxs/.env.development index 6552d7fa..613efc18 100644 --- a/warehousing-system/project_web_ui-xxs/.env.development +++ b/warehousing-system/project_web_ui-xxs/.env.development @@ -6,4 +6,4 @@ VUE_APP_BASE_API = '/warehouseapi' ## 配置测试和本地开发时的 接口地址 ##VUE_APP_URL = "http://jianguan.yyundong.com/" -VUE_APP_URL = "http://192.168.1.107:9051" +VUE_APP_URL = "http://192.168.1.103:9051" diff --git a/warehousing-system/project_web_ui-xxs/src/api/supervise/commodityFile.js b/warehousing-system/project_web_ui-xxs/src/api/supervise/commodityFile.js new file mode 100644 index 00000000..63024b47 --- /dev/null +++ b/warehousing-system/project_web_ui-xxs/src/api/supervise/commodityFile.js @@ -0,0 +1,81 @@ +import request from '@/utils/request' +// 商品档案 +export default { + + // 品牌品类 分类列表 + brandListPage: function(params) { + return request({ + url: '/v1/restrictedbrand/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 品牌品类 通过sid删除一条或多条记录 + brandDelBySids: function(sid) { + return request({ + url: '/v1/restrictedbrand/delBySid/' + sid, + method: 'delete' + }) + }, + // 品牌品类 保存品牌品类 + saveBrand: function(params) { + return request({ + url: '/v1/restrictedbrand/save', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 品牌品类 通过sid查询一条记录 + brandFetchBySid: function(sid) { + return request({ + url: '/v1/restrictedbrand/fetchDetailsBySid/' + sid + }) + }, + + + + // 类别维护 类别列表 + classListPage: function(params) { + return request({ + url: '/v1/restrictedcategory/categoryListTree', + method: 'GET', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 类别维护 通过sid删除一条或多条记录 + classDelBySids: function(sid) { + return request({ + url: '/v1/restrictedcategory/delBySid/' + sid, + method: 'delete' + }) + }, + // 类别维护 保存品牌品类 + saveClass: function(params) { + return request({ + url: '/v1/restrictedcategory/save', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 类别维护 通过sid查询一条记录 + classFetchBySid: function(sid) { + return request({ + url: '/v1/restrictedcategory/fetchDetailsBySid/' + sid + }) + }, + + + +} diff --git a/warehousing-system/project_web_ui-xxs/src/layout/components/Sidebar/index.vue b/warehousing-system/project_web_ui-xxs/src/layout/components/Sidebar/index.vue index 8c373b76..944adcee 100644 --- a/warehousing-system/project_web_ui-xxs/src/layout/components/Sidebar/index.vue +++ b/warehousing-system/project_web_ui-xxs/src/layout/components/Sidebar/index.vue @@ -64,6 +64,26 @@ name: "/initial_value/product", path: "/initial_value/product", }, + { + alwaysShow: true, + component: "brandManagementInfo", + meta: { + icon: "el-icon-help", + title: "品牌管理", + }, + name: "/brand/brandManagementInfo", + path: "/brand/brandManagementInfo", + }, + { + alwaysShow: true, + component: "classManagementInfo", + meta: { + icon: "el-icon-help", + title: "类别管理", + }, + name: "/classification/classManagementInfo", + path: "/classification/classManagementInfo", + }, { alwaysShow: true, component: "storehouse", diff --git a/warehousing-system/project_web_ui-xxs/src/router/modules/codemenu.js b/warehousing-system/project_web_ui-xxs/src/router/modules/codemenu.js index dfc4060c..8878584b 100644 --- a/warehousing-system/project_web_ui-xxs/src/router/modules/codemenu.js +++ b/warehousing-system/project_web_ui-xxs/src/router/modules/codemenu.js @@ -31,7 +31,26 @@ const codemenu = [{ title: '产品管理', noCache: true } - }, { + }, + { + path: '/brand/brandManagementInfo', + component: () => import('@/views/brand/brandManagementInfo.vue'), + name: 'brandManagementInfo', + meta: { + title: '品牌管理', + noCache: true + } + }, + { + path: '/classification/classManagementInfo', + component: () => import('@/views/classification/classManagementInfo.vue'), + name: 'classManagementInfo', + meta: { + title: '类别管理', + noCache: true + } + }, + { path: '/initial_value/location', component: () => import('@/views/component/initial_value/location.vue'), name: 'location', diff --git a/warehousing-system/project_web_ui-xxs/src/views/brand/brandManagementInfo.vue b/warehousing-system/project_web_ui-xxs/src/views/brand/brandManagementInfo.vue new file mode 100644 index 00000000..ec4563ff --- /dev/null +++ b/warehousing-system/project_web_ui-xxs/src/views/brand/brandManagementInfo.vue @@ -0,0 +1,265 @@ + + + + diff --git a/warehousing-system/project_web_ui-xxs/src/views/brand/brandManagementInfoAdd.vue b/warehousing-system/project_web_ui-xxs/src/views/brand/brandManagementInfoAdd.vue new file mode 100644 index 00000000..2eebd606 --- /dev/null +++ b/warehousing-system/project_web_ui-xxs/src/views/brand/brandManagementInfoAdd.vue @@ -0,0 +1,157 @@ + + + + diff --git a/warehousing-system/project_web_ui-xxs/src/views/classification/classManagementInfo.vue b/warehousing-system/project_web_ui-xxs/src/views/classification/classManagementInfo.vue new file mode 100644 index 00000000..ed1f8b1e --- /dev/null +++ b/warehousing-system/project_web_ui-xxs/src/views/classification/classManagementInfo.vue @@ -0,0 +1,309 @@ + + + + + + + diff --git a/warehousing-system/project_web_ui-xxs/src/views/classification/classManagementInfoAdd.vue b/warehousing-system/project_web_ui-xxs/src/views/classification/classManagementInfoAdd.vue new file mode 100644 index 00000000..efa4a910 --- /dev/null +++ b/warehousing-system/project_web_ui-xxs/src/views/classification/classManagementInfoAdd.vue @@ -0,0 +1,157 @@ + + + + diff --git a/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/add/productAdd.vue b/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/add/productAdd.vue index ae0fe399..18fbec6c 100644 --- a/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/add/productAdd.vue +++ b/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/add/productAdd.vue @@ -17,7 +17,7 @@
条码: - +
diff --git a/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/product.vue b/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/product.vue index b911755d..b5200029 100644 --- a/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/product.vue +++ b/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/product.vue @@ -76,7 +76,6 @@ width="180">