Browse Source

[feat]基础资料模块:添加员工领料单物料报价信息表,添加领料单物料实体类,新增员工领料单物料报价信息查询接口

dev
zhangsiqi 6 months ago
parent
commit
3c807c9364
  1. 151
      ruoyi-admin/src/main/java/com/ruoyi/system/controller/BaseEmpRequisiteOrderChildController.java
  2. 281
      ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEmpRequisiteOrderChild.java
  3. 77
      ruoyi-admin/src/main/java/com/ruoyi/system/mapper/BaseEmpRequisiteOrderChildMapper.java
  4. 75
      ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseEmpRequisiteOrderChildService.java
  5. 126
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseEmpRequisiteOrderChildServiceImpl.java
  6. 165
      ruoyi-admin/src/main/resources/mapper/system/BaseEmpRequisiteOrderChildMapper.xml
  7. 18
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/add.html
  8. 141
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrderChild/add.html
  9. 142
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrderChild/edit.html
  10. 237
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrderChild/empRequisiteOrderChild.html

151
ruoyi-admin/src/main/java/com/ruoyi/system/controller/BaseEmpRequisiteOrderChildController.java

@ -0,0 +1,151 @@
package com.ruoyi.system.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.system.domain.BaseEmpRequisiteOrderChild;
import com.ruoyi.system.service.IBaseEmpRequisiteOrderChildService;
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 zhang
* @date 2024-05-15
*/
@Controller
@RequestMapping("/system/empRequisiteOrderChild")
public class BaseEmpRequisiteOrderChildController extends BaseController
{
private String prefix = "system/empRequisiteOrderChild";
@Autowired
private IBaseEmpRequisiteOrderChildService baseEmpRequisiteOrderChildService;
@RequiresPermissions("system:empRequisiteOrderChild:view")
@GetMapping()
public String empRequisiteOrderChild()
{
return prefix + "/empRequisiteOrderChild";
}
/**
* 查询员工单领料单物料信息列表
*/
@RequiresPermissions("system:empRequisiteOrderChild:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild)
{
startPage();
List<BaseEmpRequisiteOrderChild> list = baseEmpRequisiteOrderChildService.selectBaseEmpRequisiteOrderChildList(baseEmpRequisiteOrderChild);
return getDataTable(list);
}
/**
* 导出员工单领料单物料信息列表
*/
@RequiresPermissions("system:empRequisiteOrderChild:export")
@Log(title = "员工单领料单物料信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild)
{
List<BaseEmpRequisiteOrderChild> list = baseEmpRequisiteOrderChildService.selectBaseEmpRequisiteOrderChildList(baseEmpRequisiteOrderChild);
ExcelUtil<BaseEmpRequisiteOrderChild> util = new ExcelUtil<BaseEmpRequisiteOrderChild>(BaseEmpRequisiteOrderChild.class);
return util.exportExcel(list, "员工单领料单物料信息数据");
}
/**
* 新增员工单领料单物料信息
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存员工单领料单物料信息
*/
@RequiresPermissions("system:empRequisiteOrderChild:add")
@Log(title = "员工单领料单物料信息", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild)
{
return toAjax(baseEmpRequisiteOrderChildService.insertBaseEmpRequisiteOrderChild(baseEmpRequisiteOrderChild));
}
/**
* 修改员工单领料单物料信息
*/
@GetMapping("/edit/{requisitioningChildId}")
public String edit(@PathVariable("requisitioningChildId") Long requisitioningChildId, ModelMap mmap)
{
BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild = baseEmpRequisiteOrderChildService.selectBaseEmpRequisiteOrderChildById(requisitioningChildId);
mmap.put("baseEmpRequisiteOrderChild", baseEmpRequisiteOrderChild);
return prefix + "/edit";
}
/**
* 修改保存员工单领料单物料信息
*/
@RequiresPermissions("system:empRequisiteOrderChild:edit")
@Log(title = "员工单领料单物料信息", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild)
{
return toAjax(baseEmpRequisiteOrderChildService.updateBaseEmpRequisiteOrderChild(baseEmpRequisiteOrderChild));
}
/**
* 删除员工单领料单物料信息
*/
@RequiresPermissions("system:empRequisiteOrderChild:remove")
@Log(title = "员工单领料单物料信息", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(baseEmpRequisiteOrderChildService.deleteBaseEmpRequisiteOrderChildByIds(ids));
}
/**
* 作废员工单领料单物料信息
*/
@RequiresPermissions("system:empRequisiteOrderChild:cancel")
@Log(title = "员工单领料单物料信息", businessType = BusinessType.CANCEL)
@GetMapping( "/cancel/{id}")
@ResponseBody
public AjaxResult cancel(@PathVariable("id") Long id){
return toAjax(baseEmpRequisiteOrderChildService.cancelBaseEmpRequisiteOrderChildById(id));
}
/**
* 恢复员工单领料单物料信息
*/
@RequiresPermissions("system:empRequisiteOrderChild:restore")
@Log(title = "员工单领料单物料信息", businessType = BusinessType.RESTORE)
@GetMapping( "/restore/{id}")
@ResponseBody
public AjaxResult restore(@PathVariable("id")Long id)
{
return toAjax(baseEmpRequisiteOrderChildService.restoreBaseEmpRequisiteOrderChildById(id));
}
}

281
ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEmpRequisiteOrderChild.java

@ -0,0 +1,281 @@
package com.ruoyi.system.domain;
import java.math.BigDecimal;
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;
/**
* 员工单领料单物料信息对象 base_emp_requisite_order_child
*
* @author zhang
* @date 2024-05-15
*/
public class BaseEmpRequisiteOrderChild extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 客户报价子表id */
private Long requisitioningChildId;
/** 关联员工领料单编号字段 */
@Excel(name = "关联员工领料单编号字段")
private String quoteId;
/** 物料表中的id */
@Excel(name = "物料表中的id")
private Long materialId;
/** 料号 */
@Excel(name = "料号")
private String materialCode;
/** 物料的图片 */
@Excel(name = "物料的图片")
private String photoUrl;
/** 物料的名称 */
@Excel(name = "物料的名称")
private String materialName;
/** 物料的类型 */
@Excel(name = "物料的类型")
private String materialType;
/** 物料的型号 */
@Excel(name = "物料的型号")
private String materialModel;
/** 物料的规格 */
@Excel(name = "物料的规格")
private String specifications;
/** 物料的品牌 */
@Excel(name = "物料的品牌")
private String brand;
/** 物料的描述 */
@Excel(name = "物料的描述")
private String describe;
/** 物料的数量 */
@Excel(name = "物料的数量")
private Long materialNum;
/** 物料的不含税单价(RMB) */
@Excel(name = "物料的不含税单价(RMB)")
private BigDecimal materialRmb;
/** 物料的含税单价(RMB) */
@Excel(name = "物料的含税单价(RMB)")
private BigDecimal materialNoRmb;
/** 物料的含税总价(RMB) */
@Excel(name = "物料的含税总价(RMB)")
private BigDecimal materialNoRmbSum;
/** 物料的不含税总价(RMB) */
@Excel(name = "物料的不含税总价(RMB)")
private BigDecimal materialRmbSum;
/** 删除状态 */
@Excel(name = "删除状态")
private String useStatus;
/** 审核状态 */
@Excel(name = "审核状态")
private String auditStatus;
public void setRequisitioningChildId(Long requisitioningChildId)
{
this.requisitioningChildId = requisitioningChildId;
}
public Long getRequisitioningChildId()
{
return requisitioningChildId;
}
public void setQuoteId(String quoteId)
{
this.quoteId = quoteId;
}
public String getQuoteId()
{
return quoteId;
}
public void setMaterialId(Long materialId)
{
this.materialId = materialId;
}
public Long getMaterialId()
{
return materialId;
}
public void setMaterialCode(String materialCode)
{
this.materialCode = materialCode;
}
public String getMaterialCode()
{
return materialCode;
}
public void setPhotoUrl(String photoUrl)
{
this.photoUrl = photoUrl;
}
public String getPhotoUrl()
{
return photoUrl;
}
public void setMaterialName(String materialName)
{
this.materialName = materialName;
}
public String getMaterialName()
{
return materialName;
}
public void setMaterialType(String materialType)
{
this.materialType = materialType;
}
public String getMaterialType()
{
return materialType;
}
public void setMaterialModel(String materialModel)
{
this.materialModel = materialModel;
}
public String getMaterialModel()
{
return materialModel;
}
public void setSpecifications(String specifications)
{
this.specifications = specifications;
}
public String getSpecifications()
{
return specifications;
}
public void setBrand(String brand)
{
this.brand = brand;
}
public String getBrand()
{
return brand;
}
public void setDescribe(String describe)
{
this.describe = describe;
}
public String getDescribe()
{
return describe;
}
public void setMaterialNum(Long materialNum)
{
this.materialNum = materialNum;
}
public Long getMaterialNum()
{
return materialNum;
}
public void setMaterialRmb(BigDecimal materialRmb)
{
this.materialRmb = materialRmb;
}
public BigDecimal getMaterialRmb()
{
return materialRmb;
}
public void setMaterialNoRmb(BigDecimal materialNoRmb)
{
this.materialNoRmb = materialNoRmb;
}
public BigDecimal getMaterialNoRmb()
{
return materialNoRmb;
}
public void setMaterialNoRmbSum(BigDecimal materialNoRmbSum)
{
this.materialNoRmbSum = materialNoRmbSum;
}
public BigDecimal getMaterialNoRmbSum()
{
return materialNoRmbSum;
}
public void setMaterialRmbSum(BigDecimal materialRmbSum)
{
this.materialRmbSum = materialRmbSum;
}
public BigDecimal getMaterialRmbSum()
{
return materialRmbSum;
}
public void setUseStatus(String useStatus)
{
this.useStatus = useStatus;
}
public String getUseStatus()
{
return useStatus;
}
public void setAuditStatus(String auditStatus)
{
this.auditStatus = auditStatus;
}
public String getAuditStatus()
{
return auditStatus;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("requisitioningChildId", getRequisitioningChildId())
.append("quoteId", getQuoteId())
.append("materialId", getMaterialId())
.append("materialCode", getMaterialCode())
.append("photoUrl", getPhotoUrl())
.append("materialName", getMaterialName())
.append("materialType", getMaterialType())
.append("materialModel", getMaterialModel())
.append("specifications", getSpecifications())
.append("brand", getBrand())
.append("describe", getDescribe())
.append("materialNum", getMaterialNum())
.append("materialRmb", getMaterialRmb())
.append("materialNoRmb", getMaterialNoRmb())
.append("materialNoRmbSum", getMaterialNoRmbSum())
.append("materialRmbSum", getMaterialRmbSum())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("useStatus", getUseStatus())
.append("auditStatus", getAuditStatus())
.toString();
}
}

77
ruoyi-admin/src/main/java/com/ruoyi/system/mapper/BaseEmpRequisiteOrderChildMapper.java

@ -0,0 +1,77 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.BaseEmpRequisiteOrderChild;
/**
* 员工单领料单物料信息Mapper接口
*
* @author zhang
* @date 2024-05-15
*/
public interface BaseEmpRequisiteOrderChildMapper
{
/**
* 查询员工单领料单物料信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 员工单领料单物料信息
*/
public BaseEmpRequisiteOrderChild selectBaseEmpRequisiteOrderChildById(Long requisitioningChildId);
/**
* 查询员工单领料单物料信息列表
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 员工单领料单物料信息集合
*/
public List<BaseEmpRequisiteOrderChild> selectBaseEmpRequisiteOrderChildList(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild);
/**
* 新增员工单领料单物料信息
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 结果
*/
public int insertBaseEmpRequisiteOrderChild(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild);
/**
* 修改员工单领料单物料信息
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 结果
*/
public int updateBaseEmpRequisiteOrderChild(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild);
/**
* 删除员工单领料单物料信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 结果
*/
public int deleteBaseEmpRequisiteOrderChildById(Long requisitioningChildId);
/**
* 批量删除员工单领料单物料信息
*
* @param requisitioningChildIds 需要删除的数据ID
* @return 结果
*/
public int deleteBaseEmpRequisiteOrderChildByIds(String[] requisitioningChildIds);
/**
* 作废员工单领料单物料信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 结果
*/
public int cancelBaseEmpRequisiteOrderChildById(Long requisitioningChildId);
/**
* 恢复员工单领料单物料信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 结果
*/
public int restoreBaseEmpRequisiteOrderChildById(Long requisitioningChildId);
}

75
ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseEmpRequisiteOrderChildService.java

@ -0,0 +1,75 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.BaseEmpRequisiteOrderChild;
/**
* 员工单领料单物料信息Service接口
*
* @author zhang
* @date 2024-05-15
*/
public interface IBaseEmpRequisiteOrderChildService
{
/**
* 查询员工单领料单物料信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 员工单领料单物料信息
*/
public BaseEmpRequisiteOrderChild selectBaseEmpRequisiteOrderChildById(Long requisitioningChildId);
/**
* 查询员工单领料单物料信息列表
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 员工单领料单物料信息集合
*/
public List<BaseEmpRequisiteOrderChild> selectBaseEmpRequisiteOrderChildList(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild);
/**
* 新增员工单领料单物料信息
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 结果
*/
public int insertBaseEmpRequisiteOrderChild(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild);
/**
* 修改员工单领料单物料信息
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 结果
*/
public int updateBaseEmpRequisiteOrderChild(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild);
/**
* 批量删除员工单领料单物料信息
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteBaseEmpRequisiteOrderChildByIds(String ids);
/**
* 删除员工单领料单物料信息信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 结果
*/
public int deleteBaseEmpRequisiteOrderChildById(Long requisitioningChildId);
/**
* 作废员工单领料单物料信息
* @param requisitioningChildId 员工单领料单物料信息ID
* @return
*/
int cancelBaseEmpRequisiteOrderChildById(Long requisitioningChildId);
/**
* 恢复员工单领料单物料信息
* @param requisitioningChildId 员工单领料单物料信息ID
* @return
*/
int restoreBaseEmpRequisiteOrderChildById(Long requisitioningChildId);
}

126
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseEmpRequisiteOrderChildServiceImpl.java

@ -0,0 +1,126 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.ShiroUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BaseEmpRequisiteOrderChildMapper;
import com.ruoyi.system.domain.BaseEmpRequisiteOrderChild;
import com.ruoyi.system.service.IBaseEmpRequisiteOrderChildService;
import com.ruoyi.common.core.text.Convert;
/**
* 员工单领料单物料信息Service业务层处理
*
* @author zhang
* @date 2024-05-15
*/
@Service
public class BaseEmpRequisiteOrderChildServiceImpl implements IBaseEmpRequisiteOrderChildService
{
@Autowired
private BaseEmpRequisiteOrderChildMapper baseEmpRequisiteOrderChildMapper;
/**
* 查询员工单领料单物料信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 员工单领料单物料信息
*/
@Override
public BaseEmpRequisiteOrderChild selectBaseEmpRequisiteOrderChildById(Long requisitioningChildId)
{
return baseEmpRequisiteOrderChildMapper.selectBaseEmpRequisiteOrderChildById(requisitioningChildId);
}
/**
* 查询员工单领料单物料信息列表
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 员工单领料单物料信息
*/
@Override
public List<BaseEmpRequisiteOrderChild> selectBaseEmpRequisiteOrderChildList(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild)
{
return baseEmpRequisiteOrderChildMapper.selectBaseEmpRequisiteOrderChildList(baseEmpRequisiteOrderChild);
}
/**
* 新增员工单领料单物料信息
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 结果
*/
@Override
public int insertBaseEmpRequisiteOrderChild(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild)
{
String loginName = ShiroUtils.getLoginName();
baseEmpRequisiteOrderChild.setCreateBy(loginName);
baseEmpRequisiteOrderChild.setCreateTime(DateUtils.getNowDate());
return baseEmpRequisiteOrderChildMapper.insertBaseEmpRequisiteOrderChild(baseEmpRequisiteOrderChild);
}
/**
* 修改员工单领料单物料信息
*
* @param baseEmpRequisiteOrderChild 员工单领料单物料信息
* @return 结果
*/
@Override
public int updateBaseEmpRequisiteOrderChild(BaseEmpRequisiteOrderChild baseEmpRequisiteOrderChild)
{
String loginName = ShiroUtils.getLoginName();
baseEmpRequisiteOrderChild.setUpdateBy(loginName);
baseEmpRequisiteOrderChild.setUpdateTime(DateUtils.getNowDate());
return baseEmpRequisiteOrderChildMapper.updateBaseEmpRequisiteOrderChild(baseEmpRequisiteOrderChild);
}
/**
* 删除员工单领料单物料信息对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteBaseEmpRequisiteOrderChildByIds(String ids)
{
return baseEmpRequisiteOrderChildMapper.deleteBaseEmpRequisiteOrderChildByIds(Convert.toStrArray(ids));
}
/**
* 删除员工单领料单物料信息信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 结果
*/
@Override
public int deleteBaseEmpRequisiteOrderChildById(Long requisitioningChildId)
{
return baseEmpRequisiteOrderChildMapper.deleteBaseEmpRequisiteOrderChildById(requisitioningChildId);
}
/**
* 作废员工单领料单物料信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 结果
*/
@Override
public int cancelBaseEmpRequisiteOrderChildById(Long requisitioningChildId)
{
return baseEmpRequisiteOrderChildMapper.cancelBaseEmpRequisiteOrderChildById(requisitioningChildId);
}
/**
* 恢复员工单领料单物料信息信息
*
* @param requisitioningChildId 员工单领料单物料信息ID
* @return 结果
*/
@Override
public int restoreBaseEmpRequisiteOrderChildById(Long requisitioningChildId)
{
return baseEmpRequisiteOrderChildMapper.restoreBaseEmpRequisiteOrderChildById(requisitioningChildId);
}
}

165
ruoyi-admin/src/main/resources/mapper/system/BaseEmpRequisiteOrderChildMapper.xml

@ -0,0 +1,165 @@
<?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.system.mapper.BaseEmpRequisiteOrderChildMapper">
<resultMap type="BaseEmpRequisiteOrderChild" id="BaseEmpRequisiteOrderChildResult">
<result property="requisitioningChildId" column="requisitioning_child_id" />
<result property="quoteId" column="quote_id" />
<result property="materialId" column="material_id" />
<result property="materialCode" column="material_code" />
<result property="photoUrl" column="photoUrl" />
<result property="materialName" column="material_name" />
<result property="materialType" column="material_type" />
<result property="materialModel" column="material_model" />
<result property="specifications" column="specifications" />
<result property="brand" column="brand" />
<result property="describe" column="describe" />
<result property="materialNum" column="materialNum" />
<result property="materialRmb" column="materialRmb" />
<result property="materialNoRmb" column="materialNoRmb" />
<result property="materialNoRmbSum" column="materialNoRmbSum" />
<result property="materialRmbSum" column="materialRmbSum" />
<result property="remark" column="remark" />
<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="useStatus" column="use_status" />
<result property="auditStatus" column="audit_status" />
</resultMap>
<sql id="selectBaseEmpRequisiteOrderChildVo">
select requisitioning_child_id, quote_id, material_id, material_code, photoUrl, material_name, material_type, material_model, specifications, brand, describe, materialNum, materialRmb, materialNoRmb, materialNoRmbSum, materialRmbSum, remark, create_by, create_time, update_by, update_time, use_status, audit_status from base_emp_requisite_order_child
</sql>
<select id="selectBaseEmpRequisiteOrderChildList" parameterType="BaseEmpRequisiteOrderChild" resultMap="BaseEmpRequisiteOrderChildResult">
<include refid="selectBaseEmpRequisiteOrderChildVo"/>
<where>
<if test="requisitioningChildId != null "> and requisitioning_child_id = #{requisitioningChildId}</if>
<if test="quoteId != null and quoteId != ''"> and quote_id = #{quoteId}</if>
<if test="materialId != null "> and material_id = #{materialId}</if>
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
<if test="photoUrl != null and photoUrl != ''"> and photoUrl = #{photoUrl}</if>
<if test="materialName != null and materialName != ''"> and material_name = #{materialName}</if>
<if test="materialType != null and materialType != ''"> and material_type = #{materialType}</if>
<if test="materialModel != null and materialModel != ''"> and material_model = #{materialModel}</if>
<if test="specifications != null and specifications != ''"> and specifications = #{specifications}</if>
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
<if test="describe != null and describe != ''"> and describe = #{describe}</if>
<if test="materialNum != null "> and materialNum = #{materialNum}</if>
<if test="materialRmb != null "> and materialRmb = #{materialRmb}</if>
<if test="materialNoRmb != null "> and materialNoRmb = #{materialNoRmb}</if>
<if test="materialNoRmbSum != null "> and materialNoRmbSum = #{materialNoRmbSum}</if>
<if test="materialRmbSum != null "> and materialRmbSum = #{materialRmbSum}</if>
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
</where>
</select>
<select id="selectBaseEmpRequisiteOrderChildById" parameterType="Long" resultMap="BaseEmpRequisiteOrderChildResult">
<include refid="selectBaseEmpRequisiteOrderChildVo"/>
where requisitioning_child_id = #{requisitioningChildId}
</select>
<insert id="insertBaseEmpRequisiteOrderChild" parameterType="BaseEmpRequisiteOrderChild" useGeneratedKeys="true" keyProperty="requisitioningChildId">
insert into base_emp_requisite_order_child
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="quoteId != null">quote_id,</if>
<if test="materialId != null">material_id,</if>
<if test="materialCode != null">material_code,</if>
<if test="photoUrl != null">photoUrl,</if>
<if test="materialName != null">material_name,</if>
<if test="materialType != null">material_type,</if>
<if test="materialModel != null">material_model,</if>
<if test="specifications != null">specifications,</if>
<if test="brand != null">brand,</if>
<if test="describe != null">describe,</if>
<if test="materialNum != null">materialNum,</if>
<if test="materialRmb != null">materialRmb,</if>
<if test="materialNoRmb != null">materialNoRmb,</if>
<if test="materialNoRmbSum != null">materialNoRmbSum,</if>
<if test="materialRmbSum != null">materialRmbSum,</if>
<if test="remark != null">remark,</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="useStatus != null">use_status,</if>
<if test="auditStatus != null">audit_status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="quoteId != null">#{quoteId},</if>
<if test="materialId != null">#{materialId},</if>
<if test="materialCode != null">#{materialCode},</if>
<if test="photoUrl != null">#{photoUrl},</if>
<if test="materialName != null">#{materialName},</if>
<if test="materialType != null">#{materialType},</if>
<if test="materialModel != null">#{materialModel},</if>
<if test="specifications != null">#{specifications},</if>
<if test="brand != null">#{brand},</if>
<if test="describe != null">#{describe},</if>
<if test="materialNum != null">#{materialNum},</if>
<if test="materialRmb != null">#{materialRmb},</if>
<if test="materialNoRmb != null">#{materialNoRmb},</if>
<if test="materialNoRmbSum != null">#{materialNoRmbSum},</if>
<if test="materialRmbSum != null">#{materialRmbSum},</if>
<if test="remark != null">#{remark},</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="useStatus != null">#{useStatus},</if>
<if test="auditStatus != null">#{auditStatus},</if>
</trim>
</insert>
<update id="updateBaseEmpRequisiteOrderChild" parameterType="BaseEmpRequisiteOrderChild">
update base_emp_requisite_order_child
<trim prefix="SET" suffixOverrides=",">
<if test="quoteId != null">quote_id = #{quoteId},</if>
<if test="materialId != null">material_id = #{materialId},</if>
<if test="materialCode != null">material_code = #{materialCode},</if>
<if test="photoUrl != null">photoUrl = #{photoUrl},</if>
<if test="materialName != null">material_name = #{materialName},</if>
<if test="materialType != null">material_type = #{materialType},</if>
<if test="materialModel != null">material_model = #{materialModel},</if>
<if test="specifications != null">specifications = #{specifications},</if>
<if test="brand != null">brand = #{brand},</if>
<if test="describe != null">describe = #{describe},</if>
<if test="materialNum != null">materialNum = #{materialNum},</if>
<if test="materialRmb != null">materialRmb = #{materialRmb},</if>
<if test="materialNoRmb != null">materialNoRmb = #{materialNoRmb},</if>
<if test="materialNoRmbSum != null">materialNoRmbSum = #{materialNoRmbSum},</if>
<if test="materialRmbSum != null">materialRmbSum = #{materialRmbSum},</if>
<if test="remark != null">remark = #{remark},</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="useStatus != null">use_status = #{useStatus},</if>
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
</trim>
where requisitioning_child_id = #{requisitioningChildId}
</update>
<delete id="deleteBaseEmpRequisiteOrderChildById" parameterType="Long">
delete from base_emp_requisite_order_child where requisitioning_child_id = #{requisitioningChildId}
</delete>
<delete id="deleteBaseEmpRequisiteOrderChildByIds" parameterType="String">
delete from base_emp_requisite_order_child where requisitioning_child_id in
<foreach item="requisitioningChildId" collection="array" open="(" separator="," close=")">
#{requisitioningChildId}
</foreach>
</delete>
<update id="cancelBaseEmpRequisiteOrderChildById" parameterType="Long">
update base_emp_requisite_order_child set del_flag = '1' where requisitioning_child_id = #{requisitioningChildId}
</update>
<update id="restoreBaseEmpRequisiteOrderChildById" parameterType="Long">
update base_emp_requisite_order_child set del_flag = '0' where requisitioning_child_id = #{requisitioningChildId}
</update>
</mapper>

18
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/add.html

@ -168,6 +168,24 @@
$.operate.save(prefix + "/add", $('#form-empRequisiteOrder-add').serialize());
}
}
function getSelections(){
$.ajax({
url: ctx + "system/requisitioning/getEmpUserName",
type: "get",
dataType: "json",
success: function (data) {
console.log(data);
$("select[name='dept']").append($('<option></option>').val(data.deptName).html(data.deptName));
$("select[name='userName']").append($('<option></option>').val(data.userName).html(data.userName));
$("select[name='post']").append($('<option></option>').val(data.postName).html(data.postName));
// $select.trigger('change');
}
});
}
</script>
</body>
</html>

