|
|
@@ -15,6 +15,8 @@
|
|
|
<el-option value="ptlAgreement" label="出单协议"></el-option>
|
|
|
<el-option value="orderType" label="订单类型"></el-option>
|
|
|
<el-option value="signYear" label="签单年份"></el-option>
|
|
|
+ <el-option value="companyId" label="保险公司"></el-option>
|
|
|
+
|
|
|
</el-select>
|
|
|
<el-select v-model="item.type" v-if="item.name != 'signDate'" style="margin-right: 20px; width: 150px"
|
|
|
@change="val => signDateSelectChange(index, val)">
|
|
|
@@ -37,6 +39,10 @@
|
|
|
<el-option v-for="item in options" :key="item.contactPerson" :value="item.contactPerson"
|
|
|
:label="item.contactPerson"></el-option>
|
|
|
</el-select>
|
|
|
+ <el-select class="w-350px" v-if="item.name == 'companyId'" v-model="item.search" placeholder="请选择" clearable
|
|
|
+ filterable :disabled="item.type == '为空'">
|
|
|
+ <el-option v-for="item in companyList" :key="item.id" :value="item.id" :label="item.name"></el-option>
|
|
|
+ </el-select>
|
|
|
<el-date-picker style="width: 350px" v-model="datesearch" v-if="item.name == 'signDate'"
|
|
|
:type="item.type == '大于等于' || item.type == '小于等于' ? 'date' : 'daterange'" placeholder="请选择"
|
|
|
:disabled="item.type == '为空'" @change="handlePtlAgreementChange(index, $event)" value-format="YYYY-MM-DD" />
|
|
|
@@ -63,7 +69,7 @@
|
|
|
<p>应收明细</p>
|
|
|
<el-button type="primary" @click="addTicket">添加应收</el-button>
|
|
|
</div>
|
|
|
- <el-table :data="tableData" style="height: calc(100% - 340px)">
|
|
|
+ <el-table :data="tableData" style="height: calc(100% - 380px)">
|
|
|
<template #empty>
|
|
|
<div v-if="noData">暂无应收,点击<el-button link type="primary" @click="batchShow = true">导入应收</el-button></div>
|
|
|
<div v-else>没有符合的应收单据~</div>
|
|
|
@@ -236,7 +242,7 @@ import { ElMessage, FormInstance } from "element-plus";
|
|
|
let route = useRoute()
|
|
|
let router = useRouter()
|
|
|
const previousRoute = ref(router.options.history.state.back)
|
|
|
-console.log(previousRoute.value)
|
|
|
+const companyList = ref()//保险公司
|
|
|
const CountFormRef = ref<FormInstance>()
|
|
|
const batchShow = ref(false)//数据导入弹窗
|
|
|
const selectedList = ref([])//选中的应收单据
|
|
|
@@ -273,6 +279,15 @@ const getByCompanyId = () => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+// 保险公司
|
|
|
+const initCompany = () => {
|
|
|
+ api.insuranceApi.leftList('').then((res: any) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ companyList.value = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
//保险公司协议
|
|
|
|
|
|
const initData = () => {
|
|
|
@@ -280,7 +295,7 @@ const initData = () => {
|
|
|
api.financeApi.getSelectedReceivableList({ orderNos: selectedList.value.map(v => v.orderNo), searchList: searchList.value, logicJudge: logicJudge.value, }).then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
|
tableData.value = res.data
|
|
|
- initCompany()
|
|
|
+ initCompanyContact()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -307,11 +322,15 @@ let searchList = ref([
|
|
|
name: 'signYear',
|
|
|
type: '等于',
|
|
|
search: ''
|
|
|
- }
|
|
|
+ }, {
|
|
|
+ name: 'companyId',
|
|
|
+ type: '等于',
|
|
|
+ search: ''
|
|
|
+ },
|
|
|
])
|
|
|
|
|
|
// 保险公司
|
|
|
-const initCompany = () => {
|
|
|
+const initCompanyContact = () => {
|
|
|
api.financeApi.queryReceivableContact({
|
|
|
incomeIds: tableData.value.map((item: any) => item.id)
|
|
|
}).then((res: any) => {
|
|
|
@@ -588,7 +607,9 @@ const openSettlement = (list, name) => {
|
|
|
handleSettlement()
|
|
|
initData()
|
|
|
}
|
|
|
-
|
|
|
+onMounted(() => {
|
|
|
+ initCompany()
|
|
|
+})
|
|
|
defineExpose({
|
|
|
openSettlement,
|
|
|
});
|