zuozhengqing
2023-10-23 58e803fffe35d5ac39599d5ad6b3359e374b1808
库存调整-历史路由跳转添加字段
2个文件已修改
7 ■■■■ 已修改文件
src/views/operate/inventoryAdjustment/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/inventoryAdjustment/inventoryAdjustmentHistory.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/inventoryAdjustment/index.vue
@@ -243,7 +243,7 @@
        console.log("历史")
        this.$router.push({
          name: "inventoryAdjustmentHistory",
          params: { locationId: row.locationId, productId: row.productId }
          params: { locationId: row.locationId, productId: row.productId,baseOperationType:row.baseOperationType}
        })
      }
    },
src/views/operate/inventoryAdjustment/inventoryAdjustmentHistory.vue
@@ -31,13 +31,15 @@
      searchOptions: [],
      keyword: "",
      locationId: 0,
      productId: ""
      productId: "",
      baseOperationType:""
    }
  },
  created() {
    this.setTable()
    this.locationId = this.$route.params.locationId
    this.productId = this.$route.params.productId
    this.baseOperationType=this.$route.params.baseOperationType
    this.getData()
  },
  methods: {
@@ -129,6 +131,7 @@
    // 请求数据
    async getData() {
      await historyInventoryAdjustment({
        baseOperationType:this.baseOperationType,
        locationId: this.locationId,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize,