Browse Source

[delete]

删除旧版无用的盘点表warehousing_check_info和系统中对应的前端所有代码和后端所有代码
dev
liuxiaoxu 1 month ago
parent
commit
04a334ab55
  1. 130
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckInfoController.java
  2. 188
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingCheckInfo.java
  3. 61
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingCheckInfoMapper.java
  4. 69
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckInfoService.java
  5. 102
      ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckInfoServiceImpl.java
  6. 103
      ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckInfoMapper.xml
  7. 1471
      ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/add.html
  8. 1478
      ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/edit.html
  9. 154
      ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/warehousingCheckInfo.html

130
ruoyi-admin/src/main/java/com/ruoyi/storehouse/controller/WarehousingCheckInfoController.java

@ -1,130 +0,0 @@
package com.ruoyi.storehouse.controller;
import com.ruoyi.ck.utils.Result;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.storehouse.domain.WarehousingCheckInfo;
import com.ruoyi.storehouse.service.IWarehousingCheckInfoService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 盘点Controller
*
* @author ruoyi
* @date 2023-05-16
*/
@Controller
@RequestMapping("/storehouse/warehousingCheckInfo")
public class WarehousingCheckInfoController extends BaseController
{
private String prefix = "storehouse/warehousingCheckInfo";
@Autowired
private IWarehousingCheckInfoService warehousingCheckInfoService;
@RequiresPermissions("storehouse:warehousingCheckInfo:view")
@GetMapping()
public String warehousingCheckInfo()
{
return prefix + "/warehousingCheckInfo";
}
/**
* 查询盘点列表
*/
@RequiresPermissions("storehouse:warehousingCheckInfo:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(WarehousingCheckInfo warehousingCheckInfo)
{
startPage();
List<WarehousingCheckInfo> list = warehousingCheckInfoService.selectWarehousingCheckInfoList(warehousingCheckInfo);
return getDataTable(list);
}
/**
* 导出盘点列表
*/
@RequiresPermissions("storehouse:warehousingCheckInfo:export")
@Log(title = "盘点", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(WarehousingCheckInfo warehousingCheckInfo)
{
List<WarehousingCheckInfo> list = warehousingCheckInfoService.selectWarehousingCheckInfoList(warehousingCheckInfo);
ExcelUtil<WarehousingCheckInfo> util = new ExcelUtil<WarehousingCheckInfo>(WarehousingCheckInfo.class);
return util.exportExcel(list, "盘点数据");
}
/**
* 新增盘点
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存盘点
*/
@RequiresPermissions("storehouse:warehousingCheckInfo:add")
@Log(title = "盘点", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(WarehousingCheckInfo warehousingCheckInfo)
{
return toAjax(warehousingCheckInfoService.insertWarehousingCheckInfo(warehousingCheckInfo));
}
/**
* 修改盘点
*/
@GetMapping("/edit/{warehousingCheckInfoId}")
public String edit(@PathVariable("warehousingCheckInfoId") Long warehousingCheckInfoId, ModelMap mmap)
{
WarehousingCheckInfo warehousingCheckInfo = warehousingCheckInfoService.selectWarehousingCheckInfoById(warehousingCheckInfoId);
mmap.put("warehousingCheckInfo", warehousingCheckInfo);
return prefix + "/edit";
}
/**
* 修改保存盘点
*/
@RequiresPermissions("storehouse:warehousingCheckInfo:edit")
@Log(title = "盘点", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(WarehousingCheckInfo warehousingCheckInfo)
{
return toAjax(warehousingCheckInfoService.updateWarehousingCheckInfo(warehousingCheckInfo));
}
/**
* 删除盘点
*/
@RequiresPermissions("storehouse:warehousingCheckInfo:remove")
@Log(title = "盘点", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(warehousingCheckInfoService.deleteWarehousingCheckInfoByIds(ids));
}
@PostMapping("/getId")
@ResponseBody
public Result getId() throws Exception {
return Result.getSuccessResult(warehousingCheckInfoService.getId());
}
}

188
ruoyi-admin/src/main/java/com/ruoyi/storehouse/domain/WarehousingCheckInfo.java

@ -1,188 +0,0 @@
package com.ruoyi.storehouse.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;
/**
* 盘点对象 warehousing_check_info
*
* @author ruoyi
* @date 2023-05-16
*/
public class WarehousingCheckInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 盘点id */
private Long warehousingCheckInfoId;
/** 盘点单号 */
@Excel(name = "盘点单号")
private String warehousingCheckNumber;
/** 盘点人名 */
@Excel(name = "盘点人名")
private String warehousingCheckPerson;
/** 仓库号 */
@Excel(name = "仓库号")
private String stockNumber;
/** 仓库名称 */
@Excel(name = "仓库名称")
private String stockName;
/** 盘点日期 */
@Excel(name = "盘点日期")
private String warehousingCheckDate;
/** 物料种类 */
@Excel(name = "物料种类")
private String materialType;
/** 更新否 */
@Excel(name = "更新否")
private String updateFlag;
/** 录入时间 */
private String firstAddTime;
/** 修改时间 */
private String updateInfoTime;
/** 备用一 */
private String standbyOne;
/** 备用二 */
private String standbyTwo;
public void setWarehousingCheckInfoId(Long warehousingCheckInfoId)
{
this.warehousingCheckInfoId = warehousingCheckInfoId;
}
public Long getWarehousingCheckInfoId()
{
return warehousingCheckInfoId;
}
public void setWarehousingCheckNumber(String warehousingCheckNumber)
{
this.warehousingCheckNumber = warehousingCheckNumber;
}
public String getWarehousingCheckNumber()
{
return warehousingCheckNumber;
}
public void setWarehousingCheckPerson(String warehousingCheckPerson)
{
this.warehousingCheckPerson = warehousingCheckPerson;
}
public String getWarehousingCheckPerson()
{
return warehousingCheckPerson;
}
public void setStockNumber(String stockNumber)
{
this.stockNumber = stockNumber;
}
public String getStockNumber()
{
return stockNumber;
}
public void setStockName(String stockName)
{
this.stockName = stockName;
}
public String getStockName()
{
return stockName;
}
public void setWarehousingCheckDate(String warehousingCheckDate)
{
this.warehousingCheckDate = warehousingCheckDate;
}
public String getWarehousingCheckDate()
{
return warehousingCheckDate;
}
public void setMaterialType(String materialType)
{
this.materialType = materialType;
}
public String getMaterialType()
{
return materialType;
}
public void setUpdateFlag(String updateFlag)
{
this.updateFlag = updateFlag;
}
public String getUpdateFlag()
{
return updateFlag;
}
public void setFirstAddTime(String firstAddTime)
{
this.firstAddTime = firstAddTime;
}
public String getFirstAddTime()
{
return firstAddTime;
}
public void setUpdateInfoTime(String updateInfoTime)
{
this.updateInfoTime = updateInfoTime;
}
public String getUpdateInfoTime()
{
return updateInfoTime;
}
public void setStandbyOne(String standbyOne)
{
this.standbyOne = standbyOne;
}
public String getStandbyOne()
{
return standbyOne;
}
public void setStandbyTwo(String standbyTwo)
{
this.standbyTwo = standbyTwo;
}
public String getStandbyTwo()
{
return standbyTwo;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("warehousingCheckInfoId", getWarehousingCheckInfoId())
.append("warehousingCheckNumber", getWarehousingCheckNumber())
.append("warehousingCheckPerson", getWarehousingCheckPerson())
.append("stockNumber", getStockNumber())
.append("stockName", getStockName())
.append("warehousingCheckDate", getWarehousingCheckDate())
.append("materialType", getMaterialType())
.append("remark", getRemark())
.append("updateFlag", getUpdateFlag())
.append("firstAddTime", getFirstAddTime())
.append("updateInfoTime", getUpdateInfoTime())
.append("standbyOne", getStandbyOne())
.append("standbyTwo", getStandbyTwo())
.toString();
}
}

61
ruoyi-admin/src/main/java/com/ruoyi/storehouse/mapper/WarehousingCheckInfoMapper.java

@ -1,61 +0,0 @@
package com.ruoyi.storehouse.mapper;
import java.util.List;
import com.ruoyi.storehouse.domain.WarehousingCheckInfo;
/**
* 盘点Mapper接口
*
* @author ruoyi
* @date 2023-05-16
*/
public interface WarehousingCheckInfoMapper
{
/**
* 查询盘点
*
* @param warehousingCheckInfoId 盘点ID
* @return 盘点
*/
public WarehousingCheckInfo selectWarehousingCheckInfoById(Long warehousingCheckInfoId);
/**
* 查询盘点列表
*
* @param warehousingCheckInfo 盘点
* @return 盘点集合
*/
public List<WarehousingCheckInfo> selectWarehousingCheckInfoList(WarehousingCheckInfo warehousingCheckInfo);
/**
* 新增盘点
*
* @param warehousingCheckInfo 盘点
* @return 结果
*/
public int insertWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo);
/**
* 修改盘点
*
* @param warehousingCheckInfo 盘点
* @return 结果
*/
public int updateWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo);
/**
* 删除盘点
*
* @param warehousingCheckInfoId 盘点ID
* @return 结果
*/
public int deleteWarehousingCheckInfoById(Long warehousingCheckInfoId);
/**
* 批量删除盘点
*
* @param warehousingCheckInfoIds 需要删除的数据ID
* @return 结果
*/
public int deleteWarehousingCheckInfoByIds(String[] warehousingCheckInfoIds);
}

69
ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/IWarehousingCheckInfoService.java

@ -1,69 +0,0 @@
package com.ruoyi.storehouse.service;
import com.ruoyi.storehouse.domain.WarehousingCheckInfo;
import java.util.List;
/**
* 盘点Service接口
*
* @author ruoyi
* @date 2023-05-16
*/
public interface IWarehousingCheckInfoService
{
/**
* 查询盘点
*
* @param warehousingCheckInfoId 盘点ID
* @return 盘点
*/
public WarehousingCheckInfo selectWarehousingCheckInfoById(Long warehousingCheckInfoId);
/**
* 查询盘点列表
*
* @param warehousingCheckInfo 盘点
* @return 盘点集合
*/
public List<WarehousingCheckInfo> selectWarehousingCheckInfoList(WarehousingCheckInfo warehousingCheckInfo);
/**
* 新增盘点
*
* @param warehousingCheckInfo 盘点
* @return 结果
*/
public int insertWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo);
/**
* 修改盘点
*
* @param warehousingCheckInfo 盘点
* @return 结果
*/
public int updateWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo);
/**
* 批量删除盘点
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteWarehousingCheckInfoByIds(String ids);
/**
* 删除盘点信息
*
* @param warehousingCheckInfoId 盘点ID
* @return 结果
*/
public int deleteWarehousingCheckInfoById(Long warehousingCheckInfoId);
/**
* 获取盘点单号
* @return
*/
public String getId();
}

