| | |
| | | |
| | | //表格字段事件设置 |
| | | tablefieldClick = { |
| | | 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); |
| | | }, |
| | | }, |
| | | }, |
| | | |
| | | terminal_code: {//字段事件设置 |
| | | val: {//有值时的点击事件 |
| | | onclick: function(obj) {//数据值点击事件 |
| | |
| | | }; |
| | | |
| | | tablefieldClickOpen = { |
| | | 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); |
| | | }, |
| | | }, |
| | | }, |
| | | code: {//字段事件设置 |
| | | val: {//有值时的点击事件 |
| | | onclick: function(obj) {//数据值点击事件 |
| | |
| | | }, |
| | | tableButtonClick() { |
| | | var me = this; |
| | | var tablebuttonclick = []; |
| | | tablebuttonclick = [ |
| | | { |
| | | var tablebuttonclick = {}; |
| | | tablebuttonclick.Open = [ |
| | | { |
| | | isbuttonshow: true, type: "primary", |
| | | code: "add", isselected: false, classname:"", |
| | | onclick: function(obj) { |
| | | me.onEditData("add", {}) |
| | | } |
| | | }, |
| | | { |
| | | isbuttonshow: me.cbuttons_r.edit, type: "primary", |
| | | code: "edit", isselected: true, classname:"", |
| | | code: "change", isselected: true, classname:"", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true; |
| | | if (selectRowList[0]) { |
| | |
| | | me.onEditData("edit",obj.selectedList[0]) |
| | | } |
| | | }, |
| | | |
| | | ] |
| | | me.selectTabObj.tablebuttonClick = tablebuttonclick |
| | | |
| | | tablebuttonclick.alias = [ |
| | | { |
| | | isbuttonshow: true, type:"primary", |
| | | code: "add",isselected: false,classname: "", |
| | | onclick: function(obj) { |
| | | me.openCustomer('add') |
| | | } |
| | | }, |
| | | { |
| | | // name: "删除", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: true, type: "danger", |
| | | code: "delete", isselected: true, classname: "", |
| | | disabled: function(selectRowList) { |
| | | var bo_ = true ; |
| | | if (selectRowList[0]) { |
| | | bo_ = false |
| | | } |
| | | return bo_; |
| | | }, |
| | | onclick: function(obj) { |
| | | me.delData() |
| | | } |
| | | }, |
| | | ] |
| | | tablebuttonclick.uploadlog = [ |
| | | { // 详情 |
| | | 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.onChangeLog("browse",obj.selectedList[0]) |
| | | } |
| | | }, |
| | | ] |
| | | |
| | | if (tablebuttonclick[this.activeTabName]) { |
| | | this.selectTabObj.tablebuttonClick = tablebuttonclick[this.activeTabName]; |
| | | } |
| | | else { |
| | | this.selectTabObj.tablebuttonClick = [] |
| | | } |
| | | }, |
| | | |
| | | showInfo(obj, sceneCode) { |
| | |
| | | }; |
| | | me.doPopupByPublic(config); |
| | | }, |
| | | |
| | | |
| | | delData: function(scope) { |
| | | let me = this; |
| | | var row = me.selectTabObj.selectedrow; |
| | | let name_ = "该数据"; |
| | | |
| | | if (!row.id) { |
| | | Root.message({ |
| | | type: 'warning', |
| | | message: '该事件需存在数据ID' |
| | | }); |
| | | return |
| | | } |
| | | if (row.name) { |
| | | name_ = "_" + row.name + "_"; |
| | | } |
| | | |
| | | Root.confirm('确定删除' + name_ + '吗?', '删除提示', { |
| | | confirmButtonText: '删除', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | let param = { |
| | | id: row.id, |
| | | dataname: me.selectTabObj.dataname, |
| | | } |
| | | Server.call("root/data/deleteEntity", param, function(result) { |
| | | Root.message({ |
| | | type: 'success', |
| | | message: '删除成功!' |
| | | }); |
| | | me.onQuery(); |
| | | }); |
| | | }).catch(() => { |
| | | Root.message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | commitData(obj) { |
| | | var me = this; |
| | | Root.confirm('确定提交' + obj.name + '的变更申请吗?', '提交提示', { |
| | |
| | | me.onQuery(); |
| | | // } |
| | | |
| | | if (callback) { |
| | | callback(); |
| | | } |
| | | }, |
| | | }; |
| | | me.doPopupByPublic(config); |
| | | }, |
| | | |
| | | onChangeLog(sceneCode,row) { |
| | | var me = this; |
| | | |
| | | //3. popup |
| | | config = { |
| | | totab: false, |
| | | icon: "icon-product", |
| | | text: "终端更改信息", |
| | | width: "900px", |
| | | height: "400px", |
| | | id: "popup_hospital_log" + sceneCode, |
| | | url: "module/md/page/terminal/page/popup/popup_hospital_log.html", |
| | | sceneCode: sceneCode, |
| | | data: row, |
| | | delta: {}, |
| | | callback: function(obj, callback) { |
| | | if (callback) { |
| | | callback(); |
| | | } |
| | |
| | | --> |
| | | <el-button v-show="cbuttons_r.export && selectTabObj.code == 'Open'" @click="onDownload" :icon="buttonsconfig.export.icon">{{buttonsconfig.export.name}}</el-button> |
| | | |
| | | <el-button v-show= "cbuttons_r.synchronous ? cbuttons_r.synchronous : false" type="primary" @click="getOA" :loading="loading_oa" icon="el-icon-refresh-right">同步OA医院</el-button> |
| | | <!-- <el-button v-show= "cbuttons_r.synchronous ? cbuttons_r.synchronous : false" type="primary" @click="getOA" :loading="loading_oa" icon="el-icon-refresh-right">同步OA医院</el-button> --> |
| | | </el-button-group> |
| | | <!-- <el-button-group v-show="selectTabObj.code == 'Open'" style="margin-left: 3px"> |
| | | <el-button v-show="cbuttons_r.Import" @click="DownloadTemplate">模板下载</el-button> |