| | |
| | | // // {code: "Closed", name: "失效", dataname:"so_implant", filterTxt: "state_code='Open'",}, |
| | | // {code: "All", name: "全部", dataname: "md_target_dealer", filterTxt: "1 = 1", orderby: "update_time desc"}, |
| | | |
| | | {code: "Current", name: "当前评估", dataname: "md_target_dealer", filterTxt: "", orderby: ""}, |
| | | {code: "History", name: "历史评估", dataname: "md_target_dealer", filterTxt: "", orderby: ""}, |
| | | {code: "Current", name: "当前评估", dataname: "md_org", filterTxt: "1=1", orderby: ""}, |
| | | {code: "History", name: "历史评估", dataname: "md_org", filterTxt: "1=1", orderby: ""}, |
| | | // {code: "Apply", name: "指标申请", dataname: "md_target_apply", filterTxt: "1 = 1", orderby: "update_time desc"}, |
| | | ], |
| | | tabs: [], |
| | |
| | | {isshow: "T", field: "customer_name", name: "推广商名称", filterfield:"", filteroperator: "like"}, |
| | | ], |
| | | default_tableFields: [ |
| | | // {isshow: "F", field: "id", name: "id", width: "70"}, |
| | | //{isshow: "T", field: "category_id", name: "协议类型-ID", width: "100"}, |
| | | {isshow: "T", field: "year", name: "年份", width: "70"}, |
| | | {isshow: "T", field: "date", name: "评估日期", width: "100"}, |
| | | //{isshow: "T", field: "template_id", name: "模板-ID", width: "100"}, |
| | | {isshow: "T", field: "month", name: "月份", width: "70"}, |
| | | {isshow: "T", field: "customer_code", name: "推广商编码", width: "100"}, |
| | | {isshow: "T", field: "customer_name", name: "推广商名称", width: "220"}, |
| | | {isshow: "T", field: "code", name: "推广商编码", width: "100"}, |
| | | {isshow: "T", field: "name", name: "推广商名称", width: "220",align:'left',isminwidth:'T'}, |
| | | {isshow: "T", field: "score", name: "综合得分", width: "100"}, |
| | | {isshow: "T", field: "rank", name: "等级划分", width: "100"}, |
| | | {isshow: "T", field: "sale_employe", name: "归属人员", width: "100"}, |
| | | //{isshow: "T", field: "state_code", name: "协议状态-编码", width: "100"}, |
| | | // {isshow: "T", field: "state_name", name: "客观评估", type:"tag", tagtype: '{^草稿^:^info^,^生效^:^success^,^关闭^:^danger^}', width: "80"}, |
| | | {isshow: "T", field: "", name: "客观评估", headercolor: "#bdf1ff", children: [ |
| | | {isshow: "T", field: "completion_rate", name: "完成率", width: "100", headercolor: "#bdf1ff"}, |
| | | {isshow: "T", field: "exploitation_rate", name: "开发率", width: "100", headercolor: "#bdf1ff"}, |
| | | {isshow: "T", field: "growth_rate", name: "增长率", width: "100", headercolor: "#bdf1ff"}, |
| | | {isshow: "T", field: "reach_rate", name: "达标占比", width: "100", headercolor: "#bdf1ff",formatter:"formatter_percent",align:"right",suffix:"%"}, |
| | | ]}, |
| | | {isshow: "T", field: "", name: "主观评估", headercolor: "#e5ffab", children: [ |
| | | {isshow: "T", field: "customer_item", name: "客户评估", width: "100", headercolor: "#e5ffab"}, |
| | | {isshow: "T", field: "hospital_item", name: "医院评估", width: "100", headercolor: "#e5ffab"}, |
| | | {isshow: "T", field: "employee_item", name: "销售评估", width: "100", headercolor: "#e5ffab"}, |
| | | // {isshow: "T", field: "", name: "客观评估", headercolor: "#bdf1ff", children: [ |
| | | // {isshow: "T", field: "completion_rate", name: "完成率", width: "100", headercolor: "#bdf1ff"}, |
| | | // {isshow: "T", field: "exploitation_rate", name: "开发率", width: "100", headercolor: "#bdf1ff"}, |
| | | // {isshow: "T", field: "growth_rate", name: "增长率", width: "100", headercolor: "#bdf1ff"}, |
| | | // {isshow: "T", field: "reach_rate", name: "达标占比", width: "100", headercolor: "#bdf1ff",formatter:"formatter_percent",align:"right",suffix:"%"}, |
| | | // ]}, |
| | | // {isshow: "T", field: "", name: "主观评估", headercolor: "#e5ffab", children: [ |
| | | // {isshow: "T", field: "customer_item", name: "客户评估", width: "100", headercolor: "#e5ffab"}, |
| | | // {isshow: "T", field: "hospital_item", name: "医院评估", width: "100", headercolor: "#e5ffab"}, |
| | | // {isshow: "T", field: "employee_item", name: "销售评估", width: "100", headercolor: "#e5ffab"}, |
| | | |
| | | ]}, |
| | | // ]}, |
| | | ], |
| | | cbuttons_r: {}, |
| | | ctabs_r: {}, |
| | |
| | | |
| | | initData() { |
| | | var me = this; |
| | | me.tableButtonClick(); |
| | | this.doQueryByTab(function(result, callback) {//查询后的回调,用于获取字段的 |
| | | if (result.meta && result.meta[me.selectTabObj.dataname] && result.meta[me.selectTabObj.dataname].fields) { |
| | | var metas = clone(result.meta[me.selectTabObj.dataname].fields); |
| | |
| | | var me = this; |
| | | var tablefieldClick = {}; |
| | | this.selectTabObj.tablefieldClick = tablefieldClick[this.activeTabName]; |
| | | }, |
| | | tableButtonClick() { |
| | | var me = this; |
| | | var tablebuttonClick = {}; |
| | | tablebuttonClick.Current = [ |
| | | { |
| | | isbuttonshow: true, |
| | | type:"primary", |
| | | code: "edit", |
| | | isselected: true, |
| | | classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0]) { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | me.openCustomer('edit',obj.selectedList[0]) |
| | | } |
| | | }, |
| | | { |
| | | // isbuttonshow: me.cbuttons_r.formdetail, |
| | | isbuttonshow: true, |
| | | type:"primary", |
| | | code: "formdetail", |
| | | isselected: true, |
| | | classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0]) { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | me.openCustomer('browse',obj.selectedList[0]) |
| | | } |
| | | } |
| | | ]; |
| | | tablebuttonClick.History = [ |
| | | { |
| | | // isbuttonshow: me.cbuttons_r.formdetail, |
| | | isbuttonshow: true, |
| | | type:"primary", |
| | | code: "formdetail", |
| | | isselected: true, |
| | | classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0]) { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | me.openCustomer('browse',obj.selectedList[0]) |
| | | } |
| | | } |
| | | ] |
| | | me.selectTabObj.tablebuttonClick = tablebuttonClick[this.activeTabName] |
| | | }, |
| | | openCustomer(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: true, //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_management_edit.html", |
| | | data: row, |
| | | delta: {}, |
| | | sceneCode: sceneCode,//"refuseedit",//"approval", //"add"//"browse", |
| | | callback: function(obj, callback) { |
| | | me.onQuery(); |
| | | if (callback) { |
| | | callback(); |
| | | } |
| | | } |
| | | }; |
| | | me.doPopupByPublic(config); |
| | | }, |
| | | |
| | | } |
| | |
| | | :is-highlight-row="selectTabObj.isHighlightRow" |
| | | :isdraggableorder="cbuttons_r.Set" |
| | | :filtersobj="selectTabObj.filterObj" |
| | | :table-buttons-click="selectTabObj.tablebuttonClick" |
| | | |
| | | v-on:get-data="getData" |
| | | v-on:edit-data="editData" |