Browse Source

单位分组

master
mch 2 years ago
parent
commit
6aeeded936
  1. 2
      src/components/doctorCheck/PatientRegisterBase.vue
  2. 35
      src/components/unitGrouping/unitGroupCategory.vue
  3. 20
      src/components/unitGrouping/unitGroupingTable.vue
  4. 9
      src/views/fee-settings/Asbitem.vue
  5. 4
      src/views/fee-settings/Diagnosis.vue
  6. 12
      src/views/fee-settings/DiagnosisTemplate.vue
  7. 13
      src/views/fee-settings/MedicalPackage.vue

2
src/components/doctorCheck/PatientRegisterBase.vue

@ -1,6 +1,6 @@
<template> <template>
<div style="display: flex"> <div style="display: flex">
<div style="display: flex; flex-wrap: wrap; width: 100%">
<div style="display: flex; flex-wrap: wrap; width: 100%;">
<div class="query"> <div class="query">
<span>条码号</span> <span>条码号</span>
<el-input placeholder="条码号" v-model="doctorCheck.prBase.patientRegisterNo" size="small" style="width: 140px" <el-input placeholder="条码号" v-model="doctorCheck.prBase.patientRegisterNo" size="small" style="width: 140px"

35
src/components/unitGrouping/unitGroupCategory.vue

