receiving.html 3.12 KB
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="container-div">

	<div class="row">
		<div class="col-sm-12 select-info">
			<form id="dept-form">
				<div class="select-list">
					<ul>
						<li>
							收货单号:<input type="text" name="deptName"/>
						</li>
						<li>
							<a class="btn btn-primary btn-rounded btn-sm" onclick="$.treeTable.search()"><i class="fa fa-search"></i>&nbsp;收货</a>
						</li>
					</ul>
				</div>
			</form>
		</div>
	<div class="col-sm-12 select-info table-striped">
		<table id="bootstrap-table" data-mobile-responsive="true"></table>
	</div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('receipt:receiving')}]];
    var removeFlag = [[${@permission.hasPermi('receipt:receiving')}]];
    var prefix = ctx + "receipt/receiving"

    $(function() {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            modalName: "入库组盘头",
            search: false,
            columns: [{
                checkbox: true
            },
                {
                    field : 'id',
                    title : 'id号'
                },
                {
                    field : 'receiptContainerCode',
                    title : '容器编号'
                },
                {
                    field : 'locationCode',
                    title : '库位编号'
                },
                {
                    field : 'warehouseId',
                    title : '仓库Id'
                },
                {
                    field : 'warehouseCode',
                    title : '仓库编码'
                },
                {
                    field : 'taskType',
                    title : '预处理任务类型'
                },
                {
                    field : 'status',
                    title : '容器任务状态'
                },
                {
                    field : 'created',
                    title : '创建时间'
                },
                {
                    field : 'createdBy',
                    title : ''
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]

        };
        $.table.init(options);
    });
</script>
</body>
</html>