pengjun 2 years ago
parent
commit
75aaf295bb
  1. 4
      src/components/patientRegister/customerOrgTreeAll.vue
  2. 8
      src/store/index.js
  3. 4
      src/views/customerOrg/patientRegister.vue

4
src/components/patientRegister/customerOrgTree.vue → src/components/patientRegister/customerOrgTreeAll.vue

@ -13,7 +13,7 @@ export default {
},
//<el-tree :data="$store.state.customerOrg.customerOrgTree" :props="$store.state.customerOrg.treeprops" @node-click="treeclick"></el-tree>
computed:{
...mapState(['customerOrg']),
...mapState(['patientRegister']),
},
//
created() {},
@ -47,7 +47,7 @@ export default {
(res) => {
//customerOrgTree = res.data;
console.log('res.data',res.data)
this.setData({ key: 'patientRegister.customerOrgTree', value: res.data})
this.patientRegister.customerOrgTree =[{displayName: "个人体检", id: "00000000-0000-0000-0000-000000000000"},...res.data]
tcdate(this.customerOrg.customerOrgTree)
}
);

8
src/store/index.js

@ -19,7 +19,15 @@ export default new Vuex.Store({
contactPersonList:[], //联系人列表
contactMethodList:[], //联系方式列表
personnelgrouping:[], //人员分组
},
patientRegister:{//人员登记
customerOrgTreeAll: [], //体检单位列表(含个人)
patientRegisterId:'', //当前单位ID(可根据此值是否为空,判断是新增还是编辑)
query:{},//查询条件
}
},
getters: {},

4
src/views/customerOrg/patientRegister.vue

@ -5,7 +5,7 @@
<div style="display: flex">
<!-- 单位树组件 -->
<div style="width: 15%; border:1px solid;">
<CustomerOrgTree/>
<CustomerOrgTreeAll/>
</div>
<div style="width: 85%">
<!-- 单位详情 录入与编辑 -->
@ -29,7 +29,7 @@
</template>
<script>
import CustomerOrgTree from '../../components/patientRegister/customerOrgTree.vue'
import CustomerOrgTreeAll from '../../components/patientRegister/customerOrgTreeAll.vue'
import CustomerOrgEdit from '../../components/patientRegister/customerOrgEdit.vue'
import CustomerOrgRegister from '../../components/patientRegister/customerOrgRegister.vue'
import ContactPerson from '../../components/patientRegister/ContactPerson.vue'

Loading…
Cancel
Save