bonus-ui/src/views/material/repair/testedInBound/index.vue

69 lines
1.5 KiB
Vue
Raw Normal View History

2024-11-22 10:18:37 +08:00
<template>
2024-12-12 18:21:08 +08:00
<!-- 修试入库 -->
2024-11-22 10:18:37 +08:00
<div class="app-container">
2024-12-12 18:21:08 +08:00
<PageHeaderApply
v-if="isShowComponent != 'Home'"
:pageContent="pageContent"
@goBack="goBack"
/>
<component
:is="isShowComponent"
:isEdit="isEdit"
:isView="isView"
:queryId="queryId"
:param="param"
@editApply="editApply"
@queryApply="queryApply"
2024-11-22 10:18:37 +08:00
/>
</div>
2024-12-12 18:21:08 +08:00
</template>
<script>
import PageHeaderApply from "@/components/pageHeaderApply";
import Home from "./component/home.vue"; // 主列表
import EditApply from "./component/editApply.vue"; // 新增 和 修改
import QueryApply from "./component/queryApply.vue"; // 查看
2024-11-22 10:18:37 +08:00
export default {
2024-12-12 18:21:08 +08:00
components: {
Home,
PageHeaderApply,
EditApply,
QueryApply,
},
2024-11-22 10:18:37 +08:00
data() {
return {
2024-12-12 18:21:08 +08:00
isShowComponent: "Home",
pageContent: "",
isEdit: false,
editId: "",
queryId: "",
param: {},
isView: false,
2024-11-22 10:18:37 +08:00
};
},
2024-12-12 18:21:08 +08:00
methods: {
/* 编辑 */
editApply(id,row) {
this.isEdit = true;
this.pageContent = "入库明细";
this.queryId = id;
this.param = row;
this.isShowComponent = "EditApply";
},
/* 查询 */
queryApply(id, row) {
this.isView = true;
this.pageContent = "详情信息";
this.queryId = id;
this.param = row;
this.isShowComponent = "QueryApply";
},
/* 返回按钮 */
goBack() {
this.isShowComponent = "Home";
2024-11-22 10:18:37 +08:00
},
},
};
</script>