@dongkboy 3 месяцев назад
Родитель
Сommit
acef624852

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

@@ -121,6 +121,12 @@ const financeApi = (axiosInstance: ApiInstance) => ({
     queryReceivableContact: (data: any) => axiosInstance.post('/receivable/queryReceivableContact', data),
     // 查应收金额
     getPlatformSettlementReceivableAmount: (data: any) => axiosInstance.post('/receivable/getPlatformSettlementReceivableAmount', data),
+
+
+    // 应收金额总计
+    getCommissionReceivableTotalAmount: (data: any) => axiosInstance.post('/receivable/getCommissionReceivableTotalAmount', data),//手续
+    getOtherReceivableTotalAmount: (data: any) => axiosInstance.post('/receivable/getOtherReceivableTotalAmount', data),//跟单
+    getPlatformReceivableTotalAmount: (data: any) => axiosInstance.post('/receivable/getPlatFormReceivableTotalAmount', data),//平台
 })
 
 export default financeApi

+ 57 - 5
src/views/platform/index.vue

@@ -148,6 +148,8 @@
           <span class="col-108 m-r-8">
             已选: <span class="text-red">{{selectedList.length}}</span> 条
           </span>
+          <span>应收金额总计:${{ receivedAmountTotal || 0 }}</span>
+
         </el-row>
         <el-table :data="receiveData" :height="isTrue ? 'calc(100% - 446px)' : 'calc(100% - 346px)'"
           style="width: 100%; margin-top: 20px;" ref="ReceiveDataRef1" @select="handleSelectChange1"
@@ -565,12 +567,16 @@ let myRouter = useRouter()
 let ticketRef = ref(null)
 let activeName = ref('1')
 let subActiveName = ref('first')