141
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrderChild/add.html

@ -0,0 +1,141 @@
<!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-empRequisiteOrderChild-add">
<div class="form-group">
<label class="col-sm-3 control-label">关联员工领料单编号字段:</label>
<div class="col-sm-8">
<input name="quoteId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料表中的id:</label>
<div class="col-sm-8">
<input name="materialId" 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="materialCode" 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="photoUrl" 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="materialName" 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="materialType" 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="materialModel" 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="specifications" 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="brand" 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="describe" 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="materialNum" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料的不含税单价(RMB):</label>
<div class="col-sm-8">
<input name="materialRmb" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料的含税单价(RMB):</label>
<div class="col-sm-8">
<input name="materialNoRmb" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料的含税总价(RMB):</label>
<div class="col-sm-8">
<input name="materialNoRmbSum" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料的不含税总价(RMB):</label>
<div class="col-sm-8">
<input name="materialRmbSum" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">删除状态:</label>
<div class="col-sm-8">
<select name="useStatus" 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">
<select name="auditStatus" class="form-control m-b" th:with="type=${@dict.getType('auditStatus')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/empRequisiteOrderChild"
$("#form-empRequisiteOrderChild-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-empRequisiteOrderChild-add').serialize());
}
}
</script>
</body>
</html>

142
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrderChild/edit.html

