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

84 lines
2.1 KiB
Vue

8 months ago
<template>
<div>
7 months ago
<CollectOrderAllotCardComponents
:tagStatus="'1'"
:workPlaceCode="workPlaceCode"
@parent-method="parentMethod"
></CollectOrderAllotCardComponents>
7 months ago
<!-- <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>-->
8 months ago
</div>
</template>
<script>
import CollectOrderAllotComponents from "./CollectOrderAllotComponents.vue";
import CollectOrderAllotCardComponents from "./CollectOrderAllotCardComponents.vue";
8 months ago
/**
* 已完成处方
*/
export default {
name: "PrescribeTagCode",
8 months ago
components: {
CollectOrderAllotComponents, CollectOrderAllotCardComponents
},
data() {
return {
workPlaceCode: null,
}
},
7 months ago
methods: {
parentMethod(data, url) {
7 months ago
// 处理从子组件传来的数据
if (this.workPlaceCode == null) {
7 months ago
this.callParentMethod(url)
} else {
7 months ago
this.callParentMethodA(data)
}
},
callParentMethodA(val) {
// 触发自定义事件 'parent-method'
this.$emit('parent-method', val); // someData 是你想要传递给父组件的数据
7 months ago
},
callParentMethod(val) {
window.open(val, '_blank');
},
},
created() {
if (this.$route.query.workplaceId != null) {
this.workPlaceCode = Number(this.$route.query.workplaceId);
}
8 months ago
}
}
</script>
8 months ago
<style scoped>
</style>