| | |
| | | locDetl.setSize(matCode.getSize()); // 尺寸 |
| | | locDetl.setColor(matCode.getColor()); // 颜色 |
| | | locDetl.setWeight(matCode.getWeight()); // 单重 |
| | | locDetl.setStr3(matCode.getStr3()); |
| | | } |
| | | |
| | | public static void setLocDetl(LocDetl locDetl, WrkDetl wrkDetl) { |
| | |
| | | <if test="mat_name!=null and mat_name!='' "> |
| | | and a.mat_name like '%' + #{mat_name} + '%' |
| | | </if> |
| | | <if test="str3!=null and str3!=''" > |
| | | and a.str3 like '%'+#{str3}+'%' |
| | | </if> |
| | | <if test="qty!=null and qty!='' "> |
| | | and a.qty = #{qty} |
| | | </if> |
| | |
| | | where loc_no=#{locNo} |
| | | </select> |
| | | <select id="getStockStatis" resultMap="BaseResultMap"> |
| | | select a.mat_name,a.mat_no,a.supplier,sum(a.qty) qty from |
| | | select a.mat_name,a.mat_no,a.supplier,a.str3,sum(a.qty) qty from |
| | | ( |
| | | select |
| | | ROW_NUMBER() over (order by c.appe_time,c.mat_no,c.loc_no) as row, |
| | |
| | | from asr_loc_detl c |
| | | ) a where a.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | <include refid="stockOutCondition"></include> |
| | | group by a.mat_no,a.mat_name,a.supplier |
| | | group by a.mat_no,a.mat_name,a.supplier,a.str3 |
| | | </select> |
| | | <select id="getStockStatisCount" resultType="integer"> |
| | | select |
| | |
| | | cols: [[{field: 'qty', align: 'center', title: '数量', width: 120} |
| | | , {field: 'matNo', align: 'center', title: '产品编码'} |
| | | , {field: 'matName', align: 'center', title: '产品名称'} |
| | | , {field: 'str3', align: 'center',title: '客户名称'} |
| | | , {field: 'supplier', align: 'center', title: '批号'} |
| | | ]], |
| | | request: { |
| | |
| | | <input class="layui-input" type="text" name="mat_name" placeholder="产品名称" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="layui-inline">--> |
| | | <!-- <div class="layui-input-inline">--> |
| | | <!-- <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off">--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="str3" placeholder="客户名称" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <!-- 待添加 --> |
| | | <div id="data-search-btn" class="layui-btn-container layui-form-item" style="display: inline-block"> |
| | | <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">搜索</button> |