431 lines
17 KiB
HTML
431 lines
17 KiB
HTML
<!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('库存列表')" />
|
|
<link th:href="@{/ruoyi/css/ry-ui-custom.css?v=4.7.3}" rel="stylesheet"/>
|
|
</head>
|
|
<body class="gray-bg">
|
|
<div class="container-div">
|
|
<div class="row">
|
|
<div class="col-sm-8 pr0 pl0">
|
|
<div class="ibox float-e-margins">
|
|
<div class="ibox-title">
|
|
<h5>货位库存信息</h5>
|
|
</div>
|
|
<div class="ibox-content ibox-content-1">
|
|
<div class="col-sm-12 search-collapse">
|
|
<form id="formId">
|
|
<div class="select-list">
|
|
<ul>
|
|
<li>
|
|
<label>商品编号:</label>
|
|
<input type="text" name="goodsId"/>
|
|
</li>
|
|
<li>
|
|
<label>单据编号:</label>
|
|
<input type="text" name="docctnumber"/>
|
|
</li>
|
|
<li>
|
|
<label>库位编号:</label>
|
|
<input type="text" name="locationId"/>
|
|
</li>
|
|
<li>
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</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="business:stock:add">
|
|
<i class="fa fa-plus"></i> 添加
|
|
</a>
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="business:stock:edit">
|
|
<i class="fa fa-edit"></i> 修改
|
|
</a>
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="business:stock:remove">
|
|
<i class="fa fa-remove"></i> 删除
|
|
</a>
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="business:stock:export">
|
|
<i class="fa fa-download"></i> 导出
|
|
</a>
|
|
</div>
|
|
<div class="select-table table-striped">
|
|
<table id="bootstrap-table"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-4 pl5 pr0">
|
|
<div class="ibox float-e-margins">
|
|
<div class="ibox-title">
|
|
<h5>打印操作</h5>
|
|
</div>
|
|
<div class="ibox-content ibox-content-1">
|
|
<form class="m" id="form-stock-edit">
|
|
<div class="row">
|
|
<div class="col-sm-6 form-group">
|
|
<label class="control-label">订单号:</label>
|
|
<div>
|
|
<input type="text" id="oriBill" name="oriBill" class="form-control input-border-bottom" >
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 form-group">
|
|
<label class="control-label">物料编码:</label>
|
|
<div>
|
|
<input type="text" id="goodsId" name="goodsId" class="form-control input-border-bottom">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-6 form-group">
|
|
<label class="control-label">批次号:</label>
|
|
<div>
|
|
<input type="text" id="putinId" name="putinId" class="form-control input-border-bottom"/>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 form-group">
|
|
<label class="control-label">数量:</label>
|
|
<div>
|
|
<input type="text" id="shelvesNum" name="shelvesNum" class="form-control input-border-bottom">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-6 form-group">
|
|
<label class="control-label">生产日期:</label>
|
|
<div>
|
|
<input type="text" id="productionDate" name="productionDate" class="form-control input-border-bottom"/>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 form-group">
|
|
<label class="control-label">有效日期:</label>
|
|
<div>
|
|
<input type="text" id="expiryDate" name="expiryDate" class="form-control input-border-bottom"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-6 form-group">
|
|
<label class="control-label">供应商代码:</label>
|
|
<div>
|
|
<input type="text" id="providerId" name="providerId" class="form-control input-border-bottom">
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 form-group">
|
|
<label class="control-label">托盘号:</label>
|
|
<div>
|
|
<input type="text" id="ctl" name="ctl" class="form-control input-border-bottom">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<button type="button" class="btn btn-lg btn-ctl-print" onclick="print();"><span class="btn-ctl-color">打印物料标签</span></button>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<button type="button" class="btn btn-lg btn-ctl-clear" onclick="clear();"><span class="btn-ctl-color">清空</span></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<th:block th:include="include :: footer" />
|
|
<script th:inline="javascript">
|
|
var editFlag = [[${@permission.hasPermi('business:stock:edit')}]];
|
|
var removeFlag = [[${@permission.hasPermi('business:stock:remove')}]];
|
|
var prefix = ctx + "business/stock";
|
|
|
|
$(function() {
|
|
var options = {
|
|
url: prefix + "/list",
|
|
createUrl: prefix + "/add",
|
|
updateUrl: prefix + "/edit/{id}",
|
|
removeUrl: prefix + "/remove",
|
|
exportUrl: prefix + "/export",
|
|
modalName: "库存",
|
|
onClickRow:function(row, $element) {
|
|
// 物料编码
|
|
$("#goodsId").val(row.goodsId);
|
|
// 订单号
|
|
$("#oriBill").val(row.oriBill);
|
|
// 批次号
|
|
$("#putinId").val(row.putinId);
|
|
// 数量
|
|
$("#shelvesNum").val(row.shelvesNum);
|
|
// 生产日期
|
|
$("#productionDate").val(row.productionDate);
|
|
// 有效日期
|
|
$("#expiryDate").val(row.expiryDate);
|
|
// 供应商代码
|
|
$("#providerId").val(row.providerId);
|
|
// 托盘号
|
|
$("#ctl").val(row.ctl);
|
|
|
|
return false;
|
|
},
|
|
columns: [{
|
|
checkbox: true
|
|
},
|
|
{
|
|
field: 'oriBill',
|
|
title: '来源单据'
|
|
},
|
|
{
|
|
field: 'goodsId',
|
|
title: '物料编码'
|
|
},
|
|
{
|
|
field: 'goodsName',
|
|
title: '物料名称'
|
|
},
|
|
{
|
|
field: 'stockId',
|
|
title: '库存编号',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'providerId',
|
|
title: '供应商'
|
|
},
|
|
{
|
|
field: 'shelvesNum',
|
|
title: '数量'
|
|
},
|
|
{
|
|
field: 'putinId',
|
|
title: '批次号'
|
|
},
|
|
{
|
|
field: 'storageId',
|
|
title: '仓库编号',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'areaId',
|
|
title: '库区编号',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'locationId',
|
|
title: '货位'
|
|
},
|
|
{
|
|
field: 'goodsTypeid',
|
|
title: '商品类别编号',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'remark',
|
|
title: '备注',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'version',
|
|
title: '版本号',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'storageMode',
|
|
title: '入库类型',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'wareDate',
|
|
title: '上架时间',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'docctnumber',
|
|
title: '单据编号',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'goodsvolume',
|
|
title: '商品体积',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'occupyNum',
|
|
title: '已占用数量',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'noticeId',
|
|
title: '通知单号',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'ctl',
|
|
title: '托盘'
|
|
},
|
|
{
|
|
field: 'productionDate',
|
|
title: '生产日期'
|
|
},
|
|
{
|
|
field: 'expiryDate',
|
|
title: '生产日期'
|
|
},
|
|
{
|
|
field: 'barcode',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'wgh',
|
|
title: '',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'high',
|
|
title: '高',
|
|
visible: false
|
|
},
|
|
|
|
{
|
|
field: 'whseloc',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'produclotid',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'sts',
|
|
title: '状态'
|
|
},
|
|
{
|
|
field: 'customerId',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'batchno',
|
|
title: '生成批号',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'operatorMan',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'autosts',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'ableNum',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'goodsMeasureId',
|
|
title: '物料特性',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'period',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'dueDate',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'checkDate',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'standard',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'flag',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'netWeigh',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'mark',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'customer',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'orderNum',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'problem',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'price',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'packingNum',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'boxType',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'scaleUnit',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'locidname',
|
|
title: '${comment}',
|
|
visible: false
|
|
},
|
|
{
|
|
field: 'goodsSku',
|
|
title: '${comment}',
|
|
visible: false
|
|
}]
|
|
};
|
|
$.table.init(options);
|
|
});
|
|
|
|
/**
|
|
* 物料标签打印
|
|
*/
|
|
function print() {
|
|
|
|
}
|
|
|
|
/**清空表单*/
|
|
function clear() {
|
|
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |