|
|
@@ -61,11 +61,6 @@
|
|
|
<el-input :size="overSize" clearable v-model.trim="queryForm.modifiedBy" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="费用描述">
|
|
|
- <el-input :size="overSize" clearable v-model.trim="queryForm.costsDescription" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="录入时间">
|
|
|
<el-date-picker value-format="yyyy-MM-dd" v-model="queryForm.date" style="width: 215px" :size="overSize"
|
|
|
@@ -385,10 +380,11 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="产品录入" :visible.sync="productCostVehicleFactorVisible" width="60%" :fullscreen="true">
|
|
|
<div class="flex a-c" style="margin-bottom: 20px">
|
|
|
- <el-radio-group v-model="roductList1">
|
|
|
- <el-radio v-for="item in productsTypeoptions" :label="item.dictValue" :key="item.dictValue"
|
|
|
- @change="(event) => pruductChange(event, item)">{{ item.dictTag }}</el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <el-checkbox-group v-model="roductList1" @change="pruductChange">
|
|
|
+ <el-checkbox v-for="city in productsTypeoptions" :label="city.dictValue" :key="city.dictValue">{{ city.dictTag
|
|
|
+ }}</el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ <el-button type="success" size="small" style="margin-left: 20px" @click="productAdd">产品录入</el-button>
|
|
|
<el-button type="success" size="small" style="margin-left: 20px" @click="productHistory">历史记录</el-button>
|
|
|
</div>
|
|
|
<el-form :inline="true" :model="productpageRequest" class="demo-form-inline" size="small">
|
|
|
@@ -414,6 +410,9 @@
|
|
|
value-format="yyyy-MM-dd">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="费用描述">
|
|
|
+ <el-input v-model="productpageRequest.costsDescription" clearable placeholder="费用描述"></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="productExpenseSearch">查询</el-button>
|
|
|
</el-form-item>
|
|
|
@@ -450,7 +449,10 @@
|
|
|
<el-collapse accordion>
|
|
|
<div class="productstitle flex j-s" style="margin-top: 10px">
|
|
|
<div>
|
|
|
- <span>{{ productCostForm.productName }}费用</span>
|
|
|
+ <span v-for="(item, index) in productCostForm.productName" :key="index">
|
|
|
+ {{ item }}-
|
|
|
+ </span>
|
|
|
+ <span>费用</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-button class="mrgin-1" size="small" type="warning"
|
|
|
@@ -485,10 +487,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row v-if="['单交', '交三', '交商', '兜底配置'].includes(
|
|
|
- productCostForm.productName
|
|
|
- )
|
|
|
- ">
|
|
|
+
|
|
|
+ <el-row v-if="productjqincludes">
|
|
|
<h4 style="color: tomato">交强险费用</h4>
|
|
|
<el-col :span="5" :offset="1">
|
|
|
<el-form-item label="费用比例" prop="jqCarCostsProportion">
|
|
|
@@ -540,10 +540,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row v-if="['单商', '单三', '交商', '交三', '兜底配置'].includes(
|
|
|
- productCostForm.productName
|
|
|
- )
|
|
|
- ">
|
|
|
+ <el-row v-if="productsyincludes">
|
|
|
<h4 style="color: tomato">商业险费用</h4>
|
|
|
|
|
|
<el-col :span="5" :offset="1">
|
|
|
@@ -674,43 +671,37 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog :title="underwritingRulesAddDialogTitle" :visible.sync="underwritingRulesAddVehicleFactorVisible"
|
|
|
:close-on-click-modal="false" :fullscreen="true" width="70%" top="6vh" @close="underwritingRulescloseDialog">
|
|
|
- <el-form ref="form" :model="underwritingRulesForm" label-width="80px" size="small">
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="是否有效">
|
|
|
- <el-select v-model="underwritingRulesForm.validInd" placeholder="请选择活动区域">
|
|
|
- <el-option label="有效" value="1"></el-option>
|
|
|
- <el-option label="无效" value="0"></el-option>
|
|
|
- <el-option label="待审核" value="2"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="规则起期">
|
|
|
- <el-date-picker
|
|
|
- v-model="underwritingRulesForm.rulesStartDate"
|
|
|
- type="date"
|
|
|
- placeholder="选择日期">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="规则止期">
|
|
|
- <el-date-picker
|
|
|
- v-model="underwritingRulesForm.rulesEndDate"
|
|
|
- type="date"
|
|
|
- @change="rulesEndDateChange"
|
|
|
- placeholder="选择日期">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="规则描述">
|
|
|
- <el-input type="textarea" v-model="underwritingRulesForm.ruleDescription" placeholder="请输入承保规则描述"
|
|
|
- maxlength="100" show-word-limit></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-form ref="form" :model="underwritingRulesForm" label-width="80px" size="small">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="是否有效">
|
|
|
+ <el-select v-model="underwritingRulesForm.validInd" placeholder="请选择活动区域">
|
|
|
+ <el-option label="有效" value="1"></el-option>
|
|
|
+ <el-option label="无效" value="0"></el-option>
|
|
|
+ <el-option label="待审核" value="2"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="规则起期">
|
|
|
+ <el-date-picker v-model="underwritingRulesForm.rulesStartDate" type="date" placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="规则止期">
|
|
|
+ <el-date-picker v-model="underwritingRulesForm.rulesEndDate" type="date" @change="rulesEndDateChange"
|
|
|
+ placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="规则描述">
|
|
|
+ <el-input type="textarea" v-model="underwritingRulesForm.ruleDescription" placeholder="请输入承保规则描述"
|
|
|
+ maxlength="100" show-word-limit></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
|
<Product-Cost-Form v-if="underwritingRulesAddVehicleFactorVisible" :form="dynamicFormArray" :operator="operatorlist"
|
|
|
over-size="small" @saveForm="underwritingRulesSaveForm"
|
|
|
@@ -855,6 +846,9 @@
|
|
|
:value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="费用描述">
|
|
|
+ <el-input v-model="productcopyItemPageRequest.costsDescription" clearable placeholder="费用描述"></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="productcopyItemQuery">查询</el-button>
|
|
|
</el-form-item>
|
|
|
@@ -1245,11 +1239,6 @@ export default {
|
|
|
label: "交强出口比例五级",
|
|
|
minWidth: 160,
|
|
|
},
|
|
|
- {
|
|
|
- prop: "jqExportInvestmentRadio",
|
|
|
- label: "交强出口加投比例",
|
|
|
- minWidth: 160,
|
|
|
- },
|
|
|
{
|
|
|
prop: "syCarCostsProportion",
|
|
|
label: "费用比例(商业)",
|
|
|
@@ -1290,11 +1279,6 @@ export default {
|
|
|
label: "商业出口比例五级",
|
|
|
minWidth: 160,
|
|
|
},
|
|
|
- {
|
|
|
- prop: "syExportInvestmentRadio",
|
|
|
- label: "商业出口加投比例",
|
|
|
- minWidth: 160,
|
|
|
- },
|
|
|
{
|
|
|
prop: "noCarCostsProportion",
|
|
|
label: "费用比例(非车)",
|
|
|
@@ -1388,11 +1372,6 @@ export default {
|
|
|
label: "交强出口比例五级",
|
|
|
minWidth: 160,
|
|
|
},
|
|
|
- {
|
|
|
- prop: "jqExportInvestmentRadio",
|
|
|
- label: "交强出口加投比例",
|
|
|
- minWidth: 160,
|
|
|
- },
|
|
|
{
|
|
|
prop: "syCarCostsProportion",
|
|
|
label: "费用比例(商业)",
|
|
|
@@ -1433,11 +1412,7 @@ export default {
|
|
|
label: "商业出口比例五级",
|
|
|
minWidth: 160,
|
|
|
},
|
|
|
- {
|
|
|
- prop: "syExportInvestmentRadio",
|
|
|
- label: "商业出口加投比例",
|
|
|
- minWidth: 160,
|
|
|
- },
|
|
|
+
|
|
|
{
|
|
|
prop: "noCarCostsProportion",
|
|
|
label: "费用比例(非车)",
|
|
|
@@ -1527,11 +1502,7 @@ export default {
|
|
|
label: "交强出口比例五级",
|
|
|
minWidth: 160,
|
|
|
},
|
|
|
- {
|
|
|
- prop: "jqExportInvestmentRadio",
|
|
|
- label: "交强出口加投比例",
|
|
|
- minWidth: 160,
|
|
|
- },
|
|
|
+
|
|
|
{
|
|
|
prop: "syCarCostsProportion",
|
|
|
label: "费用比例(商业)",
|
|
|
@@ -1572,11 +1543,6 @@ export default {
|
|
|
label: "商业出口比例五级",
|
|
|
minWidth: 160,
|
|
|
},
|
|
|
- {
|
|
|
- prop: "syExportInvestmentRadio",
|
|
|
- label: "商业出口加投比例",
|
|
|
- minWidth: 160,
|
|
|
- },
|
|
|
{
|
|
|
prop: "noCarCostsProportion",
|
|
|
label: "费用比例(非车)",
|
|
|
@@ -1653,7 +1619,7 @@ export default {
|
|
|
underwritingRulesAddVehicleFactorVisible: false, //承保规则录入 显示/隐藏
|
|
|
productCostCopyDialogVisible: false,//费用复制弹窗
|
|
|
//产品list获取
|
|
|
- roductList1: "", //产品绑定list
|
|
|
+ roductList1: [], //产品绑定list
|
|
|
treedata: [], //授权结构树
|
|
|
defaultProps: {
|
|
|
//自定义参数
|
|
|
@@ -1705,9 +1671,9 @@ export default {
|
|
|
},
|
|
|
//产品费用
|
|
|
productCostForm: {
|
|
|
- agreementId: "",
|
|
|
- productName: "",
|
|
|
- productId: "",
|
|
|
+ agreementId: '',
|
|
|
+ productName: [],
|
|
|
+ productId: [],
|
|
|
costsDescription: "", //费用描述
|
|
|
costsStartDate: "", //费用起期
|
|
|
costsEndDate: "", //费用止期
|
|
|
@@ -1758,12 +1724,14 @@ export default {
|
|
|
productCode: "",
|
|
|
costStartDate: "",
|
|
|
costsEndDate: "",
|
|
|
+ costsDescription: "",
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
},
|
|
|
productcopyItemPageRequest: {
|
|
|
productCode: "",
|
|
|
agreementId: "",
|
|
|
+ costsDescription:"",
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
},
|
|
|
@@ -2030,6 +1998,18 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
+ productjqincludes() {
|
|
|
+ let a = ['单交', '交三', '交商', '兜底配置'];
|
|
|
+ let b = this.productCostForm.productName;
|
|
|
+ let contains = b.every(item => a.includes(item));
|
|
|
+ return contains
|
|
|
+ },
|
|
|
+ productsyincludes() {
|
|
|
+ let a = ['单商', '单三', '交商', '交三', '兜底配置'];
|
|
|
+ let b = this.productCostForm.productName;
|
|
|
+ let contains = b.every(item => a.includes(item));
|
|
|
+ return contains
|
|
|
+ },
|
|
|
// 机构列表转属性数据
|
|
|
companyListTree() {
|
|
|
let cloneData = JSON.parse(JSON.stringify(this.companyList)); // 对源数据深度克隆
|
|
|
@@ -2206,7 +2186,17 @@ export default {
|
|
|
this.productcopyItemFindPage();
|
|
|
},
|
|
|
productExpenseSearch() {
|
|
|
- this.productCostFindPage();
|
|
|
+ let tempStartDate = this.productpageRequest.costStartDate;
|
|
|
+ let tempEndDate = this.productpageRequest.costsEndDate;
|
|
|
+ if (tempStartDate && !tempEndDate) {
|
|
|
+ this.$message({
|
|
|
+ message: "止期必传!",
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.productCostFindPage();
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
dateUpdateChange(e) {
|
|
|
if (e == null) {
|
|
|
@@ -2559,6 +2549,8 @@ export default {
|
|
|
})
|
|
|
this.$nextTick(() => {
|
|
|
this.dynamicFormArray = obj.costsAttrLinks;
|
|
|
+ obj.productId = [obj.productId]
|
|
|
+ obj.productName = [obj.productName]
|
|
|
this.productCostForm = obj;
|
|
|
});
|
|
|
this.productCostAddDialogType = "edit";
|
|
|
@@ -2652,7 +2644,8 @@ export default {
|
|
|
cleanEndDate() {
|
|
|
this.productCostForm.costsEndDate = null;
|
|
|
},
|
|
|
- rulesEndDateChange(){
|
|
|
+
|
|
|
+ rulesEndDateChange() {
|
|
|
let tempStartDate = this.underwritingRulesForm.rulesStartDate;
|
|
|
let tempEndDate = this.underwritingRulesForm.rulesEndDate;
|
|
|
if (!tempStartDate) {
|
|
|
@@ -2797,9 +2790,15 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//添加产品
|
|
|
- pruductChange(event, item) {
|
|
|
- this.productCostForm.productName = item.dictTag;
|
|
|
- this.productCostForm.productId = item.dictValue;
|
|
|
+ pruductChange(event) {
|
|
|
+ this.productCostForm.productName = [];
|
|
|
+ this.productCostForm.productId = event;
|
|
|
+ event.map(val => {
|
|
|
+ let list = this.productsTypeoptions.find(item => item.dictValue == val).dictTag;
|
|
|
+ this.productCostForm.productName.push(list)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ productAdd() {
|
|
|
this.productCostAddDialogTitle = "产品录入";
|
|
|
this.productCostAddDialogType = "add";
|
|
|
this.productCostAddVehicleFactorVisible = true;
|
|
|
@@ -2860,8 +2859,10 @@ export default {
|
|
|
this.productCostForm[key] = "";
|
|
|
}
|
|
|
}
|
|
|
+ this.productCostForm.agreementId = [];
|
|
|
+ this.productCostForm.productName = [];
|
|
|
this.getFactorTemplate();
|
|
|
- this.roductList1 = null;
|
|
|
+ this.roductList1 = [];
|
|
|
},
|
|
|
underwritingRulescloseDialog() {
|
|
|
for (let key in this.underwritingRulesForm) {
|
|
|
@@ -3054,12 +3055,10 @@ export default {
|
|
|
return '删除'
|
|
|
}
|
|
|
},
|
|
|
- auditTypeFormation(row) {
|
|
|
- for (var i = 0; i < this.expenseAuditlist.length; i++) {
|
|
|
- if (row.isAudit == parseInt(this.expenseAuditlist[i].value)) {
|
|
|
- return this.expenseAuditlist[i].label;
|
|
|
- }
|
|
|
- }
|
|
|
+ auditTypeFormation(row, column) {
|
|
|
+ let expenseAudit = row.isAudit;
|
|
|
+ let expense = this.expenseAuditlist.find(val => val.value == expenseAudit).label;
|
|
|
+ return expense;
|
|
|
},
|
|
|
agreementtypeFormatter(row, column) {
|
|
|
//协议类型
|
|
|
@@ -3422,4 +3421,5 @@ export default {
|
|
|
|
|
|
.el-icon-arrow-down {
|
|
|
font-size: 12px;
|
|
|
-}</style>
|
|
|
+}
|
|
|
+</style>
|