songshankun
2023-10-18 dfcf1c54fe3cbfcd237f2baab8b4997225a232d3
feat:  产品详情页,在库数量跳转到库存报表中,并且把商品带过去
3个文件已修改
24 ■■■■■ 已修改文件
src/components/makepager/FormBtnsView.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/product/AddProductDialog.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportForm/inventoryReport/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/FormBtnsView.vue
@@ -7,7 +7,10 @@
        <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>
@@ -146,6 +149,10 @@
    // 产品
    productClick() {
      this.$emit("productClick")
    },
    // 在库
    inLibraryClick(){
      this.$emit("inLibraryClick")
    }
  }
}
src/views/productManage/product/AddProductDialog.vue
@@ -39,6 +39,7 @@
          <FormBtnsView
            :add-product="addProduct"
            @inOutBoundClick="inOutBoundClick"
            @inLibraryClick="inLibraryClick"
            :show-procure="showProcure"
            :countObject="statisticsMap"
            :show-sale="showSale"
@@ -729,6 +730,19 @@
        })
      }
    },
    // 在库点击
    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 === "采购") {
src/views/reportForm/inventoryReport/index.vue
@@ -332,6 +332,7 @@
    async getData() {
      let params = {
        categoryIds: this.categoryListId,
        keyWord:this.productName,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize,
        warehouseCode: this.warehouseListName