@ -0,0 +1,142 @@
<!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-empRequisiteOrderChild-edit" th:object="${baseEmpRequisiteOrderChild}">
<input name="requisitioningChildId" th:field="*{requisitioningChildId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">关联员工领料单编号字段:</label>
<div class="col-sm-8">
<input name="quoteId" th:field="*{quoteId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料表中的id:</label>
<div class="col-sm-8">
<input name="materialId" th:field="*{materialId}" 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="materialCode" th:field="*{materialCode}" 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="photoUrl" th:field="*{photoUrl}" 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="materialName" th:field="*{materialName}" 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="materialType" 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="materialModel" th:field="*{materialModel}" 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="specifications" th:field="*{specifications}" 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="brand" th:field="*{brand}" 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="describe" th:field="*{describe}" 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="materialNum" th:field="*{materialNum}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料的不含税单价(RMB):</label>
<div class="col-sm-8">
<input name="materialRmb" th:field="*{materialRmb}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料的含税单价(RMB):</label>
<div class="col-sm-8">
<input name="materialNoRmb" th:field="*{materialNoRmb}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料的含税总价(RMB):</label>
<div class="col-sm-8">
<input name="materialNoRmbSum" th:field="*{materialNoRmbSum}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">物料的不含税总价(RMB):</label>
<div class="col-sm-8">
<input name="materialRmbSum" th:field="*{materialRmbSum}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">删除状态:</label>
<div class="col-sm-8">
<select name="useStatus" 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">
<select name="auditStatus" class="form-control m-b" th:with="type=${@dict.getType('auditStatus')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{auditStatus}"></option>
</select>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/empRequisiteOrderChild";
$("#form-empRequisiteOrderChild-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-empRequisiteOrderChild-edit').serialize());
}
}
</script>
</body>
</html>