102
ruoyi-admin/src/main/java/com/ruoyi/storehouse/service/impl/WarehousingCheckInfoServiceImpl.java

@ -1,102 +0,0 @@
package com.ruoyi.storehouse.service.impl;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.storehouse.domain.WarehousingCheckInfo;
import com.ruoyi.storehouse.mapper.WarehousingCheckInfoMapper;
import com.ruoyi.storehouse.service.IWarehousingCheckInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.SimpleDateFormat;
import java.util.List;
/**
* 盘点Service业务层处理
*
* @author ruoyi
* @date 2023-05-16
*/
@Service
public class WarehousingCheckInfoServiceImpl implements IWarehousingCheckInfoService
{
@Autowired
private WarehousingCheckInfoMapper warehousingCheckInfoMapper;
/**
* 查询盘点
*
* @param warehousingCheckInfoId 盘点ID
* @return 盘点
*/
@Override
public WarehousingCheckInfo selectWarehousingCheckInfoById(Long warehousingCheckInfoId)
{
return warehousingCheckInfoMapper.selectWarehousingCheckInfoById(warehousingCheckInfoId);
}
/**
* 查询盘点列表
*
* @param warehousingCheckInfo 盘点
* @return 盘点
*/
@Override
public List<WarehousingCheckInfo> selectWarehousingCheckInfoList(WarehousingCheckInfo warehousingCheckInfo)
{
return warehousingCheckInfoMapper.selectWarehousingCheckInfoList(warehousingCheckInfo);
}
/**
* 新增盘点
*
* @param warehousingCheckInfo 盘点
* @return 结果
*/
@Override
public int insertWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo)
{
return warehousingCheckInfoMapper.insertWarehousingCheckInfo(warehousingCheckInfo);
}
/**
* 修改盘点
*
* @param warehousingCheckInfo 盘点
* @return 结果
*/
@Override
public int updateWarehousingCheckInfo(WarehousingCheckInfo warehousingCheckInfo)
{
return warehousingCheckInfoMapper.updateWarehousingCheckInfo(warehousingCheckInfo);
}
/**
* 删除盘点对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteWarehousingCheckInfoByIds(String ids)
{
return warehousingCheckInfoMapper.deleteWarehousingCheckInfoByIds(Convert.toStrArray(ids));
}
/**
* 删除盘点信息
*
* @param warehousingCheckInfoId 盘点ID
* @return 结果
*/
@Override
public int deleteWarehousingCheckInfoById(Long warehousingCheckInfoId)
{
return warehousingCheckInfoMapper.deleteWarehousingCheckInfoById(warehousingCheckInfoId);
}
@Override
public String getId() {
String time = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(System.currentTimeMillis());
return "CH" + time.substring(2);
}
}

