|
|
@@ -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>
|
|
|
<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>
|
|
|
|