9 changed files with 0 additions and 1354 deletions
@ -1,144 +0,0 @@ |
|||
package com.ruoyi.stock.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.stock.domain.CheckList; |
|||
import com.ruoyi.stock.service.ICheckListService; |
|||
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-12-20 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/stock/checkList") |
|||
public class CheckListController extends BaseController |
|||
{ |
|||
private String prefix = "stock/checkList"; |
|||
|
|||
@Autowired |
|||
private ICheckListService checkListService; |
|||
|
|||
@RequiresPermissions("stock:checkList:view") |
|||
@GetMapping() |
|||
public String checkList() |
|||
{ |
|||
return prefix + "/checkList"; |
|||
} |
|||
|
|||
/** |
|||
* 查询盘底列表 |
|||
*/ |
|||
@RequiresPermissions("stock:checkList:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(CheckList checkList) |
|||
{ |
|||
startPage(); |
|||
List<CheckList> list = checkListService.selectCheckListList(checkList); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出盘底列表 |
|||
*/ |
|||
@RequiresPermissions("stock:checkList:export") |
|||
@Log(title = "盘底", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ResponseBody |
|||
public AjaxResult export(CheckList checkList) |
|||
{ |
|||
List<CheckList> list = checkListService.selectCheckListList(checkList); |
|||
ExcelUtil<CheckList> util = new ExcelUtil<CheckList>(CheckList.class); |
|||
return util.exportExcel(list, "盘底数据"); |
|||
} |
|||
|
|||
/** |
|||
* 新增盘底 |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() |
|||
{ |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存盘底 |
|||
*/ |
|||
@RequiresPermissions("stock:checkList:add") |
|||
@Log(title = "盘底", businessType = BusinessType.INSERT) |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public AjaxResult addSave(CheckList checkList) |
|||
{ |
|||
return toAjax(checkListService.insertCheckList(checkList)); |
|||
} |
|||
|
|||
/** |
|||
* 修改盘底 |
|||
*/ |
|||
@GetMapping("/edit/{checkId}") |
|||
public String edit(@PathVariable("checkId") String checkId, ModelMap mmap) |
|||
{ |
|||
CheckList checkList = checkListService.selectCheckListById(checkId); |
|||
mmap.put("checkList", checkList); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
/** |
|||
* 修改保存盘底 |
|||
*/ |
|||
@RequiresPermissions("stock:checkList:edit") |
|||
@Log(title = "盘底", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public AjaxResult editSave(CheckList checkList) |
|||
{ |
|||
return toAjax(checkListService.updateCheckList(checkList)); |
|||
} |
|||
|
|||
/** |
|||
* 删除盘底 |
|||
*/ |
|||
@RequiresPermissions("stock:checkList:remove") |
|||
@Log(title = "盘底", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(checkListService.deleteCheckListByIds(ids)); |
|||
} |
|||
|
|||
@ResponseBody |
|||
@PostMapping("/isUpdate") |
|||
public Result selectByCheckIdWithItemCode(CheckList checkList)throws Exception{ |
|||
CheckList get = checkListService.selectByCheckIdWithItemCode(checkList); |
|||
String isUpdate = get.getIsUpdate(); |
|||
if ("1".equals(isUpdate)){ |
|||
return Result.getFailResult("已更新,无法修改!", null); |
|||
}else { |
|||
return Result.getSuccessResult(null); |
|||
} |
|||
} |
|||
|
|||
//更新库存
|
|||
@ResponseBody |
|||
@PostMapping("/inventory") |
|||
public Result updateInventory(CheckList checkList)throws Exception{ |
|||
System.out.println(checkList); |
|||
return Result.getSuccessResult(checkListService.updateInventory(checkList)); |
|||
} |
|||
} |
@ -1,289 +0,0 @@ |
|||
package com.ruoyi.stock.domain; |
|||
|
|||
import com.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 盘底对象 check_list |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-12-20 |
|||
*/ |
|||
public class CheckList extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 盘底单号 */ |
|||
@Excel(name = "盘底单号") |
|||
private String checkId; |
|||
|
|||
/** 项次 */ |
|||
@Excel(name = "项次") |
|||
private String itemNo; |
|||
|
|||
/** 物料代码 */ |
|||
@Excel(name = "物料代码") |
|||
private String itemCode; |
|||
|
|||
/** 物料名称 */ |
|||
@Excel(name = "物料名称") |
|||
private String itemName; |
|||
|
|||
/** 物料规格 */ |
|||
@Excel(name = "物料规格") |
|||
private String itemSpecification; |
|||
|
|||
/** 机种 */ |
|||
@Excel(name = "机种") |
|||
private String machineType; |
|||
|
|||
/** 单位 */ |
|||
@Excel(name = "单位") |
|||
private String unit; |
|||
|
|||
/** 数量 */ |
|||
@Excel(name = "数量") |
|||
private String qty; |
|||
|
|||
/** 目前数量 */ |
|||
@Excel(name = "目前数量") |
|||
private String nowQty; |
|||
|
|||
/** 盘底数量 */ |
|||
@Excel(name = "盘底数量") |
|||
private String checkQty; |
|||
|
|||
/** 批号 */ |
|||
@Excel(name = "批号") |
|||
private String batchNumber; |
|||
|
|||
/** 更新否 */ |
|||
@Excel(name = "更新否") |
|||
private String isUpdate; |
|||
|
|||
/** 存放位置 */ |
|||
@Excel(name = "存放位置") |
|||
private String spare1; |
|||
|
|||
/** */ |
|||
@Excel(name = "") |
|||
private String spare2; |
|||
|
|||
/** */ |
|||
@Excel(name = "") |
|||
private String spare3; |
|||
|
|||
/** */ |
|||
@Excel(name = "") |
|||
private String spare4; |
|||
|
|||
/** */ |
|||
@Excel(name = "") |
|||
private String spare5; |
|||
|
|||
/** */ |
|||
@Excel(name = "") |
|||
private String spare6; |
|||
|
|||
/** 备注 */ |
|||
@Excel(name = "备注") |
|||
private String remark; |
|||
|
|||
@Override |
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
@Override |
|||
public void setRemark(String remark) { |
|||
this.remark = remark; |
|||
} |
|||
|
|||
public void setCheckId(String checkId) |
|||
{ |
|||
this.checkId = checkId; |
|||
} |
|||
|
|||
public String getCheckId() |
|||
{ |
|||
return checkId; |
|||
} |
|||
public void setItemNo(String itemNo) |
|||
{ |
|||
this.itemNo = itemNo; |
|||
} |
|||
|
|||
public String getItemNo() |
|||
{ |
|||
return itemNo; |
|||
} |
|||
public void setItemCode(String itemCode) |
|||
{ |
|||
this.itemCode = itemCode; |
|||
} |
|||
|
|||
public String getItemCode() |
|||
{ |
|||
return itemCode; |
|||
} |
|||
public void setItemName(String itemName) |
|||
{ |
|||
this.itemName = itemName; |
|||
} |
|||
|
|||
public String getItemName() |
|||
{ |
|||
return itemName; |
|||
} |
|||
public void setItemSpecification(String itemSpecification) |
|||
{ |
|||
this.itemSpecification = itemSpecification; |
|||
} |
|||
|
|||
public String getItemSpecification() |
|||
{ |
|||
return itemSpecification; |
|||
} |
|||
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 setQty(String qty) |
|||
{ |
|||
this.qty = qty; |
|||
} |
|||
|
|||
public String getQty() |
|||
{ |
|||
return qty; |
|||
} |
|||
public void setNowQty(String nowQty) |
|||
{ |
|||
this.nowQty = nowQty; |
|||
} |
|||
|
|||
public String getNowQty() |
|||
{ |
|||
return nowQty; |
|||
} |
|||
public void setCheckQty(String checkQty) |
|||
{ |
|||
this.checkQty = checkQty; |
|||
} |
|||
|
|||
public String getCheckQty() |
|||
{ |
|||
return checkQty; |
|||
} |
|||
public void setBatchNumber(String batchNumber) |
|||
{ |
|||
this.batchNumber = batchNumber; |
|||
} |
|||
|
|||
public String getBatchNumber() |
|||
{ |
|||
return batchNumber; |
|||
} |
|||
public void setIsUpdate(String isUpdate) |
|||
{ |
|||
this.isUpdate = isUpdate; |
|||
} |
|||
|
|||
public String getIsUpdate() |
|||
{ |
|||
return isUpdate; |
|||
} |
|||
public void setSpare1(String spare1) |
|||
{ |
|||
this.spare1 = spare1; |
|||
} |
|||
|
|||
public String getSpare1() |
|||
{ |
|||
return spare1; |
|||
} |
|||
public void setSpare2(String spare2) |
|||
{ |
|||
this.spare2 = spare2; |
|||
} |
|||
|
|||
public String getSpare2() |
|||
{ |
|||
return spare2; |
|||
} |
|||
public void setSpare3(String spare3) |
|||
{ |
|||
this.spare3 = spare3; |
|||
} |
|||
|
|||
public String getSpare3() |
|||
{ |
|||
return spare3; |
|||
} |
|||
public void setSpare4(String spare4) |
|||
{ |
|||
this.spare4 = spare4; |
|||
} |
|||
|
|||
public String getSpare4() |
|||
{ |
|||
return spare4; |
|||
} |
|||
public void setSpare5(String spare5) |
|||
{ |
|||
this.spare5 = spare5; |
|||
} |
|||
|
|||
public String getSpare5() |
|||
{ |
|||
return spare5; |
|||
} |
|||
public void setSpare6(String spare6) |
|||
{ |
|||
this.spare6 = spare6; |
|||
} |
|||
|
|||
public String getSpare6() |
|||
{ |
|||
return spare6; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return "CheckList{" + |
|||
"checkId='" + checkId + '\'' + |
|||
", itemNo='" + itemNo + '\'' + |
|||
", itemCode='" + itemCode + '\'' + |
|||
", itemName='" + itemName + '\'' + |
|||
", itemSpecification='" + itemSpecification + '\'' + |
|||
", machineType='" + machineType + '\'' + |
|||
", unit='" + unit + '\'' + |
|||
", qty='" + qty + '\'' + |
|||
", nowQty='" + nowQty + '\'' + |
|||
", checkQty='" + checkQty + '\'' + |
|||
", batchNumber='" + batchNumber + '\'' + |
|||
", isUpdate='" + isUpdate + '\'' + |
|||
", spare1='" + spare1 + '\'' + |
|||
", spare2='" + spare2 + '\'' + |
|||
", spare3='" + spare3 + '\'' + |
|||
", spare4='" + spare4 + '\'' + |
|||
", spare5='" + spare5 + '\'' + |
|||
", spare6='" + spare6 + '\'' + |
|||
", remark='" + remark + '\'' + |
|||
'}'; |
|||
} |
|||
} |
@ -1,68 +0,0 @@ |
|||
package com.ruoyi.stock.mapper; |
|||
|
|||
import com.ruoyi.stock.domain.CheckList; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 盘底Mapper接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-12-20 |
|||
*/ |
|||
public interface CheckListMapper |
|||
{ |
|||
/** |
|||
* 查询盘底 |
|||
* |
|||
* @param checkId 盘底ID |
|||
* @return 盘底 |
|||
*/ |
|||
public CheckList selectCheckListById(String checkId); |
|||
|
|||
/** |
|||
* 查询盘底列表 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 盘底集合 |
|||
*/ |
|||
public List<CheckList> selectCheckListList(CheckList checkList); |
|||
|
|||
/** |
|||
* 新增盘底 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertCheckList(CheckList checkList); |
|||
|
|||
/** |
|||
* 修改盘底 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateCheckList(CheckList checkList); |
|||
|
|||
/** |
|||
* 删除盘底 |
|||
* |
|||
* @param checkId 盘底ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteCheckListById(String checkId); |
|||
|
|||
/** |
|||
* 批量删除盘底 |
|||
* |
|||
* @param checkIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteCheckListByIds(String[] checkIds); |
|||
|
|||
public List<CheckList> selectByCheckId(CheckList checkList); |
|||
|
|||
public CheckList selectByCheckIdWithItemCode(CheckList checkList); |
|||
|
|||
public int updateNowQty(CheckList checkList); |
|||
} |
@ -1,68 +0,0 @@ |
|||
package com.ruoyi.stock.service; |
|||
|
|||
import com.ruoyi.stock.domain.CheckList; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 盘底Service接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-12-20 |
|||
*/ |
|||
public interface ICheckListService |
|||
{ |
|||
/** |
|||
* 查询盘底 |
|||
* |
|||
* @param checkId 盘底ID |
|||
* @return 盘底 |
|||
*/ |
|||
public CheckList selectCheckListById(String checkId); |
|||
|
|||
/** |
|||
* 查询盘底列表 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 盘底集合 |
|||
*/ |
|||
public List<CheckList> selectCheckListList(CheckList checkList); |
|||
|
|||
/** |
|||
* 新增盘底 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertCheckList(CheckList checkList); |
|||
|
|||
/** |
|||
* 修改盘底 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateCheckList(CheckList checkList); |
|||
|
|||
/** |
|||
* 批量删除盘底 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteCheckListByIds(String ids); |
|||
|
|||
/** |
|||
* 删除盘底信息 |
|||
* |
|||
* @param checkId 盘底ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteCheckListById(String checkId); |
|||
|
|||
public List<CheckList> selectByCheckId(CheckList checkList); |
|||
|
|||
public CheckList selectByCheckIdWithItemCode(CheckList checkList); |
|||
|
|||
public int updateInventory(CheckList checkList); |
|||
} |
@ -1,117 +0,0 @@ |
|||
package com.ruoyi.stock.service.impl; |
|||
|
|||
import com.ruoyi.common.core.text.Convert; |
|||
import com.ruoyi.stock.domain.CheckList; |
|||
import com.ruoyi.stock.domain.Warehouse; |
|||
import com.ruoyi.stock.mapper.CheckListMapper; |
|||
import com.ruoyi.stock.mapper.WarehouseMapper; |
|||
import com.ruoyi.stock.service.ICheckListService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 盘底Service业务层处理 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2021-12-20 |
|||
*/ |
|||
@Service |
|||
public class CheckListServiceImpl implements ICheckListService { |
|||
@Autowired |
|||
private CheckListMapper checkListMapper; |
|||
|
|||
@Autowired |
|||
private WarehouseMapper warehouseMapper; |
|||
|
|||
/** |
|||
* 查询盘底 |
|||
* |
|||
* @param checkId 盘底ID |
|||
* @return 盘底 |
|||
*/ |
|||
@Override |
|||
public CheckList selectCheckListById(String checkId) { |
|||
return checkListMapper.selectCheckListById(checkId); |
|||
} |
|||
|
|||
/** |
|||
* 查询盘底列表 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 盘底 |
|||
*/ |
|||
@Override |
|||
public List<CheckList> selectCheckListList(CheckList checkList) { |
|||
return checkListMapper.selectCheckListList(checkList); |
|||
} |
|||
|
|||
/** |
|||
* 新增盘底 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertCheckList(CheckList checkList) { |
|||
return checkListMapper.insertCheckList(checkList); |
|||
} |
|||
|
|||
/** |
|||
* 修改盘底 |
|||
* |
|||
* @param checkList 盘底 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateCheckList(CheckList checkList) { |
|||
return checkListMapper.updateCheckList(checkList); |
|||
} |
|||
|
|||
/** |
|||
* 删除盘底对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteCheckListByIds(String ids) { |
|||
return checkListMapper.deleteCheckListByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除盘底信息 |
|||
* |
|||
* @param checkId 盘底ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteCheckListById(String checkId) { |
|||
return checkListMapper.deleteCheckListById(checkId); |
|||
} |
|||
|
|||
@Override |
|||
public List<CheckList> selectByCheckId(CheckList checkList) { |
|||
return checkListMapper.selectByCheckId(checkList); |
|||
} |
|||
|
|||
@Override |
|||
public CheckList selectByCheckIdWithItemCode(CheckList checkList) { |
|||
return checkListMapper.selectByCheckIdWithItemCode(checkList); |
|||
} |
|||
|
|||
@Override |
|||
public int updateInventory(CheckList checkList) { |
|||
checkList.setIsUpdate("1"); |
|||
Warehouse warehouse = new Warehouse(); |
|||
warehouse.setWlCode(checkList.getItemCode()); |
|||
Warehouse getWarehouse = warehouseMapper.selectByCode(warehouse); |
|||
if (getWarehouse != null) { |
|||
checkList.setNowQty(getWarehouse.getQty() + ""); |
|||
} else { |
|||
checkList.setNowQty("0"); |
|||
} |
|||
return checkListMapper.updateNowQty(checkList); |
|||
} |
|||
} |
@ -1,156 +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.CheckListMapper"> |
|||
|
|||
<resultMap type="CheckList" id="CheckListResult"> |
|||
<result property="checkId" column="checkId" /> |
|||
<result property="itemNo" column="itemNo" /> |
|||
<result property="itemCode" column="itemCode" /> |
|||
<result property="itemName" column="itemName" /> |
|||
<result property="itemSpecification" column="itemSpecification" /> |
|||
<result property="machineType" column="machineType" /> |
|||
<result property="unit" column="unit" /> |
|||
<result property="qty" column="qty" /> |
|||
<result property="nowQty" column="nowQty" /> |
|||
<result property="remark" column="remark" /> |
|||
<result property="checkQty" column="checkQty" /> |
|||
<result property="batchNumber" column="batchNumber" /> |
|||
<result property="isUpdate" column="isUpdate" /> |
|||
<result property="spare1" column="spare1" /> |
|||
<result property="spare2" column="spare2" /> |
|||
<result property="spare3" column="spare3" /> |
|||
<result property="spare4" column="spare4" /> |
|||
<result property="spare5" column="spare5" /> |
|||
<result property="spare6" column="spare6" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectCheckListVo"> |
|||
select checkId, itemNo, itemCode, itemName, itemSpecification, machineType, unit, qty, nowQty, remark, checkQty, batchNumber, isUpdate, spare1, spare2, spare3, spare4, spare5, spare6 from check_list |
|||
</sql> |
|||
|
|||
<select id="selectCheckListList" parameterType="CheckList" resultMap="CheckListResult"> |
|||
<include refid="selectCheckListVo"/> |
|||
<where> |
|||
<if test="checkId != null and checkId != ''"> and checkId like concat('%', #{checkId}, '%')</if> |
|||
<if test="itemNo != null and itemNo != ''"> and itemNo like concat('%', #{itemNo}, '%')</if> |
|||
<if test="itemCode != null and itemCode != ''"> and itemCode like concat('%', #{itemCode}, '%')</if> |
|||
<if test="itemName != null and itemName != ''"> and itemName like concat('%', #{itemName}, '%')</if> |
|||
<if test="itemSpecification != null and itemSpecification != ''"> and itemSpecification like concat('%', #{itemSpecification}, '%')</if> |
|||
<if test="machineType != null and machineType != ''"> and machineType like concat('%', #{machineType}, '%')</if> |
|||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if> |
|||
<if test="qty != null and qty != ''"> and qty = #{qty}</if> |
|||
<if test="nowQty != null and nowQty != ''"> and nowQty = #{nowQty}</if> |
|||
<if test="checkQty != null and checkQty != ''"> and checkQty = #{checkQty}</if> |
|||
<if test="batchNumber != null and batchNumber != ''"> and batchNumber like concat('%', #{batchNumber}, '%')</if> |
|||
<if test="isUpdate != null and isUpdate != ''"> and isUpdate = #{isUpdate}</if> |
|||
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if> |
|||
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if> |
|||
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if> |
|||
<if test="spare4 != null and spare4 != ''"> and spare4 = #{spare4}</if> |
|||
<if test="spare5 != null and spare5 != ''"> and spare5 = #{spare5}</if> |
|||
<if test="spare6 != null and spare6 != ''"> and spare6 = #{spare6}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectCheckListById" parameterType="String" resultMap="CheckListResult"> |
|||
<include refid="selectCheckListVo"/> |
|||
where checkId = #{checkId} |
|||
</select> |
|||
|
|||
<insert id="insertCheckList" parameterType="CheckList"> |
|||
insert into check_list |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="checkId != null and checkId != ''">checkId,</if> |
|||
<if test="itemNo != null">itemNo,</if> |
|||
<if test="itemCode != null">itemCode,</if> |
|||
<if test="itemName != null">itemName,</if> |
|||
<if test="itemSpecification != null">itemSpecification,</if> |
|||
<if test="machineType != null">machineType,</if> |
|||
<if test="unit != null">unit,</if> |
|||
<if test="qty != null">qty,</if> |
|||
<if test="nowQty != null">nowQty,</if> |
|||
<if test="remark != null">remark,</if> |
|||
<if test="checkQty != null">checkQty,</if> |
|||
<if test="batchNumber != null">batchNumber,</if> |
|||
<if test="isUpdate != null">isUpdate,</if> |
|||
<if test="spare1 != null">spare1,</if> |
|||
<if test="spare2 != null">spare2,</if> |
|||
<if test="spare3 != null">spare3,</if> |
|||
<if test="spare4 != null">spare4,</if> |
|||
<if test="spare5 != null">spare5,</if> |
|||
<if test="spare6 != null">spare6,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="checkId != null and checkId != ''">#{checkId},</if> |
|||
<if test="itemNo != null">#{itemNo},</if> |
|||
<if test="itemCode != null">#{itemCode},</if> |
|||
<if test="itemName != null">#{itemName},</if> |
|||
<if test="itemSpecification != null">#{itemSpecification},</if> |
|||
<if test="machineType != null">#{machineType},</if> |
|||
<if test="unit != null">#{unit},</if> |
|||
<if test="qty != null">#{qty},</if> |
|||
<if test="nowQty != null">#{nowQty},</if> |
|||
<if test="remark != null">#{remark},</if> |
|||
<if test="checkQty != null">#{checkQty},</if> |
|||
<if test="batchNumber != null">#{batchNumber},</if> |
|||
<if test="isUpdate != null">#{isUpdate},</if> |
|||
<if test="spare1 != null">#{spare1},</if> |
|||
<if test="spare2 != null">#{spare2},</if> |
|||
<if test="spare3 != null">#{spare3},</if> |
|||
<if test="spare4 != null">#{spare4},</if> |
|||
<if test="spare5 != null">#{spare5},</if> |
|||
<if test="spare6 != null">#{spare6},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateCheckList" parameterType="CheckList"> |
|||
update check_list |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="itemNo != null">itemNo = #{itemNo},</if> |
|||
<if test="itemCode != null">itemCode = #{itemCode},</if> |
|||
<if test="itemName != null">itemName = #{itemName},</if> |
|||
<if test="itemSpecification != null">itemSpecification = #{itemSpecification},</if> |
|||
<if test="machineType != null">machineType = #{machineType},</if> |
|||
<if test="unit != null">unit = #{unit},</if> |
|||
<if test="qty != null">qty = #{qty},</if> |
|||
<if test="nowQty != null">nowQty = #{nowQty},</if> |
|||
<if test="remark != null">remark = #{remark},</if> |
|||
<if test="checkQty != null">checkQty = #{checkQty},</if> |
|||
<if test="batchNumber != null">batchNumber = #{batchNumber},</if> |
|||
<if test="isUpdate != null">isUpdate = #{isUpdate},</if> |
|||
<if test="spare1 != null">spare1 = #{spare1},</if> |
|||
<if test="spare2 != null">spare2 = #{spare2},</if> |
|||
<if test="spare3 != null">spare3 = #{spare3},</if> |
|||
<if test="spare4 != null">spare4 = #{spare4},</if> |
|||
<if test="spare5 != null">spare5 = #{spare5},</if> |
|||
<if test="spare6 != null">spare6 = #{spare6},</if> |
|||
</trim> |
|||
where checkId = #{checkId} |
|||
</update> |
|||
|
|||
<delete id="deleteCheckListById" parameterType="String"> |
|||
delete from check_list where checkId = #{checkId} |
|||
</delete> |
|||
|
|||
<delete id="deleteCheckListByIds" parameterType="String"> |
|||
delete from check_list where checkId in |
|||
<foreach item="checkId" collection="array" open="(" separator="," close=")"> |
|||
#{checkId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
<select id="selectByCheckId" parameterType="CheckList" resultMap="CheckListResult"> |
|||
select * from check_list where checkId=#{checkId} |
|||
</select> |
|||
|
|||
<select id="selectByCheckIdWithItemCode" parameterType="CheckList" resultMap="CheckListResult"> |
|||
select * from check_list where checkId=#{checkId} and itemCode=#{itemCode} |
|||
</select> |
|||
|
|||
<update id="updateNowQty" parameterType="CheckList"> |
|||
update check_list set nowQty = #{nowQty},isUpdate = #{isUpdate} where checkId = #{checkId} and itemCode=#{itemCode} |
|||
</update> |
|||
|
|||
</mapper> |
@ -1,145 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('新增盘底')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-checkList-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">盘底单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="checkId" 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="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="itemCode" 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="itemSpecification" 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="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="nowQty" 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="remark" 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="checkQty" 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="batchNumber" 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="isUpdate" 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="spare1" 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="spare2" 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="spare3" 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="spare4" 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="spare5" 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="spare6" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "stock/checkList" |
|||
$("#form-checkList-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-checkList-add').serialize()); |
|||
} |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,227 +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="checkId"/> |
|||
</li> |
|||
<li> |
|||
<label>项次:</label> |
|||
<input type="text" name="itemNo"/> |
|||
</li> |
|||
<li> |
|||
<label>物料代码:</label> |
|||
<input type="text" name="itemCode"/> |
|||
</li> |
|||
<li> |
|||
<label>物料名称:</label> |
|||
<input type="text" name="itemName"/> |
|||
</li> |
|||
<li> |
|||
<label>物料规格:</label> |
|||
<input type="text" name="itemSpecification"/> |
|||
</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="qty"/> |
|||
</li> |
|||
<li> |
|||
<label>目前数量:</label> |
|||
<input type="text" name="nowQty"/> |
|||
</li> |
|||
<li> |
|||
<label>盘底数量:</label> |
|||
<input type="text" name="checkQty"/> |
|||
</li> |
|||
<li> |
|||
<label>批号:</label> |
|||
<input type="text" name="batchNumber"/> |
|||
</li> |
|||
<li> |
|||
<label>更新否:</label> |
|||
<select name="isUpdate"> |
|||
<option value="">所有</option> |
|||
<option value="-1">代码生成请选择字典属性</option> |
|||
</select> |
|||
</li> |
|||
<li> |
|||
<label>:</label> |
|||
<input type="text" name="spare1"/> |
|||
</li> |
|||
<li> |
|||
<label>:</label> |
|||
<input type="text" name="spare2"/> |
|||
</li> |
|||
<li> |
|||
<label>:</label> |
|||
<input type="text" name="spare3"/> |
|||
</li> |
|||
<li> |
|||
<label>:</label> |
|||
<input type="text" name="spare4"/> |
|||
</li> |
|||
<li> |
|||
<label>:</label> |
|||
<input type="text" name="spare5"/> |
|||
</li> |
|||
<li> |
|||
<label>:</label> |
|||
<input type="text" name="spare6"/> |
|||
</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="stock:checkList:add"> |
|||
<i class="fa fa-plus"></i> 添加 |
|||
</a> |
|||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="stock:checkList:edit"> |
|||
<i class="fa fa-edit"></i> 修改 |
|||
</a> |
|||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="stock:checkList:remove"> |
|||
<i class="fa fa-remove"></i> 删除 |
|||
</a> |
|||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="stock:checkList: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('stock:checkList:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('stock:checkList:remove')}]]; |
|||
var prefix = ctx + "stock/checkList"; |
|||
|
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "盘底", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
field: 'checkId', |
|||
title: '盘底单号' |
|||
}, |
|||
{ |
|||
field: 'itemNo', |
|||
title: '项次' |
|||
}, |
|||
{ |
|||
field: 'itemCode', |
|||
title: '物料代码' |
|||
}, |
|||
{ |
|||
field: 'itemName', |
|||
title: '物料名称' |
|||
}, |
|||
{ |
|||
field: 'itemSpecification', |
|||
title: '物料规格' |
|||
}, |
|||
{ |
|||
field: 'machineType', |
|||
title: '机种' |
|||
}, |
|||
{ |
|||
field: 'unit', |
|||
title: '单位' |
|||
}, |
|||
{ |
|||
field: 'qty', |
|||
title: '数量' |
|||
}, |
|||
{ |
|||
field: 'nowQty', |
|||
title: '目前数量' |
|||
}, |
|||
{ |
|||
field: 'remark', |
|||
title: '备注' |
|||
}, |
|||
{ |
|||
field: 'checkQty', |
|||
title: '盘底数量' |
|||
}, |
|||
{ |
|||
field: 'batchNumber', |
|||
title: '批号' |
|||
}, |
|||
{ |
|||
field: 'isUpdate', |
|||
title: '更新否' |
|||
}, |
|||
{ |
|||
field: 'spare1', |
|||
title: '' |
|||
}, |
|||
{ |
|||
field: 'spare2', |
|||
title: '' |
|||
}, |
|||
{ |
|||
field: 'spare3', |
|||
title: '' |
|||
}, |
|||
{ |
|||
field: 'spare4', |
|||
title: '' |
|||
}, |
|||
{ |
|||
field: 'spare5', |
|||
title: '' |
|||
}, |
|||
{ |
|||
field: 'spare6', |
|||
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.checkId + '\')"><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.checkId + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|||
return actions.join(''); |
|||
} |
|||
}] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,140 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改盘底')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-checkList-edit" th:object="${checkList}"> |
|||
<input name="checkId" th:field="*{checkId}" type="hidden"> |
|||
<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="itemCode" th:field="*{itemCode}" 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="itemSpecification" th:field="*{itemSpecification}" 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="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="nowQty" th:field="*{nowQty}" 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="remark" th:field="*{remark}" 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="checkQty" th:field="*{checkQty}" 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="batchNumber" th:field="*{batchNumber}" 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="isUpdate" 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="spare1" th:field="*{spare1}" 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="spare2" th:field="*{spare2}" 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="spare3" th:field="*{spare3}" 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="spare4" th:field="*{spare4}" 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="spare5" th:field="*{spare5}" 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="spare6" th:field="*{spare6}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "stock/checkList"; |
|||
$("#form-checkList-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-checkList-edit').serialize()); |
|||
} |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue