From 654b346be707f44a9e5fac30517c8c77cadf4507 Mon Sep 17 00:00:00 2001 From: mch <1332099529@qq.com> Date: Tue, 22 Aug 2023 16:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=9C=E8=89=B2=E9=80=89=E6=8B=A9=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic-dictionary/ResultStatus.vue | 108 +++++++------ src/views/doctorCheck/personnelBatch.vue | 105 ++++++++----- src/views/fee-settings/SysParmSet.vue | 161 +++++++++++++------- src/views/fee-settings/SysParmType.vue | 1 + 4 files changed, 235 insertions(+), 140 deletions(-) diff --git a/src/views/basic-dictionary/ResultStatus.vue b/src/views/basic-dictionary/ResultStatus.vue index f359006..79e5c73 100644 --- a/src/views/basic-dictionary/ResultStatus.vue +++ b/src/views/basic-dictionary/ResultStatus.vue @@ -106,13 +106,13 @@ > --> 单位设置 + + + + 体检中心 + + + + + + + + + @@ -109,9 +127,9 @@ 登记状态 - - 预登记 - 仅本单位同名病人提示 + + 预登记 + 正式登记 @@ -137,9 +155,14 @@ > - + 是 + 否 + + 取 消 @@ -208,14 +231,16 @@ export default { checked: "", input: "", form: { - nameType: "", + nameType: "N", cardLength: "", isAutoCreateDepartment: "N", // customerOrgId: "", //单位id isAutoCreatePatientNo: "N", cardStartNum: "0", patientName: "", + organizationUnitId: "", }, + examinatioitems: [], //体检中心的数据 value: "", nameType: "1", currentRow: null, @@ -265,7 +290,7 @@ export default { cancelButtonText: "取消", type: "warning", }).then((res) => { - // let targettitle = res.Message; + // let targettitle = res.Message; this.$message.warning(res.Message); }); } @@ -292,41 +317,47 @@ export default { console.log(this.form.customerOrgId); }, - //改进: + //改进: //分析 不要单独按钮,合并到 下一步 按钮 //进度条 //登记状态 选不了 //自动创建部门勾不上 //数据列没有绑定 - async submitBatch(){ - let res = null,confirm=null; - for(let i=0;i { @@ -380,8 +402,19 @@ export default { this.dialogVisible5 = true; this.dialogVisible4 = false; this.slicetdata(); + this.getexamination(); + //获取调用接口的地方 } }, + //获取调用体检中心的接口 + getexamination() { + getapi("/api/app/organization-units/organization-unit-by-is-peis").then( + (res) => { + this.examinatioitems = res.data; + console.log(res, "res"); + } + ); + }, determine() { if (JSON.stringify(this.formrow) == "{}") { this.$message.warning("请选择数据"); diff --git a/src/views/fee-settings/SysParmSet.vue b/src/views/fee-settings/SysParmSet.vue index e322a18..0ac4a82 100644 --- a/src/views/fee-settings/SysParmSet.vue +++ b/src/views/fee-settings/SysParmSet.vue @@ -1,52 +1,98 @@ - + - + - + 体检中心 - - + + - - + + - + 保存 - - + + - + - - + + - + - + - + @@ -63,22 +109,22 @@ export default { components: {}, data() { return { - sysParmTypesTree: [], //参数类别树 + sysParmTypesTree: [], //参数类别树 treeProps: { label: "displayName", value: "id", children: "treeChildren", }, - organization: [], //体检中心 - organizationId: '00000000-0000-0000-0000-000000000000', - sysParmTypeId: '', - sysParms: [], //系统参数列表 - color16:'#409EFF', - color10:1089274, + organization: [], //体检中心 + organizationId: "00000000-0000-0000-0000-000000000000", + sysParmTypeId: "", + sysParms: [], //系统参数列表 + color16: "#409EFF", + color10: 1089274, }; }, - created() { }, + created() {}, //挂载完成 mounted() { @@ -90,20 +136,26 @@ export default { ...mapState(["window", "dict"]), }, methods: { - chooseColor(v){ - this.color10 = eval(v.replace('#','0x')); + chooseColor(v) { + this.color10 = eval(v.replace("#", "0x")); }, - inputColor(v){ + inputColor(v) { this.color10 = Number(v); - let temp = '000000' + this.color10.toString(16); - this.color16 = '#' + temp.substring(temp.length - 6,temp.length); + let temp = "000000" + this.color10.toString(16); + this.color16 = "#" + temp.substring(temp.length - 6, temp.length); }, //获取组织体检中心数据 getOraniztion() { getapi("/api/app/organization-units/organization-unit-by-is-peis").then( (res) => { - this.organization = [{ displayName: "公共参数", id: "00000000-0000-0000-0000-000000000000", }, ...res.data]; + this.organization = [ + { + displayName: "公共参数", + id: "00000000-0000-0000-0000-000000000000", + }, + ...res.data, + ]; } ); }, @@ -111,9 +163,9 @@ export default { //获取系统参数类别树数据 getSysParmTypesTree() { getapi("/api/app/sysparmtype/treelist").then((res) => { - if (res.code != - 1) { + if (res.code != -1) { this.sysParmTypesTree = res.data; - //console.log("res.data", res.data); + //console.log("res.data", res.data); tcdate(this.sysParmTypesTree); } }); @@ -132,10 +184,10 @@ export default { getSysParms() { let url = `/api/app/sysparm/getlistinsysparmvaluename?SysParmTypeId=${this.sysParmTypeId}`; if (this.organizationId) { - url += `&OrganizationUnitId=${this.organizationId}` + url += `&OrganizationUnitId=${this.organizationId}`; } getapi(`${url}`).then((res) => { - if (res.code != - 1) { + if (res.code != -1) { this.sysParms = res.data; } }); @@ -143,28 +195,25 @@ export default { save() { let body = []; - if(this.sysParms.length < 1) return; - this.sysParms.forEach(item =>{ + if (this.sysParms.length < 1) return; + this.sysParms.forEach((item) => { body.push({ - sysParmId:item.id, - organizationUnitId:item.organizationUnitId, - parmValue:item.sysParmValueName, - remark:item.valueRemark + sysParmId: item.id, + organizationUnitId: item.organizationUnitId, + parmValue: item.sysParmValueName, + remark: item.valueRemark, }); }); - - postapi("/api/app/sysparmvalue/updatesysparmvaluemany",body).then((res) => { - if (res.code != - 1) { - this.$message.success('操作成功!'); - } - }); + postapi("/api/app/sysparmvalue/updatesysparmvaluemany", body).then( + (res) => { + if (res.code != -1) { + this.$message.success("操作成功!"); + } + } + ); }, - - }, - - }; diff --git a/src/views/fee-settings/SysParmType.vue b/src/views/fee-settings/SysParmType.vue index 7cb647a..bea53a2 100644 --- a/src/views/fee-settings/SysParmType.vue +++ b/src/views/fee-settings/SysParmType.vue @@ -142,6 +142,7 @@ export default { getapi("/api/app/organization-units/organization-unit-by-is-peis").then( (res) => { this.organizationdata = res.data; + console.log(res); } ); },