haoxuan
2023-10-18 5948315e24e88cf5b87c0aefb12c51c886da7601
src/views/productManage/product/AddProductDialog.vue
@@ -39,7 +39,9 @@
          <FormBtnsView
            :add-product="addProduct"
            @inOutBoundClick="inOutBoundClick"
            @inLibraryClick="inLibraryClick"
            :show-procure="showProcure"
            :countObject="statisticsMap"
            :show-sale="showSale"
          />
          <div class="bottom">
@@ -524,7 +526,10 @@
        { name: "辅料", id: "辅料" },
        { name: "耗材", id: "耗材" },
        { name: "其他", id: "其他" }
      ]
      ],
      statisticsMap: {
        inLibrary: 0 // 在库
      }
    }
  },
  created() {
@@ -532,6 +537,7 @@
    this.getProductList()
    this.setTableForm()
    this.setBottonView()
    this.statisticsMap.inLibrary = this.editConfig?.infomation?.amount ?? 0
  },
  methods: {
    // 获取产品类别
@@ -724,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 === "采购") {