| | |
| | | <FormBtnsView |
| | | :add-product="addProduct" |
| | | @inOutBoundClick="inOutBoundClick" |
| | | @inLibraryClick="inLibraryClick" |
| | | :show-procure="showProcure" |
| | | :countObject="statisticsMap" |
| | | :show-sale="showSale" |
| | | /> |
| | | <div class="bottom"> |
| | |
| | | { name: "辅料", id: "辅料" }, |
| | | { name: "耗材", id: "耗材" }, |
| | | { name: "其他", id: "其他" } |
| | | ] |
| | | ], |
| | | statisticsMap: { |
| | | inLibrary: 0 // 在库 |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.getProductList() |
| | | this.setTableForm() |
| | | this.setBottonView() |
| | | this.statisticsMap.inLibrary = this.editConfig?.infomation?.amount ?? 0 |
| | | }, |
| | | methods: { |
| | | // 获取产品类别 |
| | |
| | | }) |
| | | } |
| | | }, |
| | | // 在库点击 |
| | | inLibraryClick(){ |
| | | if (this.editConfig.title !== "新建") { |
| | | console.log(this.editConfig.infomation) |
| | | this.$router.push({ |
| | | name: "inventoryReport", |
| | | params: { |
| | | name: this.editConfig.infomation.name, |
| | | id: this.editConfig.infomation.id |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | // 可销售/可采购 |
| | | checkboxChange(val, param) { |
| | | if (val === "采购") { |