@ -227,7 +227,7 @@ export default {
// this.tabledata.push(this.rightselctedata[i]); // this.tabledata.push(this.rightselctedata[i]);
} }
console.log(this.personnelUnit.customerOrgGroupId); console.log(this.personnelUnit.customerOrgGroupId);
// this. // this.
this.rightselctedata.forEach((item) => { this.rightselctedata.forEach((item) => {
this.addrulst.push({ this.addrulst.push({
@ -253,9 +253,9 @@ export default {
} else { } else {
if (this.unselecteddata.length == 0) { if (this.unselecteddata.length == 0) {
this.$message.warning("未选数据为空无法移动"); this.$message.warning("未选数据为空无法移动");
} else {
} else {
this.saveornot = false; this.saveornot = false;
let count = this.unselecteddata.length - 1;
let count = this.unselecteddata.length - 1;
for (var i = count; i >= 0; i--) { for (var i = count; i >= 0; i--) {
// this.tabledata.splice(i, 1); // this.tabledata.splice(i, 1);
if ([...new Set(this.unselecteddata)]) { if ([...new Set(this.unselecteddata)]) {
@ -273,23 +273,22 @@ export default {
// } else { // } else {
// price = this.price; // price = this.price;
// } // }
//
//
}); });
let prices = "";
// let prices = "";
this.personnelUnit.nogroupselected.forEach((items) => { this.personnelUnit.nogroupselected.forEach((items) => {
prices = items.price;
console.log(prices);
// prices = items.price;
// this.price = item.price; // this.price = item.price;
console.log(price);
console.log(items, "items");
this.addrulst.push({ this.addrulst.push({
asbitemId: "3a0b2f0c-f884-bec4-a350-79b46b455a2d",
asbitemId:items.id, // "3a0b2f0c-f884-bec4-a350-79b46b455a2d"
// price: prices, // price: prices,
price: this.psrice,
price: items.price,
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, customerOrgGroupId: this.personnelUnit.customerOrgGroupId,
}); });
}); });
console.log(this.addrulst, "hhhhhhh"); console.log(this.addrulst, "hhhhhhh");
} }
} }
}, },
@ -355,12 +354,12 @@ export default {
this.personnelUnit.form = res.data; this.personnelUnit.form = res.data;
console.log(res); console.log(res);
}); });
getapi(
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem?CustomerOrgGroupId=${this.personnelUnit.form.id}`
).then((res) => {
console.log(res, "res");
this.personnelUnit.nogroupselected = res.data;
});
// getapi(
// `/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${this.personnelUnit.form.id}`
// ).then((res) => {
// console.log(res, "res");
// this.personnelUnit.nogroupselected = res.data;
// });
}, },
// getapi(`/api/app/customer-org-group/${row.id}`).then((res) // getapi(`/api/app/customer-org-group/${row.id}`).then((res)
}, },
@ -401,6 +400,8 @@ export default {
width: 20%; width: 20%;
border: 1px solid #000; border: 1px solid #000;
height: 300px; height: 300px;
overflow: hidden;
margin-left: 7%; margin-left: 7%;
} }
.examinationcategory { .examinationcategory {

20
src/components/unitGrouping/unitGroupingTable.vue

@ -271,19 +271,21 @@ export default {
}, },
// //
clickoncolumn(row) { clickoncolumn(row) {
console.log(row.id);
this.personnelUnit.customerOrgGroupId = row.id; this.personnelUnit.customerOrgGroupId = row.id;
getapi(`/api/app/customer-org-group/${row.id}`).then((res) => { getapi(`/api/app/customer-org-group/${row.id}`).then((res) => {
this.form = res.data; this.form = res.data;
this.personnelUnit.form = res.data; this.personnelUnit.form = res.data;
}); });
// //
// getapi(
// `/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem?CustomerOrgGroupId=${this.personnelUnit.form.id}`
// ).then((res) => {
// console.log(res.data, "");
// this.personnelUnit.nogroupselected = res.data;
// console.log(this.personnelUnit.nogroupselected, "");
// });
// //
console.log(this.personnelUnit.form.id);
getapi(
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${this.personnelUnit.form.id}`
).then((res) => {
console.log(res.data, "当前列");
this.personnelUnit.nogroupselected = res.data;
console.log(this.personnelUnit.nogroupselected, "我是分组");
});
}, },
// //
editgroup() { editgroup() {
@ -291,7 +293,7 @@ export default {
this.obtainsuperior(); this.obtainsuperior();
this.dialogVisible = true; this.dialogVisible = true;
}, },
//
//
obtainsuperior() { obtainsuperior() {
// //
getapi("/api/app/sex").then((res) => { getapi("/api/app/sex").then((res) => {

9
src/views/fee-settings/Asbitem.vue

@ -710,10 +710,11 @@ export default {
this.num = index; this.num = index;
console.log(this.num); console.log(this.num);
}, },
// 3a0b0b10-719f-5824-6956-8cb70f204013
// 3a0b0b10-719f-5824-6956-8cb70f204013 /api/app/item-type/by-code-all
gitprojectcategory() { gitprojectcategory() {
getapi("/api/app/item-type").then((res) => {
this.projectid = res.data.items;
getapi("/api/app/item-type/by-code-all").then((res) => {
this.projectid = res.data;
console.log('res项目类别',res);
}); });
}, },
//ary1 ary2 //ary1 ary2
@ -735,7 +736,7 @@ export default {
// //
ischangs(v) { ischangs(v) {
console.log(v); console.log(v);
//`/api/app/diagnosis/in-item-type/${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/asbitem/in-item-type/${v}`).then((res) => {
console.log(res); console.log(res);
this.leftdata = res.data; this.leftdata = res.data;

4
src/views/fee-settings/Diagnosis.vue

@ -426,8 +426,8 @@ export default {
}, },
// 3a0b0b10-719f-5824-6956-8cb70f204013 // 3a0b0b10-719f-5824-6956-8cb70f204013
gitprojectcategory() { gitprojectcategory() {
getapi("/api/app/item-type").then((res) => {
this.projectid = res.data.items;
getapi("/api/app/item-type/by-code-all").then((res) => {
this.projectid = res.data;
}); });
}, },
//ary1 ary2 //ary1 ary2

12
src/views/fee-settings/DiagnosisTemplate.vue

@ -289,10 +289,10 @@ export default {
let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id }; let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
sdate.push(sss); sdate.push(sss);
}); });
this.leftdata.forEach((element) => {
let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
sdate.push(sss);
});
// this.leftdata.forEach((element) => {
// let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
// sdate.push(sss);
// });
console.log(sdate); console.log(sdate);
if (sampleGroupId == undefined) { if (sampleGroupId == undefined) {
this.$message.warning("请选择列表"); this.$message.warning("请选择列表");
@ -355,8 +355,8 @@ export default {
}, },
// 3a0b0b10-719f-5824-6956-8cb70f204013 // 3a0b0b10-719f-5824-6956-8cb70f204013
gitprojectcategory() { gitprojectcategory() {
getapi("/api/app/item-type").then((res) => {
this.projectid = res.data.items;
getapi("/api/app/item-type/by-code-all").then((res) => {
this.projectid = res.data;
}); });
}, },
//ary1 ary2 //ary1 ary2

13
src/views/fee-settings/MedicalPackage.vue

@ -380,12 +380,13 @@ export default {
let sdate = []; let sdate = [];
this.rightdata.forEach((element) => { this.rightdata.forEach((element) => {
let sss = { medicalPackageId: sampleGroupId, asbitemId: element.id }; let sss = { medicalPackageId: sampleGroupId, asbitemId: element.id };
console.log(sss);
sdate.push(sss); sdate.push(sss);
}); });
this.leftdata.forEach((element) => {
let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
sdate.push(sss);
});
// this.leftdata.forEach((element) => {
// let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
// sdate.push(sss);
// });
console.log(sdate); console.log(sdate);
if (sampleGroupId == undefined) { if (sampleGroupId == undefined) {
this.$message.warning("请选择列表"); this.$message.warning("请选择列表");
@ -476,8 +477,8 @@ export default {
}, },
// 3a0b0b10-719f-5824-6956-8cb70f204013 // 3a0b0b10-719f-5824-6956-8cb70f204013
gitprojectcategory() { gitprojectcategory() {
getapi("/api/app/item-type").then((res) => {
this.projectid = res.data.items;
getapi("/api/app/item-type/by-code-all").then((res) => {
this.projectid = res.data;
}); });
}, },
// //

Loading…
Cancel
Save