You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							215 lines
						
					
					
						
							5.6 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							215 lines
						
					
					
						
							5.6 KiB
						
					
					
				
								<template>
							 | 
						|
								  <div>
							 | 
						|
								    <div>
							 | 
						|
								      <div class="middlebox">
							 | 
						|
								        <div class="contenttitle">
							 | 
						|
								          体检登记 /
							 | 
						|
								          <span class="contenttitleBold"
							 | 
						|
								            >体检表回收</span
							 | 
						|
								          >
							 | 
						|
								        </div>
							 | 
						|
								      </div>
							 | 
						|
								      <div style="display: flex;margin-top: 7px;">
							 | 
						|
								        <!-- 单位树组件 -->
							 | 
						|
								        <div :style="'margin-right:15px;background-color: #fff;border-radius: 8px;width:208px; height:' +
							 | 
						|
								          (window.pageHeight < 600 ? 450 : window.pageHeight - 100) +
							 | 
						|
								          'px;'
							 | 
						|
								          ">
							 | 
						|
								          <CustomerOrgTreeAll />
							 | 
						|
								        </div>
							 | 
						|
								        <div :style="'display:block;width:' +
							 | 
						|
								          (window.pageWidth - 200 - 35) +
							 | 
						|
								          'px;height:' +
							 | 
						|
								          (window.pageHeight < 600 ? 450 : window.pageHeight - 150) +
							 | 
						|
								          'px;'">
							 | 
						|
								          <!-- 查询条件  -->
							 | 
						|
								          <PatientRegisterQuery />
							 | 
						|
								
							 | 
						|
								          <!-- 人员列表信息  -->
							 | 
						|
								          <PatientRegisterRecoverList />
							 | 
						|
								
							 | 
						|
								        </div>
							 | 
						|
								      </div>
							 | 
						|
								    </div>
							 | 
						|
								  </div>
							 | 
						|
								</template>
							 | 
						|
								<script>
							 | 
						|
								import { mapState, mapActions } from "vuex";
							 | 
						|
								import { getapi, postapi, putapi, deletapi } from "@/api/api";
							 | 
						|
								import { tcdate } from "../../utlis/proFunc";
							 | 
						|
								import CustomerOrgTreeAll from "../../components/patientRegister/customerOrgTreeAll.vue";
							 | 
						|
								import PatientRegisterQuery from "../../components/patientRegister/patientRegisterQuery.vue";
							 | 
						|
								import PatientRegisterRecoverList from "../../components/patientRegister/PatientRegisterRecoverList.vue";
							 | 
						|
								
							 | 
						|
								export default {
							 | 
						|
								  components: {
							 | 
						|
								    CustomerOrgTreeAll,
							 | 
						|
								    PatientRegisterQuery,
							 | 
						|
								    PatientRegisterRecoverList,
							 | 
						|
								  },
							 | 
						|
								  data() {
							 | 
						|
								    return {
							 | 
						|
								      tabChoosed: "1",
							 | 
						|
								      CustomerOrgTreeStyle: '',
							 | 
						|
								      CustomerOrgRightStyle: '',
							 | 
						|
								    };
							 | 
						|
								  },
							 | 
						|
								
							 | 
						|
								  created() {
							 | 
						|
								    // console.log("this.$route.query", this.$route.query)
							 | 
						|
								    if (this.$route.query.patient_register) {
							 | 
						|
								      this.dataTransOpts.tableS.patient_register = this.$route.query.patient_register
							 | 
						|
								    } else {
							 | 
						|
								      this.dataTransOpts.tableS.patient_register = { id: '', patientRegisterNo: '' }
							 | 
						|
								    }
							 | 
						|
								  },
							 | 
						|
								
							 | 
						|
								  //挂载完成
							 | 
						|
								  mounted() {
							 | 
						|
								    this.dictInit();
							 | 
						|
								  },
							 | 
						|
								
							 | 
						|
								  computed: {
							 | 
						|
								    ...mapState(["window", "dataTransOpts","dict", "patientRegister", "customerOrg"]),
							 | 
						|
								  },
							 | 
						|
								
							 | 
						|
								  methods: {
							 | 
						|
								    ...mapActions(["getCustomerOrgGroup"]),
							 | 
						|
								
							 | 
						|
								    //数据初始化
							 | 
						|
								    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;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //体检类别
							 | 
						|
								      getapi("/api/app/medical-type/in-filter").then((res) => {
							 | 
						|
								        if (res.code == 1) {
							 | 
						|
								          this.dict.medicalType = res.data;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //人员类别
							 | 
						|
								      getapi("/api/app/personnel-type/in-filter").then((res) => {
							 | 
						|
								        if (res.code == 1) {
							 | 
						|
								          this.dict.personnelType = res.data;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //婚姻状况
							 | 
						|
								      getapi("/api/app/MaritalStatus/GetMaritalStatusList").then((res) => {
							 | 
						|
								        if (res.code == 1) {
							 | 
						|
								          this.dict.maritalStatus = res.data;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //性激素期
							 | 
						|
								      getapi("/api/app/sex-hormone-term/in-filter").then((res) => {
							 | 
						|
								        if (res.code == 1) {
							 | 
						|
								          this.dict.sexHormoneTerm = res.data;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //民族
							 | 
						|
								      getapi("/api/app/nation/in-filter").then((res) => {
							 | 
						|
								        if (res.code == 1) {
							 | 
						|
								          // this.dict.nation = res.data.items;
							 | 
						|
								          this.dict.nation = res.data;
							 | 
						|
								          console.log(res, '名族');
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //籍惯 ,出生地
							 | 
						|
								      getapi("/api/app/birth-place/in-filter").then((res) => {
							 | 
						|
								        if (res.code == 1) {
							 | 
						|
								          this.dict.birthPlace = res.data;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //套餐
							 | 
						|
								      postapi("/api/app/medicalpackage/GetBasicList",{}).then((res) => {
							 | 
						|
								        if (res.code == 1) {
							 | 
						|
								          this.dict.medicalPackage = res.data;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //分组,所有分组,不限单位,不限次数
							 | 
						|
								      getapi("/api/app/customerorggroup/getlistinfilter").then((res) => {
							 | 
						|
								        if (res.code > -1) {
							 | 
						|
								          this.dict.customerOrgGroupAll = res.data;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      //支付方式
							 | 
						|
								      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);
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      postapi("/api/app/asbitem/GetBasicList",{isFilterActive:'Y'}).then((res) => {
							 | 
						|
								        if (res.code == 1) {
							 | 
						|
								          this.dict.asbItemAll = res.data;
							 | 
						|
								        }
							 | 
						|
								      });
							 | 
						|
								
							 | 
						|
								      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>
							 | 
						|
								@import '../../assets/css/global_card.css';
							 | 
						|
								
							 | 
						|
								</style>
							 |