|
@@ -14,7 +14,8 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item prop="companyId" label="保险公司">
|
|
<el-form-item prop="companyId" label="保险公司">
|
|
|
- <el-select v-model="form.companyId" placeholder="请选择" clearable filterable @change="companyChange">
|
|
|
|
|
|
|
+ <el-select v-model="form.companyId" placeholder="请选择" clearable filterable @change="companyChange"
|
|
|
|
|
+ @clear="clearCompany">
|
|
|
<el-option v-for="item in companyList" :key="item.id" :value="item.id" :label="item.name"></el-option>
|
|
<el-option v-for="item in companyList" :key="item.id" :value="item.id" :label="item.name"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -535,17 +536,23 @@ const initOption = () => {
|
|
|
}
|
|
}
|
|
|
// 获取保险公司下的客户
|
|
// 获取保险公司下的客户
|
|
|
const companyChange = (e) => {
|
|
const companyChange = (e) => {
|
|
|
- console.log(e)
|
|
|
|
|
|
|
+ if (!e) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
let name = companyList.value.find(item => item.id == e).name;
|
|
let name = companyList.value.find(item => item.id == e).name;
|
|
|
if (name) {
|
|
if (name) {
|
|
|
company(name)
|
|
company(name)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+const clearCompany = () => {
|
|
|
|
|
+ company('')
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
const getSummaries = (param) => {
|
|
const getSummaries = (param) => {
|
|
|
const { columns, data } = param
|
|
const { columns, data } = param
|
|
|
const sums: (string | VNode)[] = []
|
|
const sums: (string | VNode)[] = []
|
|
|
// 指定需要计算的字段列表(可根据需求添加字段名)
|
|
// 指定需要计算的字段列表(可根据需求添加字段名)
|
|
|
- const specifiedFields = ['taxPoint', 'actualReceivedAmount','receivableAmount'] // 替换为您需要的字段名
|
|
|
|
|
|
|
+ const specifiedFields = ['taxPoint', 'actualReceivedAmount', 'receivableAmount'] // 替换为您需要的字段名
|
|
|
|
|
|
|
|
columns.forEach((column, index) => {
|
|
columns.forEach((column, index) => {
|
|
|
if (index === 0) {
|
|
if (index === 0) {
|