| | |
| | | tabs_d: [ |
| | | {code: "schedule", name: "进度汇总", dataname: "v_customer_promotion", filterTxt: "", orderby: ""}, |
| | | {code: "detail", name: "进度明细", dataname: "md_terminal_promotion", filterTxt: "", orderby: ""}, |
| | | {code: "warning", name: "预警列表", dataname: "md_terminal_promotion_detail", filterTxt: "", orderby: ""}, |
| | | // {code: "warning", name: "预警列表", dataname: "sys_alert", filterTxt: "", orderby: ""}, |
| | | ], |
| | | d_tabs: { |
| | | hospital: true, |
| | |
| | | tabs: [], |
| | | tabsobj: {}, |
| | | |
| | | dataRequest: [ |
| | | // { |
| | | // name: "md_province", |
| | | // dataname: "md_province", |
| | | // // url: "root/data/newEntity", |
| | | // // paramsobj: {dataname: "md_org_data", type_code:"Distributor"}, |
| | | // isnotoption: false, //true:不是选项 |
| | | // code:"name",//是下拉选项时设置 |
| | | // label:"name",//是下拉选项时设置 |
| | | // filter: "" |
| | | // }, |
| | | // { |
| | | // name: "machine_state", |
| | | // dataname: "v_state_machine_state", |
| | | // // url: "root/data/newEntity", |
| | | // // paramsobj: {dataname: "md_org_data", type_code:"Distributor"}, |
| | | // isnotoption: false, //true:不是选项 |
| | | // code:"code",//是下拉选项时设置 |
| | | // label:"name",//是下拉选项时设置 |
| | | // // orderby: "index_no", |
| | | // filter: "parent_id='md_hospital_business_change'", |
| | | // }, |
| | | ], |
| | | dataRequest: [], |
| | | |
| | | authTableFields: [ |
| | | {field: "code", name: "医院编码", isshow: "T", align: "center",width: "150"}, |
| | |
| | | mounted() { |
| | | var me = this; |
| | | if (window.top.tab.selected.option.page_id) { |
| | | this.title = window.top.tab.selected.option.menutitle |
| | | // this.page_id = window.top.tab.selected.option.page_id; |
| | | getPageByPageId(window.top.tab.selected.option.page_id, function(result){ |
| | | me.cbuttons_r = result.buttons_r; |
| | |
| | | }, |
| | | }, |
| | | }, |
| | | is_clinical: { |
| | | chart: { |
| | | type: "progress",// 进度条类型 |
| | | field: "val_ratio",//进度值字段 |
| | | progresswidth: 20,//粗度 |
| | | isshowtext: true,//是否显示值 |
| | | istextinside: true//是否在进度条内显示值 |
| | | |
| | | is_alert: { |
| | | val: { |
| | | icon: "el-icon-warning", |
| | | iconcolor: "#f15c42", |
| | | onclick: function(obj) { //数据值点击事件 |
| | | me.showAlertInfo(obj) |
| | | }, |
| | | } |
| | | }, |
| | | is_clinical_purchase: { |
| | | chart: { |
| | | type: "progress", |
| | | field: "val_ratio", |
| | | progresswidth: 10, |
| | | isshowtext: true |
| | | } |
| | | }, |
| | | is_formal_purchase: { |
| | | chart: { |
| | | type: "progress", |
| | | field: "val_ratio", |
| | | progresswidth: 10, |
| | | isshowtext: false |
| | | } |
| | | }, |
| | | |
| | | // is_clinical: { |
| | | // chart: { |
| | | // type: "progress",// 进度条类型 |
| | | // field: "val_ratio",//进度值字段 |
| | | // progresswidth: 20,//粗度 |
| | | // isshowtext: true,//是否显示值 |
| | | // istextinside: true//是否在进度条内显示值 |
| | | // } |
| | | // }, |
| | | // is_clinical_purchase: { |
| | | // chart: { |
| | | // type: "progress", |
| | | // field: "val_ratio", |
| | | // progresswidth: 10, |
| | | // isshowtext: true |
| | | // } |
| | | // }, |
| | | // is_formal_purchase: { |
| | | // chart: { |
| | | // type: "progress", |
| | | // field: "val_ratio", |
| | | // progresswidth: 10, |
| | | // isshowtext: false |
| | | // } |
| | | // }, |
| | | }; |
| | | //医院授权列表 |
| | | var tablefieldClick_org = { |
| | |
| | | me.doPopupByPublic(config); |
| | | }, |
| | | |
| | | showAlertInfo(obj) { |
| | | var me = this; |
| | | var filter_ = "doc_id='"+obj.row.id+"'" |
| | | |
| | | var config = { |
| | | totab: false, //true: 以Tab导航的方式打开 |
| | | width: "1200px", |
| | | height: "600px", |
| | | icon: "icon-product", |
| | | text: obj.row.hospital_name + "-预警信息", |
| | | id: "popup_alert" + "browse" + obj.row.id,//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/visit/page/popup/popup_alert.html", |
| | | data: obj.row, |
| | | delta: {}, |
| | | filter: filter_, |
| | | sceneCode: "browse", //"add"//"browse", |
| | | callback: function(obj, callback) { |
| | | if (callback) { |
| | | callback(); |
| | | } |
| | | } |
| | | }; |
| | | me.doPopupByPublic(config); |
| | | }, |
| | | |
| | | //辖区医院信息查看 |
| | | showInfo(obj) { |
| | | var me = this; |