yangfeng
2023-09-27 482c8fcf03bfbeddc843e4ea7fbb53c74485e2e5
src/views/reportForm/inboundOutboundDetail/index.vue
@@ -52,12 +52,22 @@
        title: "新建",
        infomation: {}
      },
      productId: this.$route.params.id,
      productName: this.$route.params.name
      params: {}
    }
  },
  created() {
    this.setTable()
    console.log(this.$route.params)
    var paramsData = sessionStorage.getItem("paramsList")
    let params = {}
    if (paramsData) {
      params = JSON.parse(sessionStorage.getItem("paramsList"))
    } else {
      params = this.$route.params
      sessionStorage.setItem("paramsList", JSON.stringify(params))
    }
    this.params = params
    console.log(this.params)
    this.getData()
  },
  methods: {
@@ -149,7 +159,7 @@
    // 请求数据
    async getData() {
      await getProductOperatonList({
        productId: this.productId,
        productId: this.params.id,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
@@ -159,7 +169,7 @@
              ...item,
              from: item.fromLocation.name,
              to: item.toLocation.name,
              productName: this.productName
              productName: this.params.name
            }
          })
          this.tableList.tableInfomation = list || []