diff --git a/src/views/doctorCheck/personnelBatch.vue b/src/views/doctorCheck/personnelBatch.vue index 699eb17..198490e 100644 --- a/src/views/doctorCheck/personnelBatch.vue +++ b/src/views/doctorCheck/personnelBatch.vue @@ -167,11 +167,11 @@
- 全选 - 取消选择 + 全选 + 取消选择
- 上一步 + 上一步 下一步 @@ -239,24 +239,53 @@ export default { ...mapState(["importexcel"]), }, methods: { + setCurrents() {}, submitto() { if (this.form.customerOrgId == undefined) { this.$message.warning("请选择单位"); } else { // this.form = Object.assign(this.form, this.formrow); - postapi( - "/api/app/patientregister/createpatientregisterexcel", - this.form - ).then((res) => { - if (res.code == 1) { - this.object = this.form; - this.importexcel = this.form; - this.dialogVisible6 = true; - this.dialogVisible5 = false; - this.$message.success(res.data.msg); - } - console.log(res); + //xunh循环 + this.tableData.forEach((item) => { + item.customerOrgId = this.form.customerOrgId; + postapi( + "/api/app/patientregister/createpatientregisterexcel", + item + ).then((res) => { + if (res.code == 1) { + this.object = this.form; + this.importexcel = this.form; + this.dialogVisible6 = true; + this.dialogVisible5 = false; + // this.$message.success(res.data.msg); + } else { + this.$confirm("导入出错, 是否继续?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }).then((res) => { + let targettitle = res.Message; + this.$message.warning(res.Message); + }); + } + }); }); + + // .then((rut) => { + // this.tableData.forEach((item) => { + // postapi( + // "/api/app/patientregister/createpatientregisterexcel", + // item + // ).then((rut) => { + // if (rut.code == 1) { + // this.$message.success(rut.data.msg); + // } else { + + // this.$message.warning(rut.Message); + // } + // }); + // }); + // }); console.log(this.form); } console.log(this.form.customerOrgId); @@ -338,9 +367,15 @@ export default { }, setCurrent(row) { console.log(row); + + // row.forEach(item=>{ + // console.log(item,'22222'); + // }) + // toggleRowSelection + // setCurrentRow this.$refs.singleTable.setCurrentRow(row); - console.log(row, column, "event", "cell"); - console.log(this.$refs.singleTable); + // console.log(row, column, "event", "cell"); + // console.log(this.$refs.singleTable); }, handleCurrentChange(val) { this.currentRow = val; diff --git a/src/views/fee-settings/Asbitem.vue b/src/views/fee-settings/Asbitem.vue index 3cbaa97..59e1123 100644 --- a/src/views/fee-settings/Asbitem.vue +++ b/src/views/fee-settings/Asbitem.vue @@ -757,8 +757,9 @@ export default { //项目类别选择 ischangs(v) { console.log(v); + //`/api/app/diagnosis/in-item-type/${v}`3a0c50b9-9621-61b7-fc93-1cfab1ec0478 - getapi(`/api/app/asbitem/in-item-type/${v}`).then((res) => { + getapi(`/api/app/item/in-item-type/${v}`).then((res) => { console.log(res); this.leftdata = res.data; }); diff --git a/src/views/fee-settings/Item.vue b/src/views/fee-settings/Item.vue index a8bc5d8..3d7614b 100644 --- a/src/views/fee-settings/Item.vue +++ b/src/views/fee-settings/Item.vue @@ -132,7 +132,18 @@ :show-all-levels="false" > --> - + @@ -1506,8 +1517,28 @@ export default { //获取项目类别列表 getmedicalconclusionlist() { getapi("/api/app/item-type").then((res) => { + this.Selectacategory = res.data.items; - console.log(res); + console.log(res,'11'); + }); + }, + onchange(id) { + // this.form.customerOrgId = id; + // console.log(id); + // this.form.customerOrgId=this.form.customerOrgId[0] + this.form.itemTypeId.forEach((item) => { + // console.log(item); + this.form.itemTypeId = item; + }); + console.log(this.form.customerOrgId); + }, + gettypelist(listdata) { + listdata.forEach((items) => { + if (items.treeChildren.length > 0) { + this.gettypelist(items.treeChildren); + } else { + items.treeChildren = undefined; + } }); }, isselctvalue(v) {