| | |
| | | code: "edit",isselected: true,classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0] && selectRowList[0].source == "DMS") { |
| | | if (selectRowList[0] && selectRowList[0].state_code == "Input") { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | |
| | | } |
| | | }, |
| | | { |
| | | name: "开户", isbuttonshow: me.cbuttons_r.accountOpen ? me.cbuttons_r.accountOpen : false,type:"success",icon: "el-icon-news", |
| | | name: "预合作申请", isbuttonshow: true,type:"success",icon: "el-icon-news", |
| | | code: "account",isselected: true,classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0] && selectRowList[0].source == "DMS" && !selectRowList[0].is_distributor) { |
| | | if (selectRowList[0] && selectRowList[0].state_code == "Prepared") { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | me.openCustomerUser('add') |
| | | |
| | | // obj.selectedList |
| | | // me.closeData('browse', obj.selectedList[0]); |
| | | // me.commitData(obj.selectedList[0]); |
| | | obj.selectedList[0]['company_id'] = '1181' |
| | | obj.selectedList[0]['company_name'] = '汇宇制药' |
| | | obj.selectedList[0]['bu_id'] = 'BU-GM' |
| | | obj.selectedList[0]['bu_name'] = '肿瘤' |
| | | console.log(obj.selectedList[0]) |
| | | me.openCustomerUser('add', obj.selectedList[0]); |
| | | } |
| | | }, |
| | | // { |
| | |
| | | }, |
| | | |
| | | { |
| | | name: "关户", isbuttonshow: me.cbuttons_r.accountClose ? me.cbuttons_r.accountClose : false,type:"danger",icon: "el-icon-circle-close", |
| | | name: "退出", isbuttonshow: me.cbuttons_r.accountClose ? me.cbuttons_r.accountClose : false,type:"danger",icon: "el-icon-circle-close", |
| | | code: "account",isselected: true,classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | |
| | | me.openCustomerUser('edit', obj.selectedList[0]); |
| | | } |
| | | }, |
| | | |
| | | { |
| | | // name: "详情", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: me.cbuttons_r.formdetail ? me.cbuttons_r.formdetail : false, |
| | |
| | | width: "1100px", |
| | | height: "520px", |
| | | icon: "icon-product", |
| | | text: "客商信息" + (row.name ? row.name : ""), |
| | | text: "推广商信息" + (row.name ? row.name : ""), |
| | | id: "customer_basic" + (row.id? row.id : "add"),//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/md/page/customer/page/customer_basic.html", |
| | | data: row, |