diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesOrderChildController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesOrderChildController.java new file mode 100644 index 00000000..b5b4bd7e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesOrderChildController.java @@ -0,0 +1,99 @@ +package com.ruoyi.system.controller; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysSalesOrderChild; +import com.ruoyi.system.service.ISysSalesOrderChildService; +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.*; + +import java.util.List; + +/** + * 客户销售订单报价子Controller + * + * @author ruoyi + * @date 2023-12-01 + */ +@Controller +@RequestMapping("/system/orderChild") +public class SysSalesOrderChildController extends BaseController +{ + private String prefix = "system/orderChild"; + + @Autowired + private ISysSalesOrderChildService SysSalesOrderChildService; + + @RequiresPermissions("system:quoteChild:view") + @GetMapping() + public String quoteChild() + { + return prefix + "/quoteChild"; + } + + /** + * 查询客户报价子列表 + */ + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysSalesOrderChild SysSalesOrderChild) + { + startPage(); + List list = SysSalesOrderChildService.selectSysSalesOrderChildList(SysSalesOrderChild); + return getDataTable(list); + } + + /** + * 导出客户报价子列表 + */ + @Log(title = "客户报价子", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysSalesOrderChild SysSalesOrderChild) + { + List list = SysSalesOrderChildService.selectSysSalesOrderChildList(SysSalesOrderChild); + ExcelUtil util = new ExcelUtil(SysSalesOrderChild.class); + return util.exportExcel(list, "客户报价子数据"); + } + + /** + * 新增保存客户报价子 + */ + @Log(title = "客户销售报价子", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(SysSalesOrderChild SysSalesOrderChild) + { + return toAjax(SysSalesOrderChildService.insertSysSalesOrderChild(SysSalesOrderChild)); + } + + + /** + * 修改保存客户报价子 + */ + @Log(title = "客户销售报价子", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(SysSalesOrderChild SysSalesOrderChild) + { + return toAjax(SysSalesOrderChildService.updateSysSalesOrderChild(SysSalesOrderChild)); + } + + /** + * 删除客户报价子 + */ + @Log(title = "客户销售报价子", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String[] ids) + { + return toAjax(SysSalesOrderChildService.deleteSysSalesOrderChildByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysSalesOrderChildMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysSalesOrderChildMapper.java new file mode 100644 index 00000000..60ccc22a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysSalesOrderChildMapper.java @@ -0,0 +1,24 @@ +package com.ruoyi.system.mapper; + +import com.ruoyi.system.domain.SysSalesOrderChild; +import org.mapstruct.Mapper; + +import java.util.List; +@Mapper +public interface SysSalesOrderChildMapper { + List selectSysSalesOrderChildList(SysSalesOrderChild sysCustomerQuoteChild); + + int insertSysSalesOrderChild(SysSalesOrderChild sysCustomerQuoteChild); + + SysSalesOrderChild selectSysSalesOrderChildById(Long id); + + int updateSysSalesOrderChild(SysSalesOrderChild sysCustomerQuoteChild); + + List selectSysSalesOrderChildByQuoteId(String quoteId); + + int deleteSysSalesOrderChildByIds(String[] ids); + + /*删除ids中的quoteId的所有子项*/ + int deleteSysSalesOrderChildByQuoteIds(String[] ids); + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesOrderChildService.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesOrderChildService.java new file mode 100644 index 00000000..83d5954b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesOrderChildService.java @@ -0,0 +1,24 @@ +package com.ruoyi.system.service; + +import com.ruoyi.system.domain.SysSalesOrderChild; +import org.mapstruct.Mapper; + +import java.util.List; + +public interface ISysSalesOrderChildService { + List selectSysSalesOrderChildList(SysSalesOrderChild sysCustomerQuoteChild); + + int insertSysSalesOrderChild(SysSalesOrderChild sysCustomerQuoteChild); + + SysSalesOrderChild selectSysSalesOrderChildById(Long id); + + int updateSysSalesOrderChild(SysSalesOrderChild sysCustomerQuoteChild); + + List selectSysSalesOrderChildByQuoteId(String quoteId); + + int deleteSysSalesOrderChildByIds(String[] ids); + + /*删除ids中的quoteId的所有子项*/ + int deleteSysSalesOrderChildByQuoteIds(String[] ids); + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderChildServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderChildServiceImpl.java new file mode 100644 index 00000000..b5267514 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderChildServiceImpl.java @@ -0,0 +1,49 @@ +package com.ruoyi.system.service.impl; + +import com.ruoyi.system.domain.SysSalesOrderChild; +import com.ruoyi.system.mapper.SysSalesOrderChildMapper; +import com.ruoyi.system.service.ISysSalesOrderChildService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class SysSalesOrderChildServiceImpl implements ISysSalesOrderChildService { + @Autowired + private SysSalesOrderChildMapper sysCustomerQuoteChildMapper; + @Override + public List selectSysSalesOrderChildList (SysSalesOrderChild sysCustomerQuoteChild) { + return sysCustomerQuoteChildMapper.selectSysSalesOrderChildList(sysCustomerQuoteChild); + } + + @Override + public int insertSysSalesOrderChild(SysSalesOrderChild sysCustomerQuoteChild) { + return sysCustomerQuoteChildMapper.insertSysSalesOrderChild(sysCustomerQuoteChild); + } + + @Override + public SysSalesOrderChild selectSysSalesOrderChildById(Long id) { + return sysCustomerQuoteChildMapper.selectSysSalesOrderChildById(id); + } + + @Override + public List selectSysSalesOrderChildByQuoteId(String quoteId) { + return sysCustomerQuoteChildMapper.selectSysSalesOrderChildByQuoteId(quoteId); + } + + @Override + public int updateSysSalesOrderChild(SysSalesOrderChild sysCustomerQuoteChild) { + return sysCustomerQuoteChildMapper.updateSysSalesOrderChild(sysCustomerQuoteChild); + } + + @Override + public int deleteSysSalesOrderChildByIds(String[] ids) { + return sysCustomerQuoteChildMapper.deleteSysSalesOrderChildByIds(ids); + } + + @Override + public int deleteSysSalesOrderChildByQuoteIds(String[] ids) { + return sysCustomerQuoteChildMapper.deleteSysSalesOrderChildByQuoteIds(ids); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml new file mode 100644 index 00000000..1858b798 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/system/SysSalesOrderChildMapper.xml @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, quoteId, materialId, materialCode, materialName, materialType, processMethod, brand, photoUrl,,unit, `describe`, + countTax, usdTax, materialNum,materialSole, materialRmb, materialNoRmb, materialNoUsd, materialUsd, materialUsdSum, + materialNoUsdSum, materialNoRmbSum, materialRmbSum, create_by, create_time, update_by, + update_time, remark, use_status,audit_status from sys_sales_order_child + + + + + + insert into sys_sales_order_child + + quoteId, + materialId, + materialCode, + materialName, + materialType, + processMethod, + brand, + photoUrl, + `describe`, + countTax, + usdTax, + materialNum, + materialSole, + materialRmb, + materialNoRmb, + materialNoUsd, + materialUsd, + materialUsdSum, + materialNoUsdSum, + materialNoRmbSum, + materialRmbSum, + create_by, + remark, + use_status,audit_status,create_time + + + #{quoteId}, + #{materialId}, + #{materialCode}, + #{materialName}, + #{materialType}, + #{processMethod}, + #{brand}, + #{unit}, + #{photoUrl}, + #{describe}, + #{countTax}, + #{usdTax}, + #{materialNum}, + #{materialSole}, + #{materialRmb}, + #{materialNoRmb}, + #{materialNoUsd}, + #{materialUsd}, + #{materialUsdSum}, + #{materialNoUsdSum}, + #{materialNoRmbSum}, + #{materialRmbSum}, + #{createBy}, + #{remark}, + 0,0,now() + + + + + update sys_sales_order_child + + quoteId = #{quoteId}, + materialId = #{materialId}, + materialCode = #{materialCode}, + materialName = #{materialName}, + materialType = #{materialType}, + processMethod = #{processMethod}, + brand = #{brand}, + photoUrl = #{photoUrl}, + unit = #{unit}, + `describe` = #{describe}, + countTax = #{countTax}, + usdTax = #{usdTax}, + materialNum = #{materialNum}, + materialSole = #{materialSole}, + materialRmb = #{materialRmb}, + materialNoRmb = #{materialNoRmb}, + materialNoUsd = #{materialNoUsd}, + materialUsd = #{materialUsd}, + materialUsdSum = #{materialUsdSum}, + materialNoUsdSum = #{materialNoUsdSum}, + materialNoRmbSum = #{materialNoRmbSum}, + materialRmbSum = #{materialRmbSum}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + audit_status = #{auditStatus}, + use_status = #{useStatus}, + + where id = #{id} + + + + update sys_sales_order_child set use_status = 1 where id = #{id} + + + + update sys_sales_order_child set use_status = 1 where id in + + #{id} + + + + update sys_sales_order_child set use_status = 1 where quoteId in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskModifyApply.html b/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskModifyApply.html new file mode 100644 index 00000000..9618e609 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskModifyApply.html @@ -0,0 +1,309 @@ + + + + + + + + +
+
+ + + + +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+

计算

+
+ + +
+
+ + + + +
+
+ + + + +
+
+
+
+
+
+ 选择报价信息 + + 添加物料 + +
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskYwjlVerify.html b/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskYwjlVerify.html new file mode 100644 index 00000000..8430e056 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskYwjlVerify.html @@ -0,0 +1,307 @@ + + + + + + + + +
+
+ + + +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+

计算

+
+ + +
+
+ + + + +
+
+ + + + +
+
+
+
+
+
+ 选择报价信息 + + 添加物料 + +
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskYwzgVerify.html b/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskYwzgVerify.html new file mode 100644 index 00000000..49c9e81c --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskYwzgVerify.html @@ -0,0 +1,313 @@ + + + + + + + + +
+
+ + + +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+

计算

+
+ + +
+
+ + + + +
+
+ + + + +
+
+
+
+
+
+ 选择报价信息 + + 添加物料 + +
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskZozjVerify.html b/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskZozjVerify.html new file mode 100644 index 00000000..135b3847 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/salesOrder/taskZozjVerify.html @@ -0,0 +1,313 @@ + + + + + + + + +
+
+ + + +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+

计算

+
+ + +
+
+ + + + +
+
+ + + + +
+
+
+
+
+
+ 选择报价信息 + + 添加物料 + +
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + + + + + + + \ No newline at end of file