| | |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | me.openCustomer('browse',obj.selectedList[0]) |
| | | me.openCustomerHistory('browse',obj.selectedList[0]) |
| | | } |
| | | } |
| | | ] |
| | |
| | | }; |
| | | me.doPopupByPublic(config); |
| | | }, |
| | | openCustomerHistory(sceneCode, obj) { |
| | | let me = this; |
| | | var row = {} |
| | | if (sceneCode == "edit" || sceneCode == "browse") { |
| | | row = me.selectTabObj.selectedrow; |
| | | if(!row){ |
| | | Root.message({ |
| | | type: 'warning', |
| | | message: '请选择一条数据' |
| | | }); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | var config = { |
| | | totab: false, //true: 以Tab导航的方式打开 |
| | | width: "1100px", |
| | | height: "520px", |
| | | icon: "icon-product", |
| | | text: "推广商评估记录" + (row.customer_code ? ("-" + row.customer_code) : ""), |
| | | id: "evaluation_management_edit" + row.id + sceneCode, |
| | | url: "module/md/page/customer/page/evaluation_history.html", |
| | | data: row, |
| | | delta: {}, |
| | | sceneCode: sceneCode,//"refuseedit",//"approval", //"add"//"browse", |
| | | callback: function(obj, callback) { |
| | | me.onQuery(); |
| | | if (callback) { |
| | | callback(); |
| | | } |
| | | } |
| | | }; |
| | | me.doPopupByPublic(config); |
| | | }, |
| | | |
| | | } |
| | | }); |