feat(asset): 添加资产调拨管理功能基础CRUD

- 创建调拨管理实体类 AmsTransferOrder 和调拨单明细实体类 AmsTransferOrderItem
- 实现调拨管理控制器 AmsTransferOrderController 提供完整的CRUD操作
- 开发新增调拨管理页面 add.html 包含表单验证和动态表格功能
- 集成日期选择器和动态表格组件用于调拨单明细管理
- 实现调拨单的增删改查、导出和权限控制功能
main
yangk 2 weeks ago
parent 9d1cb8f029
commit ebb710c43c

@ -0,0 +1,140 @@
package com.ruoyi.asset.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.asset.domain.AmsTransferOrder;
import com.ruoyi.asset.service.IAmsTransferOrderService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author Yangk
* @date 2026-06-12
*/
@Controller
@RequestMapping("/asset/transfer")
public class AmsTransferOrderController extends BaseController
{
private String prefix = "asset/transfer";
@Autowired
private IAmsTransferOrderService amsTransferOrderService;
@RequiresPermissions("asset:transfer:view")
@GetMapping()
public String transfer()
{
return prefix + "/transfer";
}
/**
*
*/
@RequiresPermissions("asset:transfer:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(AmsTransferOrder amsTransferOrder)
{
startPage();
List<AmsTransferOrder> list = amsTransferOrderService.selectAmsTransferOrderList(amsTransferOrder);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("asset:transfer:export")
@Log(title = "调拨管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(AmsTransferOrder amsTransferOrder)
{
List<AmsTransferOrder> list = amsTransferOrderService.selectAmsTransferOrderList(amsTransferOrder);
ExcelUtil<AmsTransferOrder> util = new ExcelUtil<AmsTransferOrder>(AmsTransferOrder.class);
return util.exportExcel(list, "调拨管理数据");
}
/**
*
*/
@RequiresPermissions("asset:transfer:view")
@GetMapping("/view/{orderId}")
public String view(@PathVariable("orderId") Long orderId, ModelMap mmap)
{
AmsTransferOrder amsTransferOrder = amsTransferOrderService.selectAmsTransferOrderByOrderId(orderId);
mmap.put("amsTransferOrder", amsTransferOrder);
return prefix + "/view";
}
/**
*
*/
@RequiresPermissions("asset:transfer:add")
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("asset:transfer:add")
@Log(title = "调拨管理", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(AmsTransferOrder amsTransferOrder)
{
return toAjax(amsTransferOrderService.insertAmsTransferOrder(amsTransferOrder));
}
/**
*
*/
@RequiresPermissions("asset:transfer:edit")
@GetMapping("/edit/{orderId}")
public String edit(@PathVariable("orderId") Long orderId, ModelMap mmap)
{
AmsTransferOrder amsTransferOrder = amsTransferOrderService.selectAmsTransferOrderByOrderId(orderId);
mmap.put("amsTransferOrder", amsTransferOrder);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("asset:transfer:edit")
@Log(title = "调拨管理", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(AmsTransferOrder amsTransferOrder)
{
return toAjax(amsTransferOrderService.updateAmsTransferOrder(amsTransferOrder));
}
/**
*
*/
@RequiresPermissions("asset:transfer:remove")
@Log(title = "调拨管理", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(amsTransferOrderService.deleteAmsTransferOrderByOrderIds(ids));
}
}

@ -0,0 +1,194 @@
package com.ruoyi.asset.domain;
import java.util.List;
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;
/**
* ams_transfer_order
*
* @author Yangk
* @date 2026-06-12
*/
public class AmsTransferOrder extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 单据ID */
private Long orderId;
/** 调拨单号 */
@Excel(name = "调拨单号")
private String transferNo;
/** 申请人ID */
@Excel(name = "申请人ID")
private Long applicantId;
/** 申请人名称快照 */
@Excel(name = "申请人名称快照")
private String applicantName;
/** 调拨原因 */
@Excel(name = "调拨原因")
private String transferReason;
/** 确认人ID */
@Excel(name = "确认人ID")
private Long confirmUserId;
/** 确认人名称快照 */
@Excel(name = "确认人名称快照")
private String confirmUserName;
/** 确认时间 */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@Excel(name = "确认时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date confirmTime;
/** 单据状态 */
@Excel(name = "单据状态")
private String orderStatus;
/** 删除标志0存在1删除 */
private String delFlag;
/** 调拨单明细信息 */
private List<AmsTransferOrderItem> amsTransferOrderItemList;
public void setOrderId(Long orderId)
{
this.orderId = orderId;
}
public Long getOrderId()
{
return orderId;
}
public void setTransferNo(String transferNo)
{
this.transferNo = transferNo;
}
public String getTransferNo()
{
return transferNo;
}
public void setApplicantId(Long applicantId)
{
this.applicantId = applicantId;
}
public Long getApplicantId()
{
return applicantId;
}
public void setApplicantName(String applicantName)
{
this.applicantName = applicantName;
}
public String getApplicantName()
{
return applicantName;
}
public void setTransferReason(String transferReason)
{
this.transferReason = transferReason;
}
public String getTransferReason()
{
return transferReason;
}
public void setConfirmUserId(Long confirmUserId)
{
this.confirmUserId = confirmUserId;
}
public Long getConfirmUserId()
{
return confirmUserId;
}
public void setConfirmUserName(String confirmUserName)
{
this.confirmUserName = confirmUserName;
}
public String getConfirmUserName()
{
return confirmUserName;
}
public void setConfirmTime(Date confirmTime)
{
this.confirmTime = confirmTime;
}
public Date getConfirmTime()
{
return confirmTime;
}
public void setOrderStatus(String orderStatus)
{
this.orderStatus = orderStatus;
}
public String getOrderStatus()
{
return orderStatus;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
public List<AmsTransferOrderItem> getAmsTransferOrderItemList()
{
return amsTransferOrderItemList;
}
public void setAmsTransferOrderItemList(List<AmsTransferOrderItem> amsTransferOrderItemList)
{
this.amsTransferOrderItemList = amsTransferOrderItemList;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("orderId", getOrderId())
.append("transferNo", getTransferNo())
.append("applicantId", getApplicantId())
.append("applicantName", getApplicantName())
.append("transferReason", getTransferReason())
.append("confirmUserId", getConfirmUserId())
.append("confirmUserName", getConfirmUserName())
.append("confirmTime", getConfirmTime())
.append("orderStatus", getOrderStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("delFlag", getDelFlag())
.append("amsTransferOrderItemList", getAmsTransferOrderItemList())
.toString();
}
}

@ -0,0 +1,475 @@
package com.ruoyi.asset.domain;
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;
/**
* ams_transfer_order_item
*
* @author Yangk
* @date 2026-06-12
*/
public class AmsTransferOrderItem extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 明细ID */
private Long itemId;
/** 调拨单ID */
@Excel(name = "调拨单ID")
private Long orderId;
/** 调拨单号快照 */
@Excel(name = "调拨单号快照")
private String transferNo;
/** 资产ID */
@Excel(name = "资产ID")
private Long assetId;
/** 资产编码快照 */
@Excel(name = "资产编码快照")
private String assetCode;
/** 资产名称快照 */
@Excel(name = "资产名称快照")
private String assetName;
/** 资产类别ID快照 */
@Excel(name = "资产类别ID快照")
private Long categoryId;
/** 类别编码快照 */
@Excel(name = "类别编码快照")
private String categoryCode;
/** 类别名称快照 */
@Excel(name = "类别名称快照")
private String categoryName;
/** 规格型号快照 */
@Excel(name = "规格型号快照")
private String specModel;
/** 品牌快照 */
@Excel(name = "品牌快照")
private String brand;
/** 原部门ID */
@Excel(name = "原部门ID")
private Long oldDeptId;
/** 原部门名称快照 */
@Excel(name = "原部门名称快照")
private String oldDeptName;
/** 新部门ID */
@Excel(name = "新部门ID")
private Long newDeptId;
/** 新部门名称快照 */
@Excel(name = "新部门名称快照")
private String newDeptName;
/** 原使用人ID */
@Excel(name = "原使用人ID")
private Long oldUserId;
/** 原使用人名称快照 */
@Excel(name = "原使用人名称快照")
private String oldUserName;
/** 新使用人ID */
@Excel(name = "新使用人ID")
private Long newUserId;
/** 新使用人名称快照 */
@Excel(name = "新使用人名称快照")
private String newUserName;
/** 原仓库ID */
@Excel(name = "原仓库ID")
private Long oldWarehouseId;
/** 原仓库编码快照 */
@Excel(name = "原仓库编码快照")
private String oldWarehouseCode;
/** 原仓库名称快照 */
@Excel(name = "原仓库名称快照")
private String oldWarehouseName;
/** 新仓库ID */
@Excel(name = "新仓库ID")
private Long newWarehouseId;
/** 新仓库编码快照 */
@Excel(name = "新仓库编码快照")
private String newWarehouseCode;
/** 新仓库名称快照 */
@Excel(name = "新仓库名称快照")
private String newWarehouseName;
/** 原位置ID */
@Excel(name = "原位置ID")
private Long oldLocationId;
/** 原位置编码快照 */
@Excel(name = "原位置编码快照")
private String oldLocationCode;
/** 原位置名称快照 */
@Excel(name = "原位置名称快照")
private String oldLocationName;
/** 新位置ID */
@Excel(name = "新位置ID")
private Long newLocationId;
/** 新位置编码快照 */
@Excel(name = "新位置编码快照")
private String newLocationCode;
/** 新位置名称快照 */
@Excel(name = "新位置名称快照")
private String newLocationName;
/** 删除标志0存在1删除 */
private String delFlag;
public void setItemId(Long itemId)
{
this.itemId = itemId;
}
public Long getItemId()
{
return itemId;
}
public void setOrderId(Long orderId)
{
this.orderId = orderId;
}
public Long getOrderId()
{
return orderId;
}
public void setTransferNo(String transferNo)
{
this.transferNo = transferNo;
}
public String getTransferNo()
{
return transferNo;
}
public void setAssetId(Long assetId)
{
this.assetId = assetId;
}
public Long getAssetId()
{
return assetId;
}
public void setAssetCode(String assetCode)
{
this.assetCode = assetCode;
}
public String getAssetCode()
{
return assetCode;
}
public void setAssetName(String assetName)
{
this.assetName = assetName;
}
public String getAssetName()
{
return assetName;
}
public void setCategoryId(Long categoryId)
{
this.categoryId = categoryId;
}
public Long getCategoryId()
{
return categoryId;
}
public void setCategoryCode(String categoryCode)
{
this.categoryCode = categoryCode;
}
public String getCategoryCode()
{
return categoryCode;
}
public void setCategoryName(String categoryName)
{
this.categoryName = categoryName;
}
public String getCategoryName()
{
return categoryName;
}
public void setSpecModel(String specModel)
{
this.specModel = specModel;
}
public String getSpecModel()
{
return specModel;
}
public void setBrand(String brand)
{
this.brand = brand;
}
public String getBrand()
{
return brand;
}
public void setOldDeptId(Long oldDeptId)
{
this.oldDeptId = oldDeptId;
}
public Long getOldDeptId()
{
return oldDeptId;
}
public void setOldDeptName(String oldDeptName)
{
this.oldDeptName = oldDeptName;
}
public String getOldDeptName()
{
return oldDeptName;
}
public void setNewDeptId(Long newDeptId)
{
this.newDeptId = newDeptId;
}
public Long getNewDeptId()
{
return newDeptId;
}
public void setNewDeptName(String newDeptName)
{
this.newDeptName = newDeptName;
}
public String getNewDeptName()
{
return newDeptName;
}
public void setOldUserId(Long oldUserId)
{
this.oldUserId = oldUserId;
}
public Long getOldUserId()
{
return oldUserId;
}
public void setOldUserName(String oldUserName)
{
this.oldUserName = oldUserName;
}
public String getOldUserName()
{
return oldUserName;
}
public void setNewUserId(Long newUserId)
{
this.newUserId = newUserId;
}
public Long getNewUserId()
{
return newUserId;
}
public void setNewUserName(String newUserName)
{
this.newUserName = newUserName;
}
public String getNewUserName()
{
return newUserName;
}
public void setOldWarehouseId(Long oldWarehouseId)
{
this.oldWarehouseId = oldWarehouseId;
}
public Long getOldWarehouseId()
{
return oldWarehouseId;
}
public void setOldWarehouseCode(String oldWarehouseCode)
{
this.oldWarehouseCode = oldWarehouseCode;
}
public String getOldWarehouseCode()
{
return oldWarehouseCode;
}
public void setOldWarehouseName(String oldWarehouseName)
{
this.oldWarehouseName = oldWarehouseName;
}
public String getOldWarehouseName()
{
return oldWarehouseName;
}
public void setNewWarehouseId(Long newWarehouseId)
{
this.newWarehouseId = newWarehouseId;
}
public Long getNewWarehouseId()
{
return newWarehouseId;
}
public void setNewWarehouseCode(String newWarehouseCode)
{
this.newWarehouseCode = newWarehouseCode;
}
public String getNewWarehouseCode()
{
return newWarehouseCode;
}
public void setNewWarehouseName(String newWarehouseName)
{
this.newWarehouseName = newWarehouseName;
}
public String getNewWarehouseName()
{
return newWarehouseName;
}
public void setOldLocationId(Long oldLocationId)
{
this.oldLocationId = oldLocationId;
}
public Long getOldLocationId()
{
return oldLocationId;
}
public void setOldLocationCode(String oldLocationCode)
{
this.oldLocationCode = oldLocationCode;
}
public String getOldLocationCode()
{
return oldLocationCode;
}
public void setOldLocationName(String oldLocationName)
{
this.oldLocationName = oldLocationName;
}
public String getOldLocationName()
{
return oldLocationName;
}
public void setNewLocationId(Long newLocationId)
{
this.newLocationId = newLocationId;
}
public Long getNewLocationId()
{
return newLocationId;
}
public void setNewLocationCode(String newLocationCode)
{
this.newLocationCode = newLocationCode;
}
public String getNewLocationCode()
{
return newLocationCode;
}
public void setNewLocationName(String newLocationName)
{
this.newLocationName = newLocationName;
}
public String getNewLocationName()
{
return newLocationName;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("itemId", getItemId())
.append("orderId", getOrderId())
.append("transferNo", getTransferNo())
.append("assetId", getAssetId())
.append("assetCode", getAssetCode())
.append("assetName", getAssetName())
.append("categoryId", getCategoryId())
.append("categoryCode", getCategoryCode())
.append("categoryName", getCategoryName())
.append("specModel", getSpecModel())
.append("brand", getBrand())
.append("oldDeptId", getOldDeptId())
.append("oldDeptName", getOldDeptName())
.append("newDeptId", getNewDeptId())
.append("newDeptName", getNewDeptName())
.append("oldUserId", getOldUserId())
.append("oldUserName", getOldUserName())
.append("newUserId", getNewUserId())
.append("newUserName", getNewUserName())
.append("oldWarehouseId", getOldWarehouseId())
.append("oldWarehouseCode", getOldWarehouseCode())
.append("oldWarehouseName", getOldWarehouseName())
.append("newWarehouseId", getNewWarehouseId())
.append("newWarehouseCode", getNewWarehouseCode())
.append("newWarehouseName", getNewWarehouseName())
.append("oldLocationId", getOldLocationId())
.append("oldLocationCode", getOldLocationCode())
.append("oldLocationName", getOldLocationName())
.append("newLocationId", getNewLocationId())
.append("newLocationCode", getNewLocationCode())
.append("newLocationName", getNewLocationName())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("delFlag", getDelFlag())
.toString();
}
}

@ -0,0 +1,87 @@
package com.ruoyi.asset.mapper;
import java.util.List;
import com.ruoyi.asset.domain.AmsTransferOrder;
import com.ruoyi.asset.domain.AmsTransferOrderItem;
/**
* Mapper
*
* @author Yangk
* @date 2026-06-12
*/
public interface AmsTransferOrderMapper
{
/**
*
*
* @param orderId
* @return
*/
public AmsTransferOrder selectAmsTransferOrderByOrderId(Long orderId);
/**
*
*
* @param amsTransferOrder
* @return
*/
public List<AmsTransferOrder> selectAmsTransferOrderList(AmsTransferOrder amsTransferOrder);
/**
*
*
* @param amsTransferOrder
* @return
*/
public int insertAmsTransferOrder(AmsTransferOrder amsTransferOrder);
/**
*
*
* @param amsTransferOrder
* @return
*/
public int updateAmsTransferOrder(AmsTransferOrder amsTransferOrder);
/**
*
*
* @param orderId
* @return
*/
public int deleteAmsTransferOrderByOrderId(Long orderId);
/**
*
*
* @param orderIds
* @return
*/
public int deleteAmsTransferOrderByOrderIds(String[] orderIds);
/**
*
*
* @param orderIds
* @return
*/
public int deleteAmsTransferOrderItemByOrderIds(String[] orderIds);
/**
*
*
* @param amsTransferOrderItemList
* @return
*/
public int batchAmsTransferOrderItem(List<AmsTransferOrderItem> amsTransferOrderItemList);
/**
*
*
* @param orderId ID
* @return
*/
public int deleteAmsTransferOrderItemByOrderId(Long orderId);
}

@ -0,0 +1,61 @@
package com.ruoyi.asset.service;
import java.util.List;
import com.ruoyi.asset.domain.AmsTransferOrder;
/**
* Service
*
* @author Yangk
* @date 2026-06-12
*/
public interface IAmsTransferOrderService
{
/**
*
*
* @param orderId
* @return
*/
public AmsTransferOrder selectAmsTransferOrderByOrderId(Long orderId);
/**
*
*
* @param amsTransferOrder
* @return
*/
public List<AmsTransferOrder> selectAmsTransferOrderList(AmsTransferOrder amsTransferOrder);
/**
*
*
* @param amsTransferOrder
* @return
*/
public int insertAmsTransferOrder(AmsTransferOrder amsTransferOrder);
/**
*
*
* @param amsTransferOrder
* @return
*/
public int updateAmsTransferOrder(AmsTransferOrder amsTransferOrder);
/**
*
*
* @param orderIds
* @return
*/
public int deleteAmsTransferOrderByOrderIds(String orderIds);
/**
*
*
* @param orderId
* @return
*/
public int deleteAmsTransferOrderByOrderId(Long orderId);
}

@ -0,0 +1,135 @@
package com.ruoyi.asset.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import com.ruoyi.common.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional;
import com.ruoyi.asset.domain.AmsTransferOrderItem;
import com.ruoyi.asset.mapper.AmsTransferOrderMapper;
import com.ruoyi.asset.domain.AmsTransferOrder;
import com.ruoyi.asset.service.IAmsTransferOrderService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author Yangk
* @date 2026-06-12
*/
@Service
public class AmsTransferOrderServiceImpl implements IAmsTransferOrderService
{
@Autowired
private AmsTransferOrderMapper amsTransferOrderMapper;
/**
*
*
* @param orderId
* @return
*/
@Override
public AmsTransferOrder selectAmsTransferOrderByOrderId(Long orderId)
{
return amsTransferOrderMapper.selectAmsTransferOrderByOrderId(orderId);
}
/**
*
*
* @param amsTransferOrder
* @return
*/
@Override
public List<AmsTransferOrder> selectAmsTransferOrderList(AmsTransferOrder amsTransferOrder)
{
return amsTransferOrderMapper.selectAmsTransferOrderList(amsTransferOrder);
}
/**
*
*
* @param amsTransferOrder
* @return
*/
@Transactional
@Override
public int insertAmsTransferOrder(AmsTransferOrder amsTransferOrder)
{
amsTransferOrder.setCreateTime(DateUtils.getNowDate());
int rows = amsTransferOrderMapper.insertAmsTransferOrder(amsTransferOrder);
insertAmsTransferOrderItem(amsTransferOrder);
return rows;
}
/**
*
*
* @param amsTransferOrder
* @return
*/
@Transactional
@Override
public int updateAmsTransferOrder(AmsTransferOrder amsTransferOrder)
{
amsTransferOrder.setUpdateTime(DateUtils.getNowDate());
amsTransferOrderMapper.deleteAmsTransferOrderItemByOrderId(amsTransferOrder.getOrderId());
insertAmsTransferOrderItem(amsTransferOrder);
return amsTransferOrderMapper.updateAmsTransferOrder(amsTransferOrder);
}
/**
*
*
* @param orderIds
* @return
*/
@Transactional
@Override
public int deleteAmsTransferOrderByOrderIds(String orderIds)
{
amsTransferOrderMapper.deleteAmsTransferOrderItemByOrderIds(Convert.toStrArray(orderIds));
return amsTransferOrderMapper.deleteAmsTransferOrderByOrderIds(Convert.toStrArray(orderIds));
}
/**
*
*
* @param orderId
* @return
*/
@Transactional
@Override
public int deleteAmsTransferOrderByOrderId(Long orderId)
{
amsTransferOrderMapper.deleteAmsTransferOrderItemByOrderId(orderId);
return amsTransferOrderMapper.deleteAmsTransferOrderByOrderId(orderId);
}
/**
*
*
* @param amsTransferOrder
*/
public void insertAmsTransferOrderItem(AmsTransferOrder amsTransferOrder)
{
List<AmsTransferOrderItem> amsTransferOrderItemList = amsTransferOrder.getAmsTransferOrderItemList();
Long orderId = amsTransferOrder.getOrderId();
if (StringUtils.isNotNull(amsTransferOrderItemList))
{
List<AmsTransferOrderItem> list = new ArrayList<AmsTransferOrderItem>();
for (AmsTransferOrderItem amsTransferOrderItem : amsTransferOrderItemList)
{
amsTransferOrderItem.setOrderId(orderId);
list.add(amsTransferOrderItem);
}
if (list.size() > 0)
{
amsTransferOrderMapper.batchAmsTransferOrderItem(list);
}
}
}
}

@ -0,0 +1,185 @@
<?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.asset.mapper.AmsTransferOrderMapper">
<resultMap type="AmsTransferOrder" id="AmsTransferOrderResult">
<result property="orderId" column="order_id" />
<result property="transferNo" column="transfer_no" />
<result property="applicantId" column="applicant_id" />
<result property="applicantName" column="applicant_name" />
<result property="transferReason" column="transfer_reason" />
<result property="confirmUserId" column="confirm_user_id" />
<result property="confirmUserName" column="confirm_user_name" />
<result property="confirmTime" column="confirm_time" />
<result property="orderStatus" column="order_status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
</resultMap>
<resultMap id="AmsTransferOrderAmsTransferOrderItemResult" type="AmsTransferOrder" extends="AmsTransferOrderResult">
<collection property="amsTransferOrderItemList" ofType="AmsTransferOrderItem" column="order_id" select="selectAmsTransferOrderItemList" />
</resultMap>
<resultMap type="AmsTransferOrderItem" id="AmsTransferOrderItemResult">
<result property="itemId" column="item_id" />
<result property="orderId" column="order_id" />
<result property="transferNo" column="transfer_no" />
<result property="assetId" column="asset_id" />
<result property="assetCode" column="asset_code" />
<result property="assetName" column="asset_name" />
<result property="categoryId" column="category_id" />
<result property="categoryCode" column="category_code" />
<result property="categoryName" column="category_name" />
<result property="specModel" column="spec_model" />
<result property="brand" column="brand" />
<result property="oldDeptId" column="old_dept_id" />
<result property="oldDeptName" column="old_dept_name" />
<result property="newDeptId" column="new_dept_id" />
<result property="newDeptName" column="new_dept_name" />
<result property="oldUserId" column="old_user_id" />
<result property="oldUserName" column="old_user_name" />
<result property="newUserId" column="new_user_id" />
<result property="newUserName" column="new_user_name" />
<result property="oldWarehouseId" column="old_warehouse_id" />
<result property="oldWarehouseCode" column="old_warehouse_code" />
<result property="oldWarehouseName" column="old_warehouse_name" />
<result property="newWarehouseId" column="new_warehouse_id" />
<result property="newWarehouseCode" column="new_warehouse_code" />
<result property="newWarehouseName" column="new_warehouse_name" />
<result property="oldLocationId" column="old_location_id" />
<result property="oldLocationCode" column="old_location_code" />
<result property="oldLocationName" column="old_location_name" />
<result property="newLocationId" column="new_location_id" />
<result property="newLocationCode" column="new_location_code" />
<result property="newLocationName" column="new_location_name" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectAmsTransferOrderVo">
select order_id, transfer_no, applicant_id, applicant_name, transfer_reason, confirm_user_id, confirm_user_name, confirm_time, order_status, create_by, create_time, update_by, update_time, remark, del_flag from ams_transfer_order
</sql>
<select id="selectAmsTransferOrderList" parameterType="AmsTransferOrder" resultMap="AmsTransferOrderResult">
<include refid="selectAmsTransferOrderVo"/>
<where>
<if test="transferNo != null and transferNo != ''"> and transfer_no = #{transferNo}</if>
<if test="applicantId != null "> and applicant_id = #{applicantId}</if>
<if test="applicantName != null and applicantName != ''"> and applicant_name like concat('%', #{applicantName}, '%')</if>
<if test="transferReason != null and transferReason != ''"> and transfer_reason = #{transferReason}</if>
<if test="confirmUserId != null "> and confirm_user_id = #{confirmUserId}</if>
<if test="confirmUserName != null and confirmUserName != ''"> and confirm_user_name like concat('%', #{confirmUserName}, '%')</if>
<if test="confirmTime != null "> and confirm_time = #{confirmTime}</if>
<if test="orderStatus != null and orderStatus != ''"> and order_status = #{orderStatus}</if>
</where>
</select>
<select id="selectAmsTransferOrderByOrderId" parameterType="Long" resultMap="AmsTransferOrderAmsTransferOrderItemResult">
select order_id, transfer_no, applicant_id, applicant_name, transfer_reason, confirm_user_id, confirm_user_name, confirm_time, order_status, create_by, create_time, update_by, update_time, remark, del_flag
from ams_transfer_order
where order_id = #{orderId}
</select>
<select id="selectAmsTransferOrderItemList" resultMap="AmsTransferOrderItemResult">
select item_id, order_id, transfer_no, asset_id, asset_code, asset_name, category_id, category_code, category_name, spec_model, brand, old_dept_id, old_dept_name, new_dept_id, new_dept_name, old_user_id, old_user_name, new_user_id, new_user_name, old_warehouse_id, old_warehouse_code, old_warehouse_name, new_warehouse_id, new_warehouse_code, new_warehouse_name, old_location_id, old_location_code, old_location_name, new_location_id, new_location_code, new_location_name, create_by, create_time, update_by, update_time, remark, del_flag
from ams_transfer_order_item
where order_id = #{order_id}
</select>
<insert id="insertAmsTransferOrder" parameterType="AmsTransferOrder" useGeneratedKeys="true" keyProperty="orderId">
insert into ams_transfer_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="transferNo != null and transferNo != ''">transfer_no,</if>
<if test="applicantId != null">applicant_id,</if>
<if test="applicantName != null">applicant_name,</if>
<if test="transferReason != null">transfer_reason,</if>
<if test="confirmUserId != null">confirm_user_id,</if>
<if test="confirmUserName != null">confirm_user_name,</if>
<if test="confirmTime != null">confirm_time,</if>
<if test="orderStatus != null and orderStatus != ''">order_status,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="transferNo != null and transferNo != ''">#{transferNo},</if>
<if test="applicantId != null">#{applicantId},</if>
<if test="applicantName != null">#{applicantName},</if>
<if test="transferReason != null">#{transferReason},</if>
<if test="confirmUserId != null">#{confirmUserId},</if>
<if test="confirmUserName != null">#{confirmUserName},</if>
<if test="confirmTime != null">#{confirmTime},</if>
<if test="orderStatus != null and orderStatus != ''">#{orderStatus},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
</trim>
</insert>
<update id="updateAmsTransferOrder" parameterType="AmsTransferOrder">
update ams_transfer_order
<trim prefix="SET" suffixOverrides=",">
<if test="transferNo != null and transferNo != ''">transfer_no = #{transferNo},</if>
<if test="applicantId != null">applicant_id = #{applicantId},</if>
<if test="applicantName != null">applicant_name = #{applicantName},</if>
<if test="transferReason != null">transfer_reason = #{transferReason},</if>
<if test="confirmUserId != null">confirm_user_id = #{confirmUserId},</if>
<if test="confirmUserName != null">confirm_user_name = #{confirmUserName},</if>
<if test="confirmTime != null">confirm_time = #{confirmTime},</if>
<if test="orderStatus != null and orderStatus != ''">order_status = #{orderStatus},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
</trim>
where order_id = #{orderId}
</update>
<delete id="deleteAmsTransferOrderByOrderId" parameterType="Long">
delete from ams_transfer_order where order_id = #{orderId}
</delete>
<delete id="deleteAmsTransferOrderByOrderIds" parameterType="String">
delete from ams_transfer_order where order_id in
<foreach item="orderId" collection="array" open="(" separator="," close=")">
#{orderId}
</foreach>
</delete>
<delete id="deleteAmsTransferOrderItemByOrderIds" parameterType="String">
delete from ams_transfer_order_item where order_id in
<foreach item="orderId" collection="array" open="(" separator="," close=")">
#{orderId}
</foreach>
</delete>
<delete id="deleteAmsTransferOrderItemByOrderId" parameterType="Long">
delete from ams_transfer_order_item where order_id = #{orderId}
</delete>
<insert id="batchAmsTransferOrderItem">
insert into ams_transfer_order_item( item_id, order_id, transfer_no, asset_id, asset_code, asset_name, category_id, category_code, category_name, spec_model, brand, old_dept_id, old_dept_name, new_dept_id, new_dept_name, old_user_id, old_user_name, new_user_id, new_user_name, old_warehouse_id, old_warehouse_code, old_warehouse_name, new_warehouse_id, new_warehouse_code, new_warehouse_name, old_location_id, old_location_code, old_location_name, new_location_id, new_location_code, new_location_name, create_by, create_time, update_by, update_time, remark, del_flag) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.itemId}, #{item.orderId}, #{item.transferNo}, #{item.assetId}, #{item.assetCode}, #{item.assetName}, #{item.categoryId}, #{item.categoryCode}, #{item.categoryName}, #{item.specModel}, #{item.brand}, #{item.oldDeptId}, #{item.oldDeptName}, #{item.newDeptId}, #{item.newDeptName}, #{item.oldUserId}, #{item.oldUserName}, #{item.newUserId}, #{item.newUserName}, #{item.oldWarehouseId}, #{item.oldWarehouseCode}, #{item.oldWarehouseName}, #{item.newWarehouseId}, #{item.newWarehouseCode}, #{item.newWarehouseName}, #{item.oldLocationId}, #{item.oldLocationCode}, #{item.oldLocationName}, #{item.newLocationId}, #{item.newLocationCode}, #{item.newLocationName}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.delFlag})
</foreach>
</insert>
</mapper>

@ -0,0 +1,519 @@
<!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-transfer-add">
<h4 class="form-header h4">调拨管理信息</h4>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">调拨单号:</label>
<div class="col-sm-8">
<input name="transferNo" class="form-control" type="text" required>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">申请人ID</label>
<div class="col-sm-8">
<input name="applicantId" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">申请人名称快照:</label>
<div class="col-sm-8">
<input name="applicantName" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">调拨原因:</label>
<div class="col-sm-8">
<textarea name="transferReason" class="form-control"></textarea>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认人ID</label>
<div class="col-sm-8">
<input name="confirmUserId" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认人名称快照:</label>
<div class="col-sm-8">
<input name="confirmUserName" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="confirmTime" 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>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">单据状态:</label>
<div class="col-sm-8">
<select name="orderStatus" class="form-control" th:with="type=${@dict.getType('ams_transfer_status')}" required>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">备注:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control"></textarea>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">删除标志0存在1删除</label>
<div class="col-sm-8">
<input name="delFlag" class="form-control" type="text" required>
</div>
</div>
</div>
<h4 class="form-header h4">调拨单明细信息</h4>
<div class="row">
<div class="col-xs-12">
<button type="button" class="btn btn-white btn-sm" onclick="addRow()"><i class="fa fa-plus"> 增加</i></button>
<button type="button" class="btn btn-white btn-sm" onclick="sub.delRow()"><i class="fa fa-minus"> 删除</i></button>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "asset/transfer"
$("#form-transfer-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-transfer-add').serialize());
}
}
$("input[name='confirmTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$(function() {
var options = {
pagination: false,
showSearch: false,
showRefresh: false,
showToggle: false,
showColumns: false,
sidePagination: "client",
columns: [{
checkbox: true
},
{
field: 'index',
align: 'center',
title: "序号",
formatter: function (value, row, index) {
var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
return columnIndex + $.table.serialNumber(index);
}
},
{
field: 'transferNo',
align: 'center',
title: '调拨单号快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].transferNo' value='%s'>", index, value);
return html;
}
},
{
field: 'assetId',
align: 'center',
title: '资产ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].assetId' value='%s'>", index, value);
return html;
}
},
{
field: 'assetCode',
align: 'center',
title: '资产编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].assetCode' value='%s'>", index, value);
return html;
}
},
{
field: 'assetName',
align: 'center',
title: '资产名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].assetName' value='%s'>", index, value);
return html;
}
},
{
field: 'categoryId',
align: 'center',
title: '资产类别ID快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].categoryId' value='%s'>", index, value);
return html;
}
},
{
field: 'categoryCode',
align: 'center',
title: '类别编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].categoryCode' value='%s'>", index, value);
return html;
}
},
{
field: 'categoryName',
align: 'center',
title: '类别名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].categoryName' value='%s'>", index, value);
return html;
}
},
{
field: 'specModel',
align: 'center',
title: '规格型号快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].specModel' value='%s'>", index, value);
return html;
}
},
{
field: 'brand',
align: 'center',
title: '品牌快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].brand' value='%s'>", index, value);
return html;
}
},
{
field: 'oldDeptId',
align: 'center',
title: '原部门ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldDeptId' value='%s'>", index, value);
return html;
}
},
{
field: 'oldDeptName',
align: 'center',
title: '原部门名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldDeptName' value='%s'>", index, value);
return html;
}
},
{
field: 'newDeptId',
align: 'center',
title: '新部门ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newDeptId' value='%s'>", index, value);
return html;
}
},
{
field: 'newDeptName',
align: 'center',
title: '新部门名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newDeptName' value='%s'>", index, value);
return html;
}
},
{
field: 'oldUserId',
align: 'center',
title: '原使用人ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldUserId' value='%s'>", index, value);
return html;
}
},
{
field: 'oldUserName',
align: 'center',
title: '原使用人名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldUserName' value='%s'>", index, value);
return html;
}
},
{
field: 'newUserId',
align: 'center',
title: '新使用人ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newUserId' value='%s'>", index, value);
return html;
}
},
{
field: 'newUserName',
align: 'center',
title: '新使用人名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newUserName' value='%s'>", index, value);
return html;
}
},
{
field: 'oldWarehouseId',
align: 'center',
title: '原仓库ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldWarehouseId' value='%s'>", index, value);
return html;
}
},
{
field: 'oldWarehouseCode',
align: 'center',
title: '原仓库编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldWarehouseCode' value='%s'>", index, value);
return html;
}
},
{
field: 'oldWarehouseName',
align: 'center',
title: '原仓库名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldWarehouseName' value='%s'>", index, value);
return html;
}
},
{
field: 'newWarehouseId',
align: 'center',
title: '新仓库ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newWarehouseId' value='%s'>", index, value);
return html;
}
},
{
field: 'newWarehouseCode',
align: 'center',
title: '新仓库编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newWarehouseCode' value='%s'>", index, value);
return html;
}
},
{
field: 'newWarehouseName',
align: 'center',
title: '新仓库名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newWarehouseName' value='%s'>", index, value);
return html;
}
},
{
field: 'oldLocationId',
align: 'center',
title: '原位置ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldLocationId' value='%s'>", index, value);
return html;
}
},
{
field: 'oldLocationCode',
align: 'center',
title: '原位置编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldLocationCode' value='%s'>", index, value);
return html;
}
},
{
field: 'oldLocationName',
align: 'center',
title: '原位置名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldLocationName' value='%s'>", index, value);
return html;
}
},
{
field: 'newLocationId',
align: 'center',
title: '新位置ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newLocationId' value='%s'>", index, value);
return html;
}
},
{
field: 'newLocationCode',
align: 'center',
title: '新位置编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newLocationCode' value='%s'>", index, value);
return html;
}
},
{
field: 'newLocationName',
align: 'center',
title: '新位置名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newLocationName' value='%s'>", index, value);
return html;
}
},
{
field: 'createBy',
align: 'center',
title: '创建者',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].createBy' value='%s'>", index, value);
return html;
}
},
{
field: 'createTime',
align: 'center',
title: '创建时间',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].createTime' value='%s'>", index, value);
return html;
}
},
{
field: 'updateBy',
align: 'center',
title: '更新者',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].updateBy' value='%s'>", index, value);
return html;
}
},
{
field: 'updateTime',
align: 'center',
title: '更新时间',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].updateTime' value='%s'>", index, value);
return html;
}
},
{
field: 'remark',
align: 'center',
title: '备注',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].remark' value='%s'>", index, value);
return html;
}
},
{
field: 'delFlag',
align: 'center',
title: '删除标志0存在1删除',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].delFlag' value='%s'>", index, value);
return html;
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var value = $.common.isNotEmpty(row.index) ? row.index : $.table.serialNumber(index);
return '<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="sub.delRowByIndex(\'' + value + '\')"><i class="fa fa-remove"></i>删除</a>';
}
}]
};
$.table.init(options);
});
function addRow() {
var count = $("#" + table.options.id).bootstrapTable('getData').length;
var row = {
index: $.table.serialNumber(count),
transferNo: "",
assetId: "",
assetCode: "",
assetName: "",
categoryId: "",
categoryCode: "",
categoryName: "",
specModel: "",
brand: "",
oldDeptId: "",
oldDeptName: "",
newDeptId: "",
newDeptName: "",
oldUserId: "",
oldUserName: "",
newUserId: "",
newUserName: "",
oldWarehouseId: "",
oldWarehouseCode: "",
oldWarehouseName: "",
newWarehouseId: "",
newWarehouseCode: "",
newWarehouseName: "",
oldLocationId: "",
oldLocationCode: "",
oldLocationName: "",
newLocationId: "",
newLocationCode: "",
newLocationName: "",
createBy: "",
createTime: "",
updateBy: "",
updateTime: "",
remark: "",
delFlag: "",
}
sub.addRow(row);
}
</script>
</body>
</html>