103
ruoyi-admin/src/main/resources/mapper/storehouse/WarehousingCheckInfoMapper.xml

@ -1,103 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.storehouse.mapper.WarehousingCheckInfoMapper">
<resultMap type="WarehousingCheckInfo" id="WarehousingCheckInfoResult">
<result property="warehousingCheckInfoId" column="warehousing_check_info_id" />
<result property="warehousingCheckNumber" column="warehousing_check_number" />
<result property="warehousingCheckPerson" column="warehousing_check_person" />
<result property="stockNumber" column="stock_number" />
<result property="stockName" column="stock_name" />
<result property="warehousingCheckDate" column="warehousing_check_date" />
<result property="materialType" column="material_type" />
<result property="remark" column="remark" />
<result property="updateFlag" column="update_flag" />
<result property="firstAddTime" column="first_add_time" />
<result property="updateInfoTime" column="update_info_time" />
<result property="standbyOne" column="standby_one" />
<result property="standbyTwo" column="standby_two" />
</resultMap>
<sql id="selectWarehousingCheckInfoVo">
select warehousing_check_info_id, warehousing_check_number, warehousing_check_person, stock_number, stock_name, warehousing_check_date, material_type, remark, update_flag, first_add_time, update_info_time, standby_one, standby_two from warehousing_check_info
</sql>
<select id="selectWarehousingCheckInfoList" parameterType="WarehousingCheckInfo" resultMap="WarehousingCheckInfoResult">
<include refid="selectWarehousingCheckInfoVo"/>
<where>
<if test="warehousingCheckNumber != null and warehousingCheckNumber != ''"> and warehousing_check_number like concat('%', #{warehousingCheckNumber}, '%')</if>
<if test="stockNumber != null and stockNumber != ''"> and stock_number like concat('%', #{stockNumber}, '%')</if>
<if test="stockName != null and stockName != ''"> and stock_name like concat('%', #{stockName}, '%')</if>
<if test="params.beginWarehousingCheckDate != null and params.beginWarehousingCheckDate != '' and params.endWarehousingCheckDate != null and params.endWarehousingCheckDate != ''"> and warehousing_check_date between #{params.beginWarehousingCheckDate} and #{params.endWarehousingCheckDate}</if>
<if test="materialType != null and materialType != ''"> and material_type = #{materialType}</if>
<if test="updateFlag != null and updateFlag != ''"> and update_flag = #{updateFlag}</if>
</where>
</select>
<select id="selectWarehousingCheckInfoById" parameterType="Long" resultMap="WarehousingCheckInfoResult">
<include refid="selectWarehousingCheckInfoVo"/>
where warehousing_check_info_id = #{warehousingCheckInfoId}
</select>
<insert id="insertWarehousingCheckInfo" parameterType="WarehousingCheckInfo" useGeneratedKeys="true" keyProperty="warehousingCheckInfoId">
insert into warehousing_check_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="warehousingCheckNumber != null">warehousing_check_number,</if>
<if test="warehousingCheckPerson != null">warehousing_check_person,</if>
<if test="stockNumber != null">stock_number,</if>
<if test="stockName != null">stock_name,</if>
<if test="warehousingCheckDate != null">warehousing_check_date,</if>
<if test="materialType != null">material_type,</if>
<if test="remark != null">remark,</if>
<if test="updateFlag != null">update_flag,</if>
<if test="standbyOne != null">standby_one,</if>
<if test="standbyTwo != null">standby_two,</if>
first_add_time,
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="warehousingCheckNumber != null">#{warehousingCheckNumber},</if>
<if test="warehousingCheckPerson != null">#{warehousingCheckPerson},</if>
<if test="stockNumber != null">#{stockNumber},</if>
<if test="stockName != null">#{stockName},</if>
<if test="warehousingCheckDate != null">#{warehousingCheckDate},</if>
<if test="materialType != null">#{materialType},</if>
<if test="remark != null">#{remark},</if>
<if test="updateFlag != null">#{updateFlag},</if>
<if test="standbyOne != null">#{standbyOne},</if>
<if test="standbyTwo != null">#{standbyTwo},</if>
now(),
</trim>
</insert>
<update id="updateWarehousingCheckInfo" parameterType="WarehousingCheckInfo">
update warehousing_check_info
<trim prefix="SET" suffixOverrides=",">
<if test="warehousingCheckNumber != null">warehousing_check_number = #{warehousingCheckNumber},</if>
<if test="warehousingCheckPerson != null">warehousing_check_person = #{warehousingCheckPerson},</if>
<if test="stockNumber != null">stock_number = #{stockNumber},</if>
<if test="stockName != null">stock_name = #{stockName},</if>
<if test="warehousingCheckDate != null">warehousing_check_date = #{warehousingCheckDate},</if>
<if test="materialType != null">material_type = #{materialType},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateFlag != null">update_flag = #{updateFlag},</if>
<if test="standbyOne != null">standby_one = #{standbyOne},</if>
<if test="standbyTwo != null">standby_two = #{standbyTwo},</if>
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
</trim>
where warehousing_check_info_id = #{warehousingCheckInfoId}
</update>
<delete id="deleteWarehousingCheckInfoById" parameterType="Long">
delete from warehousing_check_info where warehousing_check_info_id = #{warehousingCheckInfoId}
</delete>
<delete id="deleteWarehousingCheckInfoByIds" parameterType="String">
delete from warehousing_check_info where warehousing_check_info_id in
<foreach item="warehousingCheckInfoId" collection="array" open="(" separator="," close=")">
#{warehousingCheckInfoId}
</foreach>
</delete>
</mapper>

1471
ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/add.html

File diff suppressed because it is too large

1478
ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/edit.html

File diff suppressed because it is too large

154
ruoyi-admin/src/main/resources/templates/storehouse/warehousingCheckInfo/warehousingCheckInfo.html

@ -1,154 +0,0 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('盘点列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>盘点单号:</label>
<input type="text" name="warehousingCheckNumber"/>
</li>
<li>
<label>仓库号:</label>
<input type="text" name="stockNumber"/>
</li>
<li>
<label>仓库名称:</label>
<input type="text" name="stockName"/>
</li>
<li class="select-time">
<label>盘点日期:</label>
<input type="text" class="time-input" id="startTime" placeholder="开始日期" name="params[beginWarehousingCheckDate]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束日期" name="params[endWarehousingCheckDate]"/>
</li>
<li>
<label>物料种类:</label>
<select name="materialType" th:with="type=${@dict.getType('ck_meterialt_type')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>更新否:</label>
<select name="updateFlag" th:with="type=${@dict.getType('sys_whether')}">
<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="storehouse:warehousingCheckInfo:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="storehouse:warehousingCheckInfo:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="storehouse:warehousingCheckInfo:remove">
<i class="fa fa-remove"></i> 删除
</a>
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="storehouse:warehousingCheckInfo:export">-->
<!-- <i class="fa fa-download"></i> 导出-->
<!-- </a>-->
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table" style="white-space: nowrap"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('storehouse:warehousingCheckInfo:edit')}]];
var removeFlag = [[${@permission.hasPermi('storehouse:warehousingCheckInfo:remove')}]];
var materialTypeDatas = [[${@dict.getType('ck_meterialt_type')}]];
var updateFlagDatas = [[${@dict.getType('sys_whether')}]];
var prefix = ctx + "storehouse/warehousingCheckInfo";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
clickToSelect: true,
modalName: "盘点",
columns: [{
checkbox: true
},
{
field: 'warehousingCheckInfoId',
title: '盘点id',
visible: false
},
{
field: 'warehousingCheckNumber',
title: '盘点单号'
},
{
field: 'warehousingCheckPerson',
title: '盘点人名'
},
{
field: 'stockNumber',
title: '仓库号'
},
{
field: 'stockName',
title: '仓库名称'
},
{
field: 'warehousingCheckDate',
title: '盘点日期'
},
{
field: 'materialType',
title: '物料种类',
formatter: function(value, row, index) {
return $.table.selectDictLabel(materialTypeDatas, value);
}
},
{
field: 'remark',
title: '备注内容'
},
{
field: 'updateFlag',
title: '更新否',
formatter: function(value, row, index) {
return $.table.selectDictLabel(updateFlagDatas, value);
},
visible: false
}
// ,
// {
// title: '操作',
// align: 'center',
// formatter: function(value, row, index) {
// var actions = [];
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.warehousingCheckInfoId + '\')"><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.warehousingCheckInfoId + '\')"><i class="fa fa-remove"></i>删除</a>');
// return actions.join('');
// }
// }
]
};
$.table.init(options);
});
</script>
</body>
</html>
Loading…
Cancel
Save