万材erp项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

422 lines
13 KiB

<!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('成品物料列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>辅料代码:</label>
<input type="text" name="wlCode"/>
</li>
<li>
<label>名称:</label>
<input type="text" name="itemname"/>
</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-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</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="ck:itemCP:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="ck:itemCP:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="ck:itemCP:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="ck:itemCP:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('ck:itemCP:edit')}]];
var removeFlag = [[${@permission.hasPermi('ck:itemCP:remove')}]];
var prefix = ctx + "ck/itemFL";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "成品物料",
columns: [{
checkbox: true
},
{
field: 'wldm',
title: '',
visible: false
},
{
field: 'wlCode',
title: '成品代码'
},
{
field: 'hsCode',
title: '',
visible: false
},
{
field: 'itemname',
title: '名称'
},
{
field: 'enName',
title: '',
visible: false
},
{
field: 'itemstandard',
title: '规格型号'
},
{
field: 'machineNo',
title: '机种',
},
{
field: 'stockDw',
title: '库存单位'
},
{
field: 'intakeorchina',
title: '',
visible: false
},
{
field: 'weight',
title: '单位重量'
},
{
field: 'safetyStockNum',
title: '安全库存'
},
{
field: 'topStockNum',
title: '最高库存'
},
{
field: 'resortPromptDays',
title: '',
visible: false
},
{
field: 'itemclass',
title: '类型',
},
{
field: 'inclass',
title: '',
visible: false
},
{
field: 'defaultStock',
title: '',
visible: false
},
{
field: 'defaultPosition',
title: '',
visible: false
},
{
field: 'isSpecial',
title: '',
visible: false
},
{
field: 'specialDepart',
title: '',
visible: false
},
{
field: 'costPrice',
title: '',
visible: false
},
{
field: 'isLimitDraw',
title: '',
visible: false
},
{
field: 'limitDrawNum',
title: '',
visible: false
},
{
field: 'firstProvider',
title: '',
visible: false
},
{
field: 'seccondProvider',
title: '',
visible: false
},
{
field: 'leastBatchNum',
title: '',
visible: false
},
{
field: 'mostStockNum',
title: '',
visible: false
},
{
field: 'stockPrice',
title: '',
visible: false
},
{
field: 'stockLeadtime',
title: '',
visible: false
},
{
field: 'pCode',
title: '',
visible: false
},
{
field: 'pName',
title: '',
visible: false
},
{
field: 'sendflag',
title: '',
visible: false
},
{
field: 'GP',
title: '',
visible: false
},
{
field: 'isEnd',
title: '',
visible: false
},
{
field: 'createMan',
title: '',
visible: false
},
{
field: 'worklineclass',
title: '',
visible: false
},
{
field: 'worklineclassNo',
title: '',
visible: false
},
{
field: 'pWldm',
title: '',
visible: false
},
{
field: 'hourQty',
title: '',
visible: false
},
{
field: 'hourMoney',
title: '',
visible: false
},
{
field: 'pcsMoney',
title: '',
visible: false
},
{
field: 'addDate',
title: '',
visible: false
},
{
field: 'factoryCode',
title: '',
visible: false
},
{
field: 'baseCode',
title: '',
visible: false
},
{
field: 'houdou',
title: '',
visible: false
},
{
field: 'fuWidth',
title: '',
visible: false
},
{
field: 'longWidth',
title: '',
visible: false
},
{
field: 'm2',
title: '',
visible: false
},
{
field: 'tmpCpCode',
title: '',
visible: false
},
{
field: 'checkReportNo',
title: '',
visible: false
},
{
field: 'checkReportDate',
title: '',
visible: false
},
{
field: 'checkReportNo2',
title: '',
visible: false
},
{
field: 'checkReportDate2',
title: '',
visible: false
},
{
field: 'MadeClass',
title: '',
visible: false
},
{
field: 'colorName',
title: '',
visible: false
},
{
field: 'touxing',
title: '',
visible: false
},
{
field: 'poDw',
title: '',
visible: false
},
{
field: 'confirmMan',
title: '',
visible: false
},
{
field: 'confirmTime',
title: '',
visible: false
},
{
field: 'confirmFlag',
title: '',
visible: false
},
{
field: 'm2RelationPodw',
title: '',
visible: false
},
{
field: 'material',
title: '',
visible: false
},
{
field: 'memotext',
title: '',
visible: false
},
{
field: 'lxzColor',
title: '',
visible: false
},
{
field: 'customRd',
title: '',
visible: false
},
{
field: 'VersionNO',
title: '',
visible: false
},
{
field: 'worklineNo',
title: '',
visible: false
},
{
field: 'worklineName',
title: '',
visible: false
},
{
field: 'bcpFlag',
title: '',
visible: false
},
{
field: 'ForP',
title: '',
visible: false
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.wlCode + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.wlCode + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>