Browse Source

套餐修改

master
mch 2 years ago
parent
commit
90e29c3694
  1. 5
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 44
      src/components/unitGrouping/unitGroupCategory.vue
  3. 2
      src/components/unitGrouping/unitGroupingTable.vue
  4. 46
      src/views/fee-settings/Asbitem.vue
  5. 5
      src/views/fee-settings/MedicalPackage.vue

5
src/components/patientRegister/PatientRegisterEdit.vue

@ -335,12 +335,13 @@
</el-dialog>
</div>
</template>
<script>
<script >
import moment from 'moment';
import { mapState } from 'vuex'
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { apiurl } from '../../utlis/mm'
import * as apiurl from '../../utlis/mm'
import { objCopy,setNull,dddw } from '../../utlis/proFunc'
import Camera from './Camera.vue'
import PatientRegisterItem from './PatientRegisterItem.vue'

44
src/components/unitGrouping/unitGroupCategory.vue

@ -72,10 +72,10 @@
<el-table-column label="价格" prop="price">
<template slot-scope="scope">
<input
<el-input
type="text"
v-model="scope.row.price"
@blur="inputchang(scope.row)"
@change="inputchang(scope.row, $event.target.value)"
/>
</template>
</el-table-column>
@ -174,9 +174,11 @@ export default {
this.getportfolioitems();
},
methods: {
inputchang(v) {
this.price = v.price;
console.log(this.price);
inputchang(row, newVal) {
console.log(row);
console.log(newVal);
// this.price = v.price;
// console.log(this.price);
},
//
Onsubmit() {
@ -218,20 +220,22 @@ export default {
let count = this.rightselctedata.length - 1;
for (var i = count; i >= 0; i--) {
// this.personnelUnit.nogroupselected.splice(i, 1);
if (
// !this.rightselctedata.includes(this.rightselctedata[i].displayName)
[...new Set(this.rightselctedata)]
) {
this.tabledata.push(this.rightselctedata[i]);
this.personnelUnit.nogroupselected.splice(i, 1);
}
// !this.rightselctedata.includes(this.rightselctedata[i].displayName)
[...new Set(this.rightselctedata)];
this.tabledata.push(this.rightselctedata[i]);
this.personnelUnit.nogroupselected.splice(i, 1);
// this.tabledata.push(this.rightselctedata[i]);
}
// this.
this.rightselctedata.forEach((item) => {
console.log(this.personnelUnit.customerOrgGroupId);
this.addrulst.push({
asbitemId: item.id,
price: item.price,
// price: this.price,
customerOrgGroupId: this.personnelUnit.customerOrgGroupId,
});
});
@ -254,21 +258,21 @@ export default {
} else {
this.saveornot = false;
let count = this.unselecteddata.length - 1;
let uniqueSet = [...new Set(this.unselecteddata, ...this.tabledata)];
const filteredArray = [];
for (var i = count; i >= 0; i--) {
// this.tabledata.splice(i, 1);
this.unselecteddata.push(this.unselecteddata[i]);
this.tabledata.splice(i, 1);
// this.personnelUnit.nogroupselected.push(this.unselecteddata[i]);
if ([...new Set(this.unselecteddata)]) {
this.tabledata.splice(i, 1);
this.personnelUnit.nogroupselected.push(this.unselecteddata[i]);
}
}
console.log(this.price);
console.log(this.personnelUnit.customerOrgGroupId);
this.unselecteddata.forEach((item) => {
this.price=item.price
this.price = item.price;
this.addrulst.push({
asbitemId: item.id,
price: item.price,
// price: this.price,
// price: this.psrice,
customerOrgGroupId: this.personnelUnit.customerOrgGroupId,
});
});
@ -348,7 +352,7 @@ export default {
getapi(
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem?CustomerOrgGroupId=${this.personnelUnit.form.id}`
).then((res) => {
console.log(res);
console.log(res, "res");
this.personnelUnit.nogroupselected = res.data;
});
},

2
src/components/unitGrouping/unitGroupingTable.vue

@ -271,7 +271,7 @@ export default {
},
//
clickoncolumn(row) {
this.personnelUnit.customerOrgGroupId = row.id;
this.personnelUnit.customerOrgGroupId = row.id;
getapi(`/api/app/customer-org-group/${row.id}`).then((res) => {
this.form = res.data;
this.personnelUnit.form = res.data;

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

@ -292,6 +292,7 @@
</el-select>
<span style="margin-left: 10%; padding: 5px">搜索选择</span>
<el-select
@change="selectitem"
filterable
v-model="flitvalues"
placeholder="请选择"
@ -596,6 +597,7 @@ export default {
rightdata: [],
rightobj: {},
nums: 0,
itemid: "", //id
};
},
created() {
@ -604,24 +606,36 @@ export default {
},
mounted() {
this.rowDrop();
this.gitfleslist();
},
methods: {
gitfleslist() {
getapi("/api/app/item").then((res) => {
this.filetelists = res.data.items;
console.log(res, "我是项目");
});
},
//
selectitem(v) {
this.itemid = v;
},
Onsubmit() {
let sampleGroupId = this.form.id;
console.log(sampleGroupId);
console.log(sampleGroupId);
let sdate = [];
console.log(this.rightdata,'2222');
this.rightdata.forEach((element) => {
console.log('项目元素id',element.id);
console.log('组合项目id',sampleGroupId);
let sss = { itemId: element.id, asbitemId: sampleGroupId };
sdate.push(sss);
});
console.log(this.rightdata, "2222");
let sss = { itemId: this.itemid, asbitemId: sampleGroupId };
sdate.push(sss)
// this.rightdata.forEach((element) => {
// console.log('id',element.id);
// console.log('id',sampleGroupId);
// 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) {
this.$message.warning("请选择列表");
} else {
@ -650,6 +664,7 @@ export default {
if (this.leftdata.length > 0) {
this.leftdata.splice(this.num, 1);
this.rightdata.push(this.rightobj);
this.isdislob = false;
}
},
//
@ -820,7 +835,6 @@ export default {
//
projectlist().then((res) => {
this.itemTypeId = res.data.items;
});
//
instrumentlist().then((res) => {
@ -898,18 +912,16 @@ export default {
addll() {
this.dialogVisible = true;
this.title = 1;
//
examinationgender().then((res) => {
console.log(res);
console.log(res);
this.forSexId = res.data;
console.log(this.forSexId);
console.log(this.forSexId);
});
//
projectlist().then((res) => {
this.itemTypeId = res.data;
});
//
instrumentlist().then((res) => {
@ -923,12 +935,12 @@ export default {
rowick(row) {
asbitemgetid(row.id).then((res) => {
this.form = res.data;
});
getapi(
`/api/app/asbitem-detail/asbitem-detail-in-item?AsbitemId=${row.id}`
).then((res) => {
console.log(res,'右侧');
this.rightdata = res.data;
console.log(res, "右侧");
let dq = res.data;
if (dq.length > 0) {
this.rightdata = [];

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

@ -379,7 +379,7 @@ export default {
console.log(this.rightdata);
let sdate = [];
this.rightdata.forEach((element) => {
let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
let sss = { medicalPackageId: sampleGroupId, asbitemId: element.id };
sdate.push(sss);
});
this.leftdata.forEach((element) => {
@ -427,6 +427,7 @@ export default {
//
addobj() {
if (this.leftdata.length > 0) {
this.isdislob = false;
this.leftdata.splice(this.num, 1);
this.rightdata.push(this.rightobj);
}
@ -632,7 +633,9 @@ export default {
`/api/app/medical-package-detail/medical-package-in-asbitem?MedicalPackageId=${val.id}`
).then((res) => {
console.log(res);
this.rightdata = res.data;
let dq = res.data;
if (dq.length > 0) {
this.rightdata = [];
dq.forEach((element) => {

Loading…
Cancel
Save