@ -0,0 +1,548 @@
<!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-transfer-edit" th:object="${amsTransferOrder}">
<h4 class="form-header h4">调拨管理信息</h4>
<input name="orderId" th:field="*{orderId}" type="hidden">
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">调拨单号:</label>
<div class="col-sm-8">
<input name="transferNo" th:field="*{transferNo}" class="form-control" type="text" required>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">申请人ID</label>
<div class="col-sm-8">
<input name="applicantId" th:field="*{applicantId}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">申请人名称快照:</label>
<div class="col-sm-8">
<input name="applicantName" th:field="*{applicantName}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">调拨原因:</label>
<div class="col-sm-8">
<textarea name="transferReason" class="form-control">[[*{transferReason}]]</textarea>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认人ID</label>
<div class="col-sm-8">
<input name="confirmUserId" th:field="*{confirmUserId}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认人名称快照:</label>
<div class="col-sm-8">
<input name="confirmUserName" th:field="*{confirmUserName}" class="form-control" type="text">
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="confirmTime" th:value="${#dates.format(amsTransferOrder.confirmTime, '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>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">单据状态:</label>
<div class="col-sm-8">
<select name="orderStatus" class="form-control" th:with="type=${@dict.getType('ams_transfer_status')}" required>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{orderStatus}"></option>
</select>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="col-sm-4 control-label">备注:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
</div>
</div>
</div>
<h4 class="form-header h4">调拨单明细信息</h4>
<div class="row">
<div class="col-sm-12">
<button type="button" class="btn btn-white btn-sm" onclick="addRow()"><i class="fa fa-plus"> 增加</i></button>
<button type="button" class="btn btn-white btn-sm" onclick="sub.delRow()"><i class="fa fa-minus"> 删除</i></button>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "asset/transfer";
$("#form-transfer-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-transfer-edit').serialize());
}
}
$("input[name='confirmTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$(function() {
var options = {
data: [[${amsTransferOrder.amsTransferOrderItemList}]],
pagination: false,
showSearch: false,
showRefresh: false,
showToggle: false,
showColumns: false,
sidePagination: "client",
columns: [{
checkbox: true
},
{
field: 'index',
align: 'center',
title: "序号",
formatter: function (value, row, index) {
var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
return columnIndex + $.table.serialNumber(index);
}
},
{
field: 'transferNo',
align: 'center',
title: '调拨单号快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].transferNo' value='%s'>", index, value);
return html;
}
},
{
field: 'assetId',
align: 'center',
title: '资产ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].assetId' value='%s'>", index, value);
return html;
}
},
{
field: 'assetCode',
align: 'center',
title: '资产编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].assetCode' value='%s'>", index, value);
return html;
}
},
{
field: 'assetName',
align: 'center',
title: '资产名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].assetName' value='%s'>", index, value);
return html;
}
},
{
field: 'categoryId',
align: 'center',
title: '资产类别ID快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].categoryId' value='%s'>", index, value);
return html;
}
},
{
field: 'categoryCode',
align: 'center',
title: '类别编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].categoryCode' value='%s'>", index, value);
return html;
}
},
{
field: 'categoryName',
align: 'center',
title: '类别名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].categoryName' value='%s'>", index, value);
return html;
}
},
{
field: 'specModel',
align: 'center',
title: '规格型号快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].specModel' value='%s'>", index, value);
return html;
}
},
{
field: 'brand',
align: 'center',
title: '品牌快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].brand' value='%s'>", index, value);
return html;
}
},
{
field: 'oldDeptId',
align: 'center',
title: '原部门ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldDeptId' value='%s'>", index, value);
return html;
}
},
{
field: 'oldDeptName',
align: 'center',
title: '原部门名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldDeptName' value='%s'>", index, value);
return html;
}
},
{
field: 'newDeptId',
align: 'center',
title: '新部门ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newDeptId' value='%s'>", index, value);
return html;
}
},
{
field: 'newDeptName',
align: 'center',
title: '新部门名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newDeptName' value='%s'>", index, value);
return html;
}
},
{
field: 'oldUserId',
align: 'center',
title: '原使用人ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldUserId' value='%s'>", index, value);
return html;
}
},
{
field: 'oldUserName',
align: 'center',
title: '原使用人名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldUserName' value='%s'>", index, value);
return html;
}
},
{
field: 'newUserId',
align: 'center',
title: '新使用人ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newUserId' value='%s'>", index, value);
return html;
}
},
{
field: 'newUserName',
align: 'center',
title: '新使用人名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newUserName' value='%s'>", index, value);
return html;
}
},
{
field: 'oldWarehouseId',
align: 'center',
title: '原仓库ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldWarehouseId' value='%s'>", index, value);
return html;
}
},
{
field: 'oldWarehouseCode',
align: 'center',
title: '原仓库编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldWarehouseCode' value='%s'>", index, value);
return html;
}
},
{
field: 'oldWarehouseName',
align: 'center',
title: '原仓库名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldWarehouseName' value='%s'>", index, value);
return html;
}
},
{
field: 'newWarehouseId',
align: 'center',
title: '新仓库ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newWarehouseId' value='%s'>", index, value);
return html;
}
},
{
field: 'newWarehouseCode',
align: 'center',
title: '新仓库编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newWarehouseCode' value='%s'>", index, value);
return html;
}
},
{
field: 'newWarehouseName',
align: 'center',
title: '新仓库名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newWarehouseName' value='%s'>", index, value);
return html;
}
},
{
field: 'oldLocationId',
align: 'center',
title: '原位置ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldLocationId' value='%s'>", index, value);
return html;
}
},
{
field: 'oldLocationCode',
align: 'center',
title: '原位置编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldLocationCode' value='%s'>", index, value);
return html;
}
},
{
field: 'oldLocationName',
align: 'center',
title: '原位置名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].oldLocationName' value='%s'>", index, value);
return html;
}
},
{
field: 'newLocationId',
align: 'center',
title: '新位置ID',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newLocationId' value='%s'>", index, value);
return html;
}
},
{
field: 'newLocationCode',
align: 'center',
title: '新位置编码快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newLocationCode' value='%s'>", index, value);
return html;
}
},
{
field: 'newLocationName',
align: 'center',
title: '新位置名称快照',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].newLocationName' value='%s'>", index, value);
return html;
}
},
{
field: 'createBy',
align: 'center',
title: '创建者',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].createBy' value='%s'>", index, value);
return html;
}
},
{
field: 'createTime',
align: 'center',
title: '创建时间',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].createTime' value='%s'>", index, value);
return html;
}
},
{
field: 'updateBy',
align: 'center',
title: '更新者',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].updateBy' value='%s'>", index, value);
return html;
}
},
{
field: 'updateTime',
align: 'center',
title: '更新时间',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].updateTime' value='%s'>", index, value);
return html;
}
},
{
field: 'remark',
align: 'center',
title: '备注',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].remark' value='%s'>", index, value);
return html;
}
},
{
field: 'delFlag',
align: 'center',
title: '删除标志0存在1删除',
formatter: function(value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='amsTransferOrderItemList[%s].delFlag' value='%s'>", index, value);
return html;
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var value = $.common.isNotEmpty(row.index) ? row.index : $.table.serialNumber(index);
return '<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="sub.delRowByIndex(\'' + value + '\')"><i class="fa fa-remove"></i>删除</a>';
}
}]
};
$.table.init(options);
});
function addRow() {
var count = $("#" + table.options.id).bootstrapTable('getData').length;
var row = {
index: $.table.serialNumber(count),
transferNo: "",
assetId: "",
assetCode: "",
assetName: "",
categoryId: "",
categoryCode: "",
categoryName: "",
specModel: "",
brand: "",
oldDeptId: "",
oldDeptName: "",
newDeptId: "",
newDeptName: "",
oldUserId: "",
oldUserName: "",
newUserId: "",
newUserName: "",
oldWarehouseId: "",
oldWarehouseCode: "",
oldWarehouseName: "",
newWarehouseId: "",
newWarehouseCode: "",
newWarehouseName: "",
oldLocationId: "",
oldLocationCode: "",
oldLocationName: "",
newLocationId: "",
newLocationCode: "",
newLocationName: "",
createBy: "",
createTime: "",
updateBy: "",
updateTime: "",
remark: "",
delFlag: "",
}
sub.addRow(row);
}
</script>
</body>
</html>

