From d731d3aa319af7f82d70e97e82503d6c2b1db51f Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Tue, 10 Oct 2023 18:01:22 +0800 Subject: [PATCH] elProgress --- .../customerOrg/customerOrgEdit.vue | 11 +- .../patientRegister/PatientRegisterEdit.vue | 7 +- .../patientRegister/PatientRegisterItem.vue | 248 +++++++++++++++--- .../patientRegister/PatientRegisterList.vue | 118 ++++++--- src/components/report/ElProgressOCX.vue | 43 +++ src/main.js | 1 + src/store/index.js | 6 + 7 files changed, 349 insertions(+), 85 deletions(-) create mode 100644 src/components/report/ElProgressOCX.vue diff --git a/src/components/customerOrg/customerOrgEdit.vue b/src/components/customerOrg/customerOrgEdit.vue index 4cf90c2..2009369 100644 --- a/src/components/customerOrg/customerOrgEdit.vue +++ b/src/components/customerOrg/customerOrgEdit.vue @@ -443,17 +443,18 @@ export default { //console.log('{patientRegisterIds}',{patientRegisterIds}) return deletapi(`/api/app/customer-org/${this.customerOrg.customerOrgRd.id}`); }).then((res) => { - if(res.code != -1) { + if(res.Code != -1) { this.$message.success("删除 操作成功"); this.getCustomerOrgTree('delete',this.customerOrg.customerOrgRd.id); this.setData({ key: "customerOrg.customerOrgRd", value: { id: "" } }); this.$refs[formName].resetFields(); } }).catch((err) => { - this.$message({ - type: "info", - message: "已取消删除", - }); + if(err == 'cancel'){ + this.$message.info("已取消删除"); + }else{ + this.$message.error("操作失败,原因:" + err); + } }); }, }, diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 5c355b8..39a7f25 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -44,12 +44,12 @@ - + - + @@ -923,7 +923,7 @@ export default { }, //根据姓名,身份证号 查询档案信息,用于判断人员多次体检 - query(param) { + Query(param) { //编辑的时候不查重 if (this.form.id || !param) return; @@ -1133,6 +1133,7 @@ export default { this.$message.info("该信息尚未保存,不可执行此操作!"); return; } + this.patientRegister.photo = '/pic/Photo.jpg' this.patientRegister.patientRegisterId = ''; this.form.id = ''; this.form.patientId = '00000000-0000-0000-0000-000000000000'; diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index 5a20441..33e232c 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -1,6 +1,6 @@ - - + + - - - - - + + + + + - + - - + + - + - + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 49560d2..97964df 100644 --- a/src/main.js +++ b/src/main.js @@ -108,6 +108,7 @@ onResize(); // 监听keydown:获取键盘按住事件,code返回按住的键信息 window.addEventListener('keydown', code => { + console.log('keydown',code) if (code.key == "Shift" && code.shiftKey) { store.commit('setData', { key: 'window.shift', value: true });// 标记按住了shift键 } diff --git a/src/store/index.js b/src/store/index.js index acf36e6..e1387fc 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -21,6 +21,12 @@ export default new Vuex.Store({ shift:false, //是否按下 shift键 ctrl:false, //是否按下 ctrl键 }, + elProgress:{ //通用进度条相关参数 + display:false, //是否显示 + textInside:true, + strokeWidth:30, + percentage:0 + }, customerOrg: { //体检单位设置 customerOrgTree: [], //体检单位列表