Sfoglia il codice sorgente

平台应收批量结算对接人下拉数据

@dongkboy 1 mese fa
parent
commit
fb19e93266
2 ha cambiato i file con 13 aggiunte e 1 eliminazioni
  1. 2 0
      src/api/modules/finance.ts
  2. 11 1
      src/views/platform/ticket.vue

+ 2 - 0
src/api/modules/finance.ts

@@ -126,6 +126,8 @@ const financeApi = (axiosInstance: ApiInstance) => ({
     platformSettlement: (data: any) => axiosInstance.post('/receivable/platformSettlement', data),
     // 平台应收联系人查询
     queryReceivableContact: (data: any) => axiosInstance.post('/receivable/queryReceivableContact', data),
+    // 平台应收对接人查询
+    queryContractVos: () => axiosInstance.get('/agreement/queryContractVos'),
     // 查应收金额
     getPlatformSettlementReceivableAmount: (data: any) => axiosInstance.post('/receivable/getPlatformSettlementReceivableAmount', data),
 

+ 11 - 1
src/views/platform/ticket.vue

@@ -339,7 +339,13 @@ const initCompanyContact = () => {
     }
   })
 }
-
+const getqueryContractVos = async () => {
+  api.financeApi.queryContractVos().then((res: any) => {
+    if (res.code == 200) {
+      options.value = res.data
+    }
+  })
+}
 const showTicket = ref(false)
 const contactPerson = ref('')
 if (route.query?.invoiceType) {
@@ -348,8 +354,11 @@ if (route.query?.invoiceType) {
   searchList.value[0].search = route.query.contactPerson || ''
   contactPerson.value = route.query.contactPerson || ''
   getByCompanyId()
+  // 勾选数据查询对应对接人 未勾选查全部
   if(selectedList.value.length > 0) {
     initData()
+  }else{
+    getqueryContractVos()
   }
 } else {
   showTicket.value = false
@@ -601,6 +610,7 @@ const calSub = async (minuend: number = 0, subtrahend: number) => {
   return res.data || 0
 }
 
+
 const openSettlement = (list, name) => {
   contactPerson.value = name
   selectedList.value = list