Browse Source

bug修改

祁鹏飞 3 months ago
parent
commit
0abef5a7c7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/platform/index.vue

+ 2 - 2
src/views/platform/index.vue

@@ -328,7 +328,7 @@
             <el-button class="radius-2px width-100" type="primary" @click="addShow = true">添加应收</el-button>
           </div>
           <div class="col-108 m-r-8">
-            <el-button class="radius-2px width-100" type="primary">批量结算</el-button>
+            <el-button class="radius-2px width-100" type="primary" @click="batchSettle">批量结算</el-button>
           </div>
           <div class="col-108 m-r-8">
             <el-button class="radius-2px width-100" type="primary" @click="dropdownCommand('删除')">删除</el-button>
@@ -1037,7 +1037,7 @@ const batchSettle = () => {
     return
   }
   api.financeApi.getReceivableCompany({
-    incomeIds: [...selectedList.value]
+    incomeIds: selectedList.value.map((item: any) => item.id)
   }).then((res: any) => {
     if (res.code == 200) {
       options.value = res.data