| | |
| | | <el-tab-pane label="耗材总览" name="first" :lazy="true"> |
| | | <ConsumableOverview v-if="activeName == 'first'" :contentsId="contentsId"></ConsumableOverview> |
| | | </el-tab-pane> |
| | | <!-- <el-tab-pane label="耗材列表" name="second" :lazy="true">--> |
| | | <!-- <ConsumableList v-if="activeName == 'second'" :contentsId="contentsId"></ConsumableList>--> |
| | | <!-- </el-tab-pane>--> |
| | | <!-- <el-tab-pane label="耗材入库" name="third" :lazy="true">--> |
| | | <!-- <Store v-if="activeName == 'third'" :contentsId="contentsId"></Store>--> |
| | | <!-- </el-tab-pane>--> |
| | | <!-- <el-tab-pane label="目录维护" name="fourth" :lazy="true">--> |
| | | <!-- <Contents--> |
| | | <!-- v-if="activeName == 'fourth'"--> |
| | | <!-- :id="contentsId"--> |
| | | <!-- @contentsUpdate="contentsUpdate"--> |
| | | <!-- :treeData="treeData"--> |
| | | <!-- from="耗材树"--> |
| | | <!-- ></Contents>--> |
| | | <!-- </el-tab-pane>--> |
| | | <el-tab-pane label="耗材列表" name="second" :lazy="true"> |
| | | <ConsumableList v-if="activeName == 'second'" :contentsId="contentsId"></ConsumableList> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="耗材入库" name="third" :lazy="true"> |
| | | <Store v-if="activeName == 'third'" :contentsId="contentsId"></Store> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="目录维护" name="fourth" :lazy="true"> |
| | | <Contents |
| | | v-if="activeName == 'fourth'" |
| | | :id="contentsId" |
| | | @contentsUpdate="contentsUpdate" |
| | | :treeData="treeData" |
| | | from="耗材树" |
| | | ></Contents> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | // import Contents from "@/components/do/a6.service-and-supply-purchase/contents.vue"; |
| | | // import Store from "@/components/do/a6.service-and-supply-purchase/store.vue"; |
| | | import ConsumableOverview from "../serviceAndSupplyPro/component/ConsumableOverview.vue"; |
| | | // import ConsumableList from "@/components/do/a6.service-and-supply-purchase/ConsumableList.vue" |
| | | import Contents from "./component/contents.vue"; |
| | | import Store from "./component/Store.vue"; |
| | | import ConsumableOverview from "./component/ConsumableOverview.vue"; |
| | | import ConsumableList from "./component/ConsumableList.vue" |
| | | import { |
| | | directoryListing |
| | | } from '@/api/cnas/externalService/serviceAndSupplyPro/serviceAndSupplyPro' |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | }; |
| | | }, |
| | | components: { |
| | | // Contents, |
| | | // Store, |
| | | ConsumableOverview |
| | | // ConsumableList |
| | | Contents, |
| | | Store, |
| | | ConsumableOverview, |
| | | ConsumableList |
| | | }, |
| | | watch: { |
| | | contentsId(newVal, oldVal) { |
| | |
| | | }, |
| | | // 查询所有目录 |
| | | getTreeData() { |
| | | this.$axios |
| | | .get(this.$api.procurementSuppliesContents.directoryListing) |
| | | .then((res) => { |
| | | directoryListing().then((res) => { |
| | | this.treeData = res.data; |
| | | }); |
| | | }, |