yangfeng
2023-10-18 a11d38dff8d7beca6d33251557b7e370c155faf1
src/views/reportForm/inventoryReport/index.vue
@@ -3,8 +3,9 @@
  <div class="rightContent">
    <div class="top">
      <SearchCommonView
        :showAdd="false"
        :add-title="'新建'"
        :placeholder="'请输入参考'"
        :placeholder="''"
        :amount-view="false"
        @addCommonClick="addBtnClick"
        @searchClick="getList"
@@ -143,7 +144,8 @@
      warehouseListName: "", // 仓库名称
      stashRadio: "1",
      pageSizes: [15, 30],
      oldRadioBtn: ""
      oldRadioBtn: "",
      metaTitle: this.$route.meta.title
    }
  },
  created() {
@@ -159,12 +161,10 @@
    checkListHandler(e) {
      this.categoryListId = e
      this.getData()
      console.log(this.categoryListId, e, " 选中的产品id")
    },
    radioHandleChange(e) {
      this.warehouseListName = e
      this.getData()
      console.log(e, "单选")
    },
    setTable() {
      if (this.isIconIndex === "1") {
@@ -173,7 +173,8 @@
      }
      this.tableList = {
        tableInfomation: [],
        selectBox: true,
        selectBox: false,
        selectIndex: true,
        showcol: this.showcol,
        countcol: this.countcol,
        allcol: [],
@@ -288,9 +289,15 @@
    },
    // 历史
    handleHistoryClick(row) {
      console.log(row)
      this.$router.push("/operate/allot")
      this.$router.push({
        name: "inboundOutboundDetail",
        params: {
          id: row.produceId,
          name: "报表"
        }
      })
    },
    // 补货
    handleAddGoods(row) {
      console.log(row)
@@ -317,7 +324,6 @@
          unit: item.unit //单位
        }
        this.testArr.push(obj)
        console.log(this.testArr, "this")
      })
    },
@@ -326,13 +332,13 @@
    async getData() {
      let params = {
        categoryIds: this.categoryListId,
        keyWord:this.productName,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize,
        warehouseCode: this.warehouseListName
      }
      await getInventoryData(params).then((res) => {
        if (res.code === 200) {
          console.log(res.data, "接口请求成功")
          const list = res.data
          this.tableList.tableInfomation = list || []
          this.pagerOptions.totalCount = res.total
@@ -360,7 +366,6 @@
      }).then((res) => {
        if (res.data.code === 200) {
          this.warehouseList = res.data.data
          console.log(this.warehouseList, "warehouseList")
        }
      })
    }