Browse Source

fix: 费用明细账单id参数

lyc 1 day ago
parent
commit
7a9a631cf1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/composables/userMoneySumDetail/userMoneySumDetail.ts

+ 2 - 1
src/composables/userMoneySumDetail/userMoneySumDetail.ts

@@ -312,7 +312,8 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
     // 初始化列表、分页数据
     const { sizeChange, currentChange, searchBtn, resetBtn, listParams } = useQueryList<UserMoneyDetailParam>(initList, resetParams, queryUserMoneySumDetailForm)
     const exportBillBtn = async () => {
-        const params = await flatDate()
+        const paramsData = await flatDate()
+        const params = { ...paramsData, customerBillId: dealData.customerBillId }
         // 判断时间类型为收货时间且客户账单id为空提示
         if (params.reportQueryDateType === 1 && !dealData.customerBillId) {
             createMessage.warning('按收货日期导出费用,请从相应账单跳转!')