zhangyanpeng
2024-08-03 d8e78fa8610d65f6bfa23e0dd7070672f41ba3e4
module/visit/page/visit_schedule_list.html
@@ -15,7 +15,7 @@
            pageVue = new TabTableVue({
               el: "#vbody",
               data: {
                  title: "医院管理",
                  title: "拜访进度",
                  //Tab项设置
                  /* 
                   schedule   进度汇总
@@ -24,8 +24,8 @@
                   */
                  tabs_d: [
                     {code: "schedule", name: "进度汇总", dataname: "v_customer_promotion", filterTxt: "", orderby: ""},
                     {code: "detail", name: "进度明细", dataname: "", filterTxt: "md_terminal_promotion", orderby: ""},
                     {code: "warning", name: "预警列表", dataname: "", filterTxt: "md_terminal_promotion_detail", orderby: ""},
                     {code: "detail", name: "进度明细", dataname: "md_terminal_promotion", 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;
@@ -206,6 +185,11 @@
                                 filterFields_.push(filter_f);
                              }
                           })
                           me.selectTabObj.tableData.map(d=>{
                              d.val_ratio = 50
                           })
                           if (!me.selectTabObj.filterFields || (me.selectTabObj.filterFields && me.selectTabObj.filterFields.length == 0)) {
                              me.selectTabObj.filterFields = clone(filterFields_);
                              me.selectTabObj.tableFields = clone(tableFields_);
@@ -238,41 +222,53 @@
                        }
                     };
                     //辖区变更
                     var tablefieldClick_info = {
                        //waiting
                        hospital_code: {//字段事件设置
                           val: {//有值时的点击事件
                              onclick: function(obj) {//数据值点击事件
                                 me.showChangeInfo(obj);
                     var tablefieldClick_detail = {
                        code: { //字段事件设置
                           val: { //有值时的点击事件
                              notclick_val: "", //不可点击的值,1、是数组["11","22"];2、以“;”分隔的字符串"111;222"
                              notclick_bindfield: [], //当该字段值等于指定字段值时不可点击["filterfield": "111"]
                              onclick: function(obj) { //数据值点击事件
                                 me.showInfo(obj)
                              },
                           },
                        },
                        state_name: {//状态
                           val: {//有值时的点击事件
                              notclick_val: ["草稿","草稿"],
                              notclick_bindfield: [],
                              onclick: function(obj) {
                                 var config = {
                                    totab: false,
                                    width: "1100px",
                                    height: "520px",
                                    icon: "icon-product",
                                    text: "流程步骤",
                                    id: "popup_workflow_step_user" + obj.row.id,
                                    url: "module/tool/page/popup_workflow_step_user.html?v=2023020703",
                                    data: obj.row,
                                    delta: {},
                                    sceneCode: "browse",
                                    callback: function(obj, callback) {
                                       if (callback) {
                                          callback();
                                       }
                                    }
                                 };
                                 me.doPopupByPublic(config);
                        is_alert: {
                           val: {
                              icon: "el-icon-warning",
                              iconcolor: "#f15c42",
                              onclick: function(obj) { //数据值点击事件
                                 me.showAlertInfo(obj)
                              },
                           },
                           }
                        },
                        // 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 = {
@@ -371,8 +367,8 @@
                     var filterfieldClick = {};
                     
                     //医院管理列表-辖区医院tab
                     if (this.selectTabObj.code == "hospital") {
                        this.selectTabObj.tablefieldClick = tablefieldClick_hospital;
                     if (this.selectTabObj.code == "detail") {
                        this.selectTabObj.tablefieldClick = tablefieldClick_detail;
                     }
                     //辖区新增/变更-辖区审批中、全部辖区申请tab
                     else if (this.selectTabObj.code == "infoUnderApproval" || this.selectTabObj.code == "infoAll") {
@@ -625,6 +621,31 @@
                     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;