|
@ -39,13 +39,13 @@ |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="stock:stockInfo:add"> |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="stock:stockInfo:add"> |
|
|
<i class="fa fa-plus"></i> 添加 |
|
|
<i class="fa fa-plus"></i> 添加 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="stock:stockInfo:edit"> |
|
|
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="stock:stockInfo:edit">--> |
|
|
<i class="fa fa-edit"></i> 修改 |
|
|
<!-- <i class="fa fa-edit"></i> 修改--> |
|
|
</a> |
|
|
<!-- </a>--> |
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="stock:stockInfo:remove"> |
|
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="stock:stockInfo:remove">--> |
|
|
<i class="fa fa-remove"></i> 删除 |
|
|
<!-- <i class="fa fa-remove"></i> 删除--> |
|
|
</a> |
|
|
<!-- </a>--> |
|
|
<a class="btn btn-warning" onclick="exportExcel()" shiro:hasPermission="stock:stockInfo:export"> |
|
|
<a class="btn btn-success" onclick="exportExcel()" shiro:hasPermission="stock:stockInfo:export"> |
|
|
<i class="fa fa-download"></i> 导出 |
|
|
<i class="fa fa-download"></i> 导出 |
|
|
</a> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
@ -72,38 +72,47 @@ |
|
|
columns: [ |
|
|
columns: [ |
|
|
{checkbox: true}, |
|
|
{checkbox: true}, |
|
|
{title: '仓库id',field: 'stockId',visible: false}, |
|
|
{title: '仓库id',field: 'stockId',visible: false}, |
|
|
{title: '仓库编号',field: 'stockNO',}, |
|
|
{title: '仓库编号',field: 'stockNO', align: 'center',}, |
|
|
{title: '仓库名',field: 'stockName',}, |
|
|
{title: '仓库名',field: 'stockName',align: 'center',}, |
|
|
{title: '仓库地址',field: 'stockAddr',}, |
|
|
{title: '仓库地址',field: 'stockAddr',align: 'center', |
|
|
{title: '仓库管理人',field: 'stockManager',}, |
|
|
|
|
|
{title: '仓库管理人电话',field: 'stockManagerPhone',}, |
|
|
|
|
|
{title: '仓库备注',field: 'stockMemo',}, |
|
|
|
|
|
{title: '录入时间',field: 'firstAddTime', |
|
|
|
|
|
formatter: function (value, row, index) { |
|
|
formatter: function (value, row, index) { |
|
|
// console.log(row) |
|
|
return $.table.tooltip(value,5,"open"); |
|
|
if (value == null) {return " ";} |
|
|
|
|
|
else {return value;} |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{title: '上次修改时间',field: 'updateInfoTime', |
|
|
{title: '仓库管理人',field: 'stockManager',align: 'center',}, |
|
|
|
|
|
// {title: '仓库管理人电话',field: 'stockManagerPhone',align: 'center',}, |
|
|
|
|
|
{title: '仓库备注',field: 'stockMemo',align: 'center', |
|
|
formatter: function (value, row, index){ |
|
|
formatter: function (value, row, index){ |
|
|
if (value == null) {return " ";} |
|
|
return $.table.tooltip(value,5,"open") |
|
|
else { |
|
|
|
|
|
var vArr = value.split(',') |
|
|
|
|
|
return vArr[0]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
// { |
|
|
{title: '录入时间',field: 'firstAddTime',align: 'center', |
|
|
// title: '操作', |
|
|
// formatter: function (value, row, index) { |
|
|
// align: 'center', |
|
|
// // console.log(row) |
|
|
|
|
|
// if (value == null) {return " ";} |
|
|
|
|
|
// else {return value;} |
|
|
|
|
|
// } |
|
|
|
|
|
}, |
|
|
|
|
|
{title: '上次修改时间',field: 'updateInfoTime',align: 'center', |
|
|
// formatter: function (value, row, index) { |
|
|
// formatter: function (value, row, index) { |
|
|
// var actions = []; |
|
|
// if (value == null) {return " ";} |
|
|
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.stockNO + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
// else { |
|
|
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.stockNO + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|
|
// var vArr = value.split(',') |
|
|
// return actions.join(''); |
|
|
// return vArr[0]; |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '操作', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
var actions = []; |
|
|
|
|
|
actions.push('<a class="' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.stockId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
|
|
|
actions.push('<a class="' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.stockId + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|
|
|
|
|
var actionLinks = actions.join(''); |
|
|
|
|
|
return $.table.dropdownToggle(actionLinks); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
] |
|
|
] |
|
|
}; |
|
|
}; |
|
|
$.table.init(options); |
|
|
$.table.init(options); |
|
|