pengjun 2 years ago
parent
commit
b0f4592025
  1. 2
      package-lock.json
  2. 30
      src/components/unitGrouping/unitGroupCategory.vue
  3. 1
      src/store/index.js
  4. 2
      src/views/Home.vue
  5. 36
      src/views/fee-settings/Asbitem.vue
  6. 1
      src/views/fee-settings/Item.vue
  7. 2
      src/views/fee-settings/MedicalPackage.vue

2
package-lock.json

@ -4255,7 +4255,7 @@
},
"node_modules/crypto-js": {
"version": "4.1.1",
"resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
},
"node_modules/css-declaration-sorter": {

30
src/components/unitGrouping/unitGroupCategory.vue

@ -70,7 +70,15 @@
prop="displayName"
></el-table-column>
<el-table-column label="价格" prop="price"></el-table-column>
<el-table-column label="价格" prop="price">
<template slot-scope="scope">
<input
type="text"
v-model="scope.row.price"
@blur="inputchang(scope.row)"
/>
</template>
</el-table-column>
</el-table>
</div>
<div class="operatebottom">
@ -136,7 +144,6 @@
</div>
</template>
<script>
import { getapi, postapi } from "@/api/api";
import { mapState } from "vuex";
export default {
@ -156,6 +163,7 @@ export default {
temporaryselection: [], //table
copegroupdata: [], //
addrulst: [], //Id
price: "", //
};
},
computed: {
@ -166,6 +174,10 @@ export default {
this.getportfolioitems();
},
methods: {
inputchang(v) {
this.price = v.price;
console.log(this.price);
},
//
Onsubmit() {
if (!this.personnelUnit.customerOrgGroupId) {
@ -195,6 +207,10 @@ export default {
},
//
addselecteditems() {
console.log(this.personnelUnit.id);
if (this.personnelUnit.form.id == "") {
alert("请先选择单位类别");
} else {
//personnelUnit.nogroupselected
if (this.rightselctedata.length == 0) {
this.$message.warning("已选数据为空无法移动");
@ -208,7 +224,6 @@ export default {
) {
this.tabledata.push(this.rightselctedata[i]);
this.personnelUnit.nogroupselected.splice(i, 1);
}
// this.tabledata.push(this.rightselctedata[i]);
}
@ -221,6 +236,7 @@ export default {
});
});
}
}
},
//
selecteditems(val) {
@ -230,6 +246,9 @@ export default {
},
//
removedata() {
if (this.personnelUnit.form.id == "") {
alert("请先选择单位分组");
} else {
if (this.unselecteddata.length == 0) {
this.$message.warning("未选数据为空无法移动");
} else {
@ -243,11 +262,13 @@ export default {
this.personnelUnit.nogroupselected.push(this.unselecteddata[i]);
}
}
console.log(this.price);
this.unselecteddata.forEach((item) => {
this.price=item.price
this.addrulst.push({
asbitemId: item.id,
price: item.price,
// price: this.price,
customerOrgGroupId: this.personnelUnit.customerOrgGroupId,
});
});
@ -260,6 +281,7 @@ export default {
// this.selecteddata.push(this.unselecteddata[i]);
// }
}
}
},
//
handleSelectionChange(val) {

1
src/store/index.js

@ -20,6 +20,7 @@ export default new Vuex.Store({
contactMethodList: [], //联系方式列表
},
//体检单位分组
personnelUnit: {
customerOrgGroupId: '',
personnelgrouping: [], //人员分组

2
src/views/Home.vue

@ -1,6 +1,6 @@
<template>
<div>
<el-container>
<el-container style="background:">
<el-header style="background-color: #ccc; line-height: 50px">
<div class="navs">
<div class="maintitle">神豚医疗信息系统</div>

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

@ -76,9 +76,9 @@
<el-select v-model="form.forSexId" placeholder="请选择">
<el-option
v-for="item in forSexId"
:key="item.sexId"
:key="item.id"
:label="item.displayName"
:value="item.sexId"
:value="item.id"
>
</el-option>
</el-select>
@ -608,17 +608,19 @@ export default {
methods: {
Onsubmit() {
let sampleGroupId = this.form.id;
console.log(this.form.id);
console.log(this.rightdata);
console.log(sampleGroupId);
let sdate = [];
console.log(this.rightdata,'2222');
this.rightdata.forEach((element) => {
let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
sdate.push(sss);
});
this.leftdata.forEach((element) => {
let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
console.log('项目元素id',element.id);
console.log('组合项目id',sampleGroupId);
let sss = { itemId: element.id, asbitemId: sampleGroupId };
sdate.push(sss);
});
// this.leftdata.forEach((element) => {
// let sss = { sampleGroupId: sampleGroupId, asbitemId: element.id };
// sdate.push(sss);
// });
console.log(sdate);
if (sampleGroupId == undefined) {
this.$message.warning("请选择列表");
@ -715,7 +717,8 @@ export default {
//
ischangs(v) {
console.log(v);
getapi(`/api/app/diagnosis/in-item-type/${v}`).then((res) => {
//`/api/app/diagnosis/in-item-type/${v}`
getapi(`/api/app/asbitem/in-item-type/${v}`).then((res) => {
console.log(res);
this.leftdata = res.data;
});
@ -817,6 +820,7 @@ export default {
//
projectlist().then((res) => {
this.itemTypeId = res.data.items;
});
//
instrumentlist().then((res) => {
@ -894,13 +898,18 @@ export default {
addll() {
this.dialogVisible = true;
this.title = 1;
//
examinationgender().then((res) => {
console.log(res);
this.forSexId = res.data;
console.log(this.forSexId);
});
//
projectlist().then((res) => {
this.itemTypeId = res.data.items;
this.itemTypeId = res.data;
});
//
instrumentlist().then((res) => {
@ -914,11 +923,12 @@ export default {
rowick(row) {
asbitemgetid(row.id).then((res) => {
this.form = res.data;
});
getapi(
`/api/app/item-template-detail/item-template-in-item?ItemTemplateId=${row.id}`
`/api/app/asbitem-detail/asbitem-detail-in-item?AsbitemId=${row.id}`
).then((res) => {
console.log(res);
console.log(res,'右侧');
let dq = res.data;
if (dq.length > 0) {
this.rightdata = [];

1
src/views/fee-settings/Item.vue

@ -1578,6 +1578,7 @@ export default {
},
//
add() {
this.form.price = Number(this.form.price);
this.title = 1;
this.dialogVisible = true;

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

@ -606,7 +606,7 @@ export default {
if (v) {
if (this.title == 1) {
this.form.price = Number(this.form.price);
postapi("/api/app/item-template", this.form).then((res) => {
postapi("/api/app/medical-package", this.form).then((res) => {
this.$message.success("新增成功");
this.getlist();
this.dialogVisible = false;

Loading…
Cancel
Save