Browse Source

弃检登记

master
mch 3 years ago
parent
commit
52a09f01f7
  1. 8
      src/components/unitGrouping/unitGroupingTable.vue
  2. 3
      src/store/index.js
  3. 18
      src/views/customerOrg/customerOrgGroup.vue
  4. 1673
      src/views/customerOrg/patientRegisterRefuse.vue

8
src/components/unitGrouping/unitGroupingTable.vue

@ -25,6 +25,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from "vuex";
export default { export default {
data() { data() {
return { return {
@ -48,5 +49,12 @@ export default {
], ],
}; };
}, },
computed: {
...mapGetters(["customerOrg"]),
},
mounted() {
console.log(customerOrg.personnelgrouping);
},
methods: {},
}; };
</script> </script>

3
src/store/index.js

@ -17,7 +17,8 @@ export default new Vuex.Store({
customerOrgRd:{displayName:'单位名称',englishShortName:'简称'}, //单个体检单位记录值 customerOrgRd:{displayName:'单位名称',englishShortName:'简称'}, //单个体检单位记录值
customerOrgRegisterList: [], //单位体检次数登记列表 customerOrgRegisterList: [], //单位体检次数登记列表
contactPersonList:[], //联系人列表 contactPersonList:[], //联系人列表
contactMethodList:[] //联系方式列表
contactMethodList:[], //联系方式列表
personnelgrouping:[], //人员分组
} }
}, },
getters: {}, getters: {},

18
src/views/customerOrg/customerOrgGroup.vue

@ -7,6 +7,7 @@
v-model="value" v-model="value"
placeholder="请选择" placeholder="请选择"
style="margin-left: 20px" style="margin-left: 20px"
@change="secltchang"
> >
<el-option <el-option
v-for="item in options" v-for="item in options"
@ -27,6 +28,7 @@
<script> <script>
import CustomerOrgTree from "../../components/unitGrouping/unitGroupingTable.vue"; import CustomerOrgTree from "../../components/unitGrouping/unitGroupingTable.vue";
import UnitGroupCategory from "../../components/unitGrouping/unitGroupCategory.vue"; import UnitGroupCategory from "../../components/unitGrouping/unitGroupCategory.vue";
import {mapState} from 'vuex'
import { getapi } from "@/api/api"; import { getapi } from "@/api/api";
export default { export default {
components: { components: {
@ -39,12 +41,26 @@ export default {
value: "", value: "",
}; };
}, },
computed:{
...mapState['customerOrg']
},
created() { created() {
this.getitemtype(); this.getitemtype();
}, },
methods: { methods: {
secltchang(v) {
//let that=this
console.log(this.customerOrg);
getapi(`/api/app/customer-org-group/in-customer-org-id/${v}`).then(res=>{
// this.customerOrg.personnelgrouping=res.data
// console.log(res.data);
// console.log(that.customerOrg.personnelgrouping);
})
console.log(v);
},
//
getitemtype() { getitemtype() {
getapi("/api/app/item-type/by-code-all").then((res) => {
getapi("/api/app/customer-org/parent-all").then((res) => {
this.options = res.data; this.options = res.data;
}); });
}, },

1673
src/views/customerOrg/patientRegisterRefuse.vue
File diff suppressed because it is too large
View File

Loading…
Cancel
Save