已经完成

物料库位关系页面完成
master
森屿海巷 4 years ago
parent 3faa1361b1
commit 70df56ed99

@ -35,8 +35,13 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">库位区域:</label> <label class="col-sm-3 control-label">库位区域:</label>
<div class="col-sm-8"> <!-- <div class="col-sm-8">
<input name="locationArea" class="form-control" type="text"> <input name="locationArea" class="form-control" type="text">
</div>-->
<div class="col-sm-8">
<select name="locationArea" class="form-control m-b" th:with="type=${@dict.getType('location_info')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

@ -18,6 +18,20 @@
<label>物料类型:</label> <label>物料类型:</label>
<input type="text" name="materialType"/> <input type="text" name="materialType"/>
</li> </li>
<li>
<label>库位状态:</label>
<select name="locationStatus" th:with="type=${@dict.getType('location_status')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>库位区域:</label>
<select name="locationArea" th:with="type=${@dict.getType('location_info')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<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-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> <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
@ -51,6 +65,7 @@
var editFlag = [[${@permission.hasPermi('system:basematerialstore:edit')}]]; var editFlag = [[${@permission.hasPermi('system:basematerialstore:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:basematerialstore:remove')}]]; var removeFlag = [[${@permission.hasPermi('system:basematerialstore:remove')}]];
var locationStatusDatas = [[${@dict.getType('location_status')}]]; var locationStatusDatas = [[${@dict.getType('location_status')}]];
var locationInfo = [[${@dict.getType('location_info')}]];
var prefix = ctx + "system/basematerialstore"; var prefix = ctx + "system/basematerialstore";
$(function() { $(function() {
@ -90,7 +105,10 @@
}, },
{ {
field: 'locationArea', field: 'locationArea',
title: '库位区域' title: '库位区域',
formatter: function(value, row, index) {
return $.table.selectDictLabel(locationInfo, value);
}
}, },
{ {
field: 'recordTime', field: 'recordTime',

@ -37,7 +37,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">库位区域:</label> <label class="col-sm-3 control-label">库位区域:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="locationArea" th:field="*{locationArea}" class="form-control" type="text">
<select name="locationArea" class="form-control m-b" th:with="type=${@dict.getType('location_info')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{locationArea}"></option>
</select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

@ -24,6 +24,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> <where>
<if test="materialCode != null and materialCode != ''"> and material_code like concat(concat('%', #{materialCode}), '%')</if> <if test="materialCode != null and materialCode != ''"> and material_code like concat(concat('%', #{materialCode}), '%')</if>
<if test="materialType != null and materialType != ''"> and material_type like concat(concat('%', #{materialType}), '%')</if> <if test="materialType != null and materialType != ''"> and material_type like concat(concat('%', #{materialType}), '%')</if>
<if test="locationStatus != null"> and location_status = #{locationStatus} </if>
<if test="locationArea != null and locationArea != ''"> and location_area = #{locationArea} </if>
and delete_flag = '1' and delete_flag = '1'
</where> </where>
</select> </select>

Loading…
Cancel
Save