|
|
@@ -385,10 +385,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">
|
|
|
@@ -450,7 +451,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"
|
|
|
@@ -674,43 +678,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"
|
|
|
@@ -1653,7 +1651,7 @@ export default {
|
|
|
underwritingRulesAddVehicleFactorVisible: false, //承保规则录入 显示/隐藏
|
|
|
productCostCopyDialogVisible: false,//费用复制弹窗
|
|
|
//产品list获取
|
|
|
- roductList1: "", //产品绑定list
|
|
|
+ roductList1: [], //产品绑定list
|
|
|
treedata: [], //授权结构树
|
|
|
defaultProps: {
|
|
|
//自定义参数
|
|
|
@@ -1705,8 +1703,8 @@ export default {
|
|
|
},
|
|
|
//产品费用
|
|
|
productCostForm: {
|
|
|
- agreementId: "",
|
|
|
- productName: "",
|
|
|
+ agreementId: [],
|
|
|
+ productName: [],
|
|
|
productId: "",
|
|
|
costsDescription: "", //费用描述
|
|
|
costsStartDate: "", //费用起期
|
|
|
@@ -2652,7 +2650,7 @@ export default {
|
|
|
cleanEndDate() {
|
|
|
this.productCostForm.costsEndDate = null;
|
|
|
},
|
|
|
- rulesEndDateChange(){
|
|
|
+ rulesEndDateChange() {
|
|
|
let tempStartDate = this.underwritingRulesForm.rulesStartDate;
|
|
|
let tempEndDate = this.underwritingRulesForm.rulesEndDate;
|
|
|
if (!tempStartDate) {
|
|
|
@@ -2797,9 +2795,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;
|
|
|
@@ -2810,7 +2814,7 @@ export default {
|
|
|
if (valid) {
|
|
|
if (this.productCostAddDialogType == "add") {
|
|
|
this.$api.insCompany
|
|
|
- .productCostSave(this.productCostForm)
|
|
|
+ .productCostSave([this.productCostForm])
|
|
|
.then((res) => {
|
|
|
if (res.code == "200") {
|
|
|
this.$message({
|
|
|
@@ -2860,8 +2864,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) {
|
|
|
@@ -3422,4 +3428,5 @@ export default {
|
|
|
|
|
|
.el-icon-arrow-down {
|
|
|
font-size: 12px;
|
|
|
-}</style>
|
|
|
+}
|
|
|
+</style>
|