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