|
|
@@ -1,11 +1,13 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
-
|
|
|
<el-main ref="elMain" style="padding: 0px;">
|
|
|
<Split :gutterSize="2" style="height: calc(100vh - 120px);">
|
|
|
<!-- 左侧树Start -->
|
|
|
<SplitArea :size="leftSplitWidth" :minSize="200">
|
|
|
- <el-checkbox v-model="containsSubChecked">显示全部协议</el-checkbox>
|
|
|
+ <el-radio-group v-model="supplierType" @input="supplierChange" size="mini">
|
|
|
+ <el-radio v-for="(item,index) in supplierTypeEnumoptions" :key="index" :label="item.dictValue">{{
|
|
|
+ item.dictTag }}</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
<el-divider></el-divider>
|
|
|
<tree :setting="ztreeSetting" :nodes="ztreeNodes" @onClick="onZTreeClick" @onCreated="onZTreeCreated" />
|
|
|
</SplitArea>
|
|
|
@@ -31,10 +33,9 @@
|
|
|
<el-form-item label="协议状态">
|
|
|
<el-select :size="overSize" v-model="queryForm.status" placeholder="请选择协议状态" clearable
|
|
|
style="width: 100%;">
|
|
|
- <el-option label="待审核" value="0"></el-option>
|
|
|
- <el-option label="审核通过" value="1"></el-option>
|
|
|
- <el-option label="退回修改" value="2"></el-option>
|
|
|
- <el-option label="已失效" value="99"></el-option>
|
|
|
+ <el-option v-for="item in approvalStatusoptions" :key="item.dictValue" :label="item.dictTag"
|
|
|
+ :value="item.dictValue"></el-option>
|
|
|
+
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -45,7 +46,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
- <el-table :size="overSize" :data="pageResult" height="590" border v-loading="loading" highlight-current-row
|
|
|
+ <el-table :size="overSize" :data="pageResult" height="690" border v-loading="loading" highlight-current-row
|
|
|
stripe :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#606266' }">
|
|
|
|
|
|
<el-table-column prop="id" label="编号" width="130" align="center"></el-table-column>
|
|
|
@@ -79,7 +80,7 @@
|
|
|
</Split>
|
|
|
</el-main>
|
|
|
<!-- 新增协议的对话框 -->
|
|
|
- <el-dialog :title="dialogTitle" v-dialogDrag :visible.sync="agreementdialogVisible" width="60%" @open="closeDialog()">
|
|
|
+ <el-dialog :title="dialogTitle" v-dialogDrag :visible.sync="agreementdialogVisible" width="60%" @close="closeDialog()">
|
|
|
<el-row style="margin-bottom: 10px;" v-if="agreement.agreestatuButtonSizes == '2'">
|
|
|
<el-col :span="4" style="text-align: right"><label style="margin-right: 10px;">退回修改原因:</label></el-col>
|
|
|
<el-col :span="20" style="color: red;">
|
|
|
@@ -113,26 +114,27 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="协议类型" prop="agreementType">
|
|
|
- <el-select v-model="agreement.agreementType" placeholder="请选择协议类型" style="width: 100%;">
|
|
|
- <el-option v-for="item in agreementTypeoptions" :key="item.id" :label="item.label"
|
|
|
- :value="item.value"></el-option>
|
|
|
+ <el-select disabled v-model="agreement.agreementType" placeholder="请选择协议类型" style="width: 100%;"
|
|
|
+ @change="agreementTypeChange">
|
|
|
+ <el-option v-for="item in agreementTypeoptions" :key="item.dictValue" :label="item.dictTag"
|
|
|
+ :value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="合作公司" prop="insuranceCompanyId">
|
|
|
- <el-cascader style="width: 100%;" v-model="agreement.insuranceCompanyId" :show-all-levels="false"
|
|
|
- :options="options" :props="optionProps" @change="handleChange" clearable></el-cascader>
|
|
|
+ <el-form-item label="合作公司" prop="partnerCompaniesId">
|
|
|
+ <el-cascader :disabled="operType == 'EDIT'" style="width: 100%;"
|
|
|
+ v-model="agreement.partnerCompaniesId" :show-all-levels="false" :options="options"
|
|
|
+ :props="optionProps" @change="handleChange" clearable filterable></el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="合作渠道" prop="cooperationChannels">
|
|
|
- <el-select v-model="agreement.cooperationChannels" placeholder="请选择投保渠道" style="width: 100%;">
|
|
|
- <el-option v-for="item in channeloptions" :key="item.label" :label="item.label"
|
|
|
- :value="item.value"></el-option>
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="保险公司" :prop="supplierType == '1' ? '' : 'associationCompaniesId'">
|
|
|
+ <el-cascader :disabled="supplierType == '1' || operType == 'EDIT'" style="width: 100%;"
|
|
|
+ v-model="agreement.associationCompaniesId" :show-all-levels="false" :options="prodInsurance"
|
|
|
+ :props="optionProps" @change="prodhandleChange" clearable filterable></el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -161,8 +163,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="保单日期类型" prop="matchType">
|
|
|
<el-select v-model="agreement.matchType" placeholder="请选择保单日期类型" style="width: 100%;">
|
|
|
- <el-option v-for="item in matchtypeoptions" :key="item.label" :label="item.label"
|
|
|
- :value="item.value"></el-option>
|
|
|
+ <el-option v-for="item in matchTypeoptions" :key="item.dictValue" :label="item.dictTag"
|
|
|
+ :value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -187,8 +189,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="佣金发放方式" prop="moneyType">
|
|
|
<el-select v-model="agreement.moneyType" placeholder="请选择佣金发放方式" style="width: 100%;">
|
|
|
- <el-option v-for="item in moneytypeoptions" :key="item.label" :label="item.label"
|
|
|
- :value="item.value"></el-option>
|
|
|
+ <el-option v-for="item in moneyTypeoptions" :key="item.dictValue" :label="item.dictTag"
|
|
|
+ :value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -245,6 +247,7 @@
|
|
|
@click="insuranceFactor(schemeindex, productCostsindex, '3')">保费因子</el-button>
|
|
|
<el-button type="warning" :size="overSize"
|
|
|
@click="otherFactor(schemeindex, productCostsindex, '4')">其他因子</el-button>
|
|
|
+ <!-- <el-button type="warning" :size="overSize" @click="wholeFactor(schemeindex, productCostsindex)">全部因子</el-button> -->
|
|
|
<el-button v-if="productCostsindex != 0" type="danger" :size="overSize"
|
|
|
@click="deleteproductCosts(productCostsindex)">删除方案</el-button>
|
|
|
</div>
|
|
|
@@ -262,7 +265,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="费用级别" prop="costsLevel">
|
|
|
- <el-select v-model="productCostsitem.costsLevel" placeholder="请选择费用级别" style="width: 100%;">
|
|
|
+ <el-select v-model="productCostsitem.costsLevel" placeholder="请选择费用级别" style="width:100%;">
|
|
|
<el-option label="常规" value="1"></el-option>
|
|
|
<el-option label="默认" value="2"></el-option>
|
|
|
<el-option label="优先级最高" value="3"></el-option>
|
|
|
@@ -272,14 +275,14 @@
|
|
|
<el-col :span="10" :offset="2">
|
|
|
<el-form-item label="费用起期">
|
|
|
<el-date-picker style="width: 100%;" v-model="productCostsitem.costsStartDate" type="datetime"
|
|
|
- placeholder="选择费用开始日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd">
|
|
|
+ placeholder="选择费用开始日期" value-format="yyyy-MM-dd HH:mm:ss">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="费用止期">
|
|
|
<el-date-picker style="width: 100%;" v-model="productCostsitem.costsEndDate" type="datetime"
|
|
|
- placeholder="选择费用结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd">
|
|
|
+ placeholder="选择费用结束日期" value-format="yyyy-MM-dd HH:mm:ss">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -1495,6 +1498,343 @@
|
|
|
<el-button :size="overSize" type="primary" @click="otherFactorsubmit()">保存</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <!-- <el-dialog title="全部因子" :visible.sync="wholeVisible" width="50%">
|
|
|
+ <div class="flex f-c products" style="padding: 0 20px;">
|
|
|
+ <div class="productstitle flex j-s">
|
|
|
+ <div><span>车辆因子</span></div>
|
|
|
+ </div>
|
|
|
+ <el-form ref="productVehicleFactorForm" :model="productVehicleFactorForm" label-width="100px" :size="overSize">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="车辆属性">
|
|
|
+ <el-checkbox-group v-model="productVehicleFactorForm.CarAttribute.parameter">
|
|
|
+ <el-checkbox label="过户车" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="新车" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="新能源" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="进口车" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="续保车" name="type"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="车辆大类">
|
|
|
+ <el-checkbox-group v-model="productVehicleFactorForm.CarType.parameter">
|
|
|
+ <el-checkbox label="客车" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="货车" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="特种车" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="挂车" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="摩托车" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="拖拉机" name="type"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="使用性质">
|
|
|
+ <el-checkbox-group v-model="productVehicleFactorForm.CarNature.parameter">
|
|
|
+ <el-checkbox label="营业"></el-checkbox>
|
|
|
+ <el-checkbox label="非营业"></el-checkbox>
|
|
|
+ <el-checkbox label="营业出租"></el-checkbox>
|
|
|
+ <el-checkbox label="营业租赁"></el-checkbox>
|
|
|
+ <el-checkbox label="营业公交"></el-checkbox>
|
|
|
+ <el-checkbox label="营业客运"></el-checkbox>
|
|
|
+ <el-checkbox label="营业货运"></el-checkbox>
|
|
|
+ <el-checkbox label="营业旅游"></el-checkbox>
|
|
|
+ <el-checkbox label="家庭自用"></el-checkbox>
|
|
|
+ <el-checkbox label="非营业机关、事业"></el-checkbox>
|
|
|
+ <el-checkbox label="非营业企业"></el-checkbox>
|
|
|
+ <el-checkbox label="非营业个人"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="新车购置价">
|
|
|
+ <el-input-number v-model="productVehicleFactorForm.CarPrice.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="productVehicleFactorForm.CarPrice.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="车龄">
|
|
|
+ <el-input-number v-model="productVehicleFactorForm.CarAge.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="productVehicleFactorForm.CarAge.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="客车座位数">
|
|
|
+ <el-input-number v-model="productVehicleFactorForm.CarSeats.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="productVehicleFactorForm.CarSeats.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="货车吨位数">
|
|
|
+ <el-input-number v-model="productVehicleFactorForm.CarTonnage.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="productVehicleFactorForm.CarTonnage.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="车牌号">
|
|
|
+ <el-input v-model="productVehicleFactorForm.LicenseNo.value" placeholder="输入车牌号前两位,多个车牌逗号隔开"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="flex f-c products" style="padding: 0 20px;">
|
|
|
+ <div class="productstitle flex j-s">
|
|
|
+ <div><span>从人因子</span></div>
|
|
|
+ </div>
|
|
|
+ <el-form ref="personFactorForm" :model="personFactorForm" label-width="100px" :size="overSize">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="车主类型">
|
|
|
+ <el-checkbox-group v-model="personFactorForm.OwnerType.parameter">
|
|
|
+ <el-checkbox label="个人" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="法人" name="type"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="车主性别">
|
|
|
+ <el-checkbox-group v-model="personFactorForm.OwnerSex.parameter">
|
|
|
+ <el-checkbox label="男" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="女" name="type"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="车主男年龄">
|
|
|
+ <el-input-number v-model="personFactorForm.OwnerMage.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="personFactorForm.OwnerMage.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="车主女年龄">
|
|
|
+ <el-input-number v-model="personFactorForm.OwnerWage.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="personFactorForm.OwnerWage.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="车主证件号">
|
|
|
+ <el-input v-model="personFactorForm.OwnerId.value" placeholder="输入证件号前六位,多个证件号以逗号隔开"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="投保人类型">
|
|
|
+ <el-checkbox-group v-model="personFactorForm.ApplicantType.parameter">
|
|
|
+ <el-checkbox label="个人" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="法人" name="type"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="投保人性别">
|
|
|
+ <el-checkbox-group v-model="personFactorForm.ApplicantSex.parameter">
|
|
|
+ <el-checkbox label="男" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="女" name="type"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="投保人男年龄">
|
|
|
+ <el-input-number v-model="personFactorForm.ApplicantMage.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="personFactorForm.ApplicantMage.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="投保人女年龄">
|
|
|
+ <el-input-number v-model="personFactorForm.ApplicantWage.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="personFactorForm.ApplicantWage.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="投保人证件号">
|
|
|
+ <el-input v-model="personFactorForm.ApplicantId.value" placeholder="输入证件号前六位,多个证件号以逗号隔开"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="被保人类型">
|
|
|
+ <el-checkbox-group v-model="personFactorForm.InsureType.parameter">
|
|
|
+ <el-checkbox label="个人" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="法人" name="type"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="被保人性别">
|
|
|
+ <el-checkbox-group v-model="personFactorForm.InsureSex.parameter">
|
|
|
+ <el-checkbox label="男" name="type"></el-checkbox>
|
|
|
+ <el-checkbox label="女" name="type"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="被保人男年龄">
|
|
|
+ <el-input-number v-model="personFactorForm.InsureMage.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="personFactorForm.InsureMage.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="被保人女年龄">
|
|
|
+ <el-input-number v-model="personFactorForm.InsureWage.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="personFactorForm.InsureWage.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="被保人证件号">
|
|
|
+ <el-input v-model="personFactorForm.InsureId.value" placeholder="输入证件号前六位,多个证件号以逗号隔开"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="flex f-c products" style="padding: 0 20px;">
|
|
|
+ <div class="productstitle flex j-s">
|
|
|
+ <div><span>险种保费</span></div>
|
|
|
+ </div>
|
|
|
+ <el-form ref="form" :model="insuranceFactorForm" label-width="100px" :size="overSize">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="商业险">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.SyInsurance.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.SyInsurance.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="交强险">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.JqInsurance.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.JqInsurance.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="车船税">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.Vehicle.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.Vehicle.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="三者险">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.ThInsurance.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.ThInsurance.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="司机">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.Driver.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.Driver.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="乘客">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.Passenger.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.Passenger.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="医保外三者">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.MedicalTh.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.MedicalTh.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="医保外司机">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.MedicalDriver.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.MedicalDriver.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="医保外乘客">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.MedicalPassenger.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.MedicalPassenger.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="随车产品">
|
|
|
+ <el-input-number v-model="insuranceFactorForm.Subsidiary.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number v-model="insuranceFactorForm.Subsidiary.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="flex f-c products" style="padding: 0 20px;">
|
|
|
+ <div class="productstitle flex j-s">
|
|
|
+ <div><span>其他因子</span></div>
|
|
|
+ </div>
|
|
|
+ <el-form ref="form" :model="otherFactorForm" label-width="150px" :size="overSize">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="商业险折扣">
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.SyDiscount.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.SyDiscount.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="商业险浮动范围">
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.SyFloating.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.SyFloating.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="商业险评分">
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.SyScore.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.SyScore.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="交强险折扣">
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.JqDiscount.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.JqDiscount.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="交强险浮动范围">
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.JqFloating.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.JqFloating.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="保司评分">
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.insScore.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.insScore.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="连续承保期间出现次数">
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.ContinuousSum.minValue"></el-input-number>
|
|
|
+ <i class="el-icon-minus"></i>
|
|
|
+ <el-input-number :size="overSize" v-model="otherFactorForm.ContinuousSum.maxValue"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button :size="overSize" @click="wholeVisible = false">取 消</el-button>
|
|
|
+ <el-button :size="overSize" type="primary" @click="otherFactorsubmit()">保存</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog> -->
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -1513,6 +1853,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ supplierType: "1",//协议类型
|
|
|
//===========================================
|
|
|
licenseNo1: "",
|
|
|
licenseNo2: "",
|
|
|
@@ -1533,7 +1874,7 @@ export default {
|
|
|
totalSize: null,
|
|
|
queryInfo: {
|
|
|
|
|
|
- insuranceCompanyId: "",
|
|
|
+ associationCompaniesId: "",
|
|
|
},
|
|
|
agreementdialogVisible: false, //控制协议对话框显示
|
|
|
otherproductsdialogVisible: false,//其他产品费用对话框显示
|
|
|
@@ -1541,6 +1882,7 @@ export default {
|
|
|
personFactorVisible: false,//费用从人因子 显示/隐藏
|
|
|
insuranceFactorVisible: false,//费用保费因子 显示/隐藏
|
|
|
otherFactorVisible: false,//费用其他因子 显示/隐藏
|
|
|
+ wholeVisible: false,
|
|
|
//产品list获取
|
|
|
productList: [],//产品接口数据
|
|
|
roductList1: ['车险'],//产品绑定list
|
|
|
@@ -1563,19 +1905,20 @@ export default {
|
|
|
agreementAbbreviation: "",//协议简称
|
|
|
agreementCode: "",//协议代码
|
|
|
agreementName: "",// 协议名称
|
|
|
- agreementType: "",//协议类型
|
|
|
+ agreementType: "2",//协议类型
|
|
|
cooperationChannels: "",//合作渠道
|
|
|
dockingPerson: "",//对接人
|
|
|
dockingPhone: "",//联系方式(对接人)
|
|
|
endDate: "",//协议止期
|
|
|
fileId: "",// 附件id
|
|
|
- insuranceCompanyId: "",//合作公司
|
|
|
+ associationCompaniesId: "",//保险公司id
|
|
|
matchType: "",//保单日期类型
|
|
|
moneyTime: 0,//结算周期
|
|
|
moneyType: "",//佣金发放方式
|
|
|
startDate: "",//协议起期
|
|
|
validStatus: "",//有效状态
|
|
|
- withTax: ""//含增值税结算
|
|
|
+ withTax: "",//含增值税结算
|
|
|
+ partnerCompaniesId: "",//合作公司
|
|
|
},
|
|
|
VehicleFactorlineindex: "",
|
|
|
VehicleFactoroutindex: "",
|
|
|
@@ -1807,8 +2150,8 @@ export default {
|
|
|
// 授权公司列表End
|
|
|
|
|
|
/**Split 开始 */
|
|
|
- leftSplitWidth: 20,
|
|
|
- rightSplitWidth: 80,
|
|
|
+ leftSplitWidth: 30,
|
|
|
+ rightSplitWidth: 70,
|
|
|
/**Split 结束 */
|
|
|
|
|
|
//----ztree begin---------
|
|
|
@@ -1893,7 +2236,7 @@ export default {
|
|
|
|
|
|
],
|
|
|
// 右侧列表查询数据End
|
|
|
-
|
|
|
+ options1: [],
|
|
|
optionProps: {
|
|
|
//公司下拉列表配置
|
|
|
checkStrictly: true,
|
|
|
@@ -1929,7 +2272,10 @@ export default {
|
|
|
agreementType: [
|
|
|
{ required: true, message: "请选择协议类型", trigger: "blur" },
|
|
|
],
|
|
|
- insuranceCompanyId: [
|
|
|
+ associationCompaniesId: [
|
|
|
+ { required: true, message: "请选择保险公司", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ partnerCompaniesId: [
|
|
|
{ required: true, message: "请选择合作公司", trigger: "blur" },
|
|
|
],
|
|
|
cooperationChannels: [
|
|
|
@@ -1965,13 +2311,10 @@ export default {
|
|
|
},
|
|
|
//------------协议下拉框数据 begin-----------------
|
|
|
agreementTypeoptions: [], //协议类型
|
|
|
- channeloptions: [], //合作渠道
|
|
|
- matchtypeoptions: [], //保单匹配协议日期类型
|
|
|
- moneytypeoptions: [], //佣金发放方式
|
|
|
- feetypeoptions: [], //费率类型
|
|
|
- cancarkindoptions: [], //可承保车辆种类
|
|
|
- canusenatureoptions: [], //可承保使用性质
|
|
|
- carareaoptions: [], //可承保地区
|
|
|
+ matchTypeoptions: [], //保单匹配协议日期类型
|
|
|
+ moneyTypeoptions: [], //佣金发放方式
|
|
|
+ supplierTypeEnumoptions: [],//供应商类型
|
|
|
+ approvalStatusoptions: [],//审批状态
|
|
|
//------------协议下拉框数据 ,。end-----------------
|
|
|
|
|
|
statusalloptions: [
|
|
|
@@ -1981,13 +2324,7 @@ export default {
|
|
|
{ value: "99", label: "已失效" },
|
|
|
],
|
|
|
|
|
|
- //承保规则表单
|
|
|
- rulesForm: {
|
|
|
- feetype: "", //费率类型
|
|
|
- cancity: "", //可承保市
|
|
|
- cancarkind: "", //车辆种类
|
|
|
- canusenature: "", //使用性质
|
|
|
- },
|
|
|
+
|
|
|
|
|
|
// 第二个弹框的数据Start
|
|
|
addProductId: "",
|
|
|
@@ -1997,33 +2334,13 @@ export default {
|
|
|
productTabsValue: "2",
|
|
|
productTabs: [],
|
|
|
|
|
|
- agreementProdsRules: {
|
|
|
- feetype: [
|
|
|
- { required: true, message: "请选择费率类型", trigger: "blur" },
|
|
|
- ],
|
|
|
- productrate: [
|
|
|
- { required: true, message: "请选择产品佣金比例", trigger: "blur" },
|
|
|
- ],
|
|
|
- feestyle: [
|
|
|
- { required: true, message: "请选择费用形式", trigger: "blur" },
|
|
|
- ],
|
|
|
- cancity: [
|
|
|
- { required: true, message: "请选择可承保市", trigger: "blur" },
|
|
|
- ],
|
|
|
- cancarkind: [
|
|
|
- { required: true, message: "请选择车辆种类", trigger: "blur" },
|
|
|
- ],
|
|
|
- canusenature: [
|
|
|
- { required: true, message: "请选择使用性质", trigger: "blur" },
|
|
|
- ],
|
|
|
- },
|
|
|
prodInsurance: [],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
containsSubChecked(val) {
|
|
|
if (val) {
|
|
|
- this.queryInfo.insuranceCompanyId = "";
|
|
|
+ this.queryInfo.associationCompaniesId = "";
|
|
|
this.findPage();
|
|
|
} else {
|
|
|
this.pageRequest.columnFilters.inscode.value = this.currentTreeNode.id;
|
|
|
@@ -2075,6 +2392,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
|
+
|
|
|
this.peopleid = Cookies.get("user");
|
|
|
if (this.peopleid != "admin") {
|
|
|
this.peopledeptid = Cookies.get("user").split("D")[0];
|
|
|
@@ -2082,17 +2400,19 @@ export default {
|
|
|
this.peopledeptid = "9";
|
|
|
}
|
|
|
//获取所有下拉框数据
|
|
|
- this.getDictItems("agreementType");//协议类型
|
|
|
- this.getDictItems("channel");//合作渠道
|
|
|
- this.getDictItems("matchtype");//保单日期类型
|
|
|
- this.getDictItems("moneytype");//佣金发放方式
|
|
|
- this.getDictItems("feetype");
|
|
|
- this.getDictItems("cancarkind");
|
|
|
- this.getDictItems("canusenature");
|
|
|
+ this.agreement.associationCompaniesId = "";
|
|
|
+ this.getDicType("agreementType");//协议类型
|
|
|
+ this.getDicType("matchType");//保单日期类型
|
|
|
+ this.getDicType("moneyType");//佣金发放方式
|
|
|
+ this.getDicType("supplierTypeEnum");//供应商类型
|
|
|
+ this.getDicType("approvalStatus");//审批状态
|
|
|
this.findPage();
|
|
|
this.$api.insCompany.getCodeAndName().then(res => {
|
|
|
this.productList = res.data;
|
|
|
})
|
|
|
+ this.$api.insCompany.gainTopList("1").then(res => {
|
|
|
+ this.prodInsurance = res.data;
|
|
|
+ })
|
|
|
localStorage.setItem('rule', JSON.stringify(this.UnderwritingRules))
|
|
|
this.$api.dept.findDeptTree().then((res) => {
|
|
|
this.treedata = res.data;
|
|
|
@@ -2103,13 +2423,13 @@ export default {
|
|
|
this.findLeftTreeData();
|
|
|
this.getAllCompany();
|
|
|
//用像素初始化左边的split的宽度
|
|
|
- this.changeTreeWidth(200); // 初始化树的宽度
|
|
|
+ this.changeTreeWidth(250); // 初始化树的宽度
|
|
|
},
|
|
|
methods: {
|
|
|
//请求类型change
|
|
|
apiChange(e) {
|
|
|
let params = {
|
|
|
- insCompanyId: this.agreement.insuranceCompanyId,
|
|
|
+ insCompanyId: this.agreement.partnerCompaniesId,
|
|
|
apiType: e,
|
|
|
}
|
|
|
this.$api.insCompany.getPtlInsAttributionTemplate(params).then(res => {
|
|
|
@@ -2126,19 +2446,20 @@ export default {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ agreementTypeChange(value) {
|
|
|
+ this.agreement.agreementType=value;
|
|
|
+ },
|
|
|
//修改开关事件
|
|
|
isEditchange(val, id) {
|
|
|
this.attributionform.fields[id].isEdit = val;
|
|
|
},
|
|
|
//授权树节点过滤
|
|
|
filterNode(value, data) {
|
|
|
- console.log(value, data)
|
|
|
if (!value) return true;
|
|
|
return data.name.indexOf(value) !== -1;
|
|
|
},
|
|
|
//获取选中节点
|
|
|
treechange(data, node) {
|
|
|
- console.log(node)
|
|
|
this.dept = [];
|
|
|
node.checkedKeys.map(ele => {
|
|
|
this.dept.push(ele);
|
|
|
@@ -2361,6 +2682,10 @@ export default {
|
|
|
this.otherFactorVisible = true;
|
|
|
}
|
|
|
},
|
|
|
+ wholeFactor(lineindex,outindex) {
|
|
|
+ console.log(lineindex,outindex)
|
|
|
+ this.wholeVisible = true;
|
|
|
+ },
|
|
|
VehicleFactorsubmit() {//车辆因子暂存
|
|
|
|
|
|
let key1 = this.VehicleFactorlineindex;
|
|
|
@@ -2388,6 +2713,7 @@ export default {
|
|
|
ele.factor.push(data)
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
this.personFactorVisible = false;
|
|
|
},
|
|
|
insuranceFactorsubmit() {//保费因子暂存
|
|
|
@@ -2423,7 +2749,9 @@ export default {
|
|
|
if (this.operType == "ADD") {
|
|
|
this.insure = '满足拒保'
|
|
|
for (let key in this.agreement) {
|
|
|
- this.agreement[key] = ""
|
|
|
+ if (key != "associationCompaniesId") {
|
|
|
+ this.agreement[key] = ""
|
|
|
+ }
|
|
|
}
|
|
|
if (this.roductList1.length > 0) {
|
|
|
this.roductList1 = [];
|
|
|
@@ -2494,14 +2822,30 @@ export default {
|
|
|
//--tree begin-------
|
|
|
// 获取树数据
|
|
|
findLeftTreeData: function () {
|
|
|
- this.$api.insCompany.findLeftInsTree().then((res) => {
|
|
|
+ let params = {
|
|
|
+ classname: "",
|
|
|
+ type: this.supplierType
|
|
|
+ }
|
|
|
+ this.$api.insCompany.findLeftInsTree(params).then((res) => {
|
|
|
+ this.ztreeNodes = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ supplierChange(e) {
|
|
|
+ let params = {
|
|
|
+ classname: "",
|
|
|
+ type: e,
|
|
|
+ }
|
|
|
+ this.$api.insCompany.findLeftInsTree(params).then((res) => {
|
|
|
this.ztreeNodes = res.data;
|
|
|
});
|
|
|
},
|
|
|
onZTreeClick: function (evt, treeId, treeNode) {
|
|
|
// 点击事件
|
|
|
this.containsSubChecked = false;
|
|
|
- this.queryInfo.insuranceCompanyId = treeNode.id;
|
|
|
+ this.queryInfo.partnerCompaniesId = treeNode.id;
|
|
|
+ this.agreement.partnerCompaniesId = treeNode.id;
|
|
|
+
|
|
|
this.findPage();
|
|
|
},
|
|
|
onZTreeCreated: function (ztreeObj) {
|
|
|
@@ -2513,16 +2857,12 @@ export default {
|
|
|
},
|
|
|
//-- tree end-------
|
|
|
//--数据字典 begin --
|
|
|
- getDictItems: function (typeName) {
|
|
|
- let that = this;
|
|
|
- that.$api.dict
|
|
|
- .findByLableName(typeName)
|
|
|
- .then(function (res) {
|
|
|
- that[typeName + "options"] = res.data; // 把获取到的数据赋给this.data
|
|
|
- })
|
|
|
- .catch(function (error) {
|
|
|
- that[typeName + "options"] = [];
|
|
|
- });
|
|
|
+ getDicType(type) {
|
|
|
+ this.$api.insCompany.dicType(type).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this[type + 'options'] = res.data.ddList;
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
//--数据字典 end --
|
|
|
//通过查询条件查询分页数据Start
|
|
|
@@ -2555,7 +2895,7 @@ export default {
|
|
|
let parmas = {
|
|
|
pageNum: this.pageNum,
|
|
|
pageSize: this.pageSize,
|
|
|
- insuranceCompanyId: this.queryInfo.insuranceCompanyId
|
|
|
+ associationCompaniesId: this.queryInfo.associationCompaniesId
|
|
|
}
|
|
|
this.$api.insCompany.agreementPage(parmas).then(res => {
|
|
|
this.pageResult = res.data.content;
|
|
|
@@ -2571,8 +2911,8 @@ export default {
|
|
|
let agreementType = row.agreementType;
|
|
|
return CommonUtil.getDataName({
|
|
|
dataList: this.agreementTypeoptions,
|
|
|
- value: "value",
|
|
|
- label: "label",
|
|
|
+ value: "dictValue",
|
|
|
+ label: "dictTag",
|
|
|
data: agreementType,
|
|
|
});
|
|
|
},
|
|
|
@@ -2580,9 +2920,9 @@ export default {
|
|
|
//匹配日期类型
|
|
|
let matchType = row.matchType;
|
|
|
return CommonUtil.getDataName({
|
|
|
- dataList: this.matchtypeoptions,
|
|
|
- value: "value",
|
|
|
- label: "label",
|
|
|
+ dataList: this.matchTypeoptions,
|
|
|
+ value: "dictValue",
|
|
|
+ label: "dictTag",
|
|
|
data: matchType,
|
|
|
});
|
|
|
},
|
|
|
@@ -2613,42 +2953,32 @@ export default {
|
|
|
//-- formatter end--
|
|
|
// 选择合作公司Start
|
|
|
handleChange(value) {
|
|
|
- console.log(value)
|
|
|
- this.agreement.insuranceCompanyId = value[value.length - 1];
|
|
|
- this.carareaoptions = [];
|
|
|
- this.rulesForm.cancity = [];
|
|
|
- if (value.length == 0 || value.length == 1) {
|
|
|
- } else {
|
|
|
- for (let i = 0; i < citydata.rawCitiesData.length; i++) {
|
|
|
- if (
|
|
|
- citydata.rawCitiesData[i].code.substring(0, 2) ==
|
|
|
- this.agreement.insuranceCompanyId.substring(6, 8)
|
|
|
- ) {
|
|
|
- this.carareaoptions = citydata.rawCitiesData[i].sub;
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+ this.agreement.partnerCompaniesId = value[value.length - 1];
|
|
|
+ if(this.supplierType == '1'){
|
|
|
+ this.agreement.agreementType="1";
|
|
|
+ }else if(this.supplierType == '0'){
|
|
|
+ this.agreement.agreementType="2";
|
|
|
}
|
|
|
- // 查找合作保险简称
|
|
|
- this.$api.insCompany
|
|
|
- .getInsCompanyById(value[value.length - 1])
|
|
|
- .then((res) => {
|
|
|
- this.agreement.insuranceCompany = res.data.namesimple;
|
|
|
- });
|
|
|
+ },
|
|
|
+ prodhandleChange(value) {
|
|
|
+ this.agreement.associationCompaniesId = value[value.length - 1];
|
|
|
},
|
|
|
// 选择合作公司end
|
|
|
handleAdd() {
|
|
|
this.operType = "ADD";
|
|
|
this.dialogTitle = "新增协议";
|
|
|
this.agreementdialogVisible = true;
|
|
|
+ if(this.supplierType == '1'){
|
|
|
+ this.agreement.agreementType="1";
|
|
|
+ }else if(this.supplierType == '0'){
|
|
|
+ this.agreement.agreementType="2";
|
|
|
+ }
|
|
|
},
|
|
|
closeVisible() {
|
|
|
this.carareaoptions = [];
|
|
|
this.$refs.addAgreementRef.resetFields();
|
|
|
- this.$refs.rulesForm.resetFields();
|
|
|
this.productTabs = [];
|
|
|
- for (let key in this.rulesForm) {
|
|
|
- this.rulesForm[key] = "";
|
|
|
- }
|
|
|
for (let key in this.agreement) {
|
|
|
if (key == "agreementProds") {
|
|
|
this.agreement[key] = [];
|