Prechádzať zdrojové kódy

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

@dongkboy 1 mesiac pred
rodič
commit
fb19e93266
2 zmenil súbory, kde vykonal 13 pridanie a 1 odobranie
  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),
     platformSettlement: (data: any) => axiosInstance.post('/receivable/platformSettlement', data),
     // 平台应收联系人查询
     // 平台应收联系人查询
     queryReceivableContact: (data: any) => axiosInstance.post('/receivable/queryReceivableContact', data),
     queryReceivableContact: (data: any) => axiosInstance.post('/receivable/queryReceivableContact', data),
+    // 平台应收对接人查询
+    queryContractVos: () => axiosInstance.get('/agreement/queryContractVos'),
     // 查应收金额
     // 查应收金额
     getPlatformSettlementReceivableAmount: (data: any) => axiosInstance.post('/receivable/getPlatformSettlementReceivableAmount', data),
     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 showTicket = ref(false)
 const contactPerson = ref('')
 const contactPerson = ref('')
 if (route.query?.invoiceType) {
 if (route.query?.invoiceType) {
@@ -348,8 +354,11 @@ if (route.query?.invoiceType) {
   searchList.value[0].search = route.query.contactPerson || ''
   searchList.value[0].search = route.query.contactPerson || ''
   contactPerson.value = route.query.contactPerson || ''
   contactPerson.value = route.query.contactPerson || ''
   getByCompanyId()
   getByCompanyId()
+  // 勾选数据查询对应对接人 未勾选查全部
   if(selectedList.value.length > 0) {
   if(selectedList.value.length > 0) {
     initData()
     initData()
+  }else{
+    getqueryContractVos()
   }
   }
 } else {
 } else {
   showTicket.value = false
   showTicket.value = false
@@ -601,6 +610,7 @@ const calSub = async (minuend: number = 0, subtrahend: number) => {
   return res.data || 0
   return res.data || 0
 }
 }
 
 
+
 const openSettlement = (list, name) => {
 const openSettlement = (list, name) => {
   contactPerson.value = name
   contactPerson.value = name
   selectedList.value = list
   selectedList.value = list