Explorar el Código

平台协议结算记录详情跳转

祁鹏飞 hace 3 meses
padre
commit
63e5cb1ce0
Se han modificado 1 ficheros con 12 adiciones y 19 borrados
  1. 12 19
      src/views/platform/platformReport.vue

+ 12 - 19
src/views/platform/platformReport.vue

@@ -206,20 +206,11 @@ const handleClick = (e) => {
       initData2()
       break;
     case '3':
-      initData3(['1'])
-      break;
-    case '4':
-      initData3(['3'])
+      initData3()
       break;
   }
 }
-if(route.query.activeName){
-  activeName.value = route.query.activeName as string
-  recordForm2.value.settlementId = route.query.settlementId as string
-}
-else{
-  activeName.value = '1'
-}
+
 // 保险公司
 let companyList = ref([])
 const initCompany = () => {
@@ -318,18 +309,14 @@ const initData2 = () => {
     }
   })
 }
-const initData3 = (invoiceTypes) => {
+const initData3 = () => {
   api.settlementApi.superviseSettlementDetailExcel({
-    invoiceId: recordForm2.invoiceId,
-    companyId: recordForm2.companyId,
-    invoiceParty: recordForm2.invoiceParty,
-    settlementPerson: recordForm2.settlementPerson,
-    status: recordForm2.status,
+    ...recordForm2.value,
     settlementTimeStart: recordForm2.value.settlementTime?.[0],
     settlementTimeEnd: recordForm2.value.settlementTime?.[1],
     pages: pages.value,
     size: size.value,
-    invoiceTypes: invoiceTypes,
+    invoiceTypes: '5,6',
     agreementType: '1'
   }).then((res: any) => {
     if (res.code == 200) {
@@ -431,7 +418,13 @@ const initOption = () => {
 }
 
 onMounted(() => {
-  initData1();
+  if (route.query.activeName === '3') {
+    recordForm2.value.settlementId = route.query.settlementId
+    activeName.value = '3'
+    initData2();
+  } else {
+    initData1();
+  }
   initCompany();
   initOption();
 })