|
|
<template> <div style="display: flex;"> <table width="100%"> <tr> <td colspan="2" width="90%"> <PatientRegisterBase/> </td> <td rowspan="4" width="10%"> <ButtonList/> </td> </tr> <tr> <td rowspan="3" width="15%" > <RegisterCheckList/> </td> <td width="75%"> <CheckItemList/> </td> </tr> <tr> <td width="75%"> <CheckSumSug/> </td> </tr> <tr> <td width="75%"> <RegisterCheckEdit/> </td> </tr> </table> </div> </template><script>import { mapState } from "vuex";import { getapi, postapi, putapi, deletapi } from "@/api/api";import { tcdate } from "../../utlis/proFunc";
import PatientRegisterBase from "../../components/doctorCheck/PatientRegisterBase.vue";import ButtonList from "../../components/doctorCheck/ButtonList.vue";import RegisterCheckList from "../../components/doctorCheck/RegisterCheckList.vue";import CheckItemList from "../../components/doctorCheck/CheckItemList.vue";import CheckSumSug from "../../components/doctorCheck/CheckSumSug.vue";import RegisterCheckEdit from "../../components/doctorCheck/RegisterCheckEdit.vue";
export default { components: { RegisterCheckList, PatientRegisterBase, ButtonList, CheckItemList, CheckSumSug, RegisterCheckEdit }, data() { return { }; },
created() {},
//挂载完成
mounted() { this.dictInit(); },
computed: { ...mapState(["dict", "patientRegister", "customerOrg"]), },
methods: { //数据初始化
dictInit() { //性别(仅档案用)
getapi("/api/app/sex").then((res) => { if (res.code == 1) { this.dict.sex = res.data; } });
//性别(查询)
getapi("/api/app/for-sex").then((res) => { if (res.code == 1) { this.dict.forSex = res.data; } });
//体检中心
getapi("/api/app/organization-units/organization-unit-by-is-peis").then( (res) => { if (res.code == 1) { this.dict.organization = res.data; } } );
//体检单位
getapi("/api/app/customer-org/in-filter").then((res) => { if (res.code == 1) { this.dict.customerOrg = res.data.items; } });
//体检类别
getapi("/api/app/medical-type/in-filter").then((res) => { if (res.code == 1) { this.dict.medicalType = res.data.items; } });
//人员类别
getapi("/api/app/personnel-type/in-filter").then((res) => { if (res.code == 1) { this.dict.personnelType = res.data.items; } });
//婚姻状况
getapi("/api/app/marital-statuses").then((res) => { if (res.code == 1) { this.dict.maritalStatus = res.data.items; } });
//性激素期
getapi("/api/app/sex-hormone-term/in-filter").then((res) => { if (res.code == 1) { this.dict.sexHormoneTerm = res.data.items; } });
//民族
getapi("/api/app/nation/in-filter").then((res) => { if (res.code == 1) { this.dict.nation = res.data.items; } });
//籍惯 ,出生地
getapi("/api/app/birth-place/in-filter").then((res) => { if (res.code == 1) { this.dict.birthPlace = res.data.items; } });
//套餐
getapi("/api/app/medical-package/in-filter").then((res) => { if (res.code == 1) { this.dict.medicalPackage = res.data.items; } });
//分组,所有分组,不限单位,不限次数
getapi("/api/app/customer-org-group").then((res) => { if (res.code == 1) { this.dict.customerOrgGroupAll = res.data.items; } });
//支付方式
getapi("/api/app/pay-mode").then((res) => { if (res.code == 1) { this.dict.payMode = res.data; } });
//体检类别 树结构
getapi("/api/app/item-type/by-code-all").then((res) => { if (res.code == 1) { this.dict.itemTypeTree = res.data; tcdate(this.dict.itemTypeTree); } });
//所有组合项目
getapi("/api/app/asbitem/in-filter?Filter").then((res) => { if (res.code == 1) { this.dict.asbItemAll = res.data.items; } });
//获取体检单位列表树信息
getapi("/api/app/customer-org/by-code-all").then((res) => { //customerOrgTree = res.data;
console.log("res.data", res.data); this.patientRegister.customerOrgTreeAll = res.data; tcdate(this.patientRegister.customerOrgTreeAll) });
console.log("dict", this.dict); }, },
//监听事件()
watch: { // //1级单位值改变,分组改变
// "patientRegister.query.CustomerOrgParentId"(newVal, oldVal) {
// console.log(
// "watch patientRegister.query.CustomerOrgParentId newVal:",
// newVal,
// " oldVal:",
// oldVal
// );
// if (newVal != oldVal && newVal !== this.dict.personOrgId) {
// this.getCustomerOrgGroup(newVal);
// }
// },
},};</script><style scoped>.box { display: flex;}</style>
|