From d8e78fa8610d65f6bfa23e0dd7070672f41ba3e4 Mon Sep 17 00:00:00 2001 From: zhangyanpeng <bob.zhang@highdatas.com> Date: 星期六, 03 八月 2024 22:15:16 +0800 Subject: [PATCH] 调整 --- module/visit/page/visit_schedule_list.html | 111 +++++++++++++++++++++++++++++++------------------------ 1 files changed, 63 insertions(+), 48 deletions(-) diff --git a/module/visit/page/visit_schedule_list.html b/module/visit/page/visit_schedule_list.html index a0ced22..0a0402d 100644 --- a/module/visit/page/visit_schedule_list.html +++ b/module/visit/page/visit_schedule_list.html @@ -25,7 +25,7 @@ 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, @@ -38,29 +38,7 @@ 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"}, @@ -99,6 +77,7 @@ 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; @@ -244,7 +223,7 @@ }; //杈栧尯鍙樻洿 var tablefieldClick_detail = { - + code: { //瀛楁浜嬩欢璁剧疆 val: { //鏈夊�兼椂鐨勭偣鍑讳簨浠� notclick_val: "", //涓嶅彲鐐瑰嚮鐨勫��,1銆佹槸鏁扮粍["11","22"]锛�2銆佷互鈥�;鈥濆垎闅旂殑瀛楃涓�"111;222" @@ -254,31 +233,42 @@ }, }, }, - 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 = { @@ -631,6 +621,31 @@ me.doPopupByPublic(config); }, + showAlertInfo(obj) { + var me = this; + var filter_ = "doc_id='"+obj.row.id+"'" + + var config = { + totab: false, //true: 浠ab瀵艰埅鐨勬柟寮忔墦寮� + 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; -- Gitblit v1.8.0