瀏覽代碼

协议增加险种配置

@dongkboy 2 年之前
父節點
當前提交
aa36cd31a0
共有 1 個文件被更改,包括 12 次插入 和 6 次删除
  1. 12 6
      src/views/AgreementManage/CarInsurance/AgreementEntry.vue

+ 12 - 6
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -290,9 +290,9 @@
                 </el-form-item>
                 </el-form-item>
               </el-col>
               </el-col>
               <el-col :span="12">
               <el-col :span="12">
-                <el-form-item label="产品">
-                  <el-select v-model="productFilterList" multiple   placeholder="选择产品" style="width: 100%" @change="productFilterListChange">
-                    <el-option v-for="item in productsTypeoptions" :key="item.dictValue" :label="item.dictTag"
+                <el-form-item label="险种配置">
+                  <el-select v-model="productFilterList" multiple   placeholder="选择险种" style="width: 100%" @change="productFilterListChange">
+                    <el-option v-for="item in InsInsuranceKindoptions" :key="item.dictValue" :label="item.dictTag"
                       :value="item.dictValue"></el-option>
                       :value="item.dictValue"></el-option>
                   </el-select>
                   </el-select>
                 </el-form-item>
                 </el-form-item>
@@ -866,9 +866,9 @@
                 </el-form-item>
                 </el-form-item>
               </el-col>
               </el-col>
               <el-col :span="12">
               <el-col :span="12">
-                <el-form-item label="产品">
-                  <el-select v-model="productFilterList" multiple   placeholder="选择产品" style="width: 100%" @change="productFilterListChange">
-                    <el-option v-for="item in productsTypeoptions" :key="item.dictValue" :label="item.dictTag"
+                <el-form-item label="险种配置">
+                  <el-select v-model="productFilterList" multiple   placeholder="选择险种" style="width: 100%" @change="productFilterListChange">
+                    <el-option v-for="item in InsInsuranceKindoptions" :key="item.dictValue" :label="item.dictTag"
                       :value="item.dictValue"></el-option>
                       :value="item.dictValue"></el-option>
                   </el-select>
                   </el-select>
                 </el-form-item>
                 </el-form-item>
@@ -1826,6 +1826,7 @@ export default {
       approvalStatusoptions: [], //审批状态
       approvalStatusoptions: [], //审批状态
       productsTypeoptions: [], //车险产品字典
       productsTypeoptions: [], //车险产品字典
       productsTypeRuleoptions: [], //车险产品字典(不含费用的兜底配置)
       productsTypeRuleoptions: [], //车险产品字典(不含费用的兜底配置)
+      InsInsuranceKindoptions:[],//险种配置
       //操作符字典
       //操作符字典
       operator: { "pageNum": 1, "pageSize": 10, "columnFilters": { "label": { "name": "label", "value": "agreement_operator" } } },
       operator: { "pageNum": 1, "pageSize": 10, "columnFilters": { "label": { "name": "label", "value": "agreement_operator" } } },
       operatorlist: [],
       operatorlist: [],
@@ -1904,6 +1905,7 @@ export default {
     })
     })
     this.agreement.partnerCompaniesId = "";
     this.agreement.partnerCompaniesId = "";
 
 
+    this.getDicType("InsInsuranceKind"); //险种类型
     this.getDicType("agreementType"); //协议类型
     this.getDicType("agreementType"); //协议类型
     this.getDicType("matchType"); //保单日期类型
     this.getDicType("matchType"); //保单日期类型
     this.getDicType("moneyType"); //佣金发放方式
     this.getDicType("moneyType"); //佣金发放方式
@@ -2007,6 +2009,8 @@ export default {
       this.$api.insCompany.agreementhistoryGetDetail(row.batch).then((res) => {
       this.$api.insCompany.agreementhistoryGetDetail(row.batch).then((res) => {
         if (res.code == '200') {
         if (res.code == '200') {
           this.agreementsHistoryDialogVisible = true;
           this.agreementsHistoryDialogVisible = true;
+          let productsCodeList=res.data.ptlAgreementHistory.productsCode.split(",");
+          this.productFilterList=productsCodeList;
           this.agreementsHistoryInfo.agreement = res.data.ptlAgreementHistory;
           this.agreementsHistoryInfo.agreement = res.data.ptlAgreementHistory;
           this.agreementsHistoryInfo.attributionform = res.data.ptlAgreementAttributionHistory ? res.data.ptlAgreementAttributionHistory : '{}';
           this.agreementsHistoryInfo.attributionform = res.data.ptlAgreementAttributionHistory ? res.data.ptlAgreementAttributionHistory : '{}';
           if (res.data.deptHistories.length > 0) {
           if (res.data.deptHistories.length > 0) {
@@ -2494,6 +2498,8 @@ export default {
       this.$api.insCompany.agreementId(row.id).then((res) => {
       this.$api.insCompany.agreementId(row.id).then((res) => {
         if (res.code == "200") {
         if (res.code == "200") {
           let scheme = res.data.scheme;
           let scheme = res.data.scheme;
+          let productsCodeList=res.data.agreement.productsCode.split(",");
+          this.productFilterList=productsCodeList;
           this.agreement = res.data.agreement; //协议信息
           this.agreement = res.data.agreement; //协议信息
           this.attributionform = res.data.ptlAgreementAttribution;
           this.attributionform = res.data.ptlAgreementAttribution;
           if (res.data.dept.length > 0) {
           if (res.data.dept.length > 0) {