feat: 产品详情页,在库数量跳转到库存报表中,并且把商品带过去
| | |
| | | <div class="right-label">额外的价格</div> |
| | | </div> |
| | | </div> --> |
| | | <div v-if="!showProduct && !showWarehouse && !showPosition && !addProduct" class="sub-number left_border no-cursor"> |
| | | <div v-if="!showProduct && !showWarehouse && !showPosition && !addProduct" |
| | | class="sub-number left_border cursor_pointer" |
| | | @click="inLibraryClick()" |
| | | > |
| | | <div class="left"><i class="el-icon-present"></i></div> |
| | | <div class="right"> |
| | | <div class="right-label">{{ (countObject?.inLibrary ?? 0) + "件" }}</div> |
| | |
| | | // 产品 |
| | | productClick() { |
| | | this.$emit("productClick") |
| | | }, |
| | | // 在库 |
| | | inLibraryClick(){ |
| | | this.$emit("inLibraryClick") |
| | | } |
| | | } |
| | | } |
| | |
| | | <FormBtnsView |
| | | :add-product="addProduct" |
| | | @inOutBoundClick="inOutBoundClick" |
| | | @inLibraryClick="inLibraryClick" |
| | | :show-procure="showProcure" |
| | | :countObject="statisticsMap" |
| | | :show-sale="showSale" |
| | |
| | | }) |
| | | } |
| | | }, |
| | | // 在库点击 |
| | | 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 === "采购") { |
| | |
| | | async getData() { |
| | | let params = { |
| | | categoryIds: this.categoryListId, |
| | | keyWord:this.productName, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | warehouseCode: this.warehouseListName |