| | |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"><meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache" content="no-cache"> |
| | | <title>医院管理</title> |
| | | <title>辖区终端</title> |
| | | |
| | | <script type="text/javascript"> |
| | | var pageVue = null; |
| | |
| | | pageVue = new TabTableVue({ |
| | | el: "#vbody", |
| | | data: { |
| | | title: "医院管理", |
| | | title: "辖区终端", |
| | | //Tab项设置 |
| | | tabs_d: [ |
| | | {code: "hospital", name: "辖区医院", dataname: "md_position_hospital", filterTxt: "", orderby: "md_position_hospital.update_time desc"}, |
| | | {code: "hospital", name: "辖区终端", dataname: "md_position_hospital", filterTxt: "", orderby: "md_position_hospital.update_time desc"}, |
| | | {code: "linkpharmacy", name: "关联药店", dataname: "md_position_hospital_pharmacy", filterTxt: "", orderby: "md_position_hospital_pharmacy.update_time desc"}, |
| | | // {code: "hospital", name: "辖区医院申请", dataname: "md_position_hospital", filterTxt: " (md_position_hospital.state_code='Input' or md_position_hospital.state_code='OpeningApproval')", orderby: "update_time desc"}, |
| | | // {code: "infoAll", name: "辖区医院", dataname: "md_position_hospital", filterTxt: "md_position_hospital.state_code='Open'", orderby: "update_time desc"}, |
| | | ], |
| | |
| | | }, |
| | | } |
| | | }; |
| | | var tablefieldClick_linkpharmacy = { |
| | | 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); |
| | | }, |
| | | }, |
| | | }, |
| | | }; |
| | | //辖区变更 |
| | | var tablefieldClick_info = { |
| | | //waiting |
| | |
| | | if (this.selectTabObj.code == "hospital") { |
| | | this.selectTabObj.tablefieldClick = tablefieldClick_hospital; |
| | | } |
| | | // 关联药店 |
| | | else if (this.selectTabObj.code == "linkpharmacy") { |
| | | this.selectTabObj.tablefieldClick = tablefieldClick_linkpharmacy; |
| | | } |
| | | //辖区新增/变更-辖区审批中、全部辖区申请tab |
| | | else if (this.selectTabObj.code == "infoUnderApproval" || this.selectTabObj.code == "infoAll") { |
| | | this.selectTabObj.tablefieldClick = tablefieldClick_info; |
| | |
| | | } |
| | | } |
| | | ]; |
| | | |
| | | tablebuttonClick.linkpharmacy = [ |
| | | { |
| | | // name: "新增", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: me.cbuttons_r.add ? me.cbuttons_r.add : false, |
| | | code: "add", isselected: false, classname: "", |
| | | onclick: function(obj) { |
| | | // obj.selectedList |
| | | me.openLinkpharmacy('add', obj.selectedList[0]); |
| | | } |
| | | }, |
| | | { |
| | | // name: "提交", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: me.cbuttons_r.submit ? me.cbuttons_r.submit : false, type: "success", |
| | | code: "submit", isselected: true, classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0] && selectRowList[0].state_code == "Input") { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | |
| | | // obj.selectedList |
| | | // me.closeData('browse', obj.selectedList[0]); |
| | | // me.commitData(obj.selectedList[0]); |
| | | me.openLinkpharmacy('edit', obj.selectedList[0]); |
| | | } |
| | | }, |
| | | { |
| | | // name: "详情", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: me.cbuttons_r.formdetail ? me.cbuttons_r.formdetail : false, |
| | | code: "formdetail", isselected: true, classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0]) { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | // obj.selectedList |
| | | me.openLinkpharmacy('browse', obj.selectedList[0]); |
| | | } |
| | | }, |
| | | { |
| | | // name: "编辑", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: me.cbuttons_r.edit ? me.cbuttons_r.edit : false, |
| | | code: "edit", isselected: true, classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0] && selectRowList[0].state_code == "Input") { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | // obj.selectedList |
| | | me.openLinkpharmacy('edit', obj.selectedList[0]); |
| | | } |
| | | }, |
| | | { |
| | | // name: "删除", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: me.cbuttons_r.delete ? me.cbuttons_r.delete : false, type: "danger", |
| | | code: "delete", isselected: true, classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0] && selectRowList[0].state_code == "Input") { |
| | | bo_ = false; |
| | | } |
| | | return bo_ |
| | | }, |
| | | onclick: function(obj) { |
| | | me.delData() |
| | | // obj.selectedList |
| | | // me.closeData('browse', obj.selectedList[0]); |
| | | // me.closeData(); |
| | | } |
| | | }, |
| | | ]; |
| | | tablebuttonClick.infoUnderApproval = [ |
| | | { |
| | | isbuttonshow: me.cbuttons_r.formdetail ? me.cbuttons_r.formdetail : false,type:"primary", |
| | |
| | | message: '已取消' |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | openLinkpharmacy(sceneCode, obj) { |
| | | let me = this; |
| | | var row = {} |
| | | if (sceneCode == "edit" || sceneCode == "browse" || sceneCode == "change") { |
| | | row = me.selectTabObj.selectedrow; |
| | | if(!row){ |
| | | Root.message({ |
| | | type: 'warning', |
| | | message: '请选择一条数据' |
| | | }); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | var config = { |
| | | totab: false, //true: 以Tab导航的方式打开 |
| | | width: "900px", |
| | | height: "320px", |
| | | icon: "icon-product", |
| | | text: "关联院外店" + (row.pharmacy_name ? ("-" + row.pharmacy_name ) : ""), |
| | | id: "linkpharmacy_info" + row.id + sceneCode,//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/md/page/terminal/page/linkpharmacy_info.html", |
| | | data: row, |
| | | delta: {}, |
| | | sceneCode: sceneCode,//"refuseedit",//"approval", //"add"//"browse", |
| | | callback: function(obj, callback) { |
| | | me.onQuery(); |
| | | if (callback) { |
| | | callback(); |
| | | } |
| | | } |
| | | }; |
| | | me.doPopupByPublic(config); |
| | | }, |
| | | |
| | | openPolicy(sceneCode, row) { |
| | |
| | | <span>{{title}}</span> |
| | | |
| | | <div style="float: right;"> |
| | | <el-button-group style="margin-left: 3px"> |
| | | <el-button-group v-if="selectTabObj && selectTabObj.code == 'hospital'" style="margin-left: 3px"> |
| | | <el-button v-show="cbuttons_r.linkpharmacy" @click="onShowLinkPharmacy">关联院外店</el-button> |
| | | <el-button v-show="cbuttons_r.downloadTemplate" @click="DownloadTemplate">模板下载</el-button> |
| | | <el-tooltip class="item" effect="dark" :content="buttonsconfig.clearandappend.tooltip" placement="top-start"> |