@ -0,0 +1,151 @@
<!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="transferNo"/>
</li>
<li>
<label>申请人ID</label>
<input type="text" name="applicantId"/>
</li>
<li>
<label>申请人名称快照:</label>
<input type="text" name="applicantName"/>
</li>
<li>
<label>确认人ID</label>
<input type="text" name="confirmUserId"/>
</li>
<li>
<label>确认人名称快照:</label>
<input type="text" name="confirmUserName"/>
</li>
<li>
<label>确认时间:</label>
<input type="text" class="time-input" placeholder="请选择确认时间" name="confirmTime"/>
</li>
<li>
<label>单据状态:</label>
<select name="orderStatus" th:with="type=${@dict.getType('ams_transfer_status')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&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="asset:transfer:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="asset:transfer:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="asset:transfer:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="asset:transfer: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('asset:transfer:edit')}]];
var removeFlag = [[${@permission.hasPermi('asset:transfer:remove')}]];
var orderStatusDatas = [[${@dict.getType('ams_transfer_status')}]];
var prefix = ctx + "asset/transfer";
$(function() {
var options = {
url: prefix + "/list",
viewUrl: prefix + "/view/{id}",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "调拨管理",
columns: [{
checkbox: true
},
{
field: 'orderId',
title: '单据ID',
visible: false
},
{
field: 'transferNo',
title: '调拨单号'
},
{
field: 'applicantId',
title: '申请人ID'
},
{
field: 'applicantName',
title: '申请人名称快照'
},
{
field: 'transferReason',
title: '调拨原因'
},
{
field: 'confirmUserId',
title: '确认人ID'
},
{
field: 'confirmUserName',
title: '确认人名称快照'
},
{
field: 'confirmTime',
title: '确认时间'
},
{
field: 'orderStatus',
title: '单据状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(orderStatusDatas, value);
}
},
{
field: 'remark',
title: '备注'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick="$.operate.view(\'' + row.orderId + '\')"><i class="fa fa-eye"></i>查看</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.orderId + '\')"><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.orderId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('调拨管理详细')" />
</head>
<body>
<div class="main-content">
<form class="form-horizontal" th:object="${amsTransferOrder}">
<h4 class="form-header h4">基本信息</h4>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">调拨单号:</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{transferNo}"></p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">申请人ID</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{applicantId}"></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">申请人名称快照:</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{applicantName}"></p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">调拨原因:</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{transferReason}"></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认人ID</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{confirmUserId}"></p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认人名称快照:</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{confirmUserName}"></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">确认时间:</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{#dates.format(confirmTime, 'yyyy-MM-dd HH:mm:ss')}"></p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">单据状态:</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{@dict.getLabel('ams_transfer_status', orderStatus)}"></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">备注:</label>
<div class="col-sm-8">
<p class="form-control-plaintext" th:text="*{remark}"></p>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
</body>
</html>
Loading…
Cancel
Save