cz 1 year ago
parent
commit
38c310eec4
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/views/customer/portrait/com/SalesDetails.vue

+ 8 - 3
src/views/customer/portrait/com/SalesDetails.vue

@@ -10,7 +10,7 @@
         :selectConfig="[]"
         :table-events="{}"
         :action-list="[]"
-        @get-list="getList"
+        @get-list="getData"
         :hideSearch="true"
       >
         <template #advanceCharge="{ item }">
@@ -90,10 +90,15 @@ const config = computed(() => {
     },
   ];
 });
-const getData = () => {
+const getData = (req = {}) => {
   loading.value = true;
+  sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   proxy
-    .post("/saleQuotation/saleDetail", { id: props.customerId })
+    .post("/saleQuotation/saleDetail", {
+      id: props.customerId,
+      ...sourceList.value.pagination,
+      ...req,
+    })
     .then((res) => {
       sourceList.value.data = res.rows;
       sourceList.value.pagination.total = res.total;