From fcaed095ae7a55324b19e532c58b5379ca663fdd Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 6 Dec 2023 17:56:59 +0800 Subject: [PATCH 1/2] fix: BUG --- god-ui/src/layout/components/Sidebar/Logo.vue | 2 +- god-ui/src/views/login.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/god-ui/src/layout/components/Sidebar/Logo.vue b/god-ui/src/layout/components/Sidebar/Logo.vue index 5eb9467f..b71a7b44 100644 --- a/god-ui/src/layout/components/Sidebar/Logo.vue +++ b/god-ui/src/layout/components/Sidebar/Logo.vue @@ -68,7 +68,7 @@ export default { this.title = '工程机械数字服务平台' document.title = '工程机械数字服务平台' break; - case '9230': + case '9260': this.title = '企业作业综合可视化监管平台' document.title = '企业作业综合可视化监管平台' break; diff --git a/god-ui/src/views/login.vue b/god-ui/src/views/login.vue index e84d1109..e7023df3 100644 --- a/god-ui/src/views/login.vue +++ b/god-ui/src/views/login.vue @@ -158,7 +158,7 @@ export default { loginDom.style.backgroundImage = 'url(/images/gongcheng-bg.png)' this.redirect = '/index' break; - case '9230': + case '9260': document.title = '企业作业综合可视化监管平台' loginDom.style.backgroundImage = 'url(/images/qiye-bg.png)' this.redirect = '/index' From 5256e43614bbccdbae425dd3f55ef6c31a39749c Mon Sep 17 00:00:00 2001 From: wangyan21 Date: Thu, 7 Dec 2023 15:46:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?wms=E5=86=85=E9=83=A8=E9=A2=86=E6=96=99?= =?UTF-8?q?=EF=BC=8C=E5=AE=A2=E6=88=B7=E6=9D=A5=E6=96=99=E5=8A=A0=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WmsMaterialManageController.java | 104 +++++ .../wmsProduct/domain/WmsMaterialManage.java | 192 ++++++++ .../mapper/WmsMaterialManageMapper.java | 61 +++ .../service/IWmsMaterialManageService.java | 61 +++ .../impl/WmsMaterialManageServiceImpl.java | 92 ++++ .../wmsProduct/WmsMaterialManageMapper.xml | 112 +++++ god-ui/src/api/wmsProduct/manage.js | 44 ++ .../src/views/wmsProduct/exchange/index.vue | 372 +++++++++++++++ .../src/views/wmsProduct/incoming/index.vue | 426 ++++++++++++++++++ .../src/views/wmsProduct/material/index.vue | 384 ++++++++++++++++ 10 files changed, 1848 insertions(+) create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/wmsProduct/WmsMaterialManageController.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wmsProduct/domain/WmsMaterialManage.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wmsProduct/mapper/WmsMaterialManageMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wmsProduct/service/IWmsMaterialManageService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wmsProduct/service/impl/WmsMaterialManageServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/wmsProduct/WmsMaterialManageMapper.xml create mode 100644 god-ui/src/api/wmsProduct/manage.js create mode 100644 god-ui/src/views/wmsProduct/exchange/index.vue create mode 100644 god-ui/src/views/wmsProduct/incoming/index.vue create mode 100644 god-ui/src/views/wmsProduct/material/index.vue diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wmsProduct/WmsMaterialManageController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wmsProduct/WmsMaterialManageController.java new file mode 100644 index 00000000..19c6cabd --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wmsProduct/WmsMaterialManageController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.wmsProduct; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.wmsProduct.domain.WmsMaterialManage; +import com.god.wmsProduct.service.IWmsMaterialManageService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 内部领料Controller + * + * @author wangyan + * @date 2023-12-07 + */ +@RestController +@RequestMapping("/material/manage") +public class WmsMaterialManageController extends BaseController +{ + @Autowired + private IWmsMaterialManageService wmsMaterialManageService; + + /** + * 查询内部领料列表 + */ + @PreAuthorize("@ss.hasPermi('material:manage:list')") + @GetMapping("/list") + public TableDataInfo list(WmsMaterialManage wmsMaterialManage) + { + startPage(); + List list = wmsMaterialManageService.selectWmsMaterialManageList(wmsMaterialManage); + return getDataTable(list); + } + + /** + * 导出内部领料列表 + */ + @PreAuthorize("@ss.hasPermi('material:manage:export')") + @Log(title = "内部领料", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, WmsMaterialManage wmsMaterialManage) + { + List list = wmsMaterialManageService.selectWmsMaterialManageList(wmsMaterialManage); + ExcelUtil util = new ExcelUtil(WmsMaterialManage.class); + util.exportExcel(response, list, "内部领料数据"); + } + + /** + * 获取内部领料详细信息 + */ + @PreAuthorize("@ss.hasPermi('material:manage:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(wmsMaterialManageService.selectWmsMaterialManageById(id)); + } + + /** + * 新增内部领料 + */ + @PreAuthorize("@ss.hasPermi('material:manage:add')") + @Log(title = "内部领料", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody WmsMaterialManage wmsMaterialManage) + { + return toAjax(wmsMaterialManageService.insertWmsMaterialManage(wmsMaterialManage)); + } + + /** + * 修改内部领料 + */ + @PreAuthorize("@ss.hasPermi('material:manage:edit')") + @Log(title = "内部领料", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody WmsMaterialManage wmsMaterialManage) + { + return toAjax(wmsMaterialManageService.updateWmsMaterialManage(wmsMaterialManage)); + } + + /** + * 删除内部领料 + */ + @PreAuthorize("@ss.hasPermi('material:manage:remove')") + @Log(title = "内部领料", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(wmsMaterialManageService.deleteWmsMaterialManageByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/domain/WmsMaterialManage.java b/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/domain/WmsMaterialManage.java new file mode 100644 index 00000000..9108bf4a --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/domain/WmsMaterialManage.java @@ -0,0 +1,192 @@ +package com.god.wmsProduct.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 内部领料对象 wms_material_manage + * + * @author wangyan + * @date 2023-12-07 + */ +public class WmsMaterialManage extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 名称 */ + @Excel(name = "名称") + private String productName; + + /** 类型 */ + @Excel(name = "类型") + private String productType; + + /** 数量 */ + @Excel(name = "数量") + private String productNumber; + + /** 重量 */ + @Excel(name = "重量") + private String productWeight; + + /** 部门信息 */ + @Excel(name = "部门信息") + private String deptInfo; + + /** 领料日期 */ + @Excel(name = "领料日期") + private String applyTime; + + /** 签字 */ + @Excel(name = "签字") + private String signInfo; + + /** 订单编号 */ + @Excel(name = "订单编号") + private String orderInfo; + + /** 处理时间 */ + @Excel(name = "处理时间") + private String dealTime; + + /** 处理人 */ + @Excel(name = "处理人") + private String dealPerson; + + /** 数据类型 */ + @Excel(name = "数据类型") + private String dataType; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + public void setProductType(String productType) + { + this.productType = productType; + } + + public String getProductType() + { + return productType; + } + public void setProductNumber(String productNumber) + { + this.productNumber = productNumber; + } + + public String getProductNumber() + { + return productNumber; + } + public void setProductWeight(String productWeight) + { + this.productWeight = productWeight; + } + + public String getProductWeight() + { + return productWeight; + } + public void setDeptInfo(String deptInfo) + { + this.deptInfo = deptInfo; + } + + public String getDeptInfo() + { + return deptInfo; + } + public void setApplyTime(String applyTime) + { + this.applyTime = applyTime; + } + + public String getApplyTime() + { + return applyTime; + } + public void setSignInfo(String signInfo) + { + this.signInfo = signInfo; + } + + public String getSignInfo() + { + return signInfo; + } + public void setOrderInfo(String orderInfo) + { + this.orderInfo = orderInfo; + } + + public String getOrderInfo() + { + return orderInfo; + } + public void setDealTime(String dealTime) + { + this.dealTime = dealTime; + } + + public String getDealTime() + { + return dealTime; + } + public void setDealPerson(String dealPerson) + { + this.dealPerson = dealPerson; + } + + public String getDealPerson() + { + return dealPerson; + } + public void setDataType(String dataType) + { + this.dataType = dataType; + } + + public String getDataType() + { + return dataType; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("productName", getProductName()) + .append("productType", getProductType()) + .append("productNumber", getProductNumber()) + .append("productWeight", getProductWeight()) + .append("deptInfo", getDeptInfo()) + .append("applyTime", getApplyTime()) + .append("signInfo", getSignInfo()) + .append("orderInfo", getOrderInfo()) + .append("dealTime", getDealTime()) + .append("dealPerson", getDealPerson()) + .append("remark", getRemark()) + .append("dataType", getDataType()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/mapper/WmsMaterialManageMapper.java b/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/mapper/WmsMaterialManageMapper.java new file mode 100644 index 00000000..f8c603d0 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/mapper/WmsMaterialManageMapper.java @@ -0,0 +1,61 @@ +package com.god.wmsProduct.mapper; + +import java.util.List; +import com.god.wmsProduct.domain.WmsMaterialManage; + +/** + * 内部领料Mapper接口 + * + * @author wangyan + * @date 2023-12-07 + */ +public interface WmsMaterialManageMapper +{ + /** + * 查询内部领料 + * + * @param id 内部领料主键 + * @return 内部领料 + */ + public WmsMaterialManage selectWmsMaterialManageById(String id); + + /** + * 查询内部领料列表 + * + * @param wmsMaterialManage 内部领料 + * @return 内部领料集合 + */ + public List selectWmsMaterialManageList(WmsMaterialManage wmsMaterialManage); + + /** + * 新增内部领料 + * + * @param wmsMaterialManage 内部领料 + * @return 结果 + */ + public int insertWmsMaterialManage(WmsMaterialManage wmsMaterialManage); + + /** + * 修改内部领料 + * + * @param wmsMaterialManage 内部领料 + * @return 结果 + */ + public int updateWmsMaterialManage(WmsMaterialManage wmsMaterialManage); + + /** + * 删除内部领料 + * + * @param id 内部领料主键 + * @return 结果 + */ + public int deleteWmsMaterialManageById(String id); + + /** + * 批量删除内部领料 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteWmsMaterialManageByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/service/IWmsMaterialManageService.java b/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/service/IWmsMaterialManageService.java new file mode 100644 index 00000000..2f7bef96 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/service/IWmsMaterialManageService.java @@ -0,0 +1,61 @@ +package com.god.wmsProduct.service; + +import java.util.List; +import com.god.wmsProduct.domain.WmsMaterialManage; + +/** + * 内部领料Service接口 + * + * @author wangyan + * @date 2023-12-07 + */ +public interface IWmsMaterialManageService +{ + /** + * 查询内部领料 + * + * @param id 内部领料主键 + * @return 内部领料 + */ + public WmsMaterialManage selectWmsMaterialManageById(String id); + + /** + * 查询内部领料列表 + * + * @param wmsMaterialManage 内部领料 + * @return 内部领料集合 + */ + public List selectWmsMaterialManageList(WmsMaterialManage wmsMaterialManage); + + /** + * 新增内部领料 + * + * @param wmsMaterialManage 内部领料 + * @return 结果 + */ + public int insertWmsMaterialManage(WmsMaterialManage wmsMaterialManage); + + /** + * 修改内部领料 + * + * @param wmsMaterialManage 内部领料 + * @return 结果 + */ + public int updateWmsMaterialManage(WmsMaterialManage wmsMaterialManage); + + /** + * 批量删除内部领料 + * + * @param ids 需要删除的内部领料主键集合 + * @return 结果 + */ + public int deleteWmsMaterialManageByIds(String[] ids); + + /** + * 删除内部领料信息 + * + * @param id 内部领料主键 + * @return 结果 + */ + public int deleteWmsMaterialManageById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/service/impl/WmsMaterialManageServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/service/impl/WmsMaterialManageServiceImpl.java new file mode 100644 index 00000000..eb86a36c --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wmsProduct/service/impl/WmsMaterialManageServiceImpl.java @@ -0,0 +1,92 @@ +package com.god.wmsProduct.service.impl; + +import java.util.List; + +import com.god.common.utils.StringUtils; +import com.god.common.utils.uuid.IdUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.god.wmsProduct.mapper.WmsMaterialManageMapper; +import com.god.wmsProduct.domain.WmsMaterialManage; +import com.god.wmsProduct.service.IWmsMaterialManageService; + +/** + * 内部领料Service业务层处理 + * + * @author wangyan + * @date 2023-12-07 + */ +@Service +public class WmsMaterialManageServiceImpl implements IWmsMaterialManageService { + @Autowired + private WmsMaterialManageMapper wmsMaterialManageMapper; + + /** + * 查询内部领料 + * + * @param id 内部领料主键 + * @return 内部领料 + */ + @Override + public WmsMaterialManage selectWmsMaterialManageById(String id) { + return wmsMaterialManageMapper.selectWmsMaterialManageById(id); + } + + /** + * 查询内部领料列表 + * + * @param wmsMaterialManage 内部领料 + * @return 内部领料 + */ + @Override + public List selectWmsMaterialManageList(WmsMaterialManage wmsMaterialManage) { + return wmsMaterialManageMapper.selectWmsMaterialManageList(wmsMaterialManage); + } + + /** + * 新增内部领料 + * + * @param wmsMaterialManage 内部领料 + * @return 结果 + */ + @Override + public int insertWmsMaterialManage(WmsMaterialManage wmsMaterialManage) { + if (StringUtils.isBlank(wmsMaterialManage.getId())){ + wmsMaterialManage.setId(IdUtils.fastSimpleUUID()); + } + return wmsMaterialManageMapper.insertWmsMaterialManage(wmsMaterialManage); + } + + /** + * 修改内部领料 + * + * @param wmsMaterialManage 内部领料 + * @return 结果 + */ + @Override + public int updateWmsMaterialManage(WmsMaterialManage wmsMaterialManage) { + return wmsMaterialManageMapper.updateWmsMaterialManage(wmsMaterialManage); + } + + /** + * 批量删除内部领料 + * + * @param ids 需要删除的内部领料主键 + * @return 结果 + */ + @Override + public int deleteWmsMaterialManageByIds(String[] ids) { + return wmsMaterialManageMapper.deleteWmsMaterialManageByIds(ids); + } + + /** + * 删除内部领料信息 + * + * @param id 内部领料主键 + * @return 结果 + */ + @Override + public int deleteWmsMaterialManageById(String id) { + return wmsMaterialManageMapper.deleteWmsMaterialManageById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wmsProduct/WmsMaterialManageMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wmsProduct/WmsMaterialManageMapper.xml new file mode 100644 index 00000000..56d3391b --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/wmsProduct/WmsMaterialManageMapper.xml @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + select id, product_name, product_type, product_number, product_weight, dept_info, apply_time, sign_info, order_info, deal_time, deal_person, remark, data_type from wms_material_manage + + + + + + + + insert into wms_material_manage + + id, + product_name, + product_type, + product_number, + product_weight, + dept_info, + apply_time, + sign_info, + order_info, + deal_time, + deal_person, + remark, + data_type, + + + #{id}, + #{productName}, + #{productType}, + #{productNumber}, + #{productWeight}, + #{deptInfo}, + #{applyTime}, + #{signInfo}, + #{orderInfo}, + #{dealTime}, + #{dealPerson}, + #{remark}, + #{dataType}, + + + + + update wms_material_manage + + product_name = #{productName}, + product_type = #{productType}, + product_number = #{productNumber}, + product_weight = #{productWeight}, + dept_info = #{deptInfo}, + apply_time = #{applyTime}, + sign_info = #{signInfo}, + order_info = #{orderInfo}, + deal_time = #{dealTime}, + deal_person = #{dealPerson}, + remark = #{remark}, + data_type = #{dataType}, + + where id = #{id} + + + + delete from wms_material_manage where id = #{id} + + + + delete from wms_material_manage where id in + + #{id} + + + \ No newline at end of file diff --git a/god-ui/src/api/wmsProduct/manage.js b/god-ui/src/api/wmsProduct/manage.js new file mode 100644 index 00000000..8e05fb36 --- /dev/null +++ b/god-ui/src/api/wmsProduct/manage.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询内部领料列表 +export function listManage(query) { + return request({ + url: '/material/manage/list', + method: 'get', + params: query + }) +} + +// 查询内部领料详细 +export function getManage(id) { + return request({ + url: '/material/manage/' + id, + method: 'get' + }) +} + +// 新增内部领料 +export function addManage(data) { + return request({ + url: '/material/manage', + method: 'post', + data: data + }) +} + +// 修改内部领料 +export function updateManage(data) { + return request({ + url: '/material/manage', + method: 'put', + data: data + }) +} + +// 删除内部领料 +export function delManage(id) { + return request({ + url: '/material/manage/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/wmsProduct/exchange/index.vue b/god-ui/src/views/wmsProduct/exchange/index.vue new file mode 100644 index 00000000..46f09e73 --- /dev/null +++ b/god-ui/src/views/wmsProduct/exchange/index.vue @@ -0,0 +1,372 @@ + + + diff --git a/god-ui/src/views/wmsProduct/incoming/index.vue b/god-ui/src/views/wmsProduct/incoming/index.vue new file mode 100644 index 00000000..6a2dbeb9 --- /dev/null +++ b/god-ui/src/views/wmsProduct/incoming/index.vue @@ -0,0 +1,426 @@ + + + diff --git a/god-ui/src/views/wmsProduct/material/index.vue b/god-ui/src/views/wmsProduct/material/index.vue new file mode 100644 index 00000000..23bb881e --- /dev/null +++ b/god-ui/src/views/wmsProduct/material/index.vue @@ -0,0 +1,384 @@ + + +