liuxiaoxu
1 month ago
9 changed files with 0 additions and 1788 deletions
@ -1,143 +0,0 @@ |
|||
package com.ruoyi.ck.controller; |
|||
|
|||
import com.ruoyi.ck.domain.BcpBom; |
|||
import com.ruoyi.ck.service.IBcpBomService; |
|||
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 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; |
|||
|
|||
/** |
|||
* 半成品bomController |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-09-25 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/ck/bcpbom") |
|||
public class BcpBomController extends BaseController |
|||
{ |
|||
private String prefix = "ck/bcpbom"; |
|||
|
|||
@Autowired |
|||
private IBcpBomService bcpBomService; |
|||
|
|||
@RequiresPermissions("ck:bcpbom:view") |
|||
@GetMapping() |
|||
public String bcpbom() |
|||
{ |
|||
return prefix + "/bcpbom"; |
|||
} |
|||
|
|||
/** |
|||
* 查询半成品bom列表 |
|||
*/ |
|||
@RequiresPermissions("ck:bcpbom:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(BcpBom bcpBom) |
|||
{ |
|||
startPage(); |
|||
List<BcpBom> list = bcpBomService.selectBomGroupByBcpCode(bcpBom); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 查询对应成品的原料清单列表 |
|||
*/ |
|||
@RequiresPermissions("ck:bom:bcpyllist") |
|||
@PostMapping("/bcpyllist") |
|||
@ResponseBody |
|||
public TableDataInfo bcpylList(BcpBom bcpBom) |
|||
{ |
|||
startPage(); |
|||
List<BcpBom> list = bcpBomService.selectBcpBomList(bcpBom); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出半成品bom列表 |
|||
*/ |
|||
@RequiresPermissions("ck:bcpbom:export") |
|||
@Log(title = "半成品bom", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ResponseBody |
|||
public AjaxResult export(BcpBom bcpBom) |
|||
{ |
|||
List<BcpBom> list = bcpBomService.selectBcpBomList(bcpBom); |
|||
ExcelUtil<BcpBom> util = new ExcelUtil<BcpBom>(BcpBom.class); |
|||
return util.exportExcel(list, "半成品bom数据"); |
|||
} |
|||
|
|||
/** |
|||
* 新增半成品bom |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() |
|||
{ |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存半成品bom |
|||
*/ |
|||
@RequiresPermissions("ck:bcpbom:add") |
|||
@Log(title = "半成品bom", businessType = BusinessType.INSERT) |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public AjaxResult addSave(BcpBom bcpBom) |
|||
{ |
|||
return toAjax(bcpBomService.insertBcpBom(bcpBom)); |
|||
} |
|||
|
|||
/** |
|||
* 修改半成品bom |
|||
*/ |
|||
@GetMapping("/edit/{bcpCode}") |
|||
public String edit(@PathVariable("bcpCode") String bcpCode, ModelMap mmap) |
|||
{ |
|||
BcpBom bcpBom=new BcpBom(); |
|||
bcpBom.setBcpCode(bcpCode); |
|||
List<BcpBom> bcpBom1 = bcpBomService.selectBcpBomList(bcpBom); |
|||
bcpBom= bcpBom1.get(0); |
|||
mmap.put("bcpBom", bcpBom); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 修改保存半成品bom |
|||
*/ |
|||
@RequiresPermissions("ck:bcpbom:edit") |
|||
@Log(title = "半成品bom", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public AjaxResult editSave(BcpBom bcpBom) |
|||
{ |
|||
return toAjax(bcpBomService.updateBcpBom(bcpBom)); |
|||
} |
|||
|
|||
/** |
|||
* 删除半成品bom |
|||
*/ |
|||
@RequiresPermissions("ck:bcpbom:remove") |
|||
@Log(title = "半成品bom", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(bcpBomService.deleteBcpBomByIds(ids)); |
|||
} |
|||
} |
@ -1,422 +0,0 @@ |
|||
package com.ruoyi.ck.domain; |
|||
|
|||
import com.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 半成品bom对象 bcp_bom |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-09-25 |
|||
*/ |
|||
public class BcpBom extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 半成品代码 */ |
|||
@Excel(name = "半成品代码") |
|||
private String bcpCode; |
|||
|
|||
/** 名称 */ |
|||
@Excel(name = "名称") |
|||
private String bcpName; |
|||
|
|||
/** 规格型号 */ |
|||
@Excel(name = "规格型号") |
|||
private String bcpType; |
|||
|
|||
/** */ |
|||
@Excel(name = "") |
|||
private String bcpMachineNo; |
|||
|
|||
/** 单位 */ |
|||
@Excel(name = "单位") |
|||
private String bcpDw; |
|||
|
|||
/** */ |
|||
private String wlCode; |
|||
|
|||
/** */ |
|||
private String Itemname; |
|||
|
|||
/** */ |
|||
private String Itemstandard; |
|||
|
|||
/** */ |
|||
private String stockDw; |
|||
|
|||
/** */ |
|||
private BigDecimal useNum; |
|||
|
|||
/** */ |
|||
private BigDecimal lostpre; |
|||
|
|||
/** */ |
|||
private String zpGuige; |
|||
|
|||
/** */ |
|||
private BigDecimal zpUseNum; |
|||
|
|||
/** */ |
|||
private Long mQty; |
|||
|
|||
/** */ |
|||
private String memolist; |
|||
|
|||
/** */ |
|||
private String pno; |
|||
|
|||
/** */ |
|||
private Date Addtime; |
|||
|
|||
/** */ |
|||
private String mouldNo; |
|||
|
|||
/** */ |
|||
private Long comfirmFlag; |
|||
|
|||
/** */ |
|||
private String comfirmMan; |
|||
|
|||
/** */ |
|||
private Date comfirmDate; |
|||
|
|||
/** 确认人 */ |
|||
private String writeMan; |
|||
|
|||
/** */ |
|||
private String GongCha; |
|||
|
|||
/** */ |
|||
private String factoryMouldNo; |
|||
|
|||
/** */ |
|||
private Long mainMaterial; |
|||
|
|||
/** */ |
|||
private BigDecimal gongchaMore; |
|||
|
|||
/** */ |
|||
private BigDecimal gongchaSmall; |
|||
|
|||
/** */ |
|||
private Date changtime; |
|||
|
|||
/** */ |
|||
private Long cpNum; |
|||
|
|||
/** */ |
|||
private String worklineclass; |
|||
|
|||
public void setBcpCode(String bcpCode) |
|||
{ |
|||
this.bcpCode = bcpCode; |
|||
} |
|||
|
|||
public String getBcpCode() |
|||
{ |
|||
return bcpCode; |
|||
} |
|||
public void setBcpName(String bcpName) |
|||
{ |
|||
this.bcpName = bcpName; |
|||
} |
|||
|
|||
public String getBcpName() |
|||
{ |
|||
return bcpName; |
|||
} |
|||
public void setBcpType(String bcpType) |
|||
{ |
|||
this.bcpType = bcpType; |
|||
} |
|||
|
|||
public String getBcpType() |
|||
{ |
|||
return bcpType; |
|||
} |
|||
public void setBcpMachineNo(String bcpMachineNo) |
|||
{ |
|||
this.bcpMachineNo = bcpMachineNo; |
|||
} |
|||
|
|||
public String getBcpMachineNo() |
|||
{ |
|||
return bcpMachineNo; |
|||
} |
|||
public void setBcpDw(String bcpDw) |
|||
{ |
|||
this.bcpDw = bcpDw; |
|||
} |
|||
|
|||
public String getBcpDw() |
|||
{ |
|||
return bcpDw; |
|||
} |
|||
public void setWlCode(String wlCode) |
|||
{ |
|||
this.wlCode = wlCode; |
|||
} |
|||
|
|||
public String getWlCode() |
|||
{ |
|||
return wlCode; |
|||
} |
|||
public void setItemname(String Itemname) |
|||
{ |
|||
this.Itemname = Itemname; |
|||
} |
|||
|
|||
public String getItemname() |
|||
{ |
|||
return Itemname; |
|||
} |
|||
public void setItemstandard(String Itemstandard) |
|||
{ |
|||
this.Itemstandard = Itemstandard; |
|||
} |
|||
|
|||
public String getItemstandard() |
|||
{ |
|||
return Itemstandard; |
|||
} |
|||
public void setStockDw(String stockDw) |
|||
{ |
|||
this.stockDw = stockDw; |
|||
} |
|||
|
|||
public String getStockDw() |
|||
{ |
|||
return stockDw; |
|||
} |
|||
public void setUseNum(BigDecimal useNum) |
|||
{ |
|||
this.useNum = useNum; |
|||
} |
|||
|
|||
public BigDecimal getUseNum() |
|||
{ |
|||
return useNum; |
|||
} |
|||
public void setLostpre(BigDecimal lostpre) |
|||
{ |
|||
this.lostpre = lostpre; |
|||
} |
|||
|
|||
public BigDecimal getLostpre() |
|||
{ |
|||
return lostpre; |
|||
} |
|||
public void setZpGuige(String zpGuige) |
|||
{ |
|||
this.zpGuige = zpGuige; |
|||
} |
|||
|
|||
public String getZpGuige() |
|||
{ |
|||
return zpGuige; |
|||
} |
|||
public void setZpUseNum(BigDecimal zpUseNum) |
|||
{ |
|||
this.zpUseNum = zpUseNum; |
|||
} |
|||
|
|||
public BigDecimal getZpUseNum() |
|||
{ |
|||
return zpUseNum; |
|||
} |
|||
public void setmQty(Long mQty) |
|||
{ |
|||
this.mQty = mQty; |
|||
} |
|||
|
|||
public Long getmQty() |
|||
{ |
|||
return mQty; |
|||
} |
|||
public void setMemolist(String memolist) |
|||
{ |
|||
this.memolist = memolist; |
|||
} |
|||
|
|||
public String getMemolist() |
|||
{ |
|||
return memolist; |
|||
} |
|||
public void setPno(String pno) |
|||
{ |
|||
this.pno = pno; |
|||
} |
|||
|
|||
public String getPno() |
|||
{ |
|||
return pno; |
|||
} |
|||
public void setAddtime(Date Addtime) |
|||
{ |
|||
this.Addtime = Addtime; |
|||
} |
|||
|
|||
public Date getAddtime() |
|||
{ |
|||
return Addtime; |
|||
} |
|||
public void setMouldNo(String mouldNo) |
|||
{ |
|||
this.mouldNo = mouldNo; |
|||
} |
|||
|
|||
public String getMouldNo() |
|||
{ |
|||
return mouldNo; |
|||
} |
|||
public void setComfirmFlag(Long comfirmFlag) |
|||
{ |
|||
this.comfirmFlag = comfirmFlag; |
|||
} |
|||
|
|||
public Long getComfirmFlag() |
|||
{ |
|||
return comfirmFlag; |
|||
} |
|||
public void setComfirmMan(String comfirmMan) |
|||
{ |
|||
this.comfirmMan = comfirmMan; |
|||
} |
|||
|
|||
public String getComfirmMan() |
|||
{ |
|||
return comfirmMan; |
|||
} |
|||
public void setComfirmDate(Date comfirmDate) |
|||
{ |
|||
this.comfirmDate = comfirmDate; |
|||
} |
|||
|
|||
public Date getComfirmDate() |
|||
{ |
|||
return comfirmDate; |
|||
} |
|||
public void setWriteMan(String writeMan) |
|||
{ |
|||
this.writeMan = writeMan; |
|||
} |
|||
|
|||
public String getWriteMan() |
|||
{ |
|||
return writeMan; |
|||
} |
|||
public void setGongCha(String GongCha) |
|||
{ |
|||
this.GongCha = GongCha; |
|||
} |
|||
|
|||
public String getGongCha() |
|||
{ |
|||
return GongCha; |
|||
} |
|||
public void setFactoryMouldNo(String factoryMouldNo) |
|||
{ |
|||
this.factoryMouldNo = factoryMouldNo; |
|||
} |
|||
|
|||
public String getFactoryMouldNo() |
|||
{ |
|||
return factoryMouldNo; |
|||
} |
|||
public void setMainMaterial(Long mainMaterial) |
|||
{ |
|||
this.mainMaterial = mainMaterial; |
|||
} |
|||
|
|||
public Long getMainMaterial() |
|||
{ |
|||
return mainMaterial; |
|||
} |
|||
public void setGongchaMore(BigDecimal gongchaMore) |
|||
{ |
|||
this.gongchaMore = gongchaMore; |
|||
} |
|||
|
|||
public BigDecimal getGongchaMore() |
|||
{ |
|||
return gongchaMore; |
|||
} |
|||
public void setGongchaSmall(BigDecimal gongchaSmall) |
|||
{ |
|||
this.gongchaSmall = gongchaSmall; |
|||
} |
|||
|
|||
public BigDecimal getGongchaSmall() |
|||
{ |
|||
return gongchaSmall; |
|||
} |
|||
public void setChangtime(Date changtime) |
|||
{ |
|||
this.changtime = changtime; |
|||
} |
|||
|
|||
public Date getChangtime() |
|||
{ |
|||
return changtime; |
|||
} |
|||
public void setCpNum(Long cpNum) |
|||
{ |
|||
this.cpNum = cpNum; |
|||
} |
|||
|
|||
public Long getCpNum() |
|||
{ |
|||
return cpNum; |
|||
} |
|||
public void setWorklineclass(String worklineclass) |
|||
{ |
|||
this.worklineclass = worklineclass; |
|||
} |
|||
|
|||
public String getWorklineclass() |
|||
{ |
|||
return worklineclass; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("bcpCode", getBcpCode()) |
|||
.append("bcpName", getBcpName()) |
|||
.append("bcpType", getBcpType()) |
|||
.append("bcpMachineNo", getBcpMachineNo()) |
|||
.append("bcpDw", getBcpDw()) |
|||
.append("wlCode", getWlCode()) |
|||
.append("Itemname", getItemname()) |
|||
.append("Itemstandard", getItemstandard()) |
|||
.append("stockDw", getStockDw()) |
|||
.append("useNum", getUseNum()) |
|||
.append("lostpre", getLostpre()) |
|||
.append("zpGuige", getZpGuige()) |
|||
.append("zpUseNum", getZpUseNum()) |
|||
.append("mQty", getmQty()) |
|||
.append("memolist", getMemolist()) |
|||
.append("pno", getPno()) |
|||
.append("Addtime", getAddtime()) |
|||
.append("mouldNo", getMouldNo()) |
|||
.append("comfirmFlag", getComfirmFlag()) |
|||
.append("comfirmMan", getComfirmMan()) |
|||
.append("comfirmDate", getComfirmDate()) |
|||
.append("writeMan", getWriteMan()) |
|||
.append("GongCha", getGongCha()) |
|||
.append("factoryMouldNo", getFactoryMouldNo()) |
|||
.append("mainMaterial", getMainMaterial()) |
|||
.append("gongchaMore", getGongchaMore()) |
|||
.append("gongchaSmall", getGongchaSmall()) |
|||
.append("changtime", getChangtime()) |
|||
.append("cpNum", getCpNum()) |
|||
.append("worklineclass", getWorklineclass()) |
|||
.toString(); |
|||
} |
|||
} |
@ -1,73 +0,0 @@ |
|||
package com.ruoyi.ck.mapper; |
|||
|
|||
import com.ruoyi.ck.domain.BcpBom; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 半成品bomMapper接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-09-25 |
|||
*/ |
|||
public interface BcpBomMapper |
|||
{ |
|||
/** |
|||
* 查询半成品bom |
|||
* |
|||
* @param bcpCode 半成品bomID |
|||
* @return 半成品bom |
|||
*/ |
|||
public BcpBom selectBcpBomById(String bcpCode); |
|||
|
|||
/** |
|||
* 查询半成品bom列表 |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 半成品bom集合 |
|||
*/ |
|||
public List<BcpBom> selectBcpBomList(BcpBom bcpBom); |
|||
|
|||
|
|||
|
|||
/** |
|||
* 查询半成品bom列表分组 |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 半成品bom集合分组 |
|||
*/ |
|||
|
|||
public List<BcpBom> selectBomGroupByBcpCode(BcpBom bcpBom); |
|||
|
|||
/** |
|||
* 新增半成品bom |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 结果 |
|||
*/ |
|||
public int insertBcpBom(BcpBom bcpBom); |
|||
|
|||
/** |
|||
* 修改半成品bom |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 结果 |
|||
*/ |
|||
public int updateBcpBom(BcpBom bcpBom); |
|||
|
|||
/** |
|||
* 删除半成品bom |
|||
* |
|||
* @param bcpCode 半成品bomID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteBcpBomById(String bcpCode); |
|||
|
|||
/** |
|||
* 批量删除半成品bom |
|||
* |
|||
* @param bcpCodes 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteBcpBomByIds(String[] bcpCodes); |
|||
} |
@ -1,72 +0,0 @@ |
|||
package com.ruoyi.ck.service; |
|||
|
|||
import com.ruoyi.ck.domain.BcpBom; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 半成品bomService接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-09-25 |
|||
*/ |
|||
public interface IBcpBomService |
|||
{ |
|||
/** |
|||
* 查询半成品bom |
|||
* |
|||
* @param bcpCode 半成品bomID |
|||
* @return 半成品bom |
|||
*/ |
|||
public BcpBom selectBcpBomById(String bcpCode); |
|||
|
|||
/** |
|||
* 查询半成品bom列表 |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 半成品bom集合 |
|||
*/ |
|||
public List<BcpBom> selectBcpBomList(BcpBom bcpBom); |
|||
|
|||
|
|||
/** |
|||
* 查询半成品bom列表分组 |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 半成品bom集合分组 |
|||
*/ |
|||
public List<BcpBom> selectBomGroupByBcpCode(BcpBom bcpBom); |
|||
|
|||
|
|||
/** |
|||
* 新增半成品bom |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 结果 |
|||
*/ |
|||
public int insertBcpBom(BcpBom bcpBom); |
|||
|
|||
/** |
|||
* 修改半成品bom |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 结果 |
|||
*/ |
|||
public int updateBcpBom(BcpBom bcpBom); |
|||
|
|||
/** |
|||
* 批量删除半成品bom |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteBcpBomByIds(String ids); |
|||
|
|||
/** |
|||
* 删除半成品bom信息 |
|||
* |
|||
* @param bcpCode 半成品bomID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteBcpBomById(String bcpCode); |
|||
} |
@ -1,108 +0,0 @@ |
|||
package com.ruoyi.ck.service.impl; |
|||
|
|||
import com.ruoyi.ck.domain.BcpBom; |
|||
import com.ruoyi.ck.mapper.BcpBomMapper; |
|||
import com.ruoyi.ck.service.IBcpBomService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 半成品bomService业务层处理 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-09-25 |
|||
*/ |
|||
@Service |
|||
public class BcpBomServiceImpl implements IBcpBomService |
|||
{ |
|||
@Autowired |
|||
private BcpBomMapper bcpBomMapper; |
|||
|
|||
/** |
|||
* 查询半成品bom |
|||
* |
|||
* @param bcpCode 半成品bomID |
|||
* @return 半成品bom |
|||
*/ |
|||
@Override |
|||
public BcpBom selectBcpBomById(String bcpCode) |
|||
{ |
|||
return bcpBomMapper.selectBcpBomById(bcpCode); |
|||
} |
|||
|
|||
/** |
|||
* 查询半成品bom列表 |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 半成品bom |
|||
*/ |
|||
@Override |
|||
public List<BcpBom> selectBcpBomList(BcpBom bcpBom) |
|||
{ |
|||
return bcpBomMapper.selectBcpBomList(bcpBom); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 查询半成品bom列表分组 |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 半成品bom集合分组 |
|||
*/ |
|||
@Override |
|||
public List<BcpBom> selectBomGroupByBcpCode(BcpBom bcpBom) { |
|||
return bcpBomMapper.selectBomGroupByBcpCode(bcpBom); |
|||
} |
|||
|
|||
/** |
|||
* 新增半成品bom |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertBcpBom(BcpBom bcpBom) |
|||
{ |
|||
return bcpBomMapper.insertBcpBom(bcpBom); |
|||
} |
|||
|
|||
/** |
|||
* 修改半成品bom |
|||
* |
|||
* @param bcpBom 半成品bom |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateBcpBom(BcpBom bcpBom) |
|||
{ |
|||
return bcpBomMapper.updateBcpBom(bcpBom); |
|||
} |
|||
|
|||
/** |
|||
* 删除半成品bom对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteBcpBomByIds(String ids) |
|||
{ |
|||
return bcpBomMapper.deleteBcpBomByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除半成品bom信息 |
|||
* |
|||
* @param bcpCode 半成品bomID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteBcpBomById(String bcpCode) |
|||
{ |
|||
return bcpBomMapper.deleteBcpBomById(bcpCode); |
|||
} |
|||
} |
@ -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.ck.mapper.BcpBomMapper"> |
|||
|
|||
<resultMap type="BcpBom" id="BcpBomResult"> |
|||
<result property="bcpCode" column="BCP_CODE" /> |
|||
<result property="bcpName" column="BCP_NAME" /> |
|||
<result property="bcpType" column="BCP_TYPE" /> |
|||
<result property="bcpMachineNo" column="BCP_Machine_NO" /> |
|||
<result property="bcpDw" column="BCP_DW" /> |
|||
<result property="wlCode" column="Wl_Code" /> |
|||
<result property="Itemname" column="Itemname" /> |
|||
<result property="Itemstandard" column="Itemstandard" /> |
|||
<result property="stockDw" column="Stock_dw" /> |
|||
<result property="useNum" column="Use_Num" /> |
|||
<result property="lostpre" column="lostpre" /> |
|||
<result property="zpGuige" column="zp_guige" /> |
|||
<result property="zpUseNum" column="zp_use_num" /> |
|||
<result property="mQty" column="m_qty" /> |
|||
<result property="memolist" column="memolist" /> |
|||
<result property="pno" column="pno" /> |
|||
<result property="Addtime" column="Addtime" /> |
|||
<result property="mouldNo" column="Mould_No" /> |
|||
<result property="comfirmFlag" column="Comfirm_Flag" /> |
|||
<result property="comfirmMan" column="Comfirm_man" /> |
|||
<result property="comfirmDate" column="Comfirm_date" /> |
|||
<result property="writeMan" column="write_man" /> |
|||
<result property="GongCha" column="GongCha" /> |
|||
<result property="factoryMouldNo" column="Factory_Mould_no" /> |
|||
<result property="mainMaterial" column="Main_Material" /> |
|||
<result property="gongchaMore" column="gongcha_more" /> |
|||
<result property="gongchaSmall" column="gongcha_small" /> |
|||
<result property="changtime" column="changtime" /> |
|||
<result property="cpNum" column="CP_NUM" /> |
|||
<result property="worklineclass" column="worklineclass" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectBcpBomVo"> |
|||
select BCP_CODE, BCP_NAME, BCP_TYPE, BCP_Machine_NO, BCP_DW, Wl_Code, Itemname, Itemstandard, Stock_dw, Use_Num, lostpre, zp_guige, zp_use_num, m_qty, memolist, pno, Addtime, Mould_No, Comfirm_Flag, Comfirm_man, Comfirm_date, write_man, GongCha, Factory_Mould_no, Main_Material, gongcha_more, gongcha_small, changtime, CP_NUM, worklineclass from bcp_bom |
|||
</sql> |
|||
|
|||
<select id="selectBcpBomList" parameterType="BcpBom" resultMap="BcpBomResult"> |
|||
<include refid="selectBcpBomVo"/> |
|||
<where> |
|||
<if test="bcpCode != null and bcpCode != ''"> and BCP_CODE = #{bcpCode}</if> |
|||
<if test="bcpName != null and bcpName != ''"> and BCP_NAME like concat('%', #{bcpName}, '%')</if> |
|||
<if test="bcpType != null and bcpType != ''"> and BCP_TYPE = #{bcpType}</if> |
|||
<if test="bcpMachineNo != null and bcpMachineNo != ''"> and BCP_Machine_NO = #{bcpMachineNo}</if> |
|||
<if test="bcpDw != null and bcpDw != ''"> and BCP_DW = #{bcpDw}</if> |
|||
<if test="wlCode != null and wlCode != ''"> and Wl_Code = #{wlCode}</if> |
|||
<if test="Itemname != null and Itemname != ''"> and Itemname like concat('%', #{Itemname}, '%')</if> |
|||
<if test="Itemstandard != null and Itemstandard != ''"> and Itemstandard = #{Itemstandard}</if> |
|||
<if test="stockDw != null and stockDw != ''"> and Stock_dw = #{stockDw}</if> |
|||
<if test="useNum != null "> and Use_Num = #{useNum}</if> |
|||
<if test="lostpre != null "> and lostpre = #{lostpre}</if> |
|||
<if test="zpGuige != null and zpGuige != ''"> and zp_guige = #{zpGuige}</if> |
|||
<if test="zpUseNum != null "> and zp_use_num = #{zpUseNum}</if> |
|||
<if test="mQty != null "> and m_qty = #{mQty}</if> |
|||
<if test="memolist != null and memolist != ''"> and memolist = #{memolist}</if> |
|||
<if test="pno != null and pno != ''"> and pno = #{pno}</if> |
|||
<if test="Addtime != null "> and Addtime = #{Addtime}</if> |
|||
<if test="mouldNo != null and mouldNo != ''"> and Mould_No = #{mouldNo}</if> |
|||
<if test="comfirmFlag != null "> and Comfirm_Flag = #{comfirmFlag}</if> |
|||
<if test="comfirmMan != null and comfirmMan != ''"> and Comfirm_man = #{comfirmMan}</if> |
|||
<if test="comfirmDate != null "> and Comfirm_date = #{comfirmDate}</if> |
|||
<if test="writeMan != null and writeMan != ''"> and write_man = #{writeMan}</if> |
|||
<if test="GongCha != null and GongCha != ''"> and GongCha = #{GongCha}</if> |
|||
<if test="factoryMouldNo != null and factoryMouldNo != ''"> and Factory_Mould_no = #{factoryMouldNo}</if> |
|||
<if test="mainMaterial != null "> and Main_Material = #{mainMaterial}</if> |
|||
<if test="gongchaMore != null "> and gongcha_more = #{gongchaMore}</if> |
|||
<if test="gongchaSmall != null "> and gongcha_small = #{gongchaSmall}</if> |
|||
<if test="changtime != null "> and changtime = #{changtime}</if> |
|||
<if test="cpNum != null "> and CP_NUM = #{cpNum}</if> |
|||
<if test="worklineclass != null and worklineclass != ''"> and worklineclass = #{worklineclass}</if> |
|||
|
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectBomGroupByBcpCode" parameterType="BcpBom" resultMap="BcpBomResult"> |
|||
<include refid="selectBcpBomVo"/> |
|||
<where> |
|||
<if test="bcpCode != null and bcpCode != ''"> and BCP_CODE like concat('%', #{bcpCode}, '%')</if> |
|||
<if test="bcpName != null and bcpName != ''"> and BCP_NAME like concat('%', #{bcpName}, '%')</if> |
|||
<if test="bcpType != null and bcpType != ''"> and BCP_TYPE = #{bcpType}</if> |
|||
<if test="bcpMachineNo != null and bcpMachineNo != ''"> and BCP_Machine_NO = #{bcpMachineNo}</if> |
|||
</where> |
|||
group by BCP_CODE |
|||
</select> |
|||
|
|||
<select id="selectBcpBomById" parameterType="String" resultMap="BcpBomResult"> |
|||
<include refid="selectBcpBomVo"/> |
|||
where BCP_CODE = #{bcpCode} |
|||
</select> |
|||
|
|||
|
|||
<insert id="insertBcpBom" parameterType="BcpBom"> |
|||
insert into bcp_bom |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="bcpCode != null">BCP_CODE,</if> |
|||
<if test="bcpName != null">BCP_NAME,</if> |
|||
<if test="bcpType != null">BCP_TYPE,</if> |
|||
<if test="bcpMachineNo != null">BCP_Machine_NO,</if> |
|||
<if test="bcpDw != null">BCP_DW,</if> |
|||
<if test="wlCode != null">Wl_Code,</if> |
|||
<if test="Itemname != null">Itemname,</if> |
|||
<if test="Itemstandard != null">Itemstandard,</if> |
|||
<if test="stockDw != null">Stock_dw,</if> |
|||
<if test="useNum != null">Use_Num,</if> |
|||
<if test="lostpre != null">lostpre,</if> |
|||
<if test="zpGuige != null">zp_guige,</if> |
|||
<if test="zpUseNum != null">zp_use_num,</if> |
|||
<if test="mQty != null">m_qty,</if> |
|||
<if test="memolist != null">memolist,</if> |
|||
<if test="pno != null">pno,</if> |
|||
<if test="Addtime != null">Addtime,</if> |
|||
<if test="mouldNo != null">Mould_No,</if> |
|||
<if test="comfirmFlag != null">Comfirm_Flag,</if> |
|||
<if test="comfirmMan != null">Comfirm_man,</if> |
|||
<if test="comfirmDate != null">Comfirm_date,</if> |
|||
<if test="writeMan != null">write_man,</if> |
|||
<if test="GongCha != null">GongCha,</if> |
|||
<if test="factoryMouldNo != null">Factory_Mould_no,</if> |
|||
<if test="mainMaterial != null">Main_Material,</if> |
|||
<if test="gongchaMore != null">gongcha_more,</if> |
|||
<if test="gongchaSmall != null">gongcha_small,</if> |
|||
<if test="changtime != null">changtime,</if> |
|||
<if test="cpNum != null">CP_NUM,</if> |
|||
<if test="worklineclass != null">worklineclass,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="bcpCode != null">#{bcpCode},</if> |
|||
<if test="bcpName != null">#{bcpName},</if> |
|||
<if test="bcpType != null">#{bcpType},</if> |
|||
<if test="bcpMachineNo != null">#{bcpMachineNo},</if> |
|||
<if test="bcpDw != null">#{bcpDw},</if> |
|||
<if test="wlCode != null">#{wlCode},</if> |
|||
<if test="Itemname != null">#{Itemname},</if> |
|||
<if test="Itemstandard != null">#{Itemstandard},</if> |
|||
<if test="stockDw != null">#{stockDw},</if> |
|||
<if test="useNum != null">#{useNum},</if> |
|||
<if test="lostpre != null">#{lostpre},</if> |
|||
<if test="zpGuige != null">#{zpGuige},</if> |
|||
<if test="zpUseNum != null">#{zpUseNum},</if> |
|||
<if test="mQty != null">#{mQty},</if> |
|||
<if test="memolist != null">#{memolist},</if> |
|||
<if test="pno != null">#{pno},</if> |
|||
<if test="Addtime != null">#{Addtime},</if> |
|||
<if test="mouldNo != null">#{mouldNo},</if> |
|||
<if test="comfirmFlag != null">#{comfirmFlag},</if> |
|||
<if test="comfirmMan != null">#{comfirmMan},</if> |
|||
<if test="comfirmDate != null">#{comfirmDate},</if> |
|||
<if test="writeMan != null">#{writeMan},</if> |
|||
<if test="GongCha != null">#{GongCha},</if> |
|||
<if test="factoryMouldNo != null">#{factoryMouldNo},</if> |
|||
<if test="mainMaterial != null">#{mainMaterial},</if> |
|||
<if test="gongchaMore != null">#{gongchaMore},</if> |
|||
<if test="gongchaSmall != null">#{gongchaSmall},</if> |
|||
<if test="changtime != null">#{changtime},</if> |
|||
<if test="cpNum != null">#{cpNum},</if> |
|||
<if test="worklineclass != null">#{worklineclass},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateBcpBom" parameterType="BcpBom"> |
|||
update bcp_bom |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="bcpName != null">BCP_NAME = #{bcpName},</if> |
|||
<if test="bcpType != null">BCP_TYPE = #{bcpType},</if> |
|||
<if test="bcpMachineNo != null">BCP_Machine_NO = #{bcpMachineNo},</if> |
|||
<if test="bcpDw != null">BCP_DW = #{bcpDw},</if> |
|||
<if test="wlCode != null">Wl_Code = #{wlCode},</if> |
|||
<if test="Itemname != null">Itemname = #{Itemname},</if> |
|||
<if test="Itemstandard != null">Itemstandard = #{Itemstandard},</if> |
|||
<if test="stockDw != null">Stock_dw = #{stockDw},</if> |
|||
<if test="useNum != null">Use_Num = #{useNum},</if> |
|||
<if test="lostpre != null">lostpre = #{lostpre},</if> |
|||
<if test="zpGuige != null">zp_guige = #{zpGuige},</if> |
|||
<if test="zpUseNum != null">zp_use_num = #{zpUseNum},</if> |
|||
<if test="mQty != null">m_qty = #{mQty},</if> |
|||
<if test="memolist != null">memolist = #{memolist},</if> |
|||
<if test="pno != null">pno = #{pno},</if> |
|||
<if test="Addtime != null">Addtime = #{Addtime},</if> |
|||
<if test="mouldNo != null">Mould_No = #{mouldNo},</if> |
|||
<if test="comfirmFlag != null">Comfirm_Flag = #{comfirmFlag},</if> |
|||
<if test="comfirmMan != null">Comfirm_man = #{comfirmMan},</if> |
|||
<if test="comfirmDate != null">Comfirm_date = #{comfirmDate},</if> |
|||
<if test="writeMan != null">write_man = #{writeMan},</if> |
|||
<if test="GongCha != null">GongCha = #{GongCha},</if> |
|||
<if test="factoryMouldNo != null">Factory_Mould_no = #{factoryMouldNo},</if> |
|||
<if test="mainMaterial != null">Main_Material = #{mainMaterial},</if> |
|||
<if test="gongchaMore != null">gongcha_more = #{gongchaMore},</if> |
|||
<if test="gongchaSmall != null">gongcha_small = #{gongchaSmall},</if> |
|||
<if test="changtime != null">changtime = #{changtime},</if> |
|||
<if test="cpNum != null">CP_NUM = #{cpNum},</if> |
|||
<if test="worklineclass != null">worklineclass = #{worklineclass},</if> |
|||
</trim> |
|||
where BCP_CODE = #{bcpCode} |
|||
</update> |
|||
|
|||
<delete id="deleteBcpBomById" parameterType="String"> |
|||
delete from bcp_bom where BCP_CODE = #{bcpCode} |
|||
</delete> |
|||
|
|||
<delete id="deleteBcpBomByIds" parameterType="String"> |
|||
delete from bcp_bom where BCP_CODE in |
|||
<foreach item="bcpCode" collection="array" open="(" separator="," close=")"> |
|||
#{bcpCode} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
@ -1,237 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('新增半成品bom')" /> |
|||
<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-bcpbom-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">半成品代码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="bcpCode" 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="bcpName" 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="bcpType" 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="bcpMachineNo" 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="bcpDw" 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="wlCode" 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="Itemname" 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="Itemstandard" 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="stockDw" 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="useNum" 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="lostpre" 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="zpGuige" 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="zpUseNum" 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="mQty" 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="memolist" class="form-control"></textarea> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="pno" 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="Addtime" 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="mouldNo" 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="comfirmFlag" 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="comfirmMan" 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="comfirmDate" 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="writeMan" 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="GongCha" 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="factoryMouldNo" 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="mainMaterial" 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="gongchaMore" 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="gongchaSmall" 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="changtime" 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="cpNum" 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="worklineclass" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "ck/bcpbom" |
|||
$("#form-bcpbom-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-bcpbom-add').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='Addtime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='comfirmDate']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='changtime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,186 +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('半成品bom列表')" /> |
|||
</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="bcpCode"/> |
|||
</li> |
|||
<li> |
|||
<label>名称:</label> |
|||
<input type="text" name="bcpName"/> |
|||
</li> |
|||
<li> |
|||
<label>规格型号:</label> |
|||
<input type="text" name="bcpType"/> |
|||
</li> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="bcpMachineNo"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>单位:</label>--> |
|||
<!-- <input type="text" name="bcpDw"/>--> |
|||
<!-- </li>--> |
|||
|
|||
|
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="zpGuige"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="zpUseNum"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="mQty"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="pno"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" class="time-input" placeholder="请选择" name="Addtime"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="mouldNo"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="comfirmFlag"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="comfirmMan"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" class="time-input" placeholder="请选择" name="comfirmDate"/>--> |
|||
<!-- </li>--> |
|||
<li> |
|||
<label>确认人:</label> |
|||
<input type="text" name="writeMan"/> |
|||
</li> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="GongCha"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="factoryMouldNo"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="mainMaterial"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="gongchaMore"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="gongchaSmall"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" class="time-input" placeholder="请选择" name="changtime"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="cpNum"/>--> |
|||
<!-- </li>--> |
|||
<!-- <li>--> |
|||
<!-- <label>:</label>--> |
|||
<!-- <input type="text" name="worklineclass"/>--> |
|||
</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="ck:bcpbom:add"> |
|||
<i class="fa fa-plus"></i> 添加 |
|||
</a> |
|||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="ck:bcpbom:edit"> |
|||
<i class="fa fa-edit"></i> 修改 |
|||
</a> |
|||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="ck:bcpbom:remove"> |
|||
<i class="fa fa-remove"></i> 删除 |
|||
</a> |
|||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="ck:bcpbom: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('ck:bcpbom:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('ck:bcpbom:remove')}]]; |
|||
var prefix = ctx + "ck/bcpbom"; |
|||
|
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "半成品bom", |
|||
columns: [ |
|||
{ |
|||
field: 'bcpCode', |
|||
title: '半成品代码' |
|||
}, |
|||
{ |
|||
field: 'bcpName', |
|||
title: '名称' |
|||
}, |
|||
{ |
|||
field: 'bcpType', |
|||
title: '规格型号' |
|||
}, |
|||
// { |
|||
// field: 'bcpMachineNo', |
|||
// title: '' |
|||
// }, |
|||
{ |
|||
field: 'bcpDw', |
|||
title: '单位' |
|||
}, |
|||
{ |
|||
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.bcpCode + '\')"><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.bcpCode + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|||
return actions.join(''); |
|||
} |
|||
}] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,334 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改半成品bom')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<div class="row"> |
|||
<div class="col-sm-12" th:object="${bcpBom}"> |
|||
<form> |
|||
<ul style="float: left;"> |
|||
|
|||
<li> |
|||
<label>成品代码:</label> |
|||
<input type="text" th:field="*{bcpCode}" name="cpCode"/> |
|||
</li> |
|||
<li> |
|||
<label>机种代码:</label> |
|||
<input type="text" th:field="*{bcpName}" name="cpMachineNo"/> |
|||
</li> |
|||
|
|||
</ul> |
|||
</form> |
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
|
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "ck/bcpbom"; |
|||
var editFlag = [[${@permission.hasPermi('ck:bom:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('ck:bom:remove')}]]; |
|||
|
|||
function queryParams(params) { |
|||
var search = $.table.queryParams(params); |
|||
search.bcpCode = $("input[name='bcpCode']").val(); |
|||
return search; |
|||
} |
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/bcpyllist", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{cpCode}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "半成品物料清单", |
|||
pageSize: '10', |
|||
contentType: "application/x-www-form-urlencoded; charset=UTF-8", |
|||
sidePagination: 'server',//设置为服务器端分页 |
|||
queryParamsType: "", |
|||
|
|||
queryParams :queryParams, |
|||
|
|||
columns: [ |
|||
{ |
|||
field: 'wlCode', |
|||
title: '原料编号' |
|||
}, |
|||
// { |
|||
// field: 'bcpCode', |
|||
// title: '成品代码', |
|||
// visible: false |
|||
// |
|||
// }, |
|||
// { |
|||
// field: 'bcpName', |
|||
// title: '成品名称', |
|||
// visible: false |
|||
// |
|||
// }, |
|||
{ |
|||
field: 'bcpType', |
|||
title: '规格型号', |
|||
visible: false |
|||
|
|||
}, |
|||
// { |
|||
// field: 'bcpMachineNo', |
|||
// title: '客户料号' |
|||
// }, |
|||
{ |
|||
field: 'cpDw', |
|||
title: '单位', |
|||
visible: false |
|||
}, |
|||
|
|||
{ |
|||
field: 'itemname', |
|||
title: '名称' |
|||
}, |
|||
{ |
|||
field: 'itemstandard', |
|||
title: '规格型号' |
|||
|
|||
}, |
|||
{ |
|||
field: 'stockDw', |
|||
title: '单位' |
|||
}, |
|||
{ |
|||
field: 'useNum', |
|||
title: '原辅料使用量' |
|||
}, |
|||
// { |
|||
// field: 'lostpre', |
|||
// title: '损耗' |
|||
// }, |
|||
{ |
|||
field: 'zpGuige', |
|||
title: '厂商l料号' |
|||
}, |
|||
{ |
|||
field: 'zpUseNum', |
|||
title: '成品数量', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'mQty', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'memolist', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'nowversion', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'begindate', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'endtime', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'wldm', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'customno', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'sendflag', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'yDWDH', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'zLDWDH', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'ylWeight', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'zongzhongWeight', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'pno', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'addtime', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'fuWidth', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'yflItemclass', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'mouldNo', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'standNowversion', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'comfirmFlag', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'comfirmMan', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'comfirmDate', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'writeMan', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'GongCha', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'factoryMouldNo', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'mainMaterial', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'limitFlag', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'gongchaMore', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'gongchaSmall', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'changtime', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'cpNum', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'worklineclass', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
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="edit(\'' + row.versionNo + '\',\'' + row.cpCode + '\')"><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.versionNo + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|||
return actions.join(''); |
|||
} |
|||
}] |
|||
}; |
|||
|
|||
$.table.init(options); |
|||
|
|||
}); |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
// $("#form-bcpbom-edit").validate({ |
|||
// focusCleanup: true |
|||
// }); |
|||
|
|||
// function submitHandler() { |
|||
// if ($.validate.form()) { |
|||
// $.operate.save(prefix + "/edit", $('#form-bcpbom-edit').serialize()); |
|||
// } |
|||
// } |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
// $("input[name='Addtime']").datetimepicker({ |
|||
// format: "yyyy-mm-dd", |
|||
// minView: "month", |
|||
// autoclose: true |
|||
// }); |
|||
// |
|||
// $("input[name='comfirmDate']").datetimepicker({ |
|||
// format: "yyyy-mm-dd", |
|||
// minView: "month", |
|||
// autoclose: true |
|||
// }); |
|||
// |
|||
// $("input[name='changtime']").datetimepicker({ |
|||
// format: "yyyy-mm-dd", |
|||
// minView: "month", |
|||
// autoclose: true |
|||
// }); |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue