Browse Source

[delete]

删除旧版无用的采购入库通知查询对象warehousing_purchase_notice和系统中对应的前端所有代码和后端所有代码 和对应的系统菜单数据
dev
liuxiaoxu 4 months ago
parent
commit
4964f8cdcc
  1. 196
      ruoyi-admin/src/main/java/com/ruoyi/stock/controller/WarehousingPurchaseNoticeController.java
  2. 293
      ruoyi-admin/src/main/java/com/ruoyi/stock/domain/WarehousingPurchaseNotice.java
  3. 61
      ruoyi-admin/src/main/java/com/ruoyi/stock/mapper/WarehousingPurchaseNoticeMapper.java
  4. 61
      ruoyi-admin/src/main/java/com/ruoyi/stock/service/IWarehousingPurchaseNoticeService.java
  5. 94
      ruoyi-admin/src/main/java/com/ruoyi/stock/service/impl/WarehousingPurchaseNoticeServiceImpl.java
  6. 145
      ruoyi-admin/src/main/resources/mapper/stock/WarehousingPurchaseNoticeMapper.xml
  7. 909
      ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/add.html
  8. 138
      ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/add_bak.html
  9. 141
      ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/adddetail.html
  10. 155
      ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/detail.html
  11. 160
      ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/edit.html
  12. 232
      ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/warehousingPucharseNotice.html

196
ruoyi-admin/src/main/java/com/ruoyi/stock/controller/WarehousingPurchaseNoticeController.java

