Browse Source
删除旧销售报价子表的数据表 删除旧销售报价子表菜单列表 删除旧销售报价子表实体类 删除旧销售报价子表Controller 删除旧销售报价子表Mapper 删除旧销售报价子表Mapper.XML 删除旧销售报价子表Service接口 删除旧销售报价子表ServiceImpl实现类dev
liuxiaoxu
4 months ago
9 changed files with 0 additions and 1829 deletions
@ -1,151 +0,0 @@ |
|||
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.SalesEstimateChild; |
|||
import com.ruoyi.sales.service.ISalesEstimateChildService; |
|||
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-05-27 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/sales/EstimateChild") |
|||
public class SalesEstimateChildController extends BaseController |
|||
{ |
|||
private String prefix = "sales/EstimateChild"; |
|||
|
|||
@Autowired |
|||
private ISalesEstimateChildService sysSalesEstimateChildService; |
|||
|
|||
@RequiresPermissions("sales:EstimateChild:view") |
|||
@GetMapping() |
|||
public String EstimateChild() |
|||
{ |
|||
return prefix + "/EstimateChild"; |
|||
} |
|||
|
|||
/** |
|||
* 查询销售物料估价列表 |
|||
*/ |
|||
@RequiresPermissions("sales:EstimateChild:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(SalesEstimateChild salesEstimateChild) |
|||
{ |
|||
startPage(); |
|||
List<SalesEstimateChild> list = sysSalesEstimateChildService.selectSysSalesEstimateChildList(salesEstimateChild); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出销售物料估价列表 |
|||
*/ |
|||
@RequiresPermissions("sales:EstimateChild:export") |
|||
@Log(title = "销售物料估价", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ResponseBody |
|||
public AjaxResult export(SalesEstimateChild salesEstimateChild) |
|||
{ |
|||
List<SalesEstimateChild> list = sysSalesEstimateChildService.selectSysSalesEstimateChildList(salesEstimateChild); |
|||
ExcelUtil<SalesEstimateChild> util = new ExcelUtil<SalesEstimateChild>(SalesEstimateChild.class); |
|||
return util.exportExcel(list, "销售物料估价数据"); |
|||
} |
|||
|
|||
/** |
|||
* 新增销售物料估价 |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() |
|||
{ |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存销售物料估价 |
|||
*/ |
|||
@RequiresPermissions("sales:EstimateChild:add") |
|||
@Log(title = "销售物料估价", businessType = BusinessType.INSERT) |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public AjaxResult addSave(SalesEstimateChild salesEstimateChild) |
|||
{ |
|||
return toAjax(sysSalesEstimateChildService.insertSysSalesEstimateChild(salesEstimateChild)); |
|||
} |
|||
|
|||
/** |
|||
* 修改销售物料估价 |
|||
*/ |
|||
@GetMapping("/edit/{id}") |
|||
public String edit(@PathVariable("id") Long id, ModelMap mmap) |
|||
{ |
|||
SalesEstimateChild salesEstimateChild = sysSalesEstimateChildService.selectSysSalesEstimateChildById(id); |
|||
mmap.put("salesEstimateChild", salesEstimateChild); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
/** |
|||
* 修改保存销售物料估价 |
|||
*/ |
|||
@RequiresPermissions("sales:EstimateChild:edit") |
|||
@Log(title = "销售物料估价", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public AjaxResult editSave(SalesEstimateChild salesEstimateChild) |
|||
{ |
|||
return toAjax(sysSalesEstimateChildService.updateSysSalesEstimateChild(salesEstimateChild)); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售物料估价 |
|||
*/ |
|||
@RequiresPermissions("sales:EstimateChild:remove") |
|||
@Log(title = "销售物料估价", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(sysSalesEstimateChildService.deleteSysSalesEstimateChildByIds(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 作废销售物料估价 |
|||
*/ |
|||
@RequiresPermissions("sales:EstimateChild:cancel") |
|||
@Log(title = "销售物料估价", businessType = BusinessType.CANCEL) |
|||
@GetMapping( "/cancel/{id}") |
|||
@ResponseBody |
|||
public AjaxResult cancel(@PathVariable("id") Long id){ |
|||
return toAjax(sysSalesEstimateChildService.cancelSysSalesEstimateChildById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 恢复销售物料估价 |
|||
*/ |
|||
@RequiresPermissions("sales:EstimateChild:restore") |
|||
@Log(title = "销售物料估价", businessType = BusinessType.RESTORE) |
|||
@GetMapping( "/restore/{id}") |
|||
@ResponseBody |
|||
public AjaxResult restore(@PathVariable("id")Long id) |
|||
{ |
|||
return toAjax(sysSalesEstimateChildService.restoreSysSalesEstimateChildById(id)); |
|||
} |
|||
|
|||
|
|||
} |
@ -1,450 +0,0 @@ |
|||
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_child |
|||
* |
|||
* @author zhang |
|||
* @date 2024-05-27 |
|||
*/ |
|||
public class SalesEstimateChild extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 销售估价子表id */ |
|||
private Long id; |
|||
|
|||
/** 关联销售估价编号 */ |
|||
@Excel(name = "关联销售估价编号") |
|||
private String quoteId; |
|||
|
|||
/** 物料表中的id */ |
|||
@Excel(name = "物料表中的id") |
|||
private Long materialId; |
|||
|
|||
/** 物料表中的编号 */ |
|||
@Excel(name = "物料表中的编号") |
|||
private String materialCode; |
|||
|
|||
/** 物料的名称 */ |
|||
@Excel(name = "物料的名称") |
|||
private String materialName; |
|||
|
|||
/** 物料相关的BOM编号 */ |
|||
@Excel(name = "物料相关的BOM编号") |
|||
private String materialBom; |
|||
|
|||
/** 物料的类型 */ |
|||
@Excel(name = "物料的类型") |
|||
private String materialType; |
|||
|
|||
/** 物料的加工方式 */ |
|||
@Excel(name = "物料的加工方式") |
|||
private String processMethod; |
|||
|
|||
/** 物料的品牌 */ |
|||
@Excel(name = "物料的品牌") |
|||
private String brand; |
|||
|
|||
/** 物料的图片 */ |
|||
@Excel(name = "物料的图片") |
|||
private String photoUrl; |
|||
|
|||
/** 单位 */ |
|||
@Excel(name = "单位") |
|||
private String unit; |
|||
|
|||
/** 物料的描述 */ |
|||
@Excel(name = "物料的描述") |
|||
private String describe; |
|||
|
|||
/** 国内税率 */ |
|||
@Excel(name = "国内税率") |
|||
private BigDecimal countTax; |
|||
|
|||
/** 美元汇率 */ |
|||
@Excel(name = "美元汇率") |
|||
private BigDecimal usdTax; |
|||
|
|||
/** 物料的数量 */ |
|||
@Excel(name = "物料的数量") |
|||
private Long materialNum; |
|||
|
|||
/** 物料的对外报价 */ |
|||
@Excel(name = "物料的对外报价") |
|||
private BigDecimal materialSole; |
|||
|
|||
/** 物料的不含税单价(RMB) */ |
|||
@Excel(name = "物料的不含税单价(RMB)") |
|||
private BigDecimal materialRmb; |
|||
|
|||
/** 物料的含税单价(RMB) */ |
|||
@Excel(name = "物料的含税单价(RMB)") |
|||
private BigDecimal materialNoRmb; |
|||
|
|||
/** 物料的不含税总价(RMB) */ |
|||
@Excel(name = "物料的不含税总价(RMB)") |
|||
private Long materialRmbSum; |
|||
|
|||
/** 物料的含税总价(RMB) */ |
|||
@Excel(name = "物料的含税总价(RMB)") |
|||
private BigDecimal materialNoRmbSum; |
|||
|
|||
/** 物料的不含税单价(美元) */ |
|||
@Excel(name = "物料的不含税单价(美元)") |
|||
private BigDecimal materialNoUsd; |
|||
|
|||
/** 物料的含税单价(美元) */ |
|||
@Excel(name = "物料的含税单价(美元)") |
|||
private BigDecimal materialUsd; |
|||
|
|||
/** 物料的不含税总价(美元) */ |
|||
@Excel(name = "物料的不含税总价(美元)") |
|||
private BigDecimal materialNoUsdSum; |
|||
|
|||
/** 物料的含税总价(美元) */ |
|||
@Excel(name = "物料的含税总价(美元)") |
|||
private BigDecimal materialUsdSum; |
|||
|
|||
/** 计划交付时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "计划交付时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date deliveryTime; |
|||
|
|||
/** 质保天数 */ |
|||
@Excel(name = "质保天数") |
|||
private String expiryDay; |
|||
|
|||
/** 删除状态 */ |
|||
@Excel(name = "删除状态") |
|||
private String useStatus; |
|||
|
|||
/** 审核状态 */ |
|||
@Excel(name = "审核状态") |
|||
private String auditStatus; |
|||
|
|||
/** 已出库数量 */ |
|||
private String outBoundQuantity; |
|||
|
|||
/** 未出库数量 */ |
|||
private String unBoundQuantity; |
|||
|
|||
public void setId(Long id) |
|||
{ |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getId() |
|||
{ |
|||
return id; |
|||
} |
|||
public void setQuoteId(String quoteId) |
|||
{ |
|||
this.quoteId = quoteId; |
|||
} |
|||
|
|||
public String getQuoteId() |
|||
{ |
|||
return quoteId; |
|||
} |
|||
public void setMaterialId(Long materialId) |
|||
{ |
|||
this.materialId = materialId; |
|||
} |
|||
|
|||
public Long getMaterialId() |
|||
{ |
|||
return materialId; |
|||
} |
|||
public void setMaterialCode(String materialCode) |
|||
{ |
|||
this.materialCode = materialCode; |
|||
} |
|||
|
|||
public String getMaterialCode() |
|||
{ |
|||
return materialCode; |
|||
} |
|||
public void setMaterialName(String materialName) |
|||
{ |
|||
this.materialName = materialName; |
|||
} |
|||
|
|||
public String getMaterialName() |
|||
{ |
|||
return materialName; |
|||
} |
|||
public void setMaterialBom(String materialBom) |
|||
{ |
|||
this.materialBom = materialBom; |
|||
} |
|||
|
|||
public String getMaterialBom() |
|||
{ |
|||
return materialBom; |
|||
} |
|||
public void setMaterialType(String materialType) |
|||
{ |
|||
this.materialType = materialType; |
|||
} |
|||
|
|||
public String getMaterialType() |
|||
{ |
|||
return materialType; |
|||
} |
|||
public void setProcessMethod(String processMethod) |
|||
{ |
|||
this.processMethod = processMethod; |
|||
} |
|||
|
|||
public String getProcessMethod() |
|||
{ |
|||
return processMethod; |
|||
} |
|||
public void setBrand(String brand) |
|||
{ |
|||
this.brand = brand; |
|||
} |
|||
|
|||
public String getBrand() |
|||
{ |
|||
return brand; |
|||
} |
|||
public void setPhotoUrl(String photoUrl) |
|||
{ |
|||
this.photoUrl = photoUrl; |
|||
} |
|||
|
|||
public String getPhotoUrl() |
|||
{ |
|||
return photoUrl; |
|||
} |
|||
public void setUnit(String unit) |
|||
{ |
|||
this.unit = unit; |
|||
} |
|||
|
|||
public String getUnit() |
|||
{ |
|||
return unit; |
|||
} |
|||
public void setDescribe(String describe) |
|||
{ |
|||
this.describe = describe; |
|||
} |
|||
|
|||
public String getDescribe() |
|||
{ |
|||
return describe; |
|||
} |
|||
public void setCountTax(BigDecimal countTax) |
|||
{ |
|||
this.countTax = countTax; |
|||
} |
|||
|
|||
public BigDecimal getCountTax() |
|||
{ |
|||
return countTax; |
|||
} |
|||
public void setUsdTax(BigDecimal usdTax) |
|||
{ |
|||
this.usdTax = usdTax; |
|||
} |
|||
|
|||
public BigDecimal getUsdTax() |
|||
{ |
|||
return usdTax; |
|||
} |
|||
public void setMaterialNum(Long materialNum) |
|||
{ |
|||
this.materialNum = materialNum; |
|||
} |
|||
|
|||
public Long getMaterialNum() |
|||
{ |
|||
return materialNum; |
|||
} |
|||
public void setMaterialSole(BigDecimal materialSole) |
|||
{ |
|||
this.materialSole = materialSole; |
|||
} |
|||
|
|||
public BigDecimal getMaterialSole() |
|||
{ |
|||
return materialSole; |
|||
} |
|||
public void setMaterialRmb(BigDecimal materialRmb) |
|||
{ |
|||
this.materialRmb = materialRmb; |
|||
} |
|||
|
|||
public BigDecimal getMaterialRmb() |
|||
{ |
|||
return materialRmb; |
|||
} |
|||
public void setMaterialNoRmb(BigDecimal materialNoRmb) |
|||
{ |
|||
this.materialNoRmb = materialNoRmb; |
|||
} |
|||
|
|||
public BigDecimal getMaterialNoRmb() |
|||
{ |
|||
return materialNoRmb; |
|||
} |
|||
public void setMaterialRmbSum(Long materialRmbSum) |
|||
{ |
|||
this.materialRmbSum = materialRmbSum; |
|||
} |
|||
|
|||
public Long getMaterialRmbSum() |
|||
{ |
|||
return materialRmbSum; |
|||
} |
|||
public void setMaterialNoRmbSum(BigDecimal materialNoRmbSum) |
|||
{ |
|||
this.materialNoRmbSum = materialNoRmbSum; |
|||
} |
|||
|
|||
public BigDecimal getMaterialNoRmbSum() |
|||
{ |
|||
return materialNoRmbSum; |
|||
} |
|||
public void setMaterialNoUsd(BigDecimal materialNoUsd) |
|||
{ |
|||
this.materialNoUsd = materialNoUsd; |
|||
} |
|||
|
|||
public BigDecimal getMaterialNoUsd() |
|||
{ |
|||
return materialNoUsd; |
|||
} |
|||
public void setMaterialUsd(BigDecimal materialUsd) |
|||
{ |
|||
this.materialUsd = materialUsd; |
|||
} |
|||
|
|||
public BigDecimal getMaterialUsd() |
|||
{ |
|||
return materialUsd; |
|||
} |
|||
public void setMaterialNoUsdSum(BigDecimal materialNoUsdSum) |
|||
{ |
|||
this.materialNoUsdSum = materialNoUsdSum; |
|||
} |
|||
|
|||
public BigDecimal getMaterialNoUsdSum() |
|||
{ |
|||
return materialNoUsdSum; |
|||
} |
|||
public void setMaterialUsdSum(BigDecimal materialUsdSum) |
|||
{ |
|||
this.materialUsdSum = materialUsdSum; |
|||
} |
|||
|
|||
public BigDecimal getMaterialUsdSum() |
|||
{ |
|||
return materialUsdSum; |
|||
} |
|||
public void setDeliveryTime(Date deliveryTime) |
|||
{ |
|||
this.deliveryTime = deliveryTime; |
|||
} |
|||
|
|||
public Date getDeliveryTime() |
|||
{ |
|||
return deliveryTime; |
|||
} |
|||
public void setExpiryDay(String expiryDay) |
|||
{ |
|||
this.expiryDay = expiryDay; |
|||
} |
|||
|
|||
public String getExpiryDay() |
|||
{ |
|||
return expiryDay; |
|||
} |
|||
public void setUseStatus(String useStatus) |
|||
{ |
|||
this.useStatus = useStatus; |
|||
} |
|||
|
|||
public String getUseStatus() |
|||
{ |
|||
return useStatus; |
|||
} |
|||
public void setAuditStatus(String auditStatus) |
|||
{ |
|||
this.auditStatus = auditStatus; |
|||
} |
|||
|
|||
public String getAuditStatus() |
|||
{ |
|||
return auditStatus; |
|||
} |
|||
public void setOutBoundQuantity(String outBoundQuantity) |
|||
{ |
|||
this.outBoundQuantity = outBoundQuantity; |
|||
} |
|||
|
|||
public String getOutBoundQuantity() |
|||
{ |
|||
return outBoundQuantity; |
|||
} |
|||
public void setUnBoundQuantity(String unBoundQuantity) |
|||
{ |
|||
this.unBoundQuantity = unBoundQuantity; |
|||
} |
|||
|
|||
public String getUnBoundQuantity() |
|||
{ |
|||
return unBoundQuantity; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("id", getId()) |
|||
.append("quoteId", getQuoteId()) |
|||
.append("materialId", getMaterialId()) |
|||
.append("materialCode", getMaterialCode()) |
|||
.append("materialName", getMaterialName()) |
|||
.append("materialBom", getMaterialBom()) |
|||
.append("materialType", getMaterialType()) |
|||
.append("processMethod", getProcessMethod()) |
|||
.append("brand", getBrand()) |
|||
.append("photoUrl", getPhotoUrl()) |
|||
.append("unit", getUnit()) |
|||
.append("describe", getDescribe()) |
|||
.append("countTax", getCountTax()) |
|||
.append("usdTax", getUsdTax()) |
|||
.append("materialNum", getMaterialNum()) |
|||
.append("materialSole", getMaterialSole()) |
|||
.append("materialRmb", getMaterialRmb()) |
|||
.append("materialNoRmb", getMaterialNoRmb()) |
|||
.append("materialRmbSum", getMaterialRmbSum()) |
|||
.append("materialNoRmbSum", getMaterialNoRmbSum()) |
|||
.append("materialNoUsd", getMaterialNoUsd()) |
|||
.append("materialUsd", getMaterialUsd()) |
|||
.append("materialNoUsdSum", getMaterialNoUsdSum()) |
|||
.append("materialUsdSum", getMaterialUsdSum()) |
|||
.append("deliveryTime", getDeliveryTime()) |
|||
.append("expiryDay", getExpiryDay()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.append("remark", getRemark()) |
|||
.append("useStatus", getUseStatus()) |
|||
.append("auditStatus", getAuditStatus()) |
|||
.append("outBoundQuantity", getOutBoundQuantity()) |
|||
.append("unBoundQuantity", getUnBoundQuantity()) |
|||
.toString(); |
|||
} |
|||
} |
@ -1,77 +0,0 @@ |
|||
package com.ruoyi.sales.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.sales.domain.SalesEstimateChild; |
|||
|
|||
/** |
|||
* 销售物料估价Mapper接口 |
|||
* |
|||
* @author zhang |
|||
* @date 2024-05-27 |
|||
*/ |
|||
public interface SalesEstimateChildMapper |
|||
{ |
|||
/** |
|||
* 查询销售物料估价 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 销售物料估价 |
|||
*/ |
|||
public SalesEstimateChild selectSysSalesEstimateChildById(Long id); |
|||
|
|||
/** |
|||
* 查询销售物料估价列表 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 销售物料估价集合 |
|||
*/ |
|||
public List<SalesEstimateChild> selectSysSalesEstimateChildList(SalesEstimateChild salesEstimateChild); |
|||
|
|||
/** |
|||
* 新增销售物料估价 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSysSalesEstimateChild(SalesEstimateChild salesEstimateChild); |
|||
|
|||
/** |
|||
* 修改销售物料估价 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSysSalesEstimateChild(SalesEstimateChild salesEstimateChild); |
|||
|
|||
/** |
|||
* 删除销售物料估价 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysSalesEstimateChildById(Long id); |
|||
|
|||
/** |
|||
* 批量删除销售物料估价 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysSalesEstimateChildByIds(String[] ids); |
|||
|
|||
/** |
|||
* 作废销售物料估价 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 结果 |
|||
*/ |
|||
public int cancelSysSalesEstimateChildById(Long id); |
|||
|
|||
/** |
|||
* 恢复销售物料估价 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 结果 |
|||
*/ |
|||
public int restoreSysSalesEstimateChildById(Long id); |
|||
} |
@ -1,75 +0,0 @@ |
|||
package com.ruoyi.sales.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.sales.domain.SalesEstimateChild; |
|||
|
|||
/** |
|||
* 销售物料估价Service接口 |
|||
* |
|||
* @author zhang |
|||
* @date 2024-05-27 |
|||
*/ |
|||
public interface ISalesEstimateChildService |
|||
{ |
|||
/** |
|||
* 查询销售物料估价 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 销售物料估价 |
|||
*/ |
|||
public SalesEstimateChild selectSysSalesEstimateChildById(Long id); |
|||
|
|||
/** |
|||
* 查询销售物料估价列表 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 销售物料估价集合 |
|||
*/ |
|||
public List<SalesEstimateChild> selectSysSalesEstimateChildList(SalesEstimateChild salesEstimateChild); |
|||
|
|||
/** |
|||
* 新增销售物料估价 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSysSalesEstimateChild(SalesEstimateChild salesEstimateChild); |
|||
|
|||
/** |
|||
* 修改销售物料估价 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSysSalesEstimateChild(SalesEstimateChild salesEstimateChild); |
|||
|
|||
/** |
|||
* 批量删除销售物料估价 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysSalesEstimateChildByIds(String ids); |
|||
|
|||
/** |
|||
* 删除销售物料估价信息 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysSalesEstimateChildById(Long id); |
|||
|
|||
/** |
|||
* 作废销售物料估价 |
|||
* @param id 销售物料估价ID |
|||
* @return |
|||
*/ |
|||
int cancelSysSalesEstimateChildById(Long id); |
|||
|
|||
/** |
|||
* 恢复销售物料估价 |
|||
* @param id 销售物料估价ID |
|||
* @return |
|||
*/ |
|||
int restoreSysSalesEstimateChildById(Long id); |
|||
} |
@ -1,126 +0,0 @@ |
|||
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.SalesEstimateChildMapper; |
|||
import com.ruoyi.sales.domain.SalesEstimateChild; |
|||
import com.ruoyi.sales.service.ISalesEstimateChildService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 销售物料估价Service业务层处理 |
|||
* |
|||
* @author zhang |
|||
* @date 2024-05-27 |
|||
*/ |
|||
@Service |
|||
public class SalesEstimateChildServiceImpl implements ISalesEstimateChildService |
|||
{ |
|||
@Autowired |
|||
private SalesEstimateChildMapper sysSalesEstimateChildMapper; |
|||
|
|||
/** |
|||
* 查询销售物料估价 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 销售物料估价 |
|||
*/ |
|||
@Override |
|||
public SalesEstimateChild selectSysSalesEstimateChildById(Long id) |
|||
{ |
|||
return sysSalesEstimateChildMapper.selectSysSalesEstimateChildById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询销售物料估价列表 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 销售物料估价 |
|||
*/ |
|||
@Override |
|||
public List<SalesEstimateChild> selectSysSalesEstimateChildList(SalesEstimateChild salesEstimateChild) |
|||
{ |
|||
return sysSalesEstimateChildMapper.selectSysSalesEstimateChildList(salesEstimateChild); |
|||
} |
|||
|
|||
/** |
|||
* 新增销售物料估价 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertSysSalesEstimateChild(SalesEstimateChild salesEstimateChild) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
salesEstimateChild.setCreateBy(loginName); |
|||
salesEstimateChild.setCreateTime(DateUtils.getNowDate()); |
|||
return sysSalesEstimateChildMapper.insertSysSalesEstimateChild(salesEstimateChild); |
|||
} |
|||
|
|||
/** |
|||
* 修改销售物料估价 |
|||
* |
|||
* @param salesEstimateChild 销售物料估价 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateSysSalesEstimateChild(SalesEstimateChild salesEstimateChild) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
salesEstimateChild.setUpdateBy(loginName); |
|||
salesEstimateChild.setUpdateTime(DateUtils.getNowDate()); |
|||
return sysSalesEstimateChildMapper.updateSysSalesEstimateChild(salesEstimateChild); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售物料估价对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSysSalesEstimateChildByIds(String ids) |
|||
{ |
|||
return sysSalesEstimateChildMapper.deleteSysSalesEstimateChildByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售物料估价信息 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSysSalesEstimateChildById(Long id) |
|||
{ |
|||
return sysSalesEstimateChildMapper.deleteSysSalesEstimateChildById(id); |
|||
} |
|||
|
|||
/** |
|||
* 作废销售物料估价 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int cancelSysSalesEstimateChildById(Long id) |
|||
{ |
|||
return sysSalesEstimateChildMapper.cancelSysSalesEstimateChildById(id); |
|||
} |
|||
|
|||
/** |
|||
* 恢复销售物料估价信息 |
|||
* |
|||
* @param id 销售物料估价ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int restoreSysSalesEstimateChildById(Long id) |
|||
{ |
|||
return sysSalesEstimateChildMapper.restoreSysSalesEstimateChildById(id); |
|||
} |
|||
} |
@ -1,213 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ruoyi.system.mapper.SysSalesEstimateChildMapper"> |
|||
|
|||
<resultMap type="SalesEstimateChild" id="SysSalesEstimateChildResult"> |
|||
<result property="id" column="id" /> |
|||
<result property="quoteId" column="quoteId" /> |
|||
<result property="materialId" column="materialId" /> |
|||
<result property="materialCode" column="materialCode" /> |
|||
<result property="materialName" column="materialName" /> |
|||
<result property="materialBom" column="materialBom" /> |
|||
<result property="materialType" column="materialType" /> |
|||
<result property="processMethod" column="processMethod" /> |
|||
<result property="brand" column="brand" /> |
|||
<result property="photoUrl" column="photoUrl" /> |
|||
<result property="unit" column="unit" /> |
|||
<result property="describe" column="describe" /> |
|||
<result property="countTax" column="countTax" /> |
|||
<result property="usdTax" column="usdTax" /> |
|||
<result property="materialNum" column="materialNum" /> |
|||
<result property="materialSole" column="materialSole" /> |
|||
<result property="materialRmb" column="materialRmb" /> |
|||
<result property="materialNoRmb" column="materialNoRmb" /> |
|||
<result property="materialRmbSum" column="materialRmbSum" /> |
|||
<result property="materialNoRmbSum" column="materialNoRmbSum" /> |
|||
<result property="materialNoUsd" column="materialNoUsd" /> |
|||
<result property="materialUsd" column="materialUsd" /> |
|||
<result property="materialNoUsdSum" column="materialNoUsdSum" /> |
|||
<result property="materialUsdSum" column="materialUsdSum" /> |
|||
<result property="deliveryTime" column="delivery_time" /> |
|||
<result property="expiryDay" column="expiry_day" /> |
|||
<result property="createBy" column="create_by" /> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="updateBy" column="update_by" /> |
|||
<result property="updateTime" column="update_time" /> |
|||
<result property="remark" column="remark" /> |
|||
<result property="useStatus" column="use_status" /> |
|||
<result property="auditStatus" column="audit_status" /> |
|||
<result property="outBoundQuantity" column="out_bound_quantity" /> |
|||
<result property="unBoundQuantity" column="un_bound_quantity" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectSysSalesEstimateChildVo"> |
|||
select id, quoteId, materialId, materialCode, materialName, materialBom, materialType, processMethod, brand, photoUrl, unit, describe, countTax, usdTax, materialNum, materialSole, materialRmb, materialNoRmb, materialRmbSum, materialNoRmbSum, materialNoUsd, materialUsd, materialNoUsdSum, materialUsdSum, delivery_time, expiry_day, create_by, create_time, update_by, update_time, remark, use_status, audit_status, out_bound_quantity, un_bound_quantity from sales_estimate_child |
|||
</sql> |
|||
|
|||
<select id="selectSysSalesEstimateChildList" parameterType="SalesEstimateChild" resultMap="SysSalesEstimateChildResult"> |
|||
<include refid="selectSysSalesEstimateChildVo"/> |
|||
<where> |
|||
<if test="quoteId != null and quoteId != ''"> and quoteId = #{quoteId}</if> |
|||
<if test="materialId != null "> and materialId = #{materialId}</if> |
|||
<if test="materialCode != null and materialCode != ''"> and materialCode = #{materialCode}</if> |
|||
<if test="materialName != null and materialName != ''"> and materialName like concat('%', #{materialName}, '%')</if> |
|||
<if test="materialBom != null and materialBom != ''"> and materialBom = #{materialBom}</if> |
|||
<if test="materialType != null and materialType != ''"> and materialType = #{materialType}</if> |
|||
<if test="processMethod != null and processMethod != ''"> and processMethod = #{processMethod}</if> |
|||
<if test="brand != null and brand != ''"> and brand = #{brand}</if> |
|||
<if test="photoUrl != null and photoUrl != ''"> and photoUrl = #{photoUrl}</if> |
|||
<if test="unit != null and unit != ''"> and unit = #{unit}</if> |
|||
<if test="describe != null and describe != ''"> and describe = #{describe}</if> |
|||
<if test="deliveryTime != null "> and delivery_time = #{deliveryTime}</if> |
|||
<if test="expiryDay != null and expiryDay != ''"> and expiry_day = #{expiryDay}</if> |
|||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if> |
|||
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if> |
|||
<if test="useStatus != null and useStatus != ''"> and use_status = #{useStatus}</if> |
|||
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectSysSalesEstimateChildById" parameterType="Long" resultMap="SysSalesEstimateChildResult"> |
|||
<include refid="selectSysSalesEstimateChildVo"/> |
|||
where id = #{id} |
|||
</select> |
|||
|
|||
<insert id="insertSysSalesEstimateChild" parameterType="SalesEstimateChild" useGeneratedKeys="true" keyProperty="id"> |
|||
insert into sales_estimate_child |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="quoteId != null">quoteId,</if> |
|||
<if test="materialId != null">materialId,</if> |
|||
<if test="materialCode != null">materialCode,</if> |
|||
<if test="materialName != null">materialName,</if> |
|||
<if test="materialBom != null">materialBom,</if> |
|||
<if test="materialType != null">materialType,</if> |
|||
<if test="processMethod != null">processMethod,</if> |
|||
<if test="brand != null">brand,</if> |
|||
<if test="photoUrl != null">photoUrl,</if> |
|||
<if test="unit != null">unit,</if> |
|||
<if test="describe != null">describe,</if> |
|||
<if test="countTax != null">countTax,</if> |
|||
<if test="usdTax != null">usdTax,</if> |
|||
<if test="materialNum != null">materialNum,</if> |
|||
<if test="materialSole != null">materialSole,</if> |
|||
<if test="materialRmb != null">materialRmb,</if> |
|||
<if test="materialNoRmb != null">materialNoRmb,</if> |
|||
<if test="materialRmbSum != null">materialRmbSum,</if> |
|||
<if test="materialNoRmbSum != null">materialNoRmbSum,</if> |
|||
<if test="materialNoUsd != null">materialNoUsd,</if> |
|||
<if test="materialUsd != null">materialUsd,</if> |
|||
<if test="materialNoUsdSum != null">materialNoUsdSum,</if> |
|||
<if test="materialUsdSum != null">materialUsdSum,</if> |
|||
<if test="deliveryTime != null">delivery_time,</if> |
|||
<if test="expiryDay != null">expiry_day,</if> |
|||
<if test="createBy != null">create_by,</if> |
|||
<if test="createTime != null">create_time,</if> |
|||
<if test="updateBy != null">update_by,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
<if test="remark != null">remark,</if> |
|||
<if test="useStatus != null">use_status,</if> |
|||
<if test="auditStatus != null">audit_status,</if> |
|||
<if test="outBoundQuantity != null">out_bound_quantity,</if> |
|||
<if test="unBoundQuantity != null">un_bound_quantity,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="quoteId != null">#{quoteId},</if> |
|||
<if test="materialId != null">#{materialId},</if> |
|||
<if test="materialCode != null">#{materialCode},</if> |
|||
<if test="materialName != null">#{materialName},</if> |
|||
<if test="materialBom != null">#{materialBom},</if> |
|||
<if test="materialType != null">#{materialType},</if> |
|||
<if test="processMethod != null">#{processMethod},</if> |
|||
<if test="brand != null">#{brand},</if> |
|||
<if test="photoUrl != null">#{photoUrl},</if> |
|||
<if test="unit != null">#{unit},</if> |
|||
<if test="describe != null">#{describe},</if> |
|||
<if test="countTax != null">#{countTax},</if> |
|||
<if test="usdTax != null">#{usdTax},</if> |
|||
<if test="materialNum != null">#{materialNum},</if> |
|||
<if test="materialSole != null">#{materialSole},</if> |
|||
<if test="materialRmb != null">#{materialRmb},</if> |
|||
<if test="materialNoRmb != null">#{materialNoRmb},</if> |
|||
<if test="materialRmbSum != null">#{materialRmbSum},</if> |
|||
<if test="materialNoRmbSum != null">#{materialNoRmbSum},</if> |
|||
<if test="materialNoUsd != null">#{materialNoUsd},</if> |
|||
<if test="materialUsd != null">#{materialUsd},</if> |
|||
<if test="materialNoUsdSum != null">#{materialNoUsdSum},</if> |
|||
<if test="materialUsdSum != null">#{materialUsdSum},</if> |
|||
<if test="deliveryTime != null">#{deliveryTime},</if> |
|||
<if test="expiryDay != null">#{expiryDay},</if> |
|||
<if test="createBy != null">#{createBy},</if> |
|||
<if test="createTime != null">#{createTime},</if> |
|||
<if test="updateBy != null">#{updateBy},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
<if test="remark != null">#{remark},</if> |
|||
<if test="useStatus != null">#{useStatus},</if> |
|||
<if test="auditStatus != null">#{auditStatus},</if> |
|||
<if test="outBoundQuantity != null">#{outBoundQuantity},</if> |
|||
<if test="unBoundQuantity != null">#{unBoundQuantity},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateSysSalesEstimateChild" parameterType="SalesEstimateChild"> |
|||
update sales_estimate_child |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="quoteId != null">quoteId = #{quoteId},</if> |
|||
<if test="materialId != null">materialId = #{materialId},</if> |
|||
<if test="materialCode != null">materialCode = #{materialCode},</if> |
|||
<if test="materialName != null">materialName = #{materialName},</if> |
|||
<if test="materialBom != null">materialBom = #{materialBom},</if> |
|||
<if test="materialType != null">materialType = #{materialType},</if> |
|||
<if test="processMethod != null">processMethod = #{processMethod},</if> |
|||
<if test="brand != null">brand = #{brand},</if> |
|||
<if test="photoUrl != null">photoUrl = #{photoUrl},</if> |
|||
<if test="unit != null">unit = #{unit},</if> |
|||
<if test="describe != null">describe = #{describe},</if> |
|||
<if test="countTax != null">countTax = #{countTax},</if> |
|||
<if test="usdTax != null">usdTax = #{usdTax},</if> |
|||
<if test="materialNum != null">materialNum = #{materialNum},</if> |
|||
<if test="materialSole != null">materialSole = #{materialSole},</if> |
|||
<if test="materialRmb != null">materialRmb = #{materialRmb},</if> |
|||
<if test="materialNoRmb != null">materialNoRmb = #{materialNoRmb},</if> |
|||
<if test="materialRmbSum != null">materialRmbSum = #{materialRmbSum},</if> |
|||
<if test="materialNoRmbSum != null">materialNoRmbSum = #{materialNoRmbSum},</if> |
|||
<if test="materialNoUsd != null">materialNoUsd = #{materialNoUsd},</if> |
|||
<if test="materialUsd != null">materialUsd = #{materialUsd},</if> |
|||
<if test="materialNoUsdSum != null">materialNoUsdSum = #{materialNoUsdSum},</if> |
|||
<if test="materialUsdSum != null">materialUsdSum = #{materialUsdSum},</if> |
|||
<if test="deliveryTime != null">delivery_time = #{deliveryTime},</if> |
|||
<if test="expiryDay != null">expiry_day = #{expiryDay},</if> |
|||
<if test="createBy != null">create_by = #{createBy},</if> |
|||
<if test="createTime != null">create_time = #{createTime},</if> |
|||
<if test="updateBy != null">update_by = #{updateBy},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
<if test="remark != null">remark = #{remark},</if> |
|||
<if test="useStatus != null">use_status = #{useStatus},</if> |
|||
<if test="auditStatus != null">audit_status = #{auditStatus},</if> |
|||
<if test="outBoundQuantity != null">out_bound_quantity = #{outBoundQuantity},</if> |
|||
<if test="unBoundQuantity != null">un_bound_quantity = #{unBoundQuantity},</if> |
|||
</trim> |
|||
where id = #{id} |
|||
</update> |
|||
|
|||
<delete id="deleteSysSalesEstimateChildById" parameterType="Long"> |
|||
delete from sales_estimate_child where id = #{id} |
|||
</delete> |
|||
|
|||
<delete id="deleteSysSalesEstimateChildByIds" parameterType="String"> |
|||
delete from sales_estimate_child where id in |
|||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|||
#{id} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
<update id="cancelSysSalesEstimateChildById" parameterType="Long"> |
|||
update sales_estimate_child set del_flag = '1' where id = #{id} |
|||
</update> |
|||
|
|||
<update id="restoreSysSalesEstimateChildById" parameterType="Long"> |
|||
update sales_estimate_child set del_flag = '0' where id = #{id} |
|||
</update> |
|||
|
|||
</mapper> |
@ -1,314 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
|||
<head> |
|||
<th:block th:include="include :: header('销售物料估价列表')" /> |
|||
</head> |
|||
<body class="gray-bg"> |
|||
<div class="container-div"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 search-collapse"> |
|||
<form id="formId"> |
|||
<div class="select-list"> |
|||
<ul> |
|||
<li> |
|||
<label>关联销售估价编号:</label> |
|||
<input type="text" name="quoteId"/> |
|||
</li> |
|||
<li> |
|||
<label>物料表中的id:</label> |
|||
<input type="text" name="materialId"/> |
|||
</li> |
|||
<li> |
|||
<label>物料表中的编号:</label> |
|||
<input type="text" name="materialCode"/> |
|||
</li> |
|||
<li> |
|||
<label>物料的名称:</label> |
|||
<input type="text" name="materialName"/> |
|||
</li> |
|||
<li> |
|||
<label>物料相关的BOM编号:</label> |
|||
<input type="text" name="materialBom"/> |
|||
</li> |
|||
<li> |
|||
<label>物料的类型:</label> |
|||
<select name="materialType"> |
|||
<option value="">所有</option> |
|||
<option value="-1">代码生成请选择字典属性</option> |
|||
</select> |
|||
</li> |
|||
<li> |
|||
<label>物料的加工方式:</label> |
|||
<input type="text" name="processMethod"/> |
|||
</li> |
|||
<li> |
|||
<label>物料的品牌:</label> |
|||
<input type="text" name="brand"/> |
|||
</li> |
|||
<li> |
|||
<label>物料的图片:</label> |
|||
<input type="text" name="photoUrl"/> |
|||
</li> |
|||
<li> |
|||
<label>单位:</label> |
|||
<input type="text" name="unit"/> |
|||
</li> |
|||
<li> |
|||
<label>物料的描述:</label> |
|||
<input type="text" name="describe"/> |
|||
</li> |
|||
<li> |
|||
<label>计划交付时间:</label> |
|||
<input type="text" class="time-input" placeholder="请选择计划交付时间" name="deliveryTime"/> |
|||
</li> |
|||
<li> |
|||
<label>质保天数:</label> |
|||
<input type="text" name="expiryDay"/> |
|||
</li> |
|||
<li class="select-time"> |
|||
<label>创建时间:</label> |
|||
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> |
|||
<span>-</span> |
|||
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreateTime]"/> |
|||
</li> |
|||
<li class="select-time"> |
|||
<label>修改时间:</label> |
|||
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginUpdateTime]"/> |
|||
<span>-</span> |
|||
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endUpdateTime]"/> |
|||
</li> |
|||
<li> |
|||
<label>删除状态:</label> |
|||
<select name="useStatus" th:with="type=${@dict.getType('useStatus')}"> |
|||
<option value="">所有</option> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</li> |
|||
<li> |
|||
<label>审核状态:</label> |
|||
<select name="auditStatus" th:with="type=${@dict.getType('auditStatus')}"> |
|||
<option value="">所有</option> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</li> |
|||
<li> |
|||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
|||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
|
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="sales:EstimateChild:add"> |
|||
<i class="fa fa-plus"></i> 添加 |
|||
</a> |
|||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="sales:EstimateChild:edit"> |
|||
<i class="fa fa-edit"></i> 修改 |
|||
</a> |
|||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="sales:EstimateChild:remove"> |
|||
<i class="fa fa-remove"></i> 删除 |
|||
</a> |
|||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="sales:EstimateChild:export"> |
|||
<i class="fa fa-download"></i> 导出 |
|||
</a> |
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('sales:EstimateChild:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('sales:EstimateChild:remove')}]]; |
|||
var cancelFlag = [[${@permission.hasPermi('sales:EstimateChild:cancel')}]]; |
|||
var restoreFlag = [[${@permission.hasPermi('sales:EstimateChild:restore')}]]; |
|||
var useStatusDatas = [[${@dict.getType('useStatus')}]]; |
|||
var auditStatusDatas = [[${@dict.getType('auditStatus')}]]; |
|||
var prefix = ctx + "sales/EstimateChild"; |
|||
|
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
cancelUrl: prefix + "/cancel/{id}", |
|||
restoreUrl: prefix + "/restore/{id}", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "销售物料估价", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
title: '销售估价子表id', |
|||
field: 'id', |
|||
visible: false |
|||
}, |
|||
{ |
|||
title: '关联销售估价编号', |
|||
field: 'quoteId', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料表中的id', |
|||
field: 'materialId', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料表中的编号', |
|||
field: 'materialCode', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的名称', |
|||
field: 'materialName', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料相关的BOM编号', |
|||
field: 'materialBom', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的类型', |
|||
field: 'materialType', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的加工方式', |
|||
field: 'processMethod', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的品牌', |
|||
field: 'brand', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的图片', |
|||
field: 'photoUrl', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '单位', |
|||
field: 'unit', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的描述', |
|||
field: 'describe', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '国内税率', |
|||
field: 'countTax', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '美元汇率', |
|||
field: 'usdTax', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的数量', |
|||
field: 'materialNum', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的对外报价', |
|||
field: 'materialSole', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的不含税单价(RMB)', |
|||
field: 'materialRmb', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的含税单价(RMB)', |
|||
field: 'materialNoRmb', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的不含税总价(RMB)', |
|||
field: 'materialRmbSum', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的含税总价(RMB)', |
|||
field: 'materialNoRmbSum', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的不含税单价(美元)', |
|||
field: 'materialNoUsd', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的含税单价(美元)', |
|||
field: 'materialUsd', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的不含税总价(美元)', |
|||
field: 'materialNoUsdSum', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '物料的含税总价(美元)', |
|||
field: 'materialUsdSum', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '计划交付时间', |
|||
field: 'deliveryTime', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '质保天数', |
|||
field: 'expiryDay', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '备注', |
|||
field: 'remark', |
|||
sort: true |
|||
}, |
|||
{ |
|||
title: '删除状态', |
|||
field: 'useStatus', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(useStatusDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
title: '审核状态', |
|||
field: 'auditStatus', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(auditStatusDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
title: '操作', |
|||
align: 'center', |
|||
formatter: function(value, row, index) { |
|||
var actions = []; |
|||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> '); |
|||
if(row.delFlag == '0'){ |
|||
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> '); |
|||
}else{ |
|||
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> '); |
|||
} |
|||
return actions.join(''); |
|||
} |
|||
}] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,211 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('新增销售物料估价')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-EstimateChild-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联销售估价编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="quoteId" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料表中的id:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialId" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料表中的编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料相关的BOM编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialBom" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="materialType" class="form-control m-b"> |
|||
<option value="">所有</option> |
|||
</select> |
|||
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的加工方式:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="processMethod" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的品牌:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="brand" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的图片:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="photoUrl" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">单位:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="unit" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的描述:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="describe" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">国内税率:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="countTax" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">美元汇率:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="usdTax" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的数量:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNum" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的对外报价:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialSole" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的不含税单价(RMB):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialRmb" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的含税单价(RMB):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNoRmb" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的不含税总价(RMB):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialRmbSum" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的含税总价(RMB):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNoRmbSum" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的不含税单价(美元):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNoUsd" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的含税单价(美元):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialUsd" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的不含税总价(美元):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNoUsdSum" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的含税总价(美元):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialUsdSum" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">计划交付时间:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<input name="deliveryTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">质保天数:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="expiryDay" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">备注:</label> |
|||
<div class="col-sm-8"> |
|||
<textarea name="remark" class="form-control"></textarea> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">删除状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="useStatus" class="form-control m-b" th:with="type=${@dict.getType('useStatus')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">审核状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="auditStatus" class="form-control m-b" th:with="type=${@dict.getType('auditStatus')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "sales/EstimateChild" |
|||
$("#form-EstimateChild-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-EstimateChild-add').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='deliveryTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,212 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改销售物料估价')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-EstimateChild-edit" th:object="${salesEstimateChild}"> |
|||
<input name="id" th:field="*{id}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联销售估价编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="quoteId" th:field="*{quoteId}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料表中的id:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialId" th:field="*{materialId}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料表中的编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialCode" th:field="*{materialCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialName" th:field="*{materialName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料相关的BOM编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialBom" th:field="*{materialBom}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="materialType" class="form-control m-b"> |
|||
<option value="">所有</option> |
|||
</select> |
|||
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的加工方式:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="processMethod" th:field="*{processMethod}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的品牌:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="brand" th:field="*{brand}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的图片:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="photoUrl" th:field="*{photoUrl}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">单位:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="unit" th:field="*{unit}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的描述:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="describe" th:field="*{describe}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">国内税率:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="countTax" th:field="*{countTax}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">美元汇率:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="usdTax" th:field="*{usdTax}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的数量:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNum" th:field="*{materialNum}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的对外报价:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialSole" th:field="*{materialSole}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的不含税单价(RMB):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialRmb" th:field="*{materialRmb}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的含税单价(RMB):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNoRmb" th:field="*{materialNoRmb}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的不含税总价(RMB):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialRmbSum" th:field="*{materialRmbSum}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的含税总价(RMB):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNoRmbSum" th:field="*{materialNoRmbSum}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的不含税单价(美元):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNoUsd" th:field="*{materialNoUsd}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的含税单价(美元):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialUsd" th:field="*{materialUsd}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的不含税总价(美元):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialNoUsdSum" th:field="*{materialNoUsdSum}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">物料的含税总价(美元):</label> |
|||
<div class="col-sm-8"> |
|||
<input name="materialUsdSum" th:field="*{materialUsdSum}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">计划交付时间:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<input name="deliveryTime" th:value="${#dates.format(salesEstimateChild.deliveryTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">质保天数:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="expiryDay" th:field="*{expiryDay}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">备注:</label> |
|||
<div class="col-sm-8"> |
|||
<textarea name="remark" class="form-control">[[*{remark}]]</textarea> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">删除状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="useStatus" class="form-control m-b" th:with="type=${@dict.getType('useStatus')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{useStatus}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">审核状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="auditStatus" class="form-control m-b" th:with="type=${@dict.getType('auditStatus')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{auditStatus}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "sales/EstimateChild"; |
|||
$("#form-EstimateChild-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-EstimateChild-edit').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='deliveryTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue