diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesEstimateController.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesEstimateController.java new file mode 100644 index 00000000..8cf29911 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesEstimateController.java @@ -0,0 +1,151 @@ +package com.ruoyi.sales.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.sales.domain.SalesEstimate; +import com.ruoyi.sales.service.ISalesEstimateService; +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 刘晓旭 + * @date 2024-04-15 + */ +@Controller +@RequestMapping("/sales/salesEstimate") +public class SalesEstimateController extends BaseController +{ + private String prefix = "sales/salesEstimate"; + + @Autowired + private ISalesEstimateService salesEstimateService; + + @RequiresPermissions("sales:salesEstimate:view") + @GetMapping() + public String salesEstimate() + { + return prefix + "/salesEstimate"; + } + + /** + * 查询销售估价列表 + */ + @RequiresPermissions("sales:salesEstimate:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SalesEstimate salesEstimate) + { + startPage(); + List list = salesEstimateService.selectSalesEstimateList(salesEstimate); + return getDataTable(list); + } + + /** + * 导出销售估价列表 + */ + @RequiresPermissions("sales:salesEstimate:export") + @Log(title = "销售估价", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SalesEstimate salesEstimate) + { + List list = salesEstimateService.selectSalesEstimateList(salesEstimate); + ExcelUtil util = new ExcelUtil(SalesEstimate.class); + return util.exportExcel(list, "销售估价数据"); + } + + /** + * 新增销售估价 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存销售估价 + */ + @RequiresPermissions("sales:salesEstimate:add") + @Log(title = "销售估价", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(SalesEstimate salesEstimate) + { + return toAjax(salesEstimateService.insertSalesEstimate(salesEstimate)); + } + + /** + * 修改销售估价 + */ + @GetMapping("/edit/{aftersalesEstimateId}") + public String edit(@PathVariable("aftersalesEstimateId") Long aftersalesEstimateId, ModelMap mmap) + { + SalesEstimate salesEstimate = salesEstimateService.selectSalesEstimateById(aftersalesEstimateId); + mmap.put("salesEstimate", salesEstimate); + return prefix + "/edit"; + } + + /** + * 修改保存销售估价 + */ + @RequiresPermissions("sales:salesEstimate:edit") + @Log(title = "销售估价", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(SalesEstimate salesEstimate) + { + return toAjax(salesEstimateService.updateSalesEstimate(salesEstimate)); + } + + /** + * 删除销售估价 + */ + @RequiresPermissions("sales:salesEstimate:remove") + @Log(title = "销售估价", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(salesEstimateService.deleteSalesEstimateByIds(ids)); + } + + /** + * 作废销售估价 + */ + @RequiresPermissions("sales:salesEstimate:cancel") + @Log(title = "销售估价", businessType = BusinessType.CANCEL) + @GetMapping( "/cancel/{id}") + @ResponseBody + public AjaxResult cancel(@PathVariable("id") Long id){ + return toAjax(salesEstimateService.cancelSalesEstimateById(id)); + } + + /** + * 恢复销售估价 + */ + @RequiresPermissions("sales:salesEstimate:restore") + @Log(title = "销售估价", businessType = BusinessType.RESTORE) + @GetMapping( "/restore/{id}") + @ResponseBody + public AjaxResult restore(@PathVariable("id")Long id) + { + return toAjax(salesEstimateService.restoreSalesEstimateById(id)); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/SalesEstimate.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/SalesEstimate.java new file mode 100644 index 00000000..7e18937a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/SalesEstimate.java @@ -0,0 +1,330 @@ +package com.ruoyi.sales.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +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; + +/** + * 销售估价对象 sales_estimate + * + * @author 刘晓旭 + * @date 2024-04-15 + */ +public class SalesEstimate extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 销售估价ID */ + private Long aftersalesEstimateId; + + /** 估价单号 */ + @Excel(name = "估价单号") + private String aftersalesEstimateCode; + + /** 用户ID */ + private Long userId; + + /** 估价状态 */ + @Excel(name = "估价状态") + private String estimateStatus; + + /** 客户代码 */ + @Excel(name = "客户代码") + private String enterpriseCode; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String enterpriseName; + + /** 料号 */ + @Excel(name = "料号") + private String materialNo; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String materialName; + + /** 物料合计 */ + @Excel(name = "物料合计") + private String materialSum; + + /** 数量合计 */ + @Excel(name = "数量合计") + private String quantitySum; + + /** 估价币种 */ + @Excel(name = "估价币种") + private String estimateCurrencies; + + /** 不含税总价(RMB) */ + @Excel(name = "不含税总价", readConverterExp = "R=MB") + private BigDecimal allPriceExcludingTaxRmb; + + /** 含税总价(RMB) */ + @Excel(name = "含税总价", readConverterExp = "R=MB") + private BigDecimal allPriceIncludesTax; + + /** 不含税总价(美元) */ + @Excel(name = "不含税总价", readConverterExp = "美=元") + private BigDecimal allPriceExcludingTaxDollar; + + /** 流程实例ID */ + private String instanceId; + + /** 流程实例类型 */ + private String instanceType; + + /** 流程提交实例ID */ + private String submitInstanceId; + + /** 申请标题 */ + private String applyTitle; + + /** 申请时间 */ + private Date applyTime; + + /** 申请人 */ + private String applyUser; + + /** 流程作废实例ID */ + private String cancelInstanceId; + + /** 流程恢复实例ID */ + private String restoreInstanceId; + + public void setAftersalesEstimateId(Long aftersalesEstimateId) + { + this.aftersalesEstimateId = aftersalesEstimateId; + } + + public Long getAftersalesEstimateId() + { + return aftersalesEstimateId; + } + public void setAftersalesEstimateCode(String aftersalesEstimateCode) + { + this.aftersalesEstimateCode = aftersalesEstimateCode; + } + + public String getAftersalesEstimateCode() + { + return aftersalesEstimateCode; + } + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getUserId() + { + return userId; + } + public void setEstimateStatus(String estimateStatus) + { + this.estimateStatus = estimateStatus; + } + + public String getEstimateStatus() + { + return estimateStatus; + } + public void setEnterpriseCode(String enterpriseCode) + { + this.enterpriseCode = enterpriseCode; + } + + public String getEnterpriseCode() + { + return enterpriseCode; + } + public void setEnterpriseName(String enterpriseName) + { + this.enterpriseName = enterpriseName; + } + + public String getEnterpriseName() + { + return enterpriseName; + } + public void setMaterialNo(String materialNo) + { + this.materialNo = materialNo; + } + + public String getMaterialNo() + { + return materialNo; + } + public void setMaterialName(String materialName) + { + this.materialName = materialName; + } + + public String getMaterialName() + { + return materialName; + } + public void setMaterialSum(String materialSum) + { + this.materialSum = materialSum; + } + + public String getMaterialSum() + { + return materialSum; + } + public void setQuantitySum(String quantitySum) + { + this.quantitySum = quantitySum; + } + + public String getQuantitySum() + { + return quantitySum; + } + public void setEstimateCurrencies(String estimateCurrencies) + { + this.estimateCurrencies = estimateCurrencies; + } + + public String getEstimateCurrencies() + { + return estimateCurrencies; + } + public void setAllPriceExcludingTaxRmb(BigDecimal allPriceExcludingTaxRmb) + { + this.allPriceExcludingTaxRmb = allPriceExcludingTaxRmb; + } + + public BigDecimal getAllPriceExcludingTaxRmb() + { + return allPriceExcludingTaxRmb; + } + public void setAllPriceIncludesTax(BigDecimal allPriceIncludesTax) + { + this.allPriceIncludesTax = allPriceIncludesTax; + } + + public BigDecimal getAllPriceIncludesTax() + { + return allPriceIncludesTax; + } + public void setAllPriceExcludingTaxDollar(BigDecimal allPriceExcludingTaxDollar) + { + this.allPriceExcludingTaxDollar = allPriceExcludingTaxDollar; + } + + public BigDecimal getAllPriceExcludingTaxDollar() + { + return allPriceExcludingTaxDollar; + } + public void setInstanceId(String instanceId) + { + this.instanceId = instanceId; + } + + public String getInstanceId() + { + return instanceId; + } + public void setInstanceType(String instanceType) + { + this.instanceType = instanceType; + } + + public String getInstanceType() + { + return instanceType; + } + public void setSubmitInstanceId(String submitInstanceId) + { + this.submitInstanceId = submitInstanceId; + } + + public String getSubmitInstanceId() + { + return submitInstanceId; + } + public void setApplyTitle(String applyTitle) + { + this.applyTitle = applyTitle; + } + + public String getApplyTitle() + { + return applyTitle; + } + public void setApplyTime(Date applyTime) + { + this.applyTime = applyTime; + } + + public Date getApplyTime() + { + return applyTime; + } + public void setApplyUser(String applyUser) + { + this.applyUser = applyUser; + } + + public String getApplyUser() + { + return applyUser; + } + public void setCancelInstanceId(String cancelInstanceId) + { + this.cancelInstanceId = cancelInstanceId; + } + + public String getCancelInstanceId() + { + return cancelInstanceId; + } + public void setRestoreInstanceId(String restoreInstanceId) + { + this.restoreInstanceId = restoreInstanceId; + } + + public String getRestoreInstanceId() + { + return restoreInstanceId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("aftersalesEstimateId", getAftersalesEstimateId()) + .append("aftersalesEstimateCode", getAftersalesEstimateCode()) + .append("userId", getUserId()) + .append("estimateStatus", getEstimateStatus()) + .append("enterpriseCode", getEnterpriseCode()) + .append("enterpriseName", getEnterpriseName()) + .append("materialNo", getMaterialNo()) + .append("materialName", getMaterialName()) + .append("materialSum", getMaterialSum()) + .append("quantitySum", getQuantitySum()) + .append("estimateCurrencies", getEstimateCurrencies()) + .append("allPriceExcludingTaxRmb", getAllPriceExcludingTaxRmb()) + .append("allPriceIncludesTax", getAllPriceIncludesTax()) + .append("allPriceExcludingTaxDollar", getAllPriceExcludingTaxDollar()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("instanceId", getInstanceId()) + .append("instanceType", getInstanceType()) + .append("submitInstanceId", getSubmitInstanceId()) + .append("applyTitle", getApplyTitle()) + .append("applyTime", getApplyTime()) + .append("applyUser", getApplyUser()) + .append("cancelInstanceId", getCancelInstanceId()) + .append("restoreInstanceId", getRestoreInstanceId()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/SalesEstimateMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/SalesEstimateMapper.java new file mode 100644 index 00000000..94a5e044 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/SalesEstimateMapper.java @@ -0,0 +1,77 @@ +package com.ruoyi.sales.mapper; + +import java.util.List; +import com.ruoyi.sales.domain.SalesEstimate; + +/** + * 销售估价Mapper接口 + * + * @author 刘晓旭 + * @date 2024-04-15 + */ +public interface SalesEstimateMapper +{ + /** + * 查询销售估价 + * + * @param aftersalesEstimateId 销售估价ID + * @return 销售估价 + */ + public SalesEstimate selectSalesEstimateById(Long aftersalesEstimateId); + + /** + * 查询销售估价列表 + * + * @param salesEstimate 销售估价 + * @return 销售估价集合 + */ + public List selectSalesEstimateList(SalesEstimate salesEstimate); + + /** + * 新增销售估价 + * + * @param salesEstimate 销售估价 + * @return 结果 + */ + public int insertSalesEstimate(SalesEstimate salesEstimate); + + /** + * 修改销售估价 + * + * @param salesEstimate 销售估价 + * @return 结果 + */ + public int updateSalesEstimate(SalesEstimate salesEstimate); + + /** + * 删除销售估价 + * + * @param aftersalesEstimateId 销售估价ID + * @return 结果 + */ + public int deleteSalesEstimateById(Long aftersalesEstimateId); + + /** + * 批量删除销售估价 + * + * @param aftersalesEstimateIds 需要删除的数据ID + * @return 结果 + */ + public int deleteSalesEstimateByIds(String[] aftersalesEstimateIds); + + /** + * 作废销售估价 + * + * @param aftersalesEstimateId 销售估价ID + * @return 结果 + */ + public int cancelSalesEstimateById(Long aftersalesEstimateId); + + /** + * 恢复销售估价 + * + * @param aftersalesEstimateId 销售估价ID + * @return 结果 + */ + public int restoreSalesEstimateById(Long aftersalesEstimateId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/ISalesEstimateService.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/service/ISalesEstimateService.java new file mode 100644 index 00000000..fe70cbc7 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/sales/service/ISalesEstimateService.java @@ -0,0 +1,75 @@ +package com.ruoyi.sales.service; + +import java.util.List; +import com.ruoyi.sales.domain.SalesEstimate; + +/** + * 销售估价Service接口 + * + * @author 刘晓旭 + * @date 2024-04-15 + */ +public interface ISalesEstimateService +{ + /** + * 查询销售估价 + * + * @param aftersalesEstimateId 销售估价ID + * @return 销售估价 + */ + public SalesEstimate selectSalesEstimateById(Long aftersalesEstimateId); + + /** + * 查询销售估价列表 + * + * @param salesEstimate 销售估价 + * @return 销售估价集合 + */ + public List selectSalesEstimateList(SalesEstimate salesEstimate); + + /** + * 新增销售估价 + * + * @param salesEstimate 销售估价 + * @return 结果 + */ + public int insertSalesEstimate(SalesEstimate salesEstimate); + + /** + * 修改销售估价 + * + * @param salesEstimate 销售估价 + * @return 结果 + */ + public int updateSalesEstimate(SalesEstimate salesEstimate); + + /** + * 批量删除销售估价 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteSalesEstimateByIds(String ids); + + /** + * 删除销售估价信息 + * + * @param aftersalesEstimateId 销售估价ID + * @return 结果 + */ + public int deleteSalesEstimateById(Long aftersalesEstimateId); + + /** + * 作废销售估价 + * @param aftersalesEstimateId 销售估价ID + * @return + */ + int cancelSalesEstimateById(Long aftersalesEstimateId); + + /** + * 恢复销售估价 + * @param aftersalesEstimateId 销售估价ID + * @return + */ + int restoreSalesEstimateById(Long aftersalesEstimateId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/SalesEstimateServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/SalesEstimateServiceImpl.java new file mode 100644 index 00000000..b9daa339 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/SalesEstimateServiceImpl.java @@ -0,0 +1,126 @@ +package com.ruoyi.sales.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.sales.mapper.SalesEstimateMapper; +import com.ruoyi.sales.domain.SalesEstimate; +import com.ruoyi.sales.service.ISalesEstimateService; +import com.ruoyi.common.core.text.Convert; + +/** + * 销售估价Service业务层处理 + * + * @author 刘晓旭 + * @date 2024-04-15 + */ +@Service +public class SalesEstimateServiceImpl implements ISalesEstimateService +{ + @Autowired + private SalesEstimateMapper salesEstimateMapper; + + /** + * 查询销售估价 + * + * @param aftersalesEstimateId 销售估价ID + * @return 销售估价 + */ + @Override + public SalesEstimate selectSalesEstimateById(Long aftersalesEstimateId) + { + return salesEstimateMapper.selectSalesEstimateById(aftersalesEstimateId); + } + + /** + * 查询销售估价列表 + * + * @param salesEstimate 销售估价 + * @return 销售估价 + */ + @Override + public List selectSalesEstimateList(SalesEstimate salesEstimate) + { + return salesEstimateMapper.selectSalesEstimateList(salesEstimate); + } + + /** + * 新增销售估价 + * + * @param salesEstimate 销售估价 + * @return 结果 + */ + @Override + public int insertSalesEstimate(SalesEstimate salesEstimate) + { + String loginName = ShiroUtils.getLoginName(); + salesEstimate.setCreateBy(loginName); + salesEstimate.setCreateTime(DateUtils.getNowDate()); + return salesEstimateMapper.insertSalesEstimate(salesEstimate); + } + + /** + * 修改销售估价 + * + * @param salesEstimate 销售估价 + * @return 结果 + */ + @Override + public int updateSalesEstimate(SalesEstimate salesEstimate) + { + String loginName = ShiroUtils.getLoginName(); + salesEstimate.setUpdateBy(loginName); + salesEstimate.setUpdateTime(DateUtils.getNowDate()); + return salesEstimateMapper.updateSalesEstimate(salesEstimate); + } + + /** + * 删除销售估价对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteSalesEstimateByIds(String ids) + { + return salesEstimateMapper.deleteSalesEstimateByIds(Convert.toStrArray(ids)); + } + + /** + * 删除销售估价信息 + * + * @param aftersalesEstimateId 销售估价ID + * @return 结果 + */ + @Override + public int deleteSalesEstimateById(Long aftersalesEstimateId) + { + return salesEstimateMapper.deleteSalesEstimateById(aftersalesEstimateId); + } + + /** + * 作废销售估价 + * + * @param aftersalesEstimateId 销售估价ID + * @return 结果 + */ + @Override + public int cancelSalesEstimateById(Long aftersalesEstimateId) + { + return salesEstimateMapper.cancelSalesEstimateById(aftersalesEstimateId); + } + + /** + * 恢复销售估价信息 + * + * @param aftersalesEstimateId 销售估价ID + * @return 结果 + */ + @Override + public int restoreSalesEstimateById(Long aftersalesEstimateId) + { + return salesEstimateMapper.restoreSalesEstimateById(aftersalesEstimateId); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/sales/SalesEstimateMapper.xml b/ruoyi-admin/src/main/resources/mapper/sales/SalesEstimateMapper.xml new file mode 100644 index 00000000..e9d2266d --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/sales/SalesEstimateMapper.xml @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select aftersales_estimate_id, aftersales_estimate_code, user_id, estimate_status, enterprise_code, enterprise_name, material_no, material_name, material_sum, quantity_sum, estimate_currencies, all_price_excluding_tax_rmb, all_price_includes_tax, all_price_excluding_tax_dollar, create_by, create_time, update_by, update_time, instance_id, instance_type, submit_instance_id, apply_title, apply_time, apply_user, cancel_instance_id, restore_instance_id, remark from sales_estimate + + + + + + + + insert into sales_estimate + + aftersales_estimate_code, + user_id, + estimate_status, + enterprise_code, + enterprise_name, + material_no, + material_name, + material_sum, + quantity_sum, + estimate_currencies, + all_price_excluding_tax_rmb, + all_price_includes_tax, + all_price_excluding_tax_dollar, + create_by, + create_time, + update_by, + update_time, + instance_id, + instance_type, + submit_instance_id, + apply_title, + apply_time, + apply_user, + cancel_instance_id, + restore_instance_id, + remark, + + + #{aftersalesEstimateCode}, + #{userId}, + #{estimateStatus}, + #{enterpriseCode}, + #{enterpriseName}, + #{materialNo}, + #{materialName}, + #{materialSum}, + #{quantitySum}, + #{estimateCurrencies}, + #{allPriceExcludingTaxRmb}, + #{allPriceIncludesTax}, + #{allPriceExcludingTaxDollar}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{instanceId}, + #{instanceType}, + #{submitInstanceId}, + #{applyTitle}, + #{applyTime}, + #{applyUser}, + #{cancelInstanceId}, + #{restoreInstanceId}, + #{remark}, + + + + + update sales_estimate + + aftersales_estimate_code = #{aftersalesEstimateCode}, + user_id = #{userId}, + estimate_status = #{estimateStatus}, + enterprise_code = #{enterpriseCode}, + enterprise_name = #{enterpriseName}, + material_no = #{materialNo}, + material_name = #{materialName}, + material_sum = #{materialSum}, + quantity_sum = #{quantitySum}, + estimate_currencies = #{estimateCurrencies}, + all_price_excluding_tax_rmb = #{allPriceExcludingTaxRmb}, + all_price_includes_tax = #{allPriceIncludesTax}, + all_price_excluding_tax_dollar = #{allPriceExcludingTaxDollar}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + instance_id = #{instanceId}, + instance_type = #{instanceType}, + submit_instance_id = #{submitInstanceId}, + apply_title = #{applyTitle}, + apply_time = #{applyTime}, + apply_user = #{applyUser}, + cancel_instance_id = #{cancelInstanceId}, + restore_instance_id = #{restoreInstanceId}, + remark = #{remark}, + + where aftersales_estimate_id = #{aftersalesEstimateId} + + + + delete from sales_estimate where aftersales_estimate_id = #{aftersalesEstimateId} + + + + delete from sales_estimate where aftersales_estimate_id in + + #{aftersalesEstimateId} + + + + + update sales_estimate set del_flag = '1' where aftersales_estimate_id = #{aftersalesEstimateId} + + + + update sales_estimate set del_flag = '0' where aftersales_estimate_id = #{aftersalesEstimateId} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/add.html b/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/add.html new file mode 100644 index 00000000..a87bc79d --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/add.html @@ -0,0 +1,173 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/edit.html b/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/edit.html new file mode 100644 index 00000000..6fe6a673 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/edit.html @@ -0,0 +1,174 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/salesEstimate.html b/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/salesEstimate.html new file mode 100644 index 00000000..26d5cdab --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/sales/salesEstimate/salesEstimate.html @@ -0,0 +1,180 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file