@ -1,196 +0,0 @@
package com.ruoyi.stock.controller;
import com.ruoyi.buyorderHead.domain.BuyorderHead;
import com.ruoyi.buyorderHead.service.IBuyorderHeadService;
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 com.ruoyi.stock.domain.StockInfo;
import com.ruoyi.stock.domain.WarehousingPurchaseNotice;
import com.ruoyi.stock.service.IStockInfoService;
import com.ruoyi.stock.service.IWarehousingPurchaseNoticeService;
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.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
* 采购入库通知查询Controller
*
* @author ruoyi
* @date 2021-11-09
*/
@Controller
@RequestMapping("/stock/warehousingPucharseNotice")
public class WarehousingPurchaseNoticeController extends BaseController {
private String prefix = "stock/warehousingPucharseNotice";
@Autowired
private IStockInfoService stockInfoService;
@Autowired
private IWarehousingPurchaseNoticeService warehousingPurchaseNoticeService;
@Autowired
private IBuyorderHeadService buyorderHeadService;
@Autowired
private IBuyorderListService buyorderListService;
@RequiresPermissions("stock:warehousingPucharseNotice:view")
@GetMapping()
public String warehousingPucharseNotice() {
return prefix + "/warehousingPucharseNotice";
}
/**
* 查询采购入库通知查询列表
*/
@RequiresPermissions("stock:warehousingPucharseNotice:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(WarehousingPurchaseNotice warehousingPurchaseNotice) {
startPage();
List<WarehousingPurchaseNotice> list = warehousingPurchaseNoticeService.selectWarehousingPurchaseNoticeList(warehousingPurchaseNotice);
return getDataTable(list);
}
/**
* 导出采购入库通知查询列表
*/
@RequiresPermissions("stock:warehousingPucharseNotice:export")
@Log(title = "采购入库通知查询", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(WarehousingPurchaseNotice warehousingPurchaseNotice) {
List<WarehousingPurchaseNotice> list = warehousingPurchaseNoticeService.selectWarehousingPurchaseNoticeList(warehousingPurchaseNotice);
ExcelUtil<WarehousingPurchaseNotice> util = new ExcelUtil<WarehousingPurchaseNotice>(WarehousingPurchaseNotice.class);
return util.exportExcel(list, "采购入库通知查询数据");
}
/**
* 新增采购入库通知查询
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
* 新增保存采购入库通知查询
*/
@RequiresPermissions("stock:warehousingPucharseNotice:add")
@Log(title = "采购入库通知查询", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(WarehousingPurchaseNotice warehousingPurchaseNotice) {
return toAjax(warehousingPurchaseNoticeService.insertWarehousingPurchaseNotice(warehousingPurchaseNotice));
}
/**
* 修改采购入库通知查询
*/
@GetMapping("/edit/{warehousingpurchasenoticeNo}")
public String edit(@PathVariable("warehousingpurchasenoticeNo") String warehousingpurchasenoticeNo, ModelMap mmap) {
WarehousingPurchaseNotice warehousingPurchaseNotice = warehousingPurchaseNoticeService.selectWarehousingPurchaseNoticeById(warehousingpurchasenoticeNo);
mmap.put("warehousingPurchaseNotice", warehousingPurchaseNotice);
return prefix + "/edit";
}
/**
* 展示采购入库通知详细信息
*/
@GetMapping("/detail/{warehousingpurchasenoticeNo}")
public String detail(@PathVariable("warehousingpurchasenoticeNo") String warehousingpurchasenoticeNo, ModelMap mmap) {
System.out.println(warehousingpurchasenoticeNo);
WarehousingPurchaseNotice warehousingPurchaseNotice = warehousingPurchaseNoticeService.selectWarehousingPurchaseNoticeById(warehousingpurchasenoticeNo);
System.out.println(warehousingPurchaseNotice);
mmap.put("warehousingPurchaseNotice", warehousingPurchaseNotice);
return prefix + "/detail";
}
/**
* 获取仓库数据
*/
@GetMapping("/getWarehouseName")
@ResponseBody
public List<StockInfo> getWarehouseName() {
List<StockInfo> list = stockInfoService.selectStockInfoList(new StockInfo());
return list;
}
/**
* 通过采购订单添加入库通知
*/
@GetMapping("/addWarehousingPuchaseNoticBypoNo/{poNo}")
@ResponseBody
public String addWarehousingPuchaseNoticBypoNo(@PathVariable("poNo") String poNo, ModelMap mmap, String warehousingType, String warehouseName, String warehouseNo, String warehousingAmt) {
// System.out.println(poNo + "---------------------------");
BuyorderHead buyorderHead = buyorderHeadService.selectBuyorderHeadById(poNo);
BuyorderList buyorderList = buyorderListService.selectBuyorderListById(poNo);
SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");//设置日期格式
SimpleDateFormat df2 = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式
String WPNNO = "WPNNO" + df.format(new Date());// new Date()为获取当前系统时间
String WD = df2.format(new Date());// new Date()为获取当前系统时间
// System.out.println(WPNNO);
WarehousingPurchaseNotice warehousingPurchaseNotice = new WarehousingPurchaseNotice();
warehousingPurchaseNotice.setWarehousingpurchasenoticeNo(WPNNO);
warehousingPurchaseNotice.setCustomerId(buyorderHead.getpCode());
warehousingPurchaseNotice.setCustomerName(buyorderHead.getpName());
warehousingPurchaseNotice.setWarehousingType(warehousingType); //todo 前端done
warehousingPurchaseNotice.setWarehousingnoticeDate(new Date()); //系统生成 done
warehousingPurchaseNotice.setPurchaseorderNo(buyorderHead.getPoId());
warehousingPurchaseNotice.setDomesticOrExport(buyorderHead.getPoClass()); //内外销 done
warehousingPurchaseNotice.setWarehouseNo(warehouseNo); //todo 前端自动获取done
warehousingPurchaseNotice.setWarehouseName(warehouseName); //todo 前端选择done
warehousingPurchaseNotice.setItemTimes("01"); //todo 需要后端代码
warehousingPurchaseNotice.setItemNo(buyorderList.getWlCode()); //物料代码
warehousingPurchaseNotice.setItemName(buyorderList.getItemname());
warehousingPurchaseNotice.setSpecificationModel(buyorderList.getItemstandard());
warehousingPurchaseNotice.setMachineType(buyorderList.getItemstandard());
warehousingPurchaseNotice.setUnit(buyorderList.getStockDw());
warehousingPurchaseNotice.setWarehousingAmt(warehousingAmt);//todo 此次需要入库/检验的数量,前端手动输入
warehousingPurchaseNotice.setPurchaseorderAmt(String.valueOf(buyorderList.getAmt()));
warehousingPurchaseNoticeService.insertWarehousingPurchaseNotice(warehousingPurchaseNotice);
return warehousingPurchaseNoticeService.toString();
}
/**
* 修改保存采购入库通知查询
*/
@RequiresPermissions("stock:warehousingPucharseNotice:edit")
@Log(title = "采购入库通知查询", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(WarehousingPurchaseNotice warehousingPurchaseNotice) {
return toAjax(warehousingPurchaseNoticeService.updateWarehousingPurchaseNotice(warehousingPurchaseNotice));
}
/**
* 删除采购入库通知查询
*/
@RequiresPermissions("stock:warehousingPucharseNotice:remove")
@Log(title = "采购入库通知查询", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(warehousingPurchaseNoticeService.deleteWarehousingPurchaseNoticeByIds(ids));
}
}

293
ruoyi-admin/src/main/java/com/ruoyi/stock/domain/WarehousingPurchaseNotice.java

@ -1,293 +0,0 @@
package com.ruoyi.stock.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 采购入库通知查询对象 warehousing_purchase_notice
*
* @author ruoyi
* @date 2021-11-12
*/
public class WarehousingPurchaseNotice extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 入库通知单号 */
@Excel(name = "入库通知单号")
private String warehousingpurchasenoticeNo;
/** 客户ID */
@Excel(name = "客户ID")
private String customerId;
/** 客户名称 */
@Excel(name = "客户名称")
private String customerName;
/** 入库类型 */
@Excel(name = "入库类型")
private String warehousingType;
/** 入库通知日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "入库通知日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date warehousingnoticeDate;
/** 采购单号 */
@Excel(name = "采购单号")
private String purchaseorderNo;
/** 内/外销 */
@Excel(name = "内/外销")
private String domesticOrExport;
/** 仓库号 */
@Excel(name = "仓库号")
private String warehouseNo;
/** 仓库名称 */
@Excel(name = "仓库名称")
private String warehouseName;
/** 项次 */
@Excel(name = "项次")
private String itemTimes;
/** 物料代码 */
@Excel(name = "物料代码")
private String itemNo;
/** 采购物料名称 */
@Excel(name = "采购物料名称")
private String itemName;
/** 规格型号 */
@Excel(name = "规格型号")
private String specificationModel;
/** 机种 */
@Excel(name = "机种")
private String machineType;
/** 单位 */
@Excel(name = "单位")
private String unit;
/** 此次通知入库数量 */
@Excel(name = "此次通知入库数量")
private String warehousingAmt;
/** 订单订购总数量 */
@Excel(name = "订单订购总数量")
private String purchaseorderAmt;
/** */
@Excel(name = "")
private String spell1;
/** */
@Excel(name = "")
private String spell2;
public void setWarehousingpurchasenoticeNo(String warehousingpurchasenoticeNo)
{
this.warehousingpurchasenoticeNo = warehousingpurchasenoticeNo;
}
public String getWarehousingpurchasenoticeNo()
{
return warehousingpurchasenoticeNo;
}
public void setCustomerId(String customerId)
{
this.customerId = customerId;
}
public String getCustomerId()
{
return customerId;
}
public void setCustomerName(String customerName)
{
this.customerName = customerName;
}
public String getCustomerName()
{
return customerName;
}
public void setWarehousingType(String warehousingType)
{
this.warehousingType = warehousingType;
}
public String getWarehousingType()
{
return warehousingType;
}
public void setWarehousingnoticeDate(Date warehousingnoticeDate)
{
this.warehousingnoticeDate = warehousingnoticeDate;
}
public Date getWarehousingnoticeDate()
{
return warehousingnoticeDate;
}
public void setPurchaseorderNo(String purchaseorderNo)
{
this.purchaseorderNo = purchaseorderNo;
}
public String getPurchaseorderNo()
{
return purchaseorderNo;
}
public void setDomesticOrExport(String domesticOrExport)
{
this.domesticOrExport = domesticOrExport;
}
public String getDomesticOrExport()
{
return domesticOrExport;
}
public void setWarehouseNo(String warehouseNo)
{
this.warehouseNo = warehouseNo;
}
public String getWarehouseNo()
{
return warehouseNo;
}
public void setWarehouseName(String warehouseName)
{
this.warehouseName = warehouseName;
}
public String getWarehouseName()
{
return warehouseName;
}
public void setItemTimes(String itemTimes)
{
this.itemTimes = itemTimes;
}
public String getItemTimes()
{
return itemTimes;
}
public void setItemNo(String itemNo)
{
this.itemNo = itemNo;
}
public String getItemNo()
{
return itemNo;
}
public void setItemName(String itemName)
{
this.itemName = itemName;
}
public String getItemName()
{
return itemName;
}
public void setSpecificationModel(String specificationModel)
{
this.specificationModel = specificationModel;
}
public String getSpecificationModel()
{
return specificationModel;
}
public void setMachineType(String machineType)
{
this.machineType = machineType;
}
public String getMachineType()
{
return machineType;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setWarehousingAmt(String warehousingAmt)
{
this.warehousingAmt = warehousingAmt;
}
public String getWarehousingAmt()
{
return warehousingAmt;
}
public void setPurchaseorderAmt(String purchaseorderAmt)
{
this.purchaseorderAmt = purchaseorderAmt;
}
public String getPurchaseorderAmt()
{
return purchaseorderAmt;
}
public void setSpell1(String spell1)
{
this.spell1 = spell1;
}
public String getSpell1()
{
return spell1;
}
public void setSpell2(String spell2)
{
this.spell2 = spell2;
}
public String getSpell2()
{
return spell2;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("warehousingpurchasenoticeNo", getWarehousingpurchasenoticeNo())
.append("customerId", getCustomerId())
.append("customerName", getCustomerName())
.append("warehousingType", getWarehousingType())
.append("warehousingnoticeDate", getWarehousingnoticeDate())
.append("purchaseorderNo", getPurchaseorderNo())
.append("domesticOrExport", getDomesticOrExport())
.append("warehouseNo", getWarehouseNo())
.append("warehouseName", getWarehouseName())
.append("itemTimes", getItemTimes())
.append("itemNo", getItemNo())
.append("itemName", getItemName())
.append("specificationModel", getSpecificationModel())
.append("machineType", getMachineType())
.append("unit", getUnit())
.append("warehousingAmt", getWarehousingAmt())
.append("purchaseorderAmt", getPurchaseorderAmt())
.append("spell1", getSpell1())
.append("spell2", getSpell2())
.toString();
}
}

61
ruoyi-admin/src/main/java/com/ruoyi/stock/mapper/WarehousingPurchaseNoticeMapper.java

@ -1,61 +0,0 @@
package com.ruoyi.stock.mapper;
import java.util.List;
import com.ruoyi.stock.domain.WarehousingPurchaseNotice;
/**
* 采购入库通知查询Mapper接口
*
* @author ruoyi
* @date 2021-11-12
*/
public interface WarehousingPurchaseNoticeMapper
{
/**
* 查询采购入库通知查询
*
* @param warehousingpurchasenoticeNo 采购入库通知查询ID
* @return 采购入库通知查询
*/
public WarehousingPurchaseNotice selectWarehousingPurchaseNoticeById(String warehousingpurchasenoticeNo);
/**
* 查询采购入库通知查询列表
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 采购入库通知查询集合
*/
public List<WarehousingPurchaseNotice> selectWarehousingPurchaseNoticeList(WarehousingPurchaseNotice warehousingPurchaseNotice);
/**
* 新增采购入库通知查询
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 结果
*/
public int insertWarehousingPurchaseNotice(WarehousingPurchaseNotice warehousingPurchaseNotice);
/**
* 修改采购入库通知查询
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 结果
*/
public int updateWarehousingPurchaseNotice(WarehousingPurchaseNotice warehousingPurchaseNotice);
/**
* 删除采购入库通知查询
*
* @param warehousingpurchasenoticeNo 采购入库通知查询ID
* @return 结果
*/
public int deleteWarehousingPurchaseNoticeById(String warehousingpurchasenoticeNo);
/**
* 批量删除采购入库通知查询
*
* @param warehousingpurchasenoticeNos 需要删除的数据ID
* @return 结果
*/
public int deleteWarehousingPurchaseNoticeByIds(String[] warehousingpurchasenoticeNos);
}

61
ruoyi-admin/src/main/java/com/ruoyi/stock/service/IWarehousingPurchaseNoticeService.java

@ -1,61 +0,0 @@
package com.ruoyi.stock.service;
import java.util.List;
import com.ruoyi.stock.domain.WarehousingPurchaseNotice;
/**
* 采购入库通知查询Service接口
*
* @author ruoyi
* @date 2021-11-09
*/
public interface IWarehousingPurchaseNoticeService
{
/**
* 查询采购入库通知查询
*
* @param warehousingpurchasenoticeNo 采购入库通知查询ID
* @return 采购入库通知查询
*/
public WarehousingPurchaseNotice selectWarehousingPurchaseNoticeById(String warehousingpurchasenoticeNo);
/**
* 查询采购入库通知查询列表
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 采购入库通知查询集合
*/
public List<WarehousingPurchaseNotice> selectWarehousingPurchaseNoticeList(WarehousingPurchaseNotice warehousingPurchaseNotice);
/**
* 新增采购入库通知查询
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 结果
*/
public int insertWarehousingPurchaseNotice(WarehousingPurchaseNotice warehousingPurchaseNotice);
/**
* 修改采购入库通知查询
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 结果
*/
public int updateWarehousingPurchaseNotice(WarehousingPurchaseNotice warehousingPurchaseNotice);
/**
* 批量删除采购入库通知查询
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteWarehousingPurchaseNoticeByIds(String ids);
/**
* 删除采购入库通知查询信息
*
* @param warehousingpurchasenoticeNo 采购入库通知查询ID
* @return 结果
*/
public int deleteWarehousingPurchaseNoticeById(String warehousingpurchasenoticeNo);
}

94
ruoyi-admin/src/main/java/com/ruoyi/stock/service/impl/WarehousingPurchaseNoticeServiceImpl.java

@ -1,94 +0,0 @@
package com.ruoyi.stock.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock.mapper.WarehousingPurchaseNoticeMapper;
import com.ruoyi.stock.domain.WarehousingPurchaseNotice;
import com.ruoyi.stock.service.IWarehousingPurchaseNoticeService;
import com.ruoyi.common.core.text.Convert;
/**
* 采购入库通知查询Service业务层处理
*
* @author ruoyi
* @date 2021-11-09
*/
@Service
public class WarehousingPurchaseNoticeServiceImpl implements IWarehousingPurchaseNoticeService
{
@Autowired
private WarehousingPurchaseNoticeMapper warehousingPurchaseNoticeMapper;
/**
* 查询采购入库通知查询
*
* @param warehousingpurchasenoticeNo 采购入库通知查询ID
* @return 采购入库通知查询
*/
@Override
public WarehousingPurchaseNotice selectWarehousingPurchaseNoticeById(String warehousingpurchasenoticeNo)
{
return warehousingPurchaseNoticeMapper.selectWarehousingPurchaseNoticeById(warehousingpurchasenoticeNo);
}
/**
* 查询采购入库通知查询列表
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 采购入库通知查询
*/
@Override
public List<WarehousingPurchaseNotice> selectWarehousingPurchaseNoticeList(WarehousingPurchaseNotice warehousingPurchaseNotice)
{
return warehousingPurchaseNoticeMapper.selectWarehousingPurchaseNoticeList(warehousingPurchaseNotice);
}
/**
* 新增采购入库通知查询
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 结果
*/
@Override
public int insertWarehousingPurchaseNotice(WarehousingPurchaseNotice warehousingPurchaseNotice)
{
return warehousingPurchaseNoticeMapper.insertWarehousingPurchaseNotice(warehousingPurchaseNotice);
}
/**
* 修改采购入库通知查询
*
* @param warehousingPurchaseNotice 采购入库通知查询
* @return 结果
*/
@Override
public int updateWarehousingPurchaseNotice(WarehousingPurchaseNotice warehousingPurchaseNotice)
{
return warehousingPurchaseNoticeMapper.updateWarehousingPurchaseNotice(warehousingPurchaseNotice);
}
/**
* 删除采购入库通知查询对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteWarehousingPurchaseNoticeByIds(String ids)
{
return warehousingPurchaseNoticeMapper.deleteWarehousingPurchaseNoticeByIds(Convert.toStrArray(ids));
}
/**
* 删除采购入库通知查询信息
*
* @param warehousingpurchasenoticeNo 采购入库通知查询ID
* @return 结果
*/
@Override
public int deleteWarehousingPurchaseNoticeById(String warehousingpurchasenoticeNo)
{
return warehousingPurchaseNoticeMapper.deleteWarehousingPurchaseNoticeById(warehousingpurchasenoticeNo);
}
}

145
ruoyi-admin/src/main/resources/mapper/stock/WarehousingPurchaseNoticeMapper.xml

@ -1,145 +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.stock.mapper.WarehousingPurchaseNoticeMapper">
<resultMap type="WarehousingPurchaseNotice" id="WarehousingPurchaseNoticeResult">
<result property="warehousingpurchasenoticeNo" column="warehousingPurchaseNotice_NO" />
<result property="customerId" column="customer_ID" />
<result property="customerName" column="customer_name" />
<result property="warehousingType" column="warehousing_type" />
<result property="warehousingnoticeDate" column="warehousingNotice_date" />
<result property="purchaseorderNo" column="purchaseOrder_NO" />
<result property="domesticOrExport" column="domesticOrExport" />
<result property="warehouseNo" column="warehouse_NO" />
<result property="warehouseName" column="warehouse_name" />
<result property="itemTimes" column="itemTimes" />
<result property="itemNo" column="item_NO" />
<result property="itemName" column="item_name" />
<result property="specificationModel" column="specificationModel" />
<result property="machineType" column="machine_type" />
<result property="unit" column="unit" />
<result property="warehousingAmt" column="warehousing_amt" />
<result property="purchaseorderAmt" column="purchaseOrder_amt" />
<result property="spell1" column="spell_1" />
<result property="spell2" column="spell_2" />
</resultMap>
<sql id="selectWarehousingPurchaseNoticeVo">
select warehousingPurchaseNotice_NO, customer_ID, customer_name, warehousing_type, warehousingNotice_date, purchaseOrder_NO, domesticOrExport, warehouse_NO, warehouse_name, itemTimes, item_NO, item_name, specificationModel, machine_type, unit, warehousing_amt, purchaseOrder_amt, spell_1, spell_2 from warehousing_purchase_notice
</sql>
<select id="selectWarehousingPurchaseNoticeList" parameterType="WarehousingPurchaseNotice" resultMap="WarehousingPurchaseNoticeResult">
<include refid="selectWarehousingPurchaseNoticeVo"/>
<where>
<if test="warehousingpurchasenoticeNo != null and warehousingpurchasenoticeNo != ''"> and warehousingPurchaseNotice_NO = #{warehousingpurchasenoticeNo}</if>
<if test="customerId != null and customerId != ''"> and customer_ID = #{customerId}</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="warehousingType != null and warehousingType != ''"> and warehousing_type = #{warehousingType}</if>
<if test="warehousingnoticeDate != null "> and warehousingNotice_date = #{warehousingnoticeDate}</if>
<if test="purchaseorderNo != null and purchaseorderNo != ''"> and purchaseOrder_NO = #{purchaseorderNo}</if>
<if test="domesticOrExport != null and domesticOrExport != ''"> and domesticOrExport = #{domesticOrExport}</if>
<if test="warehouseNo != null and warehouseNo != ''"> and warehouse_NO = #{warehouseNo}</if>
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
<if test="itemTimes != null and itemTimes != ''"> and itemTimes = #{itemTimes}</if>
<if test="itemNo != null and itemNo != ''"> and item_NO = #{itemNo}</if>
<if test="itemName != null and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>
<if test="specificationModel != null and specificationModel != ''"> and specificationModel = #{specificationModel}</if>
<if test="machineType != null and machineType != ''"> and machine_type = #{machineType}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="warehousingAmt != null and warehousingAmt != ''"> and warehousing_amt = #{warehousingAmt}</if>
<if test="purchaseorderAmt != null and purchaseorderAmt != ''"> and purchaseOrder_amt = #{purchaseorderAmt}</if>
<if test="spell1 != null and spell1 != ''"> and spell_1 = #{spell1}</if>
<if test="spell2 != null and spell2 != ''"> and spell_2 = #{spell2}</if>
</where>
</select>
<select id="selectWarehousingPurchaseNoticeById" parameterType="String" resultMap="WarehousingPurchaseNoticeResult">
<include refid="selectWarehousingPurchaseNoticeVo"/>
where warehousingPurchaseNotice_NO = #{warehousingpurchasenoticeNo}
</select>
<insert id="insertWarehousingPurchaseNotice" parameterType="WarehousingPurchaseNotice">
insert into warehousing_purchase_notice
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="warehousingpurchasenoticeNo != null">warehousingPurchaseNotice_NO,</if>
<if test="customerId != null">customer_ID,</if>
<if test="customerName != null">customer_name,</if>
<if test="warehousingType != null">warehousing_type,</if>
<if test="warehousingnoticeDate != null">warehousingNotice_date,</if>
<if test="purchaseorderNo != null">purchaseOrder_NO,</if>
<if test="domesticOrExport != null">domesticOrExport,</if>
<if test="warehouseNo != null">warehouse_NO,</if>
<if test="warehouseName != null">warehouse_name,</if>
<if test="itemTimes != null">itemTimes,</if>
<if test="itemNo != null">item_NO,</if>
<if test="itemName != null">item_name,</if>
<if test="specificationModel != null">specificationModel,</if>
<if test="machineType != null">machine_type,</if>
<if test="unit != null">unit,</if>
<if test="warehousingAmt != null">warehousing_amt,</if>
<if test="purchaseorderAmt != null">purchaseOrder_amt,</if>
<if test="spell1 != null">spell_1,</if>
<if test="spell2 != null">spell_2,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="warehousingpurchasenoticeNo != null">#{warehousingpurchasenoticeNo},</if>
<if test="customerId != null">#{customerId},</if>
<if test="customerName != null">#{customerName},</if>
<if test="warehousingType != null">#{warehousingType},</if>
<if test="warehousingnoticeDate != null">#{warehousingnoticeDate},</if>
<if test="purchaseorderNo != null">#{purchaseorderNo},</if>
<if test="domesticOrExport != null">#{domesticOrExport},</if>
<if test="warehouseNo != null">#{warehouseNo},</if>
<if test="warehouseName != null">#{warehouseName},</if>
<if test="itemTimes != null">#{itemTimes},</if>
<if test="itemNo != null">#{itemNo},</if>
<if test="itemName != null">#{itemName},</if>
<if test="specificationModel != null">#{specificationModel},</if>
<if test="machineType != null">#{machineType},</if>
<if test="unit != null">#{unit},</if>
<if test="warehousingAmt != null">#{warehousingAmt},</if>
<if test="purchaseorderAmt != null">#{purchaseorderAmt},</if>
<if test="spell1 != null">#{spell1},</if>
<if test="spell2 != null">#{spell2},</if>
</trim>
</insert>
<update id="updateWarehousingPurchaseNotice" parameterType="WarehousingPurchaseNotice">
update warehousing_purchase_notice
<trim prefix="SET" suffixOverrides=",">
<if test="customerId != null">customer_ID = #{customerId},</if>
<if test="customerName != null">customer_name = #{customerName},</if>
<if test="warehousingType != null">warehousing_type = #{warehousingType},</if>
<if test="warehousingnoticeDate != null">warehousingNotice_date = #{warehousingnoticeDate},</if>
<if test="purchaseorderNo != null">purchaseOrder_NO = #{purchaseorderNo},</if>
<if test="domesticOrExport != null">domesticOrExport = #{domesticOrExport},</if>
<if test="warehouseNo != null">warehouse_NO = #{warehouseNo},</if>
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
<if test="itemTimes != null">itemTimes = #{itemTimes},</if>
<if test="itemNo != null">item_NO = #{itemNo},</if>
<if test="itemName != null">item_name = #{itemName},</if>
<if test="specificationModel != null">specificationModel = #{specificationModel},</if>
<if test="machineType != null">machine_type = #{machineType},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="warehousingAmt != null">warehousing_amt = #{warehousingAmt},</if>
<if test="purchaseorderAmt != null">purchaseOrder_amt = #{purchaseorderAmt},</if>
<if test="spell1 != null">spell_1 = #{spell1},</if>
<if test="spell2 != null">spell_2 = #{spell2},</if>
</trim>
where warehousingPurchaseNotice_NO = #{warehousingpurchasenoticeNo}
</update>
<delete id="deleteWarehousingPurchaseNoticeById" parameterType="String">
delete from warehousing_purchase_notice where warehousingPurchaseNotice_NO = #{warehousingpurchasenoticeNo}
</delete>
<delete id="deleteWarehousingPurchaseNoticeByIds" parameterType="String">
delete from warehousing_purchase_notice where warehousingPurchaseNotice_NO in
<foreach item="warehousingpurchasenoticeNo" collection="array" open="(" separator="," close=")">
#{warehousingpurchasenoticeNo}
</foreach>
</delete>
</mapper>

909
ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/add.html

@ -1,909 +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="poNo"/>
</li>
<li class="select-time">
<label>开单日期:</label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间"
name="params[beginPoDate]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间"
name="params[endPoDate]"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="addInfo()" shiro:hasPermission="buyorderHead:buyOrderList:add">
<i class="fa fa-plus"></i> 添加
</a>
<!-- <a class="btn btn-primary single disabled" onclick="modifyInfo()"-->
<!-- shiro:hasPermission="buyorderHead:buyOrderList:edit">-->
<!-- <i class="fa fa-edit"></i> 修改-->
<!-- </a>-->
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"-->
<!-- shiro:hasPermission="buyorderHead:buyOrderList:remove">-->
<!-- <i class="fa fa-remove"></i> 删除-->
<!-- </a>-->
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()"-->
<!-- shiro:hasPermission="buyorderHead:buyOrderList:export">-->
<!-- <i class="fa fa-download"></i> 导出-->
<!-- </a>-->
<a class="btn btn-primary single disabled" onclick="showInfo()"
shiro:hasPermission="buyorderHead:buyOrderList:edit">
<i class="fa fa-edit"></i> 详情信息
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<div class="modal inmodal" id="infoModal" tabindex="-1"
role="dilog" aria-hidden="true">
<div class="modal-dialog" style="width: 1000px;height: 600px;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true"></button>
<h4 class="modal-title">采购单信息</h4>
</div>
<div class="modal-body" style="text-align: center;">
<div class="row" style="margin-bottom: 20px;">
<div class="col-md-6">
<div class="form-group">
<label class="col-sm-3 control-label">订购单号:</label>
<div class="col-sm-9">
<input type="text" name="poNo" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">供应商代码:</label>
<div class="col-sm-9">
<input type="text" name="pCode" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">供应商名称:</label>
<div class="col-sm-9">
<input type="text" name="pName" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">联系人:</label>
<div class="col-sm-9">
<input type="text" name="pLinkman" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">联系电话:</label>
<div class="col-sm-9">
<input type="text" name="pTel" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">付款条件:</label>
<div class="col-sm-9">
<input type="text" name="GetMoneyMemo" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">传真号码:</label>
<div class="col-sm-9">
<input type="text" name="pFax" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">交货地址:</label>
<div class="col-sm-9">
<input type="text" name="sendAddress" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否结案:</label>
<div class="col-sm-9">
<label>
<input type="checkbox" id="endFlag" onclick="return false;">&nbsp;结案</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">确定否:</label>
<div class="col-sm-9">
<label>
<input type="checkbox" id="comfirmFlag" onclick="return false;">&nbsp;确定</label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="col-sm-3 control-label">交货方式:</label>
<div class="col-sm-9">
<input type="text" name="Sendway" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">开单日期:</label>
<div class="col-sm-9">
<div class="input-group date">
<input name="poDate" class="form-control" placeholder="yyyy-MM-dd" type="text"
readonly>
<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-9">
<input type="text" name="poClass" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">采购担当:</label>
<div class="col-sm-9">
<input type="text" name="poMan" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">交货条件:</label>
<div class="col-sm-9">
<input type="text" name="Sendmemo" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注内容:</label>
<div class="col-sm-9">
<input type="text" name="bzMemobzMemo" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">税率:</label>
<div class="col-sm-9">
<input type="text" name="TaxPercent" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">购方名称:</label>
<div class="col-sm-9">
<input type="text" name="poPName" class="form-control" readonly>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">审核否:</label>
<div class="col-sm-9">
<label>
<input type="checkbox" id="auditingFlag" onclick="return false;">&nbsp;审核</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">核准否:</label>
<div class="col-sm-9">
<label>
<input type="checkbox" id="approveFlag" onclick="return false;">&nbsp;核准</label>
</div>
</div>
</div>
<div class="col-md-12">
<div class="table-responsive">
<table id="buyOrderListTable"
class="table table-striped table-responsive">
</table>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" name="close">确定</button>
</div>
</div>
</div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
var warehouse;
window.onload = function () {
getWarehouse()
}
function getWarehouse() {
//自动获取仓库对象
$.ajax({
url: ctx + 'stock/warehousingPucharseNotice/getWarehouseName',
async: false,
// dataType: "json",
success: function (data) {
warehouse = data;
}
})
}
//修改仓库名称自动填写仓库号
function autoEnterWarehouseNo(poNo) {
// alert($("." + poNo + "warehouseName").find("option:selected").val());
//todo
var val = $("." + poNo + "warehouseName").find("option:selected").val();
// alert(val);
// alert(warehouse[val].stockNO);
$("." + poNo + "warehouseNo").attr('value', warehouse[val].stockNO);
}
var editFlag = [[${@permission.hasPermi('buyorderHead:buyOrderList:edit')}]];
var removeFlag = [[${@permission.hasPermi('buyorderHead:buyOrderList:remove')}]];
var prefix = ctx + "buyorderHead/buyOrderList";
//鼠标移入,显示完整的数据
function paramsMatter(value, row, index) {
var span = document.createElement("span");
span.setAttribute("title", value);
span.innerHTML = value;
return span.outerHTML;
}
$(function () {
getWarehouse()
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
// adddetailUrl: prefix + "/adddetail/{poNo}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "采购单列表",
columns: [{
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="addWarehousingPuchaseNoticBypoNo(\'' + row.poNo + '\')"><i class="fa fa-edit"></i>添加入库通知</a> ');
return actions.join('');
}
}, {
title: '入库类型',
formatter: function (value, row, index) {
var actions = [];
actions.push('<select class="form-control ' + row.poNo + 'warehousingType" name="">\n' +
' <option selected>成品入库</option>\n' +
' <option>半成品入库</option>\n' +
' <option>原料入库</option>\n' +
' <option>辅料入库</option>\n' +
' </select>');
return actions.join('');
}
},
// {
//
// title: '内外销',
// formatter: function (value, row, index) {
// var actions = [];
// actions.push('<select class="form-control ' + row.poNo + 'domesticOrExport" name="">\n' +
// ' <option selected >内销</option>\n' +
// ' <option>外销</option>\n' +
// ' </select>');
// return actions.join('');
// }
// },
{
title: '入库仓库名',
formatter: function (value, row, index) {
var actions = [];
var content = '<select class="form-control ' + row.poNo + 'warehouseName" name="" onchange="autoEnterWarehouseNo(\'' + row.poNo + '\')">' +
'';
var i = 0;
for (i = 0; i < warehouse.length; i++) {
// alert(warehouse[i].stockname)
content += '<option value="' + i + '">' + warehouse[i].stockname + '</option>\n';
}
content += '</select>'
actions.push(content)
return actions.join('');
}
}, {
title: '入库仓库号',
formatter: function (value, row, index) {
var actions = [];
actions.push('<input readonly style="width: 80px" value = "CPQ" type="text" name="" class="form-control ' + row.poNo + 'warehouseNo" placeholder="请选择入仓库名">');
return actions.join('');
}
},
{
title: '本次通知入库数量',
formatter: function (value, row, index) {
var actions = [];
actions.push('<input value = "" type="number" name="" class="form-control ' + row.poNo + 'warehouseNoticeAmt" placeholder="本次入库数量">');
return actions.join('');
}
},
{
field: 'poId',
title: '订购编号',
visible: false
},
{
field: 'poNo',
title: '订购单号'
},
{
field: 'pCode',
title: '供应商代码'
},
{
field: 'pName',
title: '供应商名称',
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "130px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "150px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'pLinkman',
title: '联系人',
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'pTel',
title: '联系电话',
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "100px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "120px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'pFax',
title: '传真号码',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'sendAddress',
title: '交货地址',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'getMoneyMemo',
title: '付款条件',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'sendmemo',
title: '交货条件',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'sendway',
title: '交货方式',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'poDate',
title: '开单日期',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'poClass',
title: '订购种类',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'poMan',
title: '采购担当',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'bzMemo',
title: '备注内容',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'endFlag',
title: '结案',
visible: false,
formatter: function (val) {
if (val === 1) {
return "已结案"
} else if (val === 0) {
return "未结案"
}
},
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'taxPercent',
title: '税率',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'comfirmFlag',
title: '确定否',
visible: false,
formatter: function (val) {
if (val === 1) {
return "已确认"
} else if (val === 0) {
return "未确认"
}
},
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'comfirmMan',
title: '确定人',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'auditingFlag',
title: '审核否',
visible: false,
formatter: function (val) {
if (val === 1) {
return "已审核"
} else if (val === 0) {
return "未审核"
}
},
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'auditingMan',
title: '审核人',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'approveFlag',
title: '核准否',
visible: false,
formatter: function (val) {
if (val === 1) {
return "已核准"
} else if (val === 0) {
return "未核准"
}
},
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'approveMan',
title: '核准人',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
},
{
field: 'poPName',
title: '购方名称',
visible: false,
cellStyle: function (value, row, index) {
return {
css: {
"min-width": "80px",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width": "100px",
"white-space": "nowrap"
}
}
},
formatter: paramsMatter
}
// ,
// {
// 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="showInfo(row)"><i class="fa fa-edit"></i>详细列表</a> ');
// return actions.join('');
// }
// }
]
};
$.table.init(options);
});
function showInfo() {
var data = $("#bootstrap-table").bootstrapTable("getSelections");
//console.log(".............."+data[0].endFlag);
$("input[name='poNo']").val(data[0].poNo);
$("input[name='pCode']").val(data[0].pCode);
$("input[name='pName']").val(data[0].pName);
$("input[name='pLinkman']").val(data[0].pLinkman);
$("input[name='pTel']").val(data[0].pTel);
$("input[name='pFax']").val(data[0].pFax);
$("input[name='sendAddress']").val(data[0].sendAddress);
$("input[name='GetMoneyMemo']").val(data[0].GetMoneyMemo);
$("input[name='Sendmemo']").val(data[0].Sendmemo);
$("input[name='Sendway']").val(data[0].Sendway);
$("input[name='poDate']").val(data[0].poDate);
$("input[name='poClass']").val(data[0].poClass);
$("input[name='poMan']").val(data[0].poMan);
$("input[name='bzMemo']").val(data[0].bzMemo);
$("input[name='TaxPercent']").val(data[0].TaxPercent);
$("input[name='poPName']").val(data[0].poPName);
if (data[0].endFlag === 1) {
$("#endFlag").attr("checked", true);
}
if (data[0].comfirmFlag === 1) {
$("#comfirmFlag").prop("checked", true);
}
if (data[0].auditingFlag === 1) {
$("#auditingFlag").prop("checked", true);
}
if (data[0].approveFlag === 1) {
$("#approveFlag").prop("checked", true);
}
$("#buyOrderListTable").bootstrapTable('refresh');
//$("#infoModal").show();
$("#infoModal").modal("show");
}
$('#buyOrderListTable').bootstrapTable({
url: '/po/orderlist/list',
pagination: true,
pageNumber: 1,
pageSize: 10,
pageList: [10, 25, 50, 100],
showRefresh: true,
method: "post",
contentType: "application/x-www-form-urlencoded",
striped: true, // 是否显示行间隔色
cache: false, // 是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
sidePagination: "server", // 分页方式:client客户端分页,server服务端分页(*)
clickToSelect: true, // 是否启用点击选中行
showToggle: false, // 是否显示详细视图和列表视图的切换按钮
cardView: false, // 是否显示详细视图
detailView: false, // 是否显示父子表
smartDisplay: false, // 加了这个才显示每页显示的行数
showExport: false, // 是否显示导出按钮
singleSelect: true,
height: 250,
queryParams: function (params) {
//console.log("123");
var curParams = {
// 传递参数查询参数
pageSize: params.limit,
pageNum: params.offset / params.limit + 1
// searchValue: params.search,
// orderByColumn: params.sort,
// isAsc: params.order
};
//console.log(curParams);
var poNo = $("input[name='poNo']").val();
var json = $.extend(curParams, {"poId": poNo});
//console.log(json);
return json;
},
columns: [
{
field: 'wlCode',
title: '代码'
}, {
field: 'itemname',
title: '名称'
}, {
field: 'itemstandard',
title: '规格型号'
}, {
field: 'stockDw',
title: '单位'
}, {
field: 'qty',
title: '数量'
}, {
field: 'crlName',
title: '币别'
}, {
field: 'price',
title: '单价'
}, {
field: 'amt',
title: '金额'
}, {
field: 'sendDate',
title: '交期'
}, {
field: 'memoList',
title: '说明'
}]
});
$("button[name='close']").on("click", function () {
//alert("1");
$("#infoModal").modal("hide");
});
function addInfo() {
window.location.href = prefix + "/add";
}
function modifyInfo() {
let row = $("#bootstrap-table").bootstrapTable("getSelections");
window.location.href = prefix + "/edit/" + row[0].poNo;
}
function addWarehousingPuchaseNoticBypoNo(poNo) {
alert($("." + poNo + "warehousingType").val())
// window.location.href = ctx + "stock/warehousingPucharseNotice/adddetail/" + poNo;
$.ajax({
url: ctx + 'stock/warehousingPucharseNotice/addWarehousingPuchaseNoticBypoNo/' + poNo,
data: {
'warehousingType': $("." + poNo + "warehousingType").val(),
'warehouseName': $("." + poNo + "warehouseName").find("option:selected").text(),
'warehouseNo': $("." + poNo + "warehouseNo").val(),
'warehousingAmt': $("." + poNo + "warehouseNoticeAmt").val()
},
// dataType: "json",
success: function (data) {
alert(data + '后台获取成功')
}
,
fail: function () {
alert('失败')
}
})
}
</script>
</body>
</html>

138
ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/add_bak.html

@ -1,138 +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" style="padding-bottom: 100px">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-pucharseNotice-add">
<div class="form-group">
<label class="col-sm-3 control-label">入库通知单号:</label>
<div class="col-sm-8">
<input name="warehousingpurchasenoticeNo" 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="customerId" 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="customerName" 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="warehousingType" 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">
<div class="input-group date">
<input name="warehousingnoticeDate" 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="purchaseorderNo" 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="domesticOrExport" 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="warehouseNo" 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="warehouseName" 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="itemTimes" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">采购物料编号:</label>
<div class="col-sm-8">
<input name="warehousingpurchaseNo" 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="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="specificationModel" 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="machineType" 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="unit" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">数量:</label>
<div class="col-sm-8">
<input name="warehousingAmt" 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 + "stock/warehousingPucharseNotice"
$("#form-pucharseNotice-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-pucharseNotice-add').serialize());
}
}
$("input[name='warehousingnoticeDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

141
ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/adddetail.html

@ -1,141 +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-pucharseNotice-adddetail" th:object="${warehousingPurchaseNotice}">
<input name="warehousingpurchasenoticeNo" th:field="*{warehousingpurchasenoticeNo}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">入库通知单号:</label>
<div class="col-sm-8">
<input name="warehousingpurchasenoticeNo" th:field="*{warehousingpurchasenoticeNo}" 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="customerId" th:field="*{customerId}" 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="customerName" th:field="*{customerName}" 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="warehousingType" 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">
<div class="input-group date">
<input name="warehousingnoticeDate"
th:value="${#dates.format(warehousingPurchaseNotice.warehousingnoticeDate, '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 readonly name="purchaseorderNo" th:field="*{purchaseorderNo}" 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 readonly name="warehouseNo" th:field="*{warehouseNo}" 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="warehouseName" th:field="*{warehouseName}" 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 readonly name="itemTimes" th:field="*{itemTimes}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">采购物料编号:</label>
<div class="col-sm-8">
<input readonly name="warehousingpurchaseNo" th:field="*{warehousingpurchaseNo}" 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 readonly 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 readonly name="specificationModel" th:field="*{specificationModel}" 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 readonly name="specificationModel" th:field="*{machineType}" 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 readonly name="unit" th:field="*{unit}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">数量:</label>
<div class="col-sm-8">
<input name="warehousingAmt" th:field="*{warehousingAmt}" class="form-control" type="text">
</div>
</div>
<div class="layui-layer-btn layui-layer-btn-">\
<input type="submit" name="" id="">确定
<!-- <a class="layui-layer-btn0" type="submit">确定</a>-->
<a class="layui-layer-btn1">关闭</a>
</div>
</form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
var prefix = ctx + "stock/pucharseNotice";
$("#form-pucharseNotice-adddetail").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/adddetail", $('#form-pucharseNotice-adddetail').serialize());
}
}
$("input[name='warehousingnoticeDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

155
ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/detail.html

@ -1,155 +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-pucharseNotice-detail" th:object="${warehousingPurchaseNotice}">
<input name="warehousingpurchasenoticeNo" th:field="*{warehousingpurchasenoticeNo}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">入库通知单号:</label>
<div class="col-sm-8">
<input readonly name="warehousingpurchasenoticeNo" th:field="*{warehousingpurchasenoticeNo}"
class="form-control"
type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">客户ID:</label>
<div class="col-sm-8">
<input readonly name="customerId" th:field="*{customerId}" 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 readonly name="customerName" th:field="*{customerName}" 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 readonly name="warehousingType" th:field="*{warehousingType}" 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 readonly name="warehousingnoticeDate" th:field="*{warehousingnoticeDate}" 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 readonly name="purchaseorderNo" th:field="*{purchaseorderNo}" 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 readonly name="domesticOrExport" th:field="*{domesticOrExport}" 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 readonly name="warehouseNo" th:field="*{warehouseNo}" 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 readonly name="warehouseName" th:field="*{warehouseName}" 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 readonly name="itemTimes" th:field="*{itemTimes}" 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 readonly name="itemNo" th:field="*{itemNo}" 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 readonly 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 readonly name="specificationModel" th:field="*{specificationModel}" 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 readonly name="machineType" th:field="*{machineType}" 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 readonly name="unit" th:field="*{unit}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">此次通知入库数量:</label>
<div class="col-sm-8">
<input readonly name="warehousingAmt" th:field="*{warehousingAmt}" 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 readonly name="purchaseorderAmt" th:field="*{purchaseorderAmt}" 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 readonly name="spell1" th:field="*{spell1}" 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 readonly name="spell2" th:field="*{spell2}" 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 + "stock/warehousingPucharseNotice";
$("#form-pucharseNotice-detail").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/detail", $('#form-pucharseNotice-detail').serialize());
}
}
$("input[name='warehousingnoticeDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

160
ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/edit.html

@ -1,160 +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-pucharseNotice-edit" th:object="${warehousingPurchaseNotice}">
<input name="warehousingpurchasenoticeNo" th:field="*{warehousingpurchasenoticeNo}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">入库通知单号:</label>
<div class="col-sm-8">
<input name="warehousingpurchasenoticeNo" th:field="*{warehousingpurchasenoticeNo}" class="form-control"
type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">客户ID:</label>
<div class="col-sm-8">
<input name="customerId" th:field="*{customerId}" 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="customerName" th:field="*{customerName}" 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="warehousingType" 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">
<div class="input-group date">
<input name="warehousingnoticeDate"
th:value="${#dates.format(warehousingPurchaseNotice.warehousingnoticeDate, '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="purchaseorderNo" th:field="*{purchaseorderNo}" 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="domesticOrExport" th:field="*{domesticOrExport}" 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="warehouseNo" th:field="*{warehouseNo}" 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="warehouseName" th:field="*{warehouseName}" 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="itemTimes" th:field="*{itemTimes}" 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="itemNo" th:field="*{itemNo}" 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="specificationModel" th:field="*{specificationModel}" 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="machineType" 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="unit" th:field="*{unit}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">此次通知入库数量:</label>
<div class="col-sm-8">
<input name="warehousingAmt" th:field="*{warehousingAmt}" 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="purchaseorderAmt" th:field="*{purchaseorderAmt}" 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="spell1" th:field="*{spell1}" 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="spell2" th:field="*{spell2}" 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 + "stock/warehousingPucharseNotice";
$("#form-pucharseNotice-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-pucharseNotice-edit').serialize());
}
}
$("input[name='warehousingnoticeDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

232
ruoyi-admin/src/main/resources/templates/stock/warehousingPucharseNotice/warehousingPucharseNotice.html

@ -1,232 +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="warehousingpurchasenoticeNo"/>
</li>
<li>
<label>客户号:</label>
<input type="text" name="customerId"/>
</li>
<li>
<label>客户名称:</label>
<input type="text" name="customerName"/>
</li>
<li>
<label>入库类型:</label>
<select name="warehousingType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>入库时间:</label>
<input type="text" class="time-input" placeholder="请选择入库时间" name="warehousingNoticeDate"/>
</li>
<li>
<label>采购单号:</label>
<input type="text" name="purchaseorderNo"/>
</li>
<li>
<label>内/外销:</label>
<input type="text" name="domesticOrExport"/>
</li>
<li>
<label>仓库号:</label>
<input type="text" name="warehouseNo"/>
</li>
<li>
<label>仓库名称:</label>
<input type="text" name="warehouseName"/>
</li>
<li>
<label>项次:</label>
<input type="text" name="itemTimes"/>
</li>
<li>
<label>采购物料编号:</label>
<input type="text" name="warehousingpurchaseNo"/>
</li>
<li>
<label>采购物料名称:</label>
<input type="text" name="itemName"/>
</li>
<li>
<label>规格型号:</label>
<input type="text" name="specificationModel"/>
</li>
<li>
<label>机种:</label>
<select name="machineType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>单位:</label>
<input type="text" name="unit"/>
</li>
<li>
<label>数量:</label>
<input type="text" name="warehousingAmt"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
class="fa fa-refresh"></i>&nbsp;重置</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="stock:pucharseNotice:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()"
shiro:hasPermission="stock:pucharseNotice:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"
shiro:hasPermission="stock:pucharseNotice:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()"
shiro:hasPermission="stock:pucharseNotice:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('stock:warehousingPucharseNotice:edit')}]];
var removeFlag = [[${@permission.hasPermi('stock:warehousingPucharseNotice:remove')}]];
var prefix = ctx + "stock/warehousingPucharseNotice";
//添加按钮弹出完整窗口
function addInfo() {
window.location.href = prefix + "/add";
}
$(function () {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
detailUrl: prefix + "/detail/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "采购入库通知查询",
columns: [{
checkbox: true
},
{
field: 'warehousingpurchasenoticeNo',
title: '入库通知单号'
},
{
field: 'customerId',
title: '客户ID'
},
{
field: 'customerName',
title: '客户名称'
},
{
field: 'warehousingType',
title: '入库类型'
},
{
field: 'warehousingnoticeDate',
title: '入库通知日期'
},
{
field: 'purchaseorderNo',
title: '采购单号'
},
{
field: 'domesticOrExport',
title: '内/外销'
},
{
field: 'warehouseNo',
title: '仓库号'
},
{
field: 'warehouseName',
title: '仓库名称'
},
{
field: 'itemTimes',
title: '项次'
},
{
field: 'itemNo',
title: '物料代码'
},
{
field: 'itemName',
title: '采购物料名称'
},
{
field: 'specificationModel',
title: '规格型号'
},
{
field: 'machineType',
title: '机种'
},
{
field: 'unit',
title: '单位'
},
{
field: 'warehousingAmt',
title: '此次通知入库数量'
},
{
field: 'purchaseorderAmt',
title: '订单订购总数量'
},
{
field: 'spell1',
title: '',
visible: false,
},
{
field: 'spell2',
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="$.operate.detail(\'' + row.warehousingpurchasenoticeNo + '\')"><i class="fa fa-edit"></i>详细信息</a> ');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>
Loading…
Cancel
Save