237
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrderChild/empRequisiteOrderChild.html

@ -0,0 +1,237 @@
<!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>客户报价子表id:</label>
<input type="text" name="requisitioningChildId"/>
</li>
<li>
<label>关联员工领料单编号字段:</label>
<input type="text" name="quoteId"/>
</li>
<li>
<label>物料表中的id:</label>
<input type="text" name="materialId"/>
</li>
<li>
<label>料号:</label>
<input type="text" name="materialCode"/>
</li>
<li>
<label>物料的图片:</label>
<input type="text" name="photoUrl"/>
</li>
<li>
<label>物料的名称:</label>
<input type="text" name="materialName"/>
</li>
<li>
<label>物料的类型:</label>
<select name="materialType">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>物料的型号:</label>
<input type="text" name="materialModel"/>
</li>
<li>
<label>物料的规格:</label>
<input type="text" name="specifications"/>
</li>
<li>
<label>物料的品牌:</label>
<input type="text" name="brand"/>
</li>
<li>
<label>物料的描述:</label>
<input type="text" name="describe"/>
</li>
<li>
<label>物料的数量:</label>
<input type="text" name="materialNum"/>
</li>
<li>
<label>物料的不含税单价(RMB):</label>
<input type="text" name="materialRmb"/>
</li>
<li>
<label>物料的含税单价(RMB):</label>
<input type="text" name="materialNoRmb"/>
</li>
<li>
<label>物料的含税总价(RMB):</label>
<input type="text" name="materialNoRmbSum"/>
</li>
<li>
<label>物料的不含税总价(RMB):</label>
<input type="text" name="materialRmbSum"/>
</li>
<li>
<label>审核状态:</label>
<select name="auditStatus" th:with="type=${@dict.getType('auditStatus')}">
<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="system:empRequisiteOrderChild:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:empRequisiteOrderChild:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:empRequisiteOrderChild:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:empRequisiteOrderChild: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('system:empRequisiteOrderChild:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:empRequisiteOrderChild:remove')}]];
var cancelFlag = [[${@permission.hasPermi('system:empRequisiteOrderChild:cancel')}]];
var restoreFlag = [[${@permission.hasPermi('system:empRequisiteOrderChild:restore')}]];
var auditStatusDatas = [[${@dict.getType('auditStatus')}]];
var prefix = ctx + "system/empRequisiteOrderChild";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
cancelUrl: prefix + "/cancel/{id}",
restoreUrl: prefix + "/restore/{id}",
exportUrl: prefix + "/export",
modalName: "员工单领料单物料信息",
columns: [{
checkbox: true
},
{
title: '客户报价子表id',
field: 'requisitioningChildId',
visible: false
},
{
title: '关联员工领料单编号字段',
field: 'quoteId',
},
{
title: '物料表中的id',
field: 'materialId',
},
{
title: '料号',
field: 'materialCode',
},
{
title: '物料的图片',
field: 'photoUrl',
},
{
title: '物料的名称',
field: 'materialName',
},
{
title: '物料的类型',
field: 'materialType',
},
{
title: '物料的型号',
field: 'materialModel',
},
{
title: '物料的规格',
field: 'specifications',
},
{
title: '物料的品牌',
field: 'brand',
},
{
title: '物料的描述',
field: 'describe',
},
{
title: '物料的数量',
field: 'materialNum',
},
{
title: '物料的不含税单价(RMB)',
field: 'materialRmb',
},
{
title: '物料的含税单价(RMB)',
field: 'materialNoRmb',
},
{
title: '物料的含税总价(RMB)',
field: 'materialNoRmbSum',
},
{
title: '物料的不含税总价(RMB)',
field: 'materialRmbSum',
},
{
title: '备注',
field: 'remark',
},
{
title: '删除状态',
field: 'useStatus',
},
{
title: '审核状态',
field: 'auditStatus',
formatter: function(value, row, index) {
return $.table.selectDictLabel(auditStatusDatas, value);
}
},
{
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.requisitioningChildId + '\')"><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.requisitioningChildId + '\')"><i class="fa fa-remove"></i>删除</a> ');
if(row.delFlag == '0'){
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> ');
}else{
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> ');
}
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>
Loading…
Cancel
Save