huminmin
2026-04-24 c3baef217770a17fb2d655ede4747fabd3e57fea
src/views/inventoryManagement/receiptManagement/Record.vue
@@ -147,6 +147,11 @@
    type: String,
    required: true,
    default: '0'
  },
  productId: {
    type: Number,
    required: true,
    default: 0
  }
})
@@ -206,7 +211,7 @@
const getList = () => {
  tableLoading.value = true;
  const params = {...page, type: props.type};
  const params = {...page, topParentProductId: props.productId};
  params.timeStr = searchForm.value.timeStr;
  params.productName = searchForm.value.productName;
  params.recordType = searchForm.value.recordType;
@@ -278,7 +283,7 @@
  })
      .then(() => {
        // 根据不同的 tab 类型调用不同的导出接口
        proxy.download("/stockInRecord/exportStockInRecord", {type: props.type}, props.type === '0' ? "合格入库.xlsx" : "不合格入库.xlsx");
        proxy.download("/stockInRecord/exportStockInRecord", {topParentProductId: props.productId}, "入库信息.xlsx");
      })
      .catch(() => {
        proxy.$modal.msg("已取消");