| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>用户列表</title>
- <meta charset="UTF-8">
- <link rel="stylesheet" href="https://yun.eqbidding.com/extjs/extjs6.0/classic/theme-crisp/resources/theme-crisp-all.css"></link>
- <script src="https://yun.eqbidding.com/extjs/extjs6.0/ext-all.js"></script>
- <script src="https://yun.eqbidding.com/extjs/extjs6.0/classic/locale/locale-zh_CN.js"></script>
- <script type="text/javascript" src="/web-cp-all/resource/js/app.js"></script>
- <script type="text/javascript" src="/web-cp-all/resource/js/jquery.js"></script>
- <script type="text/javascript">
- var dataStore;
- var searchFormPanel;
- var listGridPanel;
- Ext.onReady(function() {
- //初始化列表数据
- dataStore = Ext.create('Ext.data.Store', {
- autoLoad : true,
- pageSize : 20,
- sorters : {
- property : 'created',
- direction : 'DESC'
- },
- proxy : {
- type : "ajax",
- url : "/web-cp-all/cp/pm/un_line/list_data",
- reader : {
- type : 'json',
- root : 'page.list',
- totalProperty : 'page.totalRow'
- }
- },
- listeners : {
- 'beforeload' : function(store, op, options) {
- var params = searchFormPanel.getForm().getValues();
- Ext.apply(dataStore.proxy.extraParams, params);
- }
- }
- }); //#dataStore
- var comboxStore = Ext.create('Ext.data.Store', {
- fields: ['abbr', 'name'],
- data : [
- {"abbr":"1", "name":"已支付"},
- {"abbr":"0", "name":"未支付"},
- {"abbr":"2", "name":"已驳回"}
- ]
- }); //#comboxStore
- searchFormPanel = Ext.create('Ext.form.Panel', {
- frame : true,
- title : "搜索条件",
- style : {
- marginBottom : '3px'
- },
- bodyStyle : {
- padding : '3px'
- },
- buttonAlign : "center",
- collapsible : true,
- defaultType : "textfield",
- items : [
- {
- xtype : "container",
- layout : "hbox",
- items : [
- {
- xtype : "combo",
- fieldLabel : "支付状态",
- name : "srh.is_pay",
- editable : false,
- store : comboxStore,
- displayField : 'name',
- valueField : 'abbr',
- labelAlign : 'right'
- },
- {
- xtype : "textfield",
- fieldLabel : "用户名称",
- name : "srh.receive_name",
- labelAlign : 'right'
- },
- {
- xtype : "textfield",
- fieldLabel : "手机号",
- name : "srh.receive_mobile",
- labelAlign : 'right'
- },
- {
- xtype : "textfield",
- fieldLabel : "公司名称",
- name : "srh.company_name",
- labelAlign : 'right'
- },
- {
- xtype : "textfield",
- fieldLabel : "标的名称",
- name : "srh.item_name",
- labelAlign : 'right'
- }
- ]
- }
- ],
- buttons : [
- {
- text : "搜索",
- icon : jcapp.getIcon("magnifier.png"),
- handler : function() {
- dataStore.load({
- //params:params()
- });
- dataStore.sync();
- }
- },{
- text : "重置",
- icon : jcapp.getIcon("arrow_refresh.png"),
- handler : function() {
- this.up('form').getForm().reset();
- dataStore.load({});
- dataStore.sync();
- }
- }
- ]
- }); //#searchFormPanel
- listGridPanel = Ext.create('Ext.grid.Panel', {
- title : '线下报名列表',
- dockedItems : [
- {
- xtype : 'pagingtoolbar',
- store : dataStore,
- dock : 'bottom',
- displayInfo : true
- }
- ],
- store : dataStore,
- columns : [
- {
- text : 'kid',
- name : 'kid',
- align : 'center',
- hidden : true
- },{
- text : '用户名称',
- topTip : '用户名称',
- align : 'center',
- dataIndex : 'receive_name',
- flex : 1
- },{
- text : '公司名称',
- topTip : '公司名称',
- align : 'center',
- dataIndex : 'company_name',
- flex : 1
- },{
- text : '手机号',
- topTip : '手机号',
- align : 'center',
- dataIndex : 'receive_mobile',
- flex : 1
- },{
- text : '身份证号',
- tooltip : '身份证号',
- align : 'center',
- dataIndex : 'id_card',
- flex : 1
- },{
- text : '标的名称',
- tooltip : '标的名称',
- align : 'center',
- dataIndex : 'item_name',
- flex : 1
- },
- {
- text : '竞买号',
- tooltip : '竞买号',
- align : 'center',
- dataIndex : 'code',
- flex : 1,
- renderer : function(val){
- if(val == undefined || val == '' ){
- return '';
- }else{
- return val;
- }
- }
- },
- {
- text : '支付凭证',
- topTip : '支付凭证',
- align : 'center',
- dataIndex : 'file_id',
- flex : 1,
- renderer : function(val){
- if(val == undefined || val == ''){
- return '没有相关图片信息!';
- }else{
- return '<img style="width:100%;height:100%;" onclick="enlarge(\''+val+'\')" src="https://www.eqbidding.com/web-cp-all/img_pm/img/'+val+'" />';
- }
- }
- },{
- text : '支付状态',
- topTip : '支付状态',
- align : 'center',
- dataIndex : 'is_pay',
- flex : 1,
- renderer : function(val){
- if(val=='1'){
- return "已支付";
- }else if(val == '0'){
- return "未支付";
- }else if(val == '2'){
- return "已驳回";
- }
- }
- },{
- text : '报名时间',
- tooltip : '报名时间',
- align : 'center',
- dataIndex : 'created',
- flex : 1
- },{
- xtype : "actioncolumn",
- align : "center",
- text : '操作',
- flex : 1,
- items : [
- {
- xtype : 'button',
- tooltip : '确认支付',
- icon : jcapp.getIcon("user_tick.png"),
- handler : function(grid, rowIndex, colIndex) {
- var rec = grid.getStore().getAt(rowIndex);
- if(rec.get('is_pay') == '2'){
- Ext.Msg.alert("提示", "已驳回不能确认支付!");
- }else{
- myPass(rec.get('kid'));
- }
- }
- },{
- xtype : 'button',
- tooltip : '驳回',
- icon : jcapp.getIcon("user_cross.png"),
- handler : function(grid, rowIndex, colIndex) {
- var rec = grid.getStore().getAt(rowIndex);
- myReject(rec.get('kid'));
- /*if(rec.get('is_pay') == '1'){
- Ext.Msg.alert("提示", "已支付不能驳回!");
- }else{
- myReject(rec.get('kid'));
- }*/
- }
- }
- ]
- }
- ],
- viewConfig:{
- enableTextSelection:true
- }
- });
- searchFormPanel.render(Ext.getBody());
- listGridPanel.render(Ext.getBody());
- });
- function myPass(kid){
- Ext.Msg.confirm("提示:", "是否确认已支付?", function(e) {
- if (e == "yes") {
- Ext.Ajax.request({
- url : "/web-cp-all/cp/pm/un_line/pass?kid=" + kid ,
- success : function(response) {
- Ext.Msg.alert("操作","确认成功");
- dataStore.load();
- },
- failure : function(response) {
- Ext.Msg.alert("提示", "操作失败!");
- }
- });
- }
- });
- }
- function myReject(kid){
- Ext.Msg.confirm("提示:", "是否确认驳回?", function(e) {
- if (e == "yes") {
- Ext.Ajax.request({
- url : "/web-cp-all/cp/pm/un_line/reject?kid=" + kid ,
- success : function(response) {
- Ext.Msg.alert("操作","确认成功");
- dataStore.load();
- },
- failure : function(response) {
- Ext.Msg.alert("提示", "操作失败!");
- }
- });
- }
- });
- }
- function enlarge(file_id){
- var html = '<div style="width:100%;height:100%;"><img id="videoSource" style="width:100%;height:100%;" src="https://www.eqbidding.com/web-cp-all/img_pm/img/'+file_id+'" /><div>';
- songPlayer.show();
- Ext.getCmp("playerPanel").body.update(html);
- }
- var playerForm=new Ext.Panel({
- xtype : 'panel',
- id : 'playerPanel',
- width:600,
- height:600,
- html:""
- })
- var songPlayer = new Ext.Window({
- layout : 'fit',
- width:600,
- height:600,
- modal : true,
- frame: true,
- closable : false,
- items : [playerForm] ,
- buttons: [{
- id : 'ensure2',
- text: '确定',
- handler: function() {
- songPlayer.hide();
- Ext.getCmp("playerPanel").body.update("");
- }
- },{
- text: '关闭',
- handler: function() {
- Ext.getCmp('playerPanel').html ="";
- Ext.getCmp("playerPanel").body.update("");
- songPlayer.hide();
- }
- }]
- });
- </script>
- </head>
- <body>
- </body>
- </html>
|