| | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="systemProfitId" autocomplete="off" placeholder="输入动能编号" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="address" autocomplete="off" placeholder="输入地址" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="fromHash" autocomplete="off" placeholder="输入FromHash" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | table.on('tool(moneyChangeTable)', function (obj) { |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | | if (layEvent === 'transferManual') { |
| | | febs.modal.confirm('人工操作', '是否人工转账?', function () { |
| | | transferManual("flow/withdrawAgree/" + data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'transferManual') { |
| | | febs.modal.confirm('人工操作', '是否人工转账?', function () { |
| | | transferManual(data.id); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | function transferManual(id) { |
| | | febs.get(ctx + 'flow/transferManual/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | |
| | | table.on('sort(moneyChangeTable)', function (obj) { |
| | | sortObject = obj; |
| | |
| | | id: 'moneyChangeTable', |
| | | url: ctx + 'flow/fundFlow', |
| | | cols: [[ |
| | | {field: 'address', title: '地址', minWidth: 380}, |
| | | {field: 'address', title: '地址', minWidth: 400}, |
| | | {field: 'systemProfitId', title: '动能编号', minWidth: 100}, |
| | | {title: '类型', minWidth: 100,templet: '#flow-type',align:'center'}, |
| | | {field: 'amount', title: '金额', |
| | | templet: function (d) { |
| | |
| | | return d.amount |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'fee', title: '手续费', minWidth: 80}, |
| | | // {field: 'fee', title: '手续费', minWidth: 80}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 150}, |
| | | {title: '状态', templet: '#status-able', minWidth: 80}, |
| | | {field: 'fromHash', title: 'fromHash', minWidth: 150}, |
| | | {field: 'toHash', title: 'toHash', minWidth: 150}, |
| | | {field: 'fromHash', title: 'FromHash', minWidth: 150}, |
| | | {title: '操作', |
| | | templet: function (d) { |
| | | if(d.status == 3){ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="transferManual" shiro:hasPermission="transferManual:update">手动转账</button>' |
| | | }else{ |
| | | return '' |
| | | } |
| | | },minWidth: 100,align:'center'} |
| | | ]] |
| | | }); |
| | | } |
| | | |
| | | function getQueryParams() { |
| | | return { |
| | | systemProfitId: $searchForm.find('input[name="systemProfitId"]').val().trim(), |
| | | address: $searchForm.find('input[name="address"]').val().trim(), |
| | | fromHash: $searchForm.find('input[name="fromHash"]').val().trim(), |
| | | type: $searchForm.find("select[name='type']").val(), |
| | | // accountStatus: $searchForm.find("select[name='accountStatus']").val(), |
| | | // withdrawAble: $searchForm.find("input[name='withdrawAble']").val(), |