-
+let receivedAmountTotal = ref(0)
 const handleTabsClick = (e) => {
+  console.log(e.props.name)
+  activeName.value = e.props.name
   if (e.props.name == '1') {
     getPlatFormReceivableList()
+    getreceivedAmountTotal()
   } else if (e.props.name == '2') {
     getPlatformReceivableList()
+    getreceivedAmountTotal()
   }
   isTrue.value = false
   receivableForm.value = {}
@@ -606,12 +612,43 @@ const reset = () => {
   size.value = 10
   if (activeName.value == '1') {
     getPlatFormReceivableList()
+    getreceivedAmountTotal()
   } else if (activeName.value == '2') {
     getPlatformReceivableList()
+    getreceivedAmountTotal()
   }
 
 }
+const  getreceivedAmountTotal = () => {
+  let params = {
+    licenseNo: receivableForm.value?.licenseNo,
+    typeAttr: receivableForm.value?.typeAttr,
+    companyId: receivableForm.value?.companyId,
+    signingStartTime: receivableForm.value?.signingTime?.[0],
+    signingEndTime: receivableForm.value?.signingTime?.[1],
+    orderNo: receivableForm.value?.orderNo,
+    agreementId: receivableForm.value?.agreementId,
+    deptId: receivableForm.value?.deptId,
+    riskCode: receivableForm.value?.riskCode,
+    orderType: receivableForm.value?.orderType,
+    insuredName: receivableForm.value?.insuredName,
+    jqPolicyNo: receivableForm.value?.jqPolicyNo,
+    syPolicyNo: receivableForm.value?.syPolicyNo,
+    dockingPerson: receivableForm.value?.dockingPerson,
+    jqStartDate: receivableForm.value?.jqDate?.[0],
+    jqEndDate: receivableForm.value?.jqDate?.[1],
+    syStartDate: receivableForm.value?.syDate?.[0],
+    syEndDate: receivableForm.value?.syDate?.[1],
+    pages: pages.value,
+    size: size.value
+  }
 
+  api.financeApi.getPlatformReceivableTotalAmount(params).then((res: any) => {
+    if (res.code == 200) {
+      receivedAmountTotal.value = res.data
+    }
+  })
+}
 let ReceiveDataRef1 = ref()
 // 选中的数据
 let selectedList = ref([])
@@ -895,11 +932,25 @@ const downloadImportFailedData = (item) => {
 // 分页
 let pages = ref(1)
 let size = ref(10)
-const handleSizeChange = (size) => {
-  size.value = size
+const handleSizeChange = (val) => {
+  size.value = val
+  if (activeName.value == '1') {
+    getPlatFormReceivableList()
+    getreceivedAmountTotal()
+  } else if (activeName.value == '2') {
+    getPlatformReceivableList()
+    getreceivedAmountTotal()
+  }
 }
-const handleCurrentChange = (page) => {
-  pages.value = page
+const handleCurrentChange = (val) => {
+  pages.value = val
+  if (activeName.value == '1') {
+    getPlatFormReceivableList()
+    getreceivedAmountTotal()
+  } else if (activeName.value == '2') {
+    getPlatformReceivableList()
+    getreceivedAmountTotal()
+  }
 }
 
 // 获取险种
@@ -1082,6 +1133,7 @@ onMounted(() => {
   initCompany();
   initDept();
   getPlatFormReceivableList();
+  getreceivedAmountTotal();
 })
 </script>
 

+ 55 - 6
src/views/receivable/documentary/index.vue

@@ -147,6 +147,7 @@
           <span class="col-108 m-r-8">
             已选: <span class="text-red">{{ selectedList.length }}</span> 条
           </span>
+          <span>应收金额总计:${{ receivedAmountTotal || 0 }}</span>
         </el-row>
         <el-table :data="receiveData" :height="isTrue ? 'calc(100% - 396px)' : 'calc(100% - 296px)'"
           style="width: 100%; margin-top: 20px;" ref="ReceiveDataRef1" @select="handleSelectChange1"
@@ -547,11 +548,13 @@ import { useRouter } from 'vue-router'
 let myRouter = useRouter()
 
 let activeName = ref('1')
-let subActiveName = ref('first')
-
+let subActiveName = ref('1')
+const  receivedAmountTotal = ref(0)
 const handleTabsClick = (e) => {
+  activeName.value = e.props.name
   if (e.props.name == '1') {
     getOtherReceivableList()
+    getreceivedAmountTotal()
   } else if (e.props.name == '2') {
     getJyOtherReceivableList()
   }
@@ -615,6 +618,36 @@ const selectAll = (type: boolean) => {
     selectedList.value = []
   }
 }
+const  getreceivedAmountTotal = () => {
+  let params = {
+    licenseNo: receivableForm.value?.licenseNo,
+    typeAttr: receivableForm.value?.typeAttr,
+    companyId: receivableForm.value?.companyId,
+    signingStartTime: receivableForm.value?.signingTime?.[0],
+    signingEndTime: receivableForm.value?.signingTime?.[1],
+    orderNo: receivableForm.value?.orderNo,
+    agreementId: receivableForm.value?.agreementId,
+    deptId: receivableForm.value?.deptId,
+    riskCode: receivableForm.value?.riskCode,
+    orderType: receivableForm.value?.orderType,
+    insuredName: receivableForm.value?.insuredName,
+    jqPolicyNo: receivableForm.value?.jqPolicyNo,
+    syPolicyNo: receivableForm.value?.syPolicyNo,
+    dockingPerson: receivableForm.value?.dockingPerson,
+    jqStartDate: receivableForm.value?.jqDate?.[0],
+    jqEndDate: receivableForm.value?.jqDate?.[1],
+    syStartDate: receivableForm.value?.syDate?.[0],
+    syEndDate: receivableForm.value?.syDate?.[1],
+    pages: pages.value,
+    size: size.value
+  }
+
+  api.financeApi.getOtherReceivableTotalAmount(params).then((res: any) => {
+    if (res.code == 200) {
+      receivedAmountTotal.value = res.data
+    }
+  })
+}
 // 全选类型改变
 const selectTypeChange = (type) => {
   selectAllValue.value = true
@@ -962,11 +995,24 @@ const initCompany = () => {
 // 分页
 let pages = ref(1)
 let size = ref(10)
-const handleSizeChange = (size) => {
-  size.value = size
+const handleSizeChange = (val) => {
+  console.log(val)
+  size.value = val
+  if (activeName.value == '1') {
+    getOtherReceivableList()
+    getreceivedAmountTotal()
+  } else if (activeName.value == '2') {
+    getJyOtherReceivableList()
+  }
 }
-const handleCurrentChange = (page) => {
-  pages.value = page
+const handleCurrentChange = (val) => {
+  pages.value = val
+  if (activeName.value == '1') {
+    getOtherReceivableList()
+    getreceivedAmountTotal()
+  } else if (activeName.value == '2') {
+    getJyOtherReceivableList()
+  }
 }
 
 const search = () => {
@@ -974,9 +1020,11 @@ const search = () => {
   size.value = 10
   if (activeName.value == '1') {
     getOtherReceivableList()
+    getreceivedAmountTotal()
   }
   if (activeName.value == '2') {
     getJyOtherReceivableList()
+    getreceivedAmountTotal()
   }
 }
 const reset = () => {
@@ -1123,6 +1171,7 @@ onMounted(() => {
   initCompany();
   initDept();
   getOtherReceivableList();
+  getreceivedAmountTotal();
 })
 
 </script>

+ 54 - 14
src/views/receivable/handingFee/index.vue

@@ -112,7 +112,7 @@
             </el-col>
           </el-row>
         </el-form>
-        <el-row :gutter="8" class="flex a-c " style="margin: 20px 0">
+        <el-row  class="flex a-c " style="margin: 20px 0">
           <span class="flex col-160 m-r-8 bg-F9">
             <el-checkbox class="p-w-12" @change="selectAll" v-model="selectAllValue"></el-checkbox>&nbsp;
             <el-select class="select-all width-100" placeholder="全选" v-model="selectType" @change="selectTypeChange">
@@ -149,7 +149,10 @@
           <span class="col-108 m-r-8">
             已选: <span class="text-red">{{ selectedList.length }}</span> 条
           </span>
+          <span>应收金额总计:${{ receivedAmountTotal || 0 }}</span>
         </el-row>
+
+
         <el-table :data="receiveData" :height="isTrue ? 'calc(100% - 396px)' : 'calc(100% - 246px)'"
           style="width: 100%; margin-top: 20px;" row-key="id" ref="ReceiveDataRef1" @select="handleSelectChange1"
           @select-all="handleSelectAll1">
@@ -548,7 +551,7 @@ let myRouter = useRouter()
 
 let activeName = ref('1')
 let subActiveName = ref('first')
-
+const  receivedAmountTotal = ref(0)//应收金额总计
 const handleTabsClick = (e) => {
   if (e.props.name == '1') {
     getCommissionReceivableList()
@@ -909,10 +912,12 @@ const downloadImportFailedData = (item) => {
 // 分页
 let pages = ref(1)
 let size = ref(10)
-const handleSizeChange = (size) => {
-  size.value = size
+const handleSizeChange = (val) => {
+
+  size.value = val
   if (activeName.value == '1') {
     getCommissionReceivableList()
+    getreceivedAmountTotal()
   } else if (activeName.value == '2') {
     getJyReceivableList()
   }
@@ -921,6 +926,7 @@ const handleCurrentChange = (page) => {
   pages.value = page
   if (activeName.value == '1') {
     getCommissionReceivableList()
+    getreceivedAmountTotal()
   } else if (activeName.value == '2') {
     getJyReceivableList()
   }
@@ -937,7 +943,48 @@ const toEdit = (row: any) => {
     }
   })
 }
+const search = () => {
+  pages.value = 1
+  size.value = 10
+  if (activeName.value == '1') {
+    getCommissionReceivableList()
+    getreceivedAmountTotal()
+  }
+  if (activeName.value == '2') {
+    getJyReceivableList()
+  }
+}
+const  getreceivedAmountTotal = () => {
+  let params = {
+    invoiceId: receivableForm.value?.invoiceId,
+    licenseNo: receivableForm.value?.licenseNo,
+    typeAttr: receivableForm.value?.typeAttr,
+    companyId: receivableForm.value?.companyId,
+    signingStartTime: receivableForm.value?.signingTime?.[0],
+    signingEndTime: receivableForm.value?.signingTime?.[1],
+    orderNo: receivableForm.value?.orderNo,
+    agreementId: receivableForm.value?.agreementId,
+    deptId: receivableForm.value?.deptId?.join(),
+    productName: receivableForm.value?.productName,
+    orderType: receivableForm.value?.orderType,
+    insuredName: receivableForm.value?.insuredName,
+    jqPolicyNo: receivableForm.value?.jqPolicyNo,
+    syPolicyNo: receivableForm.value?.syPolicyNo,
+    dockingPerson: receivableForm.value?.dockingPerson,
+    jqStartDate: receivableForm.value?.jqDate?.[0],
+    jqEndDate: receivableForm.value?.jqDate?.[1],
+    syStartDate: receivableForm.value?.syDate?.[0],
+    syEndDate: receivableForm.value?.syDate?.[1],
+    pages: pages.value,
+    size: size.value
+  }
 
+  api.financeApi.getCommissionReceivableTotalAmount(params).then((res: any) => {
+    if (res.code == 200) {
+      receivedAmountTotal.value = res.data
+    }
+  })
+}
 // 获取险种
 let insuranceType = ref([])
 const dictDetails = () => {
@@ -978,16 +1025,7 @@ const initDept = () => {
   })
 }
 
-const search = () => {
-  pages.value = 1
-  size.value = 10
-  if (activeName.value == '1') {
-    getCommissionReceivableList()
-  }
-  if (activeName.value == '2') {
-    getJyReceivableList()
-  }
-}
+
 const reset = () => {
   receivableForm.value = {}
   pages.value = 1
@@ -1114,6 +1152,7 @@ const exportData = () => {
     }
   })
 }
+
 onMounted(() => {
   if (route.query.id) {
     receivableForm.value.invoiceId = route.query.id
@@ -1122,6 +1161,7 @@ onMounted(() => {
   initCompany();
   initDept();
   getCommissionReceivableList();
+  getreceivedAmountTotal()
 })
 </script>