liuxiaoxu
1 month ago
9 changed files with 0 additions and 1573 deletions
@ -1,132 +0,0 @@ |
|||||
package com.ruoyi.po.controller; |
|
||||
|
|
||||
import com.ruoyi.ck.utils.Result; |
|
||||
import com.ruoyi.common.annotation.Log; |
|
||||
import com.ruoyi.common.core.controller.BaseController; |
|
||||
import com.ruoyi.common.core.domain.AjaxResult; |
|
||||
import com.ruoyi.common.core.page.TableDataInfo; |
|
||||
import com.ruoyi.common.enums.BusinessType; |
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil; |
|
||||
import com.ruoyi.po.domain.BuyorderList; |
|
||||
import com.ruoyi.po.service.IBuyorderListService; |
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.stereotype.Controller; |
|
||||
import org.springframework.ui.ModelMap; |
|
||||
import org.springframework.web.bind.annotation.*; |
|
||||
|
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* 订单列表Controller |
|
||||
* |
|
||||
* @author ruoyi |
|
||||
* @date 2021-10-07 |
|
||||
*/ |
|
||||
@Controller |
|
||||
@RequestMapping("/po/orderlist") |
|
||||
public class BuyorderListController extends BaseController |
|
||||
{ |
|
||||
private String prefix = "po/orderlist"; |
|
||||
|
|
||||
@Autowired |
|
||||
private IBuyorderListService buyorderListService; |
|
||||
|
|
||||
@RequiresPermissions("po:orderlist:view") |
|
||||
@GetMapping() |
|
||||
public String orderlist() |
|
||||
{ |
|
||||
return prefix + "/orderlist"; |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 查询订单列表列表 |
|
||||
*/ |
|
||||
@RequiresPermissions("po:orderlist:list") |
|
||||
@PostMapping("/list") |
|
||||
@ResponseBody |
|
||||
public TableDataInfo list(BuyorderList buyorderList) |
|
||||
{ |
|
||||
startPage(); |
|
||||
List<BuyorderList> list = buyorderListService.selectBuyorderListList(buyorderList); |
|
||||
System.out.println("111111111111111"+list); |
|
||||
return getDataTable(list); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 导出订单列表列表 |
|
||||
*/ |
|
||||
@RequiresPermissions("po:orderlist:export") |
|
||||
@Log(title = "订单列表", businessType = BusinessType.EXPORT) |
|
||||
@PostMapping("/export") |
|
||||
@ResponseBody |
|
||||
public AjaxResult export(BuyorderList buyorderList) |
|
||||
{ |
|
||||
List<BuyorderList> list = buyorderListService.selectBuyorderListList(buyorderList); |
|
||||
ExcelUtil<BuyorderList> util = new ExcelUtil<BuyorderList>(BuyorderList.class); |
|
||||
return util.exportExcel(list, "订单列表数据"); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 新增订单列表 |
|
||||
*/ |
|
||||
@GetMapping("/add") |
|
||||
public String add() |
|
||||
{ |
|
||||
return prefix + "/add"; |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 新增保存订单列表 |
|
||||
*/ |
|
||||
@RequiresPermissions("po:orderlist:add") |
|
||||
@Log(title = "订单列表", businessType = BusinessType.INSERT) |
|
||||
@PostMapping("/add") |
|
||||
@ResponseBody |
|
||||
public AjaxResult addSave(BuyorderList buyorderList) |
|
||||
{ |
|
||||
return toAjax(buyorderListService.insertBuyorderList(buyorderList)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 修改订单列表 |
|
||||
*/ |
|
||||
@GetMapping("/edit/{poId}") |
|
||||
public String edit(@PathVariable("poId") String poId, ModelMap mmap) |
|
||||
{ |
|
||||
BuyorderList buyorderList = buyorderListService.selectBuyorderListById(poId); |
|
||||
mmap.put("buyorderList", buyorderList); |
|
||||
return prefix + "/edit"; |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 修改保存订单列表 |
|
||||
*/ |
|
||||
@RequiresPermissions("po:orderlist:edit") |
|
||||
@Log(title = "订单列表", businessType = BusinessType.UPDATE) |
|
||||
@PostMapping("/edit") |
|
||||
@ResponseBody |
|
||||
public AjaxResult editSave(BuyorderList buyorderList) |
|
||||
{ |
|
||||
return toAjax(buyorderListService.updateBuyorderList(buyorderList)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 删除订单列表 |
|
||||
*/ |
|
||||
@RequiresPermissions("po:orderlist:remove") |
|
||||
@Log(title = "订单列表", businessType = BusinessType.DELETE) |
|
||||
@PostMapping( "/remove") |
|
||||
@ResponseBody |
|
||||
public AjaxResult remove(String ids) |
|
||||
{ |
|
||||
return toAjax(buyorderListService.deleteBuyorderListByIds(ids)); |
|
||||
} |
|
||||
|
|
||||
@RequiresPermissions("po:orderlist:count") |
|
||||
@PostMapping("/count") |
|
||||
@ResponseBody |
|
||||
public Result findCountByDay() throws Exception { |
|
||||
return buyorderListService.findCountByDay(); |
|
||||
} |
|
||||
} |
|
@ -1,432 +0,0 @@ |
|||||
package com.ruoyi.po.domain; |
|
||||
|
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
|
||||
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; |
|
||||
|
|
||||
/** |
|
||||
* 订单列表对象 buyorder_list |
|
||||
* |
|
||||
* @author ruoyi |
|
||||
* @date 2021-10-07 |
|
||||
*/ |
|
||||
public class BuyorderList extends BaseEntity |
|
||||
{ |
|
||||
private static final long serialVersionUID = 1L; |
|
||||
|
|
||||
/** 订单id */ |
|
||||
private String poId; |
|
||||
|
|
||||
/** 公司名称 */ |
|
||||
private String PNO; |
|
||||
|
|
||||
/** 代码 */ |
|
||||
@Excel(name = "代码") |
|
||||
private String wlCode; |
|
||||
|
|
||||
/** 名称 */ |
|
||||
@Excel(name = "名称") |
|
||||
private String Itemname; |
|
||||
|
|
||||
/** 规格型号 */ |
|
||||
@Excel(name = "规格型号") |
|
||||
private String Itemstandard; |
|
||||
|
|
||||
/** 单位 */ |
|
||||
@Excel(name = "单位") |
|
||||
private String stockDw; |
|
||||
|
|
||||
/** 数量 */ |
|
||||
@Excel(name = "数量") |
|
||||
private BigDecimal Qty; |
|
||||
|
|
||||
/** 重量 */ |
|
||||
@Excel(name = "重量") |
|
||||
private BigDecimal Weight; |
|
||||
|
|
||||
/** 币别 */ |
|
||||
@Excel(name = "币别") |
|
||||
private String crlName; |
|
||||
|
|
||||
/** 单价 */ |
|
||||
@Excel(name = "单价") |
|
||||
private BigDecimal Price; |
|
||||
|
|
||||
/** 金额 */ |
|
||||
@Excel(name = "金额") |
|
||||
private BigDecimal Amt; |
|
||||
|
|
||||
/** 交期 */ |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
|
||||
@Excel(name = "交期", width = 30, dateFormat = "yyyy-MM-dd") |
|
||||
private Date SendDate; |
|
||||
|
|
||||
/** 说明 */ |
|
||||
@Excel(name = "说明") |
|
||||
private String MemoList; |
|
||||
|
|
||||
/** */ |
|
||||
private BigDecimal OrderQty; |
|
||||
|
|
||||
/** 欠单数量 */ |
|
||||
private BigDecimal qQty; |
|
||||
|
|
||||
/** 入库数量 */ |
|
||||
private Long poQty; |
|
||||
|
|
||||
/** 入库单位 */ |
|
||||
private String poDw; |
|
||||
|
|
||||
/** 入库单价 */ |
|
||||
private Long poPrice; |
|
||||
|
|
||||
/** */ |
|
||||
private Long poRelation; |
|
||||
|
|
||||
/** */ |
|
||||
private Date getDate; |
|
||||
|
|
||||
/** */ |
|
||||
private BigDecimal huili; |
|
||||
|
|
||||
/** 人民币价格 */ |
|
||||
private BigDecimal rmbPrice; |
|
||||
|
|
||||
/** */ |
|
||||
private String gysno; |
|
||||
|
|
||||
/** */ |
|
||||
private BigDecimal killQty; |
|
||||
|
|
||||
/** */ |
|
||||
private Integer jaFlag; |
|
||||
|
|
||||
/** */ |
|
||||
private String taxMemolist; |
|
||||
|
|
||||
/** */ |
|
||||
private Long juanNum; |
|
||||
|
|
||||
/** */ |
|
||||
private String pWldm; |
|
||||
|
|
||||
/** 未入库数量 */ |
|
||||
@Excel(name = "未入库数量") |
|
||||
private Long notSubmittedNum; |
|
||||
|
|
||||
/** 已入库数量 */ |
|
||||
@Excel(name = "已入库数量") |
|
||||
private Long submittedNum; |
|
||||
|
|
||||
public void setPoId(String poId) |
|
||||
{ |
|
||||
this.poId = poId; |
|
||||
} |
|
||||
|
|
||||
public String getPoId() |
|
||||
{ |
|
||||
return poId; |
|
||||
} |
|
||||
public void setPNO(String PNO) |
|
||||
{ |
|
||||
this.PNO = PNO; |
|
||||
} |
|
||||
|
|
||||
public String getPNO() |
|
||||
{ |
|
||||
return PNO; |
|
||||
} |
|
||||
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 setQty(BigDecimal Qty) |
|
||||
{ |
|
||||
this.Qty = Qty; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getQty() |
|
||||
{ |
|
||||
return Qty; |
|
||||
} |
|
||||
public void setWeight(BigDecimal Weight) |
|
||||
{ |
|
||||
this.Weight = Weight; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getWeight() |
|
||||
{ |
|
||||
return Weight; |
|
||||
} |
|
||||
public void setCrlName(String crlName) |
|
||||
{ |
|
||||
this.crlName = crlName; |
|
||||
} |
|
||||
|
|
||||
public String getCrlName() |
|
||||
{ |
|
||||
return crlName; |
|
||||
} |
|
||||
public void setPrice(BigDecimal Price) |
|
||||
{ |
|
||||
this.Price = Price; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getPrice() |
|
||||
{ |
|
||||
return Price; |
|
||||
} |
|
||||
public void setAmt(BigDecimal Amt) |
|
||||
{ |
|
||||
this.Amt = Amt; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getAmt() |
|
||||
{ |
|
||||
return Amt; |
|
||||
} |
|
||||
public void setSendDate(Date SendDate) |
|
||||
{ |
|
||||
this.SendDate = SendDate; |
|
||||
} |
|
||||
|
|
||||
public Date getSendDate() |
|
||||
{ |
|
||||
return SendDate; |
|
||||
} |
|
||||
public void setMemoList(String MemoList) |
|
||||
{ |
|
||||
this.MemoList = MemoList; |
|
||||
} |
|
||||
|
|
||||
public String getMemoList() |
|
||||
{ |
|
||||
return MemoList; |
|
||||
} |
|
||||
public void setOrderQty(BigDecimal OrderQty) |
|
||||
{ |
|
||||
this.OrderQty = OrderQty; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getOrderQty() |
|
||||
{ |
|
||||
return OrderQty; |
|
||||
} |
|
||||
public void setqQty(BigDecimal qQty) |
|
||||
{ |
|
||||
this.qQty = qQty; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getqQty() |
|
||||
{ |
|
||||
return qQty; |
|
||||
} |
|
||||
public void setPoQty(Long poQty) |
|
||||
{ |
|
||||
this.poQty = poQty; |
|
||||
} |
|
||||
|
|
||||
public Long getPoQty() |
|
||||
{ |
|
||||
return poQty; |
|
||||
} |
|
||||
public void setPoDw(String poDw) |
|
||||
{ |
|
||||
this.poDw = poDw; |
|
||||
} |
|
||||
|
|
||||
public String getPoDw() |
|
||||
{ |
|
||||
return poDw; |
|
||||
} |
|
||||
public void setPoPrice(Long poPrice) |
|
||||
{ |
|
||||
this.poPrice = poPrice; |
|
||||
} |
|
||||
|
|
||||
public Long getPoPrice() |
|
||||
{ |
|
||||
return poPrice; |
|
||||
} |
|
||||
public void setPoRelation(Long poRelation) |
|
||||
{ |
|
||||
this.poRelation = poRelation; |
|
||||
} |
|
||||
|
|
||||
public Long getPoRelation() |
|
||||
{ |
|
||||
return poRelation; |
|
||||
} |
|
||||
public void setGetDate(Date getDate) |
|
||||
{ |
|
||||
this.getDate = getDate; |
|
||||
} |
|
||||
|
|
||||
public Date getGetDate() |
|
||||
{ |
|
||||
return getDate; |
|
||||
} |
|
||||
public void setHuili(BigDecimal huili) |
|
||||
{ |
|
||||
this.huili = huili; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getHuili() |
|
||||
{ |
|
||||
return huili; |
|
||||
} |
|
||||
public void setRmbPrice(BigDecimal rmbPrice) |
|
||||
{ |
|
||||
this.rmbPrice = rmbPrice; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getRmbPrice() |
|
||||
{ |
|
||||
return rmbPrice; |
|
||||
} |
|
||||
public void setGysno(String gysno) |
|
||||
{ |
|
||||
this.gysno = gysno; |
|
||||
} |
|
||||
|
|
||||
public String getGysno() |
|
||||
{ |
|
||||
return gysno; |
|
||||
} |
|
||||
public void setKillQty(BigDecimal killQty) |
|
||||
{ |
|
||||
this.killQty = killQty; |
|
||||
} |
|
||||
|
|
||||
public BigDecimal getKillQty() |
|
||||
{ |
|
||||
return killQty; |
|
||||
} |
|
||||
public void setJaFlag(Integer jaFlag) |
|
||||
{ |
|
||||
this.jaFlag = jaFlag; |
|
||||
} |
|
||||
|
|
||||
public Integer getJaFlag() |
|
||||
{ |
|
||||
return jaFlag; |
|
||||
} |
|
||||
public void setTaxMemolist(String taxMemolist) |
|
||||
{ |
|
||||
this.taxMemolist = taxMemolist; |
|
||||
} |
|
||||
|
|
||||
public String getTaxMemolist() |
|
||||
{ |
|
||||
return taxMemolist; |
|
||||
} |
|
||||
public void setJuanNum(Long juanNum) |
|
||||
{ |
|
||||
this.juanNum = juanNum; |
|
||||
} |
|
||||
|
|
||||
public Long getJuanNum() |
|
||||
{ |
|
||||
return juanNum; |
|
||||
} |
|
||||
public void setpWldm(String pWldm) |
|
||||
{ |
|
||||
this.pWldm = pWldm; |
|
||||
} |
|
||||
|
|
||||
public String getpWldm() |
|
||||
{ |
|
||||
return pWldm; |
|
||||
} |
|
||||
public void setNotSubmittedNum(Long notSubmittedNum) |
|
||||
{ |
|
||||
this.notSubmittedNum = notSubmittedNum; |
|
||||
} |
|
||||
|
|
||||
public Long getNotSubmittedNum() |
|
||||
{ |
|
||||
return notSubmittedNum; |
|
||||
} |
|
||||
public void setSubmittedNum(Long submittedNum) |
|
||||
{ |
|
||||
this.submittedNum = submittedNum; |
|
||||
} |
|
||||
|
|
||||
public Long getSubmittedNum() |
|
||||
{ |
|
||||
return submittedNum; |
|
||||
} |
|
||||
|
|
||||
@Override |
|
||||
public String toString() { |
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
||||
.append("poId", getPoId()) |
|
||||
.append("PNO", getPNO()) |
|
||||
.append("wlCode", getWlCode()) |
|
||||
.append("Itemname", getItemname()) |
|
||||
.append("Itemstandard", getItemstandard()) |
|
||||
.append("stockDw", getStockDw()) |
|
||||
.append("Qty", getQty()) |
|
||||
.append("Weight", getWeight()) |
|
||||
.append("crlName", getCrlName()) |
|
||||
.append("Price", getPrice()) |
|
||||
.append("Amt", getAmt()) |
|
||||
.append("SendDate", getSendDate()) |
|
||||
.append("MemoList", getMemoList()) |
|
||||
.append("OrderQty", getOrderQty()) |
|
||||
.append("qQty", getqQty()) |
|
||||
.append("poQty", getPoQty()) |
|
||||
.append("poDw", getPoDw()) |
|
||||
.append("poPrice", getPoPrice()) |
|
||||
.append("poRelation", getPoRelation()) |
|
||||
.append("getDate", getGetDate()) |
|
||||
.append("huili", getHuili()) |
|
||||
.append("rmbPrice", getRmbPrice()) |
|
||||
.append("gysno", getGysno()) |
|
||||
.append("killQty", getKillQty()) |
|
||||
.append("jaFlag", getJaFlag()) |
|
||||
.append("taxMemolist", getTaxMemolist()) |
|
||||
.append("juanNum", getJuanNum()) |
|
||||
.append("pWldm", getpWldm()) |
|
||||
.append("notSubmittedNum", getNotSubmittedNum()) |
|
||||
.append("submittedNum", getSubmittedNum()) |
|
||||
.toString(); |
|
||||
} |
|
||||
} |
|
@ -1,64 +0,0 @@ |
|||||
package com.ruoyi.po.mapper; |
|
||||
|
|
||||
import com.ruoyi.po.domain.BuyorderList; |
|
||||
|
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* 订单列表Mapper接口 |
|
||||
* |
|
||||
* @author ruoyi |
|
||||
* @date 2021-10-07 |
|
||||
*/ |
|
||||
public interface BuyorderListMapper |
|
||||
{ |
|
||||
/** |
|
||||
* 查询订单列表 |
|
||||
* |
|
||||
* @param poId 订单列表ID |
|
||||
* @return 订单列表 |
|
||||
*/ |
|
||||
public BuyorderList selectBuyorderListById(String poId); |
|
||||
|
|
||||
/** |
|
||||
* 查询订单列表列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 订单列表集合 |
|
||||
*/ |
|
||||
public List<BuyorderList> selectBuyorderListList(BuyorderList buyorderList); |
|
||||
|
|
||||
/** |
|
||||
* 新增订单列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int insertBuyorderList(BuyorderList buyorderList); |
|
||||
|
|
||||
/** |
|
||||
* 修改订单列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int updateBuyorderList(BuyorderList buyorderList); |
|
||||
|
|
||||
/** |
|
||||
* 删除订单列表 |
|
||||
* |
|
||||
* @param poId 订单列表ID |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteBuyorderListById(String poId); |
|
||||
|
|
||||
/** |
|
||||
* 批量删除订单列表 |
|
||||
* |
|
||||
* @param poIds 需要删除的数据ID |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteBuyorderListByIds(String[] poIds); |
|
||||
|
|
||||
public Integer selectCountByDay(); |
|
||||
} |
|
@ -1,67 +0,0 @@ |
|||||
package com.ruoyi.po.service; |
|
||||
|
|
||||
import com.ruoyi.ck.utils.Result; |
|
||||
import com.ruoyi.po.domain.BuyorderList; |
|
||||
|
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* 订单列表Service接口 |
|
||||
* |
|
||||
* @author ruoyi |
|
||||
* @date 2021-10-07 |
|
||||
*/ |
|
||||
public interface IBuyorderListService |
|
||||
{ |
|
||||
/** |
|
||||
* 查询订单列表 |
|
||||
* |
|
||||
* @param poId 订单列表ID |
|
||||
* @return 订单列表 |
|
||||
*/ |
|
||||
public BuyorderList selectBuyorderListById(String poId); |
|
||||
|
|
||||
/** |
|
||||
* 查询订单列表列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 订单列表集合 |
|
||||
*/ |
|
||||
public List<BuyorderList> selectBuyorderListList(BuyorderList buyorderList); |
|
||||
|
|
||||
/** |
|
||||
* 新增订单列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int insertBuyorderList(BuyorderList buyorderList); |
|
||||
|
|
||||
/** |
|
||||
* 修改订单列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int updateBuyorderList(BuyorderList buyorderList); |
|
||||
|
|
||||
/** |
|
||||
* 批量删除订单列表 |
|
||||
* |
|
||||
* @param ids 需要删除的数据ID |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteBuyorderListByIds(String ids); |
|
||||
|
|
||||
/** |
|
||||
* 删除订单列表信息 |
|
||||
* |
|
||||
* @param poId 订单列表ID |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
public int deleteBuyorderListById(String poId); |
|
||||
|
|
||||
public Result findCountByDay()throws Exception; |
|
||||
|
|
||||
|
|
||||
} |
|
@ -1,107 +0,0 @@ |
|||||
package com.ruoyi.po.service.impl; |
|
||||
|
|
||||
import com.ruoyi.ck.utils.Result; |
|
||||
import com.ruoyi.common.core.text.Convert; |
|
||||
import com.ruoyi.po.domain.BuyorderList; |
|
||||
import com.ruoyi.po.mapper.BuyorderListMapper; |
|
||||
import com.ruoyi.po.service.IBuyorderListService; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.stereotype.Service; |
|
||||
|
|
||||
import java.time.LocalDate; |
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* 订单列表Service业务层处理 |
|
||||
* |
|
||||
* @author ruoyi |
|
||||
* @date 2021-10-07 |
|
||||
*/ |
|
||||
@Service |
|
||||
public class BuyorderListServiceImpl implements IBuyorderListService |
|
||||
{ |
|
||||
@Autowired |
|
||||
private BuyorderListMapper buyorderListMapper; |
|
||||
|
|
||||
/** |
|
||||
* 查询订单列表 |
|
||||
* |
|
||||
* @param poId 订单列表ID |
|
||||
* @return 订单列表 |
|
||||
*/ |
|
||||
@Override |
|
||||
public BuyorderList selectBuyorderListById(String poId) |
|
||||
{ |
|
||||
return buyorderListMapper.selectBuyorderListById(poId); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 查询订单列表列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 订单列表 |
|
||||
*/ |
|
||||
@Override |
|
||||
public List<BuyorderList> selectBuyorderListList(BuyorderList buyorderList) |
|
||||
{ |
|
||||
return buyorderListMapper.selectBuyorderListList(buyorderList); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 新增订单列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int insertBuyorderList(BuyorderList buyorderList) |
|
||||
{ |
|
||||
return buyorderListMapper.insertBuyorderList(buyorderList); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 修改订单列表 |
|
||||
* |
|
||||
* @param buyorderList 订单列表 |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int updateBuyorderList(BuyorderList buyorderList) |
|
||||
{ |
|
||||
return buyorderListMapper.updateBuyorderList(buyorderList); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 删除订单列表对象 |
|
||||
* |
|
||||
* @param ids 需要删除的数据ID |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int deleteBuyorderListByIds(String ids) |
|
||||
{ |
|
||||
return buyorderListMapper.deleteBuyorderListByIds(Convert.toStrArray(ids)); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* 删除订单列表信息 |
|
||||
* |
|
||||
* @param poId 订单列表ID |
|
||||
* @return 结果 |
|
||||
*/ |
|
||||
@Override |
|
||||
public int deleteBuyorderListById(String poId) |
|
||||
{ |
|
||||
return buyorderListMapper.deleteBuyorderListById(poId); |
|
||||
} |
|
||||
|
|
||||
@Override |
|
||||
public Result findCountByDay() throws Exception { |
|
||||
Integer count = buyorderListMapper.selectCountByDay()+1; |
|
||||
LocalDate now = LocalDate.now(); |
|
||||
String substring = now.toString().replace("-", "").substring(2); |
|
||||
String data="PO"+substring+count; |
|
||||
//System.out.println("........."+data);
|
|
||||
return Result.getSuccessResult(data); |
|
||||
} |
|
||||
} |
|
@ -1,179 +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.po.mapper.BuyorderListMapper"> |
|
||||
|
|
||||
<resultMap type="BuyorderList" id="BuyorderListResult"> |
|
||||
<result property="poId" column="PO_ID" /> |
|
||||
<result property="PNO" column="PNO" /> |
|
||||
<result property="wlCode" column="Wl_Code" /> |
|
||||
<result property="Itemname" column="Itemname" /> |
|
||||
<result property="Itemstandard" column="Itemstandard" /> |
|
||||
<result property="stockDw" column="Stock_dw" /> |
|
||||
<result property="Qty" column="Qty" /> |
|
||||
<result property="Weight" column="Weight" /> |
|
||||
<result property="crlName" column="Crl_Name" /> |
|
||||
<result property="Price" column="Price" /> |
|
||||
<result property="Amt" column="Amt" /> |
|
||||
<result property="SendDate" column="SendDate" /> |
|
||||
<result property="MemoList" column="MemoList" /> |
|
||||
<result property="OrderQty" column="OrderQty" /> |
|
||||
<result property="qQty" column="Q_Qty" /> |
|
||||
<result property="poQty" column="PO_qty" /> |
|
||||
<result property="poDw" column="po_dw" /> |
|
||||
<result property="poPrice" column="po_price" /> |
|
||||
<result property="poRelation" column="po_relation" /> |
|
||||
<result property="getDate" column="get_date" /> |
|
||||
<result property="huili" column="huili" /> |
|
||||
<result property="rmbPrice" column="RMB_Price" /> |
|
||||
<result property="gysno" column="gysno" /> |
|
||||
<result property="killQty" column="Kill_QTY" /> |
|
||||
<result property="jaFlag" column="JA_Flag" /> |
|
||||
<result property="taxMemolist" column="tax_memolist" /> |
|
||||
<result property="juanNum" column="juan_num" /> |
|
||||
<result property="pWldm" column="p_wldm" /> |
|
||||
<result property="notSubmittedNum" column="not_submitted_num" /> |
|
||||
<result property="submittedNum" column="submitted_num" /> |
|
||||
</resultMap> |
|
||||
|
|
||||
<sql id="selectBuyorderListVo"> |
|
||||
select PO_ID, PNO, Wl_Code, Itemname, Itemstandard, Stock_dw, Qty, Weight, Crl_Name, Price, Amt, SendDate, MemoList, OrderQty, Q_Qty, PO_qty, po_dw, po_price, po_relation, get_date, huili, RMB_Price, gysno, Kill_QTY, JA_Flag, tax_memolist, juan_num, p_wldm, not_submitted_num, submitted_num from buyorder_list |
|
||||
</sql> |
|
||||
|
|
||||
<select id="selectBuyorderListList" parameterType="BuyorderList" resultMap="BuyorderListResult"> |
|
||||
<include refid="selectBuyorderListVo"/> |
|
||||
<where> |
|
||||
<if test="poId != null and poId != ''"> and PO_ID like concat('%', #{poId}, '%')</if> |
|
||||
<if test="PNO != null and PNO != ''"> and PNO like concat('%', #{PNO}, '%')</if> |
|
||||
<if test="wlCode != null and wlCode != ''"> and Wl_Code like concat('%', #{wlCode}, '%')</if> |
|
||||
<if test="MemoList != null and MemoList != ''"> and MemoList like concat('%', #{MemoList}, '%')</if> |
|
||||
</where> |
|
||||
order by SendDate desc |
|
||||
</select> |
|
||||
|
|
||||
<select id="selectBuyorderListById" parameterType="String" resultMap="BuyorderListResult"> |
|
||||
<include refid="selectBuyorderListVo"/> |
|
||||
where PO_ID = #{poId} |
|
||||
</select> |
|
||||
|
|
||||
<insert id="insertBuyorderList" parameterType="BuyorderList"> |
|
||||
insert into buyorder_list |
|
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
||||
<if test="poId != null and poId != ''">PO_ID,</if> |
|
||||
<if test="PNO != null">PNO,</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="Qty != null">Qty,</if> |
|
||||
<if test="Weight != null">Weight,</if> |
|
||||
<if test="crlName != null">Crl_Name,</if> |
|
||||
<if test="Price != null">Price,</if> |
|
||||
<if test="Amt != null">Amt,</if> |
|
||||
<if test="SendDate != null">SendDate,</if> |
|
||||
<if test="MemoList != null">MemoList,</if> |
|
||||
<if test="OrderQty != null">OrderQty,</if> |
|
||||
<if test="qQty != null">Q_Qty,</if> |
|
||||
<if test="poQty != null">PO_qty,</if> |
|
||||
<if test="poDw != null">po_dw,</if> |
|
||||
<if test="poPrice != null">po_price,</if> |
|
||||
<if test="poRelation != null">po_relation,</if> |
|
||||
<if test="getDate != null">get_date,</if> |
|
||||
<if test="huili != null">huili,</if> |
|
||||
<if test="rmbPrice != null">RMB_Price,</if> |
|
||||
<if test="gysno != null">gysno,</if> |
|
||||
<if test="killQty != null">Kill_QTY,</if> |
|
||||
<if test="jaFlag != null">JA_Flag,</if> |
|
||||
<if test="taxMemolist != null">tax_memolist,</if> |
|
||||
<if test="juanNum != null">juan_num,</if> |
|
||||
<if test="pWldm != null">p_wldm,</if> |
|
||||
<if test="notSubmittedNum != null">not_submitted_num,</if> |
|
||||
<if test="submittedNum != null">submitted_num,</if> |
|
||||
</trim> |
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
||||
<if test="poId != null and poId != ''">#{poId},</if> |
|
||||
<if test="PNO != null">#{PNO},</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="Qty != null">#{Qty},</if> |
|
||||
<if test="Weight != null">#{Weight},</if> |
|
||||
<if test="crlName != null">#{crlName},</if> |
|
||||
<if test="Price != null">#{Price},</if> |
|
||||
<if test="Amt != null">#{Amt},</if> |
|
||||
<if test="SendDate != null">#{SendDate},</if> |
|
||||
<if test="MemoList != null">#{MemoList},</if> |
|
||||
<if test="OrderQty != null">#{OrderQty},</if> |
|
||||
<if test="qQty != null">#{qQty},</if> |
|
||||
<if test="poQty != null">#{poQty},</if> |
|
||||
<if test="poDw != null">#{poDw},</if> |
|
||||
<if test="poPrice != null">#{poPrice},</if> |
|
||||
<if test="poRelation != null">#{poRelation},</if> |
|
||||
<if test="getDate != null">#{getDate},</if> |
|
||||
<if test="huili != null">#{huili},</if> |
|
||||
<if test="rmbPrice != null">#{rmbPrice},</if> |
|
||||
<if test="gysno != null">#{gysno},</if> |
|
||||
<if test="killQty != null">#{killQty},</if> |
|
||||
<if test="jaFlag != null">#{jaFlag},</if> |
|
||||
<if test="taxMemolist != null">#{taxMemolist},</if> |
|
||||
<if test="juanNum != null">#{juanNum},</if> |
|
||||
<if test="pWldm != null">#{pWldm},</if> |
|
||||
<if test="notSubmittedNum != null">#{notSubmittedNum},</if> |
|
||||
<if test="submittedNum != null">#{submittedNum},</if> |
|
||||
</trim> |
|
||||
</insert> |
|
||||
|
|
||||
<update id="updateBuyorderList" parameterType="BuyorderList"> |
|
||||
update buyorder_list |
|
||||
<trim prefix="SET" suffixOverrides=","> |
|
||||
<if test="PNO != null">PNO = #{PNO},</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="Qty != null">Qty = #{Qty},</if> |
|
||||
<if test="Weight != null">Weight = #{Weight},</if> |
|
||||
<if test="crlName != null">Crl_Name = #{crlName},</if> |
|
||||
<if test="Price != null">Price = #{Price},</if> |
|
||||
<if test="Amt != null">Amt = #{Amt},</if> |
|
||||
<if test="SendDate != null">SendDate = #{SendDate},</if> |
|
||||
<if test="MemoList != null">MemoList = #{MemoList},</if> |
|
||||
<if test="OrderQty != null">OrderQty = #{OrderQty},</if> |
|
||||
<if test="qQty != null">Q_Qty = #{qQty},</if> |
|
||||
<if test="poQty != null">PO_qty = #{poQty},</if> |
|
||||
<if test="poDw != null">po_dw = #{poDw},</if> |
|
||||
<if test="poPrice != null">po_price = #{poPrice},</if> |
|
||||
<if test="poRelation != null">po_relation = #{poRelation},</if> |
|
||||
<if test="getDate != null">get_date = #{getDate},</if> |
|
||||
<if test="huili != null">huili = #{huili},</if> |
|
||||
<if test="rmbPrice != null">RMB_Price = #{rmbPrice},</if> |
|
||||
<if test="gysno != null">gysno = #{gysno},</if> |
|
||||
<if test="killQty != null">Kill_QTY = #{killQty},</if> |
|
||||
<if test="jaFlag != null">JA_Flag = #{jaFlag},</if> |
|
||||
<if test="taxMemolist != null">tax_memolist = #{taxMemolist},</if> |
|
||||
<if test="juanNum != null">juan_num = #{juanNum},</if> |
|
||||
<if test="pWldm != null">p_wldm = #{pWldm},</if> |
|
||||
<if test="notSubmittedNum != null">not_submitted_num = #{notSubmittedNum},</if> |
|
||||
<if test="submittedNum != null">submitted_num = #{submittedNum},</if> |
|
||||
</trim> |
|
||||
where PO_ID = #{poId} |
|
||||
</update> |
|
||||
|
|
||||
<delete id="deleteBuyorderListById" parameterType="String"> |
|
||||
delete from buyorder_list where PO_ID = #{poId} |
|
||||
</delete> |
|
||||
|
|
||||
<delete id="deleteBuyorderListByIds" parameterType="String"> |
|
||||
delete from buyorder_list where PO_ID in |
|
||||
<foreach item="poId" collection="array" open="(" separator="," close=")"> |
|
||||
#{poId} |
|
||||
</foreach> |
|
||||
</delete> |
|
||||
|
|
||||
<select id="selectCountByDay" resultType="Integer"> |
|
||||
select count(*) from buyorder_list where to_days(SendDate) = to_days(now()); |
|
||||
</select> |
|
||||
|
|
||||
</mapper> |
|
@ -1,225 +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-orderlist-add"> |
|
||||
<div class="form-group"> |
|
||||
<label class="col-sm-3 control-label is-required">订单id:</label> |
|
||||
<div class="col-sm-8"> |
|
||||
<input name="poId" class="form-control" type="text" required> |
|
||||
</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"> |
|
||||
<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="Qty" 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="Weight" 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="crlName" 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="Price" 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="Amt" 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="SendDate" 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="MemoList" 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="OrderQty" 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="qQty" 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="poQty" 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="poDw" 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="poPrice" 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="poRelation" 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="getDate" 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="huili" 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="rmbPrice" 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="gysno" 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="killQty" 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="jaFlag" 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="taxMemolist" 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="juanNum" 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="pWldm" 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="notSubmittedNum" 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="submittedNum" 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 + "po/orderlist" |
|
||||
$("#form-orderlist-add").validate({ |
|
||||
focusCleanup: true |
|
||||
}); |
|
||||
|
|
||||
function submitHandler() { |
|
||||
if ($.validate.form()) { |
|
||||
$.operate.save(prefix + "/add", $('#form-orderlist-add').serialize()); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
$("input[name='SendDate']").datetimepicker({ |
|
||||
format: "yyyy-mm-dd", |
|
||||
minView: "month", |
|
||||
autoclose: true |
|
||||
}); |
|
||||
|
|
||||
$("input[name='getDate']").datetimepicker({ |
|
||||
format: "yyyy-mm-dd", |
|
||||
minView: "month", |
|
||||
autoclose: true |
|
||||
}); |
|
||||
</script> |
|
||||
</body> |
|
||||
</html> |
|
@ -1,226 +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-orderlist-edit" th:object="${buyorderList}"> |
|
||||
<input name="poId" th:field="*{poId}" type="hidden"> |
|
||||
<div class="form-group"> |
|
||||
<label class="col-sm-3 control-label is-required">订单id:</label> |
|
||||
<div class="col-sm-8"> |
|
||||
<input name="poId" th:field="*{poId}" class="form-control" type="text" required> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="form-group"> |
|
||||
<label class="col-sm-3 control-label">公司名称:</label> |
|
||||
<div class="col-sm-8"> |
|
||||
<input name="PNO" th:field="*{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"> |
|
||||
<input name="wlCode" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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="Qty" th:field="*{Qty}" 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="Weight" th:field="*{Weight}" 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="crlName" th:field="*{crlName}" 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="Price" th:field="*{Price}" 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="Amt" th:field="*{Amt}" 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="SendDate" th:value="${#dates.format(buyorderList.SendDate, '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="MemoList" th:field="*{MemoList}" 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="OrderQty" th:field="*{OrderQty}" 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="qQty" th:field="*{qQty}" 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="poQty" th:field="*{poQty}" 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="poDw" th:field="*{poDw}" 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="poPrice" th:field="*{poPrice}" 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="poRelation" th:field="*{poRelation}" 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="getDate" th:value="${#dates.format(buyorderList.getDate, '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="huili" th:field="*{huili}" 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="rmbPrice" th:field="*{rmbPrice}" 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="gysno" th:field="*{gysno}" 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="killQty" th:field="*{killQty}" 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="jaFlag" th:field="*{jaFlag}" 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="taxMemolist" th:field="*{taxMemolist}" 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="juanNum" th:field="*{juanNum}" 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="pWldm" th:field="*{pWldm}" 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="notSubmittedNum" th:field="*{notSubmittedNum}" 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="submittedNum" th:field="*{submittedNum}" 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 + "po/orderlist"; |
|
||||
$("#form-orderlist-edit").validate({ |
|
||||
focusCleanup: true |
|
||||
}); |
|
||||
|
|
||||
function submitHandler() { |
|
||||
if ($.validate.form()) { |
|
||||
$.operate.save(prefix + "/edit", $('#form-orderlist-edit').serialize()); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
$("input[name='SendDate']").datetimepicker({ |
|
||||
format: "yyyy-mm-dd", |
|
||||
minView: "month", |
|
||||
autoclose: true |
|
||||
}); |
|
||||
|
|
||||
$("input[name='getDate']").datetimepicker({ |
|
||||
format: "yyyy-mm-dd", |
|
||||
minView: "month", |
|
||||
autoclose: true |
|
||||
}); |
|
||||
</script> |
|
||||
</body> |
|
||||
</html> |
|
@ -1,141 +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="poId"/> |
|
||||
</li> |
|
||||
<li> |
|
||||
<label>公司名称:</label> |
|
||||
<input type="text" name="PNO"/> |
|
||||
</li> |
|
||||
<li> |
|
||||
<label>代码:</label> |
|
||||
<input type="text" name="wlCode"/> |
|
||||
</li> |
|
||||
<li> |
|
||||
<label>说明:</label> |
|
||||
<input type="text" name="MemoList"/> |
|
||||
</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="po:orderlist:add"> |
|
||||
<i class="fa fa-plus"></i> 添加 |
|
||||
</a> |
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="po:orderlist:edit"> |
|
||||
<i class="fa fa-edit"></i> 修改 |
|
||||
</a> |
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="po:orderlist:remove"> |
|
||||
<i class="fa fa-remove"></i> 删除 |
|
||||
</a> |
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="po:orderlist: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('po:orderlist:edit')}]]; |
|
||||
var removeFlag = [[${@permission.hasPermi('po:orderlist:remove')}]]; |
|
||||
var prefix = ctx + "po/orderlist"; |
|
||||
|
|
||||
$(function() { |
|
||||
var options = { |
|
||||
url: prefix + "/list", |
|
||||
createUrl: prefix + "/add", |
|
||||
updateUrl: prefix + "/edit/{id}", |
|
||||
removeUrl: prefix + "/remove", |
|
||||
exportUrl: prefix + "/export", |
|
||||
modalName: "订单列表", |
|
||||
columns: [{ |
|
||||
checkbox: true |
|
||||
}, |
|
||||
{ |
|
||||
field: 'wlCode', |
|
||||
title: '代码' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'itemname', |
|
||||
title: '名称' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'itemstandard', |
|
||||
title: '规格型号' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'stockDw', |
|
||||
title: '单位' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'qty', |
|
||||
title: '数量' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'weight', |
|
||||
title: '重量' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'crlName', |
|
||||
title: '币别' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'price', |
|
||||
title: '单价' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'amt', |
|
||||
title: '金额' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'sendDate', |
|
||||
title: '交期' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'memoList', |
|
||||
title: '说明' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'notSubmittedNum', |
|
||||
title: '未入库数量' |
|
||||
}, |
|
||||
{ |
|
||||
field: 'submittedNum', |
|
||||
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.poId + '\')"><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.poId + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|
||||
return actions.join(''); |
|
||||
} |
|
||||
}] |
|
||||
}; |
|
||||
$.table.init(options); |
|
||||
}); |
|
||||
</script> |
|
||||
</body> |
|
||||
</html> |
|
Loading…
Reference in new issue