You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
udiwms-vue-frame/src/views/collect/CollectOrderAllot.vue

70 lines
1.5 KiB
Vue

<template>
<div>
<el-tabs type="border-card" style="margin: 15px">
<el-tab-pane label="待处理单据">
<CollectOrderAllotCardComponents style="margin: -15px"
:tagStatus="'1'"
:workPlaceCode="workPlaceCode"
@parent-method="parentMethod"
></CollectOrderAllotCardComponents>
</el-tab-pane>
<el-tab-pane label="未分配工位单据">
<CollectOrderAllotComponents
style="margin: -15px"
:tagStatus="'0'"
:viewType="1"
:workPlaceCode="workPlaceCode"
></CollectOrderAllotComponents>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import CollectOrderAllotComponents from "./CollectOrderAllotComponents.vue";
import CollectOrderAllotCardComponents from "./CollectOrderAllotCardComponents.vue";
/**
* 已完成处方
*/
export default {
name: "PrescribeTagCode",
components: {
CollectOrderAllotComponents,CollectOrderAllotCardComponents
},
data() {
return {
workPlaceCode: null,
}
},
methods: {
parentMethod(data,url) {
// 处理从子组件传来的数据
this.callParentMethod(url)
},
callParentMethod(val) {
window.open(val, '_blank');
},
},
created() {
if (this.$route.query.workplaceId != null){
this.workPlaceCode = Number(this.$route.query.workplaceId);
}
}
}
</script>
<style scoped>
</style>