| | |
| | | where loc_no=#{locNo} |
| | | </select> |
| | | <select id="getStockStatis" resultMap="BaseResultMap"> |
| | | select a.mat_name,a.mat_no,sum(a.qty) qty from |
| | | select a.mat_name,a.mat_no,a.supplier,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 |
| | | group by a.mat_no,a.mat_name,a.supplier |
| | | </select> |
| | | <select id="getStockStatisCount" resultType="integer"> |
| | | select |
| | |
| | | <select id="getStockStatisExcel" resultMap="BaseResultMap"> |
| | | select |
| | | ROW_NUMBER() over (order by a.mat_no, sum(a.qty) desc) as row |
| | | , a.mat_no, a.mat_name |
| | | , a.mat_no, a.mat_name,a.supplier |
| | | , sum(a.qty) as qty |
| | | from asr_loc_detl a |
| | | where 1=1 |
| | | group by a.mat_no,a.mat_name |
| | | group by a.mat_no,a.mat_name,a.supplier |
| | | </select> |
| | | |
| | | <!-- <select id="getStockSum" resultMap="BaseResultMap">--> |
| | |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码'} |
| | | // ,{field: 'bname', align: 'center',title: '库位名称'} |
| | | ,{field: 'memo', align: 'center',title: '备注', hide: true} |
| | | ,{field: 'weight', align: 'center', title: '每箱重量(KG)'} |
| | | ,{field: 'str3', align: 'center', title: '客户名称'} |
| | | ,{field: 'str4', align: 'center', title: '项目信息'} |
| | | ,{field: 'str5$', align: 'center', title: '类别'} |
| | | ,{field: 'str6', align: 'center', title: '每箱数量(PCS)'} |
| | | ] |
| | | |
| | |
| | | cols: [[{field: 'qty', align: 'center', title: '数量', width: 120} |
| | | , {field: 'matNo', align: 'center', title: '产品编码'} |
| | | , {field: 'matName', align: 'center', title: '产品名称'} |
| | | , {field: 'supplier', align: 'center', title: '批号'} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push( |
| | | {field: 'billNo', align: 'center',title: '单据编号'} |
| | | ,{field: 'seqNo', align: 'center',title: '序号', width:80} |
| | | {field: 'allQty', align: 'center',title: '总数量(PCS)'} |
| | | ,{field: 'allWeight', align: 'center',title: '总重量(KG)'} |
| | | ,{field: 'source', align: 'center',title: '来源'} |
| | | ,{field: 'vendor', align: 'center',title: '供应商'} |
| | | ,{field: 'billNo', align: 'center',title: '单据编号', hide:true} |
| | | ,{field: 'seqNo', align: 'center',title: '序号', width:80, hide:true} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员', hide:true} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide:true}) |
| | | return cols; |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" id="refresh-sto" lay-event="syncStok" style="margin-left: 10px">上报库存到ERP</button> |
| | | <!-- <button class="layui-btn layui-btn-normal layui-btn-sm" id="refresh-sto" lay-event="syncStok" style="margin-left: 10px">上报库存到ERP</button>--> |
| | | <button class="layui-btn layui-btn-primary layui-btn-sm" lay-event="exportAll" style="float: right">导出</button> |
| | | </div> |
| | | </script> |