| | |
| | | */ |
| | | TUser.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', radio: true}, |
| | | {field: 'selectItem', radio: false}, |
| | | {title: '注册时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle',width:'10%', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '历史消费', field: 'consumption', visible: true, align: 'center', valign: 'middle', |
| | | {title: '历史消费', field: 'consumptionNum', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | | if(row.consumption != '' && row.consumption != null) { |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="¥' + row.consumption + '" onfocus="TUser.tooltip()">¥' + row.consumption + '</p>'] |
| | | if(row.consumptionNum != '' && row.consumptionNum != null) { |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="¥' + row.consumptionNum + '" onfocus="TUser.tooltip()">¥' + row.consumptionNum + '</p>'] |
| | | }else { |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="¥0" onfocus="TUser.tooltip()">¥0</p>'] |
| | | } |
| | |
| | | Feng.info("请先选中表格中的某一记录!"); |
| | | return false; |
| | | } |
| | | var id = selected[0].id; |
| | | var companyName = selected[0].companyName; |
| | | if(companyName==undefined)companyName=""; |
| | | var nickName = selected[0].nickName; |
| | | var phone = selected[0].phone; |
| | | if ("" == id || null == id || undefined == id){ |
| | | Feng.info("请先选中表格中的某一记录!"); |
| | | return ; |
| | | } |
| | | var obj = $("#obj").val(); |
| | | window.parent.SysCouponActivityInfoDlg.selecUserOpt(id,companyName,nickName,phone); |
| | | window.parent.SysCouponActivityInfoDlg.selecUserOpt(selected); |
| | | TUser.close(); |
| | | } |
| | | /** |