diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/DevelopReviseorderChildController.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/DevelopReviseorderChildController.java new file mode 100644 index 00000000..f4ec4692 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/DevelopReviseorderChildController.java @@ -0,0 +1,151 @@ +package com.ruoyi.erp.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.erp.domain.DevelopReviseorderChild; +import com.ruoyi.erp.service.IDevelopReviseorderChildService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 开发修改单子详情Controller + * + * @author zhang + * @date 2024-06-06 + */ +@Controller +@RequestMapping("/erp/developModifyChild") +public class DevelopReviseorderChildController extends BaseController +{ + private String prefix = "erp/developModifyChild"; + + @Autowired + private IDevelopReviseorderChildService developReviseorderChildService; + +// @RequiresPermissions("erp:developModifyChild:view") + @GetMapping() + public String developModifyChild() + { + return prefix + "/developModifyChild"; + } + + /** + * 查询开发修改单子详情列表 + */ +// @RequiresPermissions("erp:developModifyChild:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(DevelopReviseorderChild developReviseorderChild) + { + startPage(); + List list = developReviseorderChildService.selectDevelopReviseorderChildList(developReviseorderChild); + return getDataTable(list); + } + + /** + * 导出开发修改单子详情列表 + */ +// @RequiresPermissions("erp:developModifyChild:export") + @Log(title = "开发修改单子详情", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(DevelopReviseorderChild developReviseorderChild) + { + List list = developReviseorderChildService.selectDevelopReviseorderChildList(developReviseorderChild); + ExcelUtil util = new ExcelUtil(DevelopReviseorderChild.class); + return util.exportExcel(list, "开发修改单子详情数据"); + } + + /** + * 新增开发修改单子详情 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存开发修改单子详情 + */ +// @RequiresPermissions("erp:developModifyChild:add") + @Log(title = "开发修改单子详情", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(DevelopReviseorderChild developReviseorderChild) + { + return toAjax(developReviseorderChildService.insertDevelopReviseorderChild(developReviseorderChild)); + } + + /** + * 修改开发修改单子详情 + */ + @GetMapping("/edit/{childId}") + public String edit(@PathVariable("childId") Long childId, ModelMap mmap) + { + DevelopReviseorderChild developReviseorderChild = developReviseorderChildService.selectDevelopReviseorderChildById(childId); + mmap.put("developReviseorderChild", developReviseorderChild); + return prefix + "/edit"; + } + + /** + * 修改保存开发修改单子详情 + */ +// @RequiresPermissions("erp:developModifyChild:edit") + @Log(title = "开发修改单子详情", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(DevelopReviseorderChild developReviseorderChild) + { + return toAjax(developReviseorderChildService.updateDevelopReviseorderChild(developReviseorderChild)); + } + + /** + * 删除开发修改单子详情 + */ +// @RequiresPermissions("erp:developModifyChild:remove") + @Log(title = "开发修改单子详情", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(developReviseorderChildService.deleteDevelopReviseorderChildByIds(ids)); + } + + /** + * 作废开发修改单子详情 + */ +// @RequiresPermissions("erp:developModifyChild:cancel") + @Log(title = "开发修改单子详情", businessType = BusinessType.CANCEL) + @GetMapping( "/cancel/{id}") + @ResponseBody + public AjaxResult cancel(@PathVariable("id") Long id){ + return toAjax(developReviseorderChildService.cancelDevelopReviseorderChildById(id)); + } + + /** + * 恢复开发修改单子详情 + */ +// @RequiresPermissions("erp:developModifyChild:restore") + @Log(title = "开发修改单子详情", businessType = BusinessType.RESTORE) + @GetMapping( "/restore/{id}") + @ResponseBody + public AjaxResult restore(@PathVariable("id")Long id) + { + return toAjax(developReviseorderChildService.restoreDevelopReviseorderChildById(id)); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpDevelopModifyorderController.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpDevelopModifyorderController.java index 7e17727b..d8fb0164 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpDevelopModifyorderController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpDevelopModifyorderController.java @@ -116,7 +116,22 @@ public class ErpDevelopModifyorderController extends BaseController mmap.put("erpDevelopModifyorder", erpDevelopModifyorder); return prefix + "/edit"; } - + /**相关人员确认*/ + @GetMapping("/confirm/{developOrderId}") + public String confrimDetail(@PathVariable("developOrderId") Long developOrderId, ModelMap mmap) + { + ErpDevelopModifyorder erpDevelopModifyorder = erpDevelopModifyorderService.selectErpDevelopModifyorderById(developOrderId); + mmap.put("erpDevelopModifyorder", erpDevelopModifyorder); + return prefix + "/confirm"; + } + /**领料确认*/ + @GetMapping("/pickingOrder/{developOrderId}") + public String pickingOrder(@PathVariable("developOrderId") Long developOrderId, ModelMap mmap) + { + ErpDevelopModifyorder erpDevelopModifyorder = erpDevelopModifyorderService.selectErpDevelopModifyorderById(developOrderId); + mmap.put("erpDevelopModifyorder", erpDevelopModifyorder); + return prefix + "/pickAdd"; + } /** * 修改保存开发修改单 */ @@ -175,5 +190,4 @@ public class ErpDevelopModifyorderController extends BaseController return toAjax(erpDevelopModifyorderService.restoreErpDevelopModifyorderById(id)); } - } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/DevelopReviseorderChild.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/DevelopReviseorderChild.java new file mode 100644 index 00000000..495409f6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/DevelopReviseorderChild.java @@ -0,0 +1,238 @@ +package com.ruoyi.erp.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 开发修改单子详情对象 develop_reviseorder_child + * + * @author zhang + * @date 2024-06-06 + */ +public class DevelopReviseorderChild extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 开发修改单子表编号 */ + private Long childId; + + /** 开发修改单单号 */ + @Excel(name = "开发修改单单号") + private String developOderCode; + + /** 关联生产单号 */ + @Excel(name = "关联生产单号") + private String makeoderCode; + + /** 料号 */ + @Excel(name = "料号") + private String materialNo; + + /** 使用状态 */ + @Excel(name = "使用状态") + private String useStatus; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String materialName; + + /** 物料类型 */ + @Excel(name = "物料类型") + private String materialType; + + /** 图片地址 */ + @Excel(name = "图片地址") + private String photoUrl; + + /** 品牌 */ + @Excel(name = "品牌") + private String brand; + + /** 描述 */ + @Excel(name = "描述") + private String describe; + + /** 单位 */ + @Excel(name = "单位") + private String unit; + + /** 修改前说明 */ + @Excel(name = "修改前说明") + private String updateBeforeRemark; + + /** 修改前上传文件 */ + @Excel(name = "修改前上传文件") + private String updateBeforeFile; + + /** 修改前说明 */ + @Excel(name = "修改前说明") + private String updateAfterRemark; + + /** 修改前上传文件 */ + @Excel(name = "修改前上传文件") + private String updateAfterFile; + + public void setChildId(Long childId) + { + this.childId = childId; + } + + public Long getChildId() + { + return childId; + } + public void setDevelopOderCode(String developOderCode) + { + this.developOderCode = developOderCode; + } + + public String getDevelopOderCode() + { + return developOderCode; + } + public void setMakeoderCode(String makeoderCode) + { + this.makeoderCode = makeoderCode; + } + + public String getMakeoderCode() + { + return makeoderCode; + } + public void setMaterialNo(String materialNo) + { + this.materialNo = materialNo; + } + + public String getMaterialNo() + { + return materialNo; + } + public void setUseStatus(String useStatus) + { + this.useStatus = useStatus; + } + + public String getUseStatus() + { + return useStatus; + } + public void setMaterialName(String materialName) + { + this.materialName = materialName; + } + + public String getMaterialName() + { + return materialName; + } + public void setMaterialType(String materialType) + { + this.materialType = materialType; + } + + public String getMaterialType() + { + return materialType; + } + public void setPhotoUrl(String photoUrl) + { + this.photoUrl = photoUrl; + } + + public String getPhotoUrl() + { + return photoUrl; + } + public void setBrand(String brand) + { + this.brand = brand; + } + + public String getBrand() + { + return brand; + } + public void setDescribe(String describe) + { + this.describe = describe; + } + + public String getDescribe() + { + return describe; + } + public void setUnit(String unit) + { + this.unit = unit; + } + + public String getUnit() + { + return unit; + } + public void setUpdateBeforeRemark(String updateBeforeRemark) + { + this.updateBeforeRemark = updateBeforeRemark; + } + + public String getUpdateBeforeRemark() + { + return updateBeforeRemark; + } + public void setUpdateBeforeFile(String updateBeforeFile) + { + this.updateBeforeFile = updateBeforeFile; + } + + public String getUpdateBeforeFile() + { + return updateBeforeFile; + } + public void setUpdateAfterRemark(String updateAfterRemark) + { + this.updateAfterRemark = updateAfterRemark; + } + + public String getUpdateAfterRemark() + { + return updateAfterRemark; + } + public void setUpdateAfterFile(String updateAfterFile) + { + this.updateAfterFile = updateAfterFile; + } + + public String getUpdateAfterFile() + { + return updateAfterFile; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("childId", getChildId()) + .append("developOderCode", getDevelopOderCode()) + .append("makeoderCode", getMakeoderCode()) + .append("materialNo", getMaterialNo()) + .append("useStatus", getUseStatus()) + .append("materialName", getMaterialName()) + .append("materialType", getMaterialType()) + .append("photoUrl", getPhotoUrl()) + .append("brand", getBrand()) + .append("describe", getDescribe()) + .append("unit", getUnit()) + .append("updateBeforeRemark", getUpdateBeforeRemark()) + .append("updateBeforeFile", getUpdateBeforeFile()) + .append("updateAfterRemark", getUpdateAfterRemark()) + .append("updateAfterFile", getUpdateAfterFile()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpDevelopModifyorder.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpDevelopModifyorder.java index ec6a9776..2d392e4e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpDevelopModifyorder.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpDevelopModifyorder.java @@ -86,7 +86,18 @@ public class ErpDevelopModifyorder extends BaseEntity @Excel(name = "工程员姓名") private String userName; - public void setDevelopOrderId(Long developOrderId) + @Excel(name = "加工单号") + private String makeNo; + + public String getMakeNo() { + return makeNo; + } + + public void setMakeNo(String makeNo) { + this.makeNo = makeNo; + } + + public void setDevelopOrderId(Long developOrderId) { this.developOrderId = developOrderId; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/DevelopReviseorderChildMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/DevelopReviseorderChildMapper.java new file mode 100644 index 00000000..405467fa --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/DevelopReviseorderChildMapper.java @@ -0,0 +1,77 @@ +package com.ruoyi.erp.mapper; + +import java.util.List; +import com.ruoyi.erp.domain.DevelopReviseorderChild; + +/** + * 开发修改单子详情Mapper接口 + * + * @author zhang + * @date 2024-06-06 + */ +public interface DevelopReviseorderChildMapper +{ + /** + * 查询开发修改单子详情 + * + * @param childId 开发修改单子详情ID + * @return 开发修改单子详情 + */ + public DevelopReviseorderChild selectDevelopReviseorderChildById(Long childId); + + /** + * 查询开发修改单子详情列表 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 开发修改单子详情集合 + */ + public List selectDevelopReviseorderChildList(DevelopReviseorderChild developReviseorderChild); + + /** + * 新增开发修改单子详情 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 结果 + */ + public int insertDevelopReviseorderChild(DevelopReviseorderChild developReviseorderChild); + + /** + * 修改开发修改单子详情 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 结果 + */ + public int updateDevelopReviseorderChild(DevelopReviseorderChild developReviseorderChild); + + /** + * 删除开发修改单子详情 + * + * @param childId 开发修改单子详情ID + * @return 结果 + */ + public int deleteDevelopReviseorderChildById(Long childId); + + /** + * 批量删除开发修改单子详情 + * + * @param childIds 需要删除的数据ID + * @return 结果 + */ + public int deleteDevelopReviseorderChildByIds(String[] childIds); + + /** + * 作废开发修改单子详情 + * + * @param childId 开发修改单子详情ID + * @return 结果 + */ + public int cancelDevelopReviseorderChildById(Long childId); + + /** + * 恢复开发修改单子详情 + * + * @param childId 开发修改单子详情ID + * @return 结果 + */ + public int restoreDevelopReviseorderChildById(Long childId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IDevelopReviseorderChildService.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IDevelopReviseorderChildService.java new file mode 100644 index 00000000..9d7b6b3f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IDevelopReviseorderChildService.java @@ -0,0 +1,75 @@ +package com.ruoyi.erp.service; + +import java.util.List; +import com.ruoyi.erp.domain.DevelopReviseorderChild; + +/** + * 开发修改单子详情Service接口 + * + * @author zhang + * @date 2024-06-06 + */ +public interface IDevelopReviseorderChildService +{ + /** + * 查询开发修改单子详情 + * + * @param childId 开发修改单子详情ID + * @return 开发修改单子详情 + */ + public DevelopReviseorderChild selectDevelopReviseorderChildById(Long childId); + + /** + * 查询开发修改单子详情列表 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 开发修改单子详情集合 + */ + public List selectDevelopReviseorderChildList(DevelopReviseorderChild developReviseorderChild); + + /** + * 新增开发修改单子详情 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 结果 + */ + public int insertDevelopReviseorderChild(DevelopReviseorderChild developReviseorderChild); + + /** + * 修改开发修改单子详情 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 结果 + */ + public int updateDevelopReviseorderChild(DevelopReviseorderChild developReviseorderChild); + + /** + * 批量删除开发修改单子详情 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteDevelopReviseorderChildByIds(String ids); + + /** + * 删除开发修改单子详情信息 + * + * @param childId 开发修改单子详情ID + * @return 结果 + */ + public int deleteDevelopReviseorderChildById(Long childId); + + /** + * 作废开发修改单子详情 + * @param childId 开发修改单子详情ID + * @return + */ + int cancelDevelopReviseorderChildById(Long childId); + + /** + * 恢复开发修改单子详情 + * @param childId 开发修改单子详情ID + * @return + */ + int restoreDevelopReviseorderChildById(Long childId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/DevelopReviseorderChildServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/DevelopReviseorderChildServiceImpl.java new file mode 100644 index 00000000..ea5cdf9f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/DevelopReviseorderChildServiceImpl.java @@ -0,0 +1,126 @@ +package com.ruoyi.erp.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ShiroUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.erp.mapper.DevelopReviseorderChildMapper; +import com.ruoyi.erp.domain.DevelopReviseorderChild; +import com.ruoyi.erp.service.IDevelopReviseorderChildService; +import com.ruoyi.common.core.text.Convert; + +/** + * 开发修改单子详情Service业务层处理 + * + * @author zhang + * @date 2024-06-06 + */ +@Service +public class DevelopReviseorderChildServiceImpl implements IDevelopReviseorderChildService +{ + @Autowired + private DevelopReviseorderChildMapper developReviseorderChildMapper; + + /** + * 查询开发修改单子详情 + * + * @param childId 开发修改单子详情ID + * @return 开发修改单子详情 + */ + @Override + public DevelopReviseorderChild selectDevelopReviseorderChildById(Long childId) + { + return developReviseorderChildMapper.selectDevelopReviseorderChildById(childId); + } + + /** + * 查询开发修改单子详情列表 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 开发修改单子详情 + */ + @Override + public List selectDevelopReviseorderChildList(DevelopReviseorderChild developReviseorderChild) + { + return developReviseorderChildMapper.selectDevelopReviseorderChildList(developReviseorderChild); + } + + /** + * 新增开发修改单子详情 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 结果 + */ + @Override + public int insertDevelopReviseorderChild(DevelopReviseorderChild developReviseorderChild) + { + String loginName = ShiroUtils.getLoginName(); + developReviseorderChild.setCreateBy(loginName); + developReviseorderChild.setCreateTime(DateUtils.getNowDate()); + return developReviseorderChildMapper.insertDevelopReviseorderChild(developReviseorderChild); + } + + /** + * 修改开发修改单子详情 + * + * @param developReviseorderChild 开发修改单子详情 + * @return 结果 + */ + @Override + public int updateDevelopReviseorderChild(DevelopReviseorderChild developReviseorderChild) + { + String loginName = ShiroUtils.getLoginName(); + developReviseorderChild.setUpdateBy(loginName); + developReviseorderChild.setUpdateTime(DateUtils.getNowDate()); + return developReviseorderChildMapper.updateDevelopReviseorderChild(developReviseorderChild); + } + + /** + * 删除开发修改单子详情对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteDevelopReviseorderChildByIds(String ids) + { + return developReviseorderChildMapper.deleteDevelopReviseorderChildByIds(Convert.toStrArray(ids)); + } + + /** + * 删除开发修改单子详情信息 + * + * @param childId 开发修改单子详情ID + * @return 结果 + */ + @Override + public int deleteDevelopReviseorderChildById(Long childId) + { + return developReviseorderChildMapper.deleteDevelopReviseorderChildById(childId); + } + + /** + * 作废开发修改单子详情 + * + * @param childId 开发修改单子详情ID + * @return 结果 + */ + @Override + public int cancelDevelopReviseorderChildById(Long childId) + { + return developReviseorderChildMapper.cancelDevelopReviseorderChildById(childId); + } + + /** + * 恢复开发修改单子详情信息 + * + * @param childId 开发修改单子详情ID + * @return 结果 + */ + @Override + public int restoreDevelopReviseorderChildById(Long childId) + { + return developReviseorderChildMapper.restoreDevelopReviseorderChildById(childId); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/erp/DevelopReviseorderChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/erp/DevelopReviseorderChildMapper.xml new file mode 100644 index 00000000..cf445a6a --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/erp/DevelopReviseorderChildMapper.xml @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select child_id, develop_oder_code, makeoder_code, materialNo, use_status, materialName, materialType, photoUrl, brand, describe, unit, update_before_remark, update_before_file, update_after_remark, update_after_file, create_by, create_time, update_by, update_time, remark from develop_reviseorder_child + + + + + + + + insert into develop_reviseorder_child + + develop_oder_code, + makeoder_code, + materialNo, + use_status, + materialName, + materialType, + photoUrl, + brand, + describe, + unit, + update_before_remark, + update_before_file, + update_after_remark, + update_after_file, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{developOderCode}, + #{makeoderCode}, + #{materialNo}, + #{useStatus}, + #{materialName}, + #{materialType}, + #{photoUrl}, + #{brand}, + #{describe}, + #{unit}, + #{updateBeforeRemark}, + #{updateBeforeFile}, + #{updateAfterRemark}, + #{updateAfterFile}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + update develop_reviseorder_child + + develop_oder_code = #{developOderCode}, + makeoder_code = #{makeoderCode}, + materialNo = #{materialNo}, + use_status = #{useStatus}, + materialName = #{materialName}, + materialType = #{materialType}, + photoUrl = #{photoUrl}, + brand = #{brand}, + describe = #{describe}, + unit = #{unit}, + update_before_remark = #{updateBeforeRemark}, + update_before_file = #{updateBeforeFile}, + update_after_remark = #{updateAfterRemark}, + update_after_file = #{updateAfterFile}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where child_id = #{childId} + + + + delete from develop_reviseorder_child where child_id = #{childId} + + + + delete from develop_reviseorder_child where child_id in + + #{childId} + + + + + update develop_reviseorder_child set del_flag = '1' where child_id = #{childId} + + + + update develop_reviseorder_child set del_flag = '0' where child_id = #{childId} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/add.html b/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/add.html new file mode 100644 index 00000000..a86c7c64 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/add.html @@ -0,0 +1,138 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/developModifyChild.html b/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/developModifyChild.html new file mode 100644 index 00000000..69afc143 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/developModifyChild.html @@ -0,0 +1,207 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/edit.html b/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/edit.html new file mode 100644 index 00000000..285f5687 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/developModifyChild/edit.html @@ -0,0 +1,145 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/add.html b/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/add.html index ad4fc8af..ce6a55c1 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/add.html +++ b/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/add.html @@ -24,7 +24,7 @@
-
@@ -90,24 +90,43 @@ diff --git a/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/detail.html b/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/detail.html index 95a6e59b..f318d310 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/detail.html +++ b/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/detail.html @@ -6,130 +6,90 @@
- -
- -
- + +
+ +
+ +
-
-
- -
- + -
-
- -
- +
+
+
+
修改开发修改单:
+
+
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- + +
+
+
+ 选择开发修改单物料 + + 添加修改物料 + +
+
+
+
+
+
+
-
-
- -
- +
+
+
+ 选择采购物料 + + 添加修改物料 + +
+
+
+
+
+
+
-
-
- -
- +
+
+
+ 选择通知人 + + 添加通知人 + +
+
+
+
+
+
+
-
- +
\ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/edit.html b/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/edit.html index 6db90651..475c24ef 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/edit.html +++ b/ruoyi-admin/src/main/resources/templates/erp/developModifyOrder/edit.html @@ -13,114 +13,80 @@
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- + -
- -
- +
+
+
+
修改开发修改单:
+
-
-
- -
- +
+
+ +
+ +
+
+
+ +
+ + +
+
-
- -
- + +
+
+
+ 选择开发修改单物料 + + 添加修改物料 + +
-
-
- -
- +
+
+
+
-
- -
- +
+
+
+ 选择采购物料 + + 添加修改物料 + +
-
-
- -
- +
+
+
+
-
- -
- +
+
+
+ 选择通知人 + + 添加通知人 + +
-
-
- -
- +
+
+
+
@@ -131,29 +97,394 @@ $("#form-developModifyOrder-edit").validate({ focusCleanup: true }); - + $("#makeNo").select2({ + theme: "bootstrap", + allowClear: true, + placeholder: "请选择生产单号", + ajax: { + url: ctx + "/system/makeorder/getAllMakeNos", + dataType: 'json', + type: "POST", + delay: 250, + processResults: function (res, params) { + var options = []; + if(res.code==0){ + var resultList = res.data; + console.log(resultList); + for(var i= 0, len=resultList.length;i 0) { - var userData = res.data; - for (let i in userData) { - $("#userId_add").append( - "" // 显示用户姓名 + var options = { + id: "bootstrap-sub-table-developModify", + url: prefix + "/getDevelopModifyOrderList", + showSearch: false, + showRefresh: false, + showToggle: false, + showColumns: false, + columns: [ + {checkbox: true}, + {field: 'index',align: 'center', title: "序号", + formatter: function (value, row, index) { + var columnIndex = $.common.sprintf("", $.table.serialNumber(index)); + return columnIndex + $.table.serialNumber(index); + } + }, + {title: '物料索引id',field: 'materialId',align: 'center',visible: false}, + {title: '料号',field: 'materialCode',align: 'center'}, + {title: '物料名称',field: 'materialName',align: 'center'}, + {title: '图片',field: 'photoUrl', + formatter: function(value, row, index) { + if(value == null || value == ""){ + value = ""; + return ""; + } + return $.table.imageView(value); + } + }, + {title: '物料类型',field: 'materialType',align: 'center', + formatter: function(value, row, index) { + return $.table.selectCategoryLabel(materialTypeDatas, value); + } + }, + { title: '描述',field: 'describe',align: 'center'}, + {title: '品牌',field: 'brand',align: 'center'}, + { title: '单位',field: 'unit',align: 'center', + formatter: function(value, row, index) { + return $.table.selectDictLabel(sysUnitClassDatas, value); + } + }, + {title: '半成品类型',field: 'processMethod',align: 'center', + formatter: function(value, row, index) { + return $.table.selectDictLabel(processMethodDatas, value); + } + }, + { title: '对外售价',field: 'materialSole',}, + {title: '国内税率',field: 'countTax',align: 'center',}, + { title: '美元汇率',field: 'usdTax', align: 'center',}, + {field: 'materialNum',align: 'center',title: '物料的数量',}, + { title: '物料的不含税单价(RMB)',field: 'materialNoRmb',align: 'center',}, + {title: '物料的不含税单价(美元)',field: 'materialNoUsd',align: 'center',}, + {title: '修改详情',align: 'center', + formatter:function formatterForm(value, row, index) { + // 这里的代码会为每行生成一个表单 + var form = $('
').append( + $('', { type: 'text', value: row.name, name: 'name', placeholder: 'Name' }), + $('', { type: 'email', value: row.email, name: 'email', placeholder: 'Email' }), + $('