|
@@ -661,22 +661,23 @@
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<el-dialog title="产品历史记录" :visible.sync="productHistoryRecordDialogVisible" width="70%" :fullscreen="true">
|
|
<el-dialog title="产品历史记录" :visible.sync="productHistoryRecordDialogVisible" width="70%" :fullscreen="true">
|
|
|
- <kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="false"
|
|
|
|
|
- :showBatchDelete="false" :showBatchSettled="false" :showBatchPrint="false" :data="productHistoryRecordResult"
|
|
|
|
|
- :columns="productHistoryRecordColumns" @findPage="productHistoryCostFindPage">
|
|
|
|
|
|
|
+ <kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="true"
|
|
|
|
|
+ button2Name="详情" @handleButton2="productHistoryDetails" :showBatchDelete="false" :showBatchSettled="false"
|
|
|
|
|
+ :showBatchPrint="false" :data="productHistoryRecordResult" :columns="productHistoryRecordColumns"
|
|
|
|
|
+ @findPage="productHistoryCostFindPage">
|
|
|
</kt-common-table>
|
|
</kt-common-table>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog title="承保规则历史记录" :visible.sync="underwritingRulesHistoryRecordDialogVisible" width="70%"
|
|
<el-dialog title="承保规则历史记录" :visible.sync="underwritingRulesHistoryRecordDialogVisible" width="70%"
|
|
|
:fullscreen="true">
|
|
:fullscreen="true">
|
|
|
- <kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="false"
|
|
|
|
|
- :showBatchDelete="false" :showBatchSettled="false" :showBatchPrint="false"
|
|
|
|
|
- :data="underwritingRulesHistoryRecordResult" :columns="underwritingRulesHistoryRecordColumns"
|
|
|
|
|
- @findPage="underwritingRulesHistoryCostFindPage">
|
|
|
|
|
|
|
+ <kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="true"
|
|
|
|
|
+ :showBatchDelete="false" :showBatchSettled="false" :showBatchPrint="false" button2Name="详情"
|
|
|
|
|
+ @handleButton2="underwritingRulesHistoryDetails" :data="underwritingRulesHistoryRecordResult"
|
|
|
|
|
+ :columns="underwritingRulesHistoryRecordColumns" @findPage="underwritingRulesHistoryCostFindPage">
|
|
|
</kt-common-table>
|
|
</kt-common-table>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog title="协议历史记录" :visible.sync="agreementHistoryRecordDialogVisible" width="70%" :fullscreen="true">
|
|
<el-dialog title="协议历史记录" :visible.sync="agreementHistoryRecordDialogVisible" width="70%" :fullscreen="true">
|
|
|
<kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="true"
|
|
<kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="true"
|
|
|
- button5Name="详情" @handleButton5="handleButtonHistory" :showBatchDelete="false" :showBatchSettled="false"
|
|
|
|
|
|
|
+ button2Name="详情" @handleButton2="agreementsHistory" :showBatchDelete="false" :showBatchSettled="false"
|
|
|
:showBatchPrint="false" :data="agreementHistoryRecordResult" :columns="agreementHistoryRecordColumns"
|
|
:showBatchPrint="false" :data="agreementHistoryRecordResult" :columns="agreementHistoryRecordColumns"
|
|
|
@findPage="agreementHistoryCostFindPage">
|
|
@findPage="agreementHistoryCostFindPage">
|
|
|
</kt-common-table>
|
|
</kt-common-table>
|
|
@@ -713,7 +714,229 @@
|
|
|
:data="productcopyItemResult" :columns="productcopyItemColumns" @findPage="productcopyItemFindPage">
|
|
:data="productcopyItemResult" :columns="productcopyItemColumns" @findPage="productcopyItemFindPage">
|
|
|
</kt-common-table>
|
|
</kt-common-table>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
-
|
|
|
|
|
|
|
+ <el-dialog title="协议历史记录详情" :visible.sync="agreementsHistoryDialogVisible" width="70%" @close="agreementsHistorycloseDialog">
|
|
|
|
|
+ <el-tabs v-model="activeTabs" type="card" @tab-click="handleClickTab">
|
|
|
|
|
+ <el-tab-pane label="协议信息" name="first">
|
|
|
|
|
+ <el-form :size="overSize" :model="agreementsHistoryInfo.agreement" ref="addAgreementRef" disabled
|
|
|
|
|
+ label-width="130px">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议代码">
|
|
|
|
|
+ <el-input v-model="agreementsHistoryInfo.agreement.agreementCode" disabled placeholder="请输入协议代码"
|
|
|
|
|
+ style="width: 100%"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议名称" prop="agreementName">
|
|
|
|
|
+ <el-input v-model="agreementsHistoryInfo.agreement.agreementName" placeholder="请输入协议名称"
|
|
|
|
|
+ style="width: 100%"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议简称" prop="agreementAbbreviation">
|
|
|
|
|
+ <el-input v-model="agreementsHistoryInfo.agreement.agreementAbbreviation" placeholder="请输入协议简称"
|
|
|
|
|
+ style="width: 100%"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议类型" prop="agreementType">
|
|
|
|
|
+ <el-select v-model="agreementsHistoryInfo.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="partnerCompaniesId">
|
|
|
|
|
+ <el-cascader :disabled="operType == 'EDIT'" style="width: 100%"
|
|
|
|
|
+ v-model="agreementsHistoryInfo.agreement.partnerCompaniesId" :show-all-levels="false"
|
|
|
|
|
+ :options="ztreeNodes" :props="optionProps" @change="handleChange" clearable filterable></el-cascader>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="保险公司" :prop="supplierType == '1' ? '' : 'associationCompaniesId'">
|
|
|
|
|
+ <el-cascader :disabled="supplierType == '1' || operType == 'EDIT'" style="width: 100%"
|
|
|
|
|
+ v-model="agreementsHistoryInfo.agreement.associationCompaniesId" :show-all-levels="false"
|
|
|
|
|
+ :options="prodInsurance" :props="optionProps" @change="prodhandleChange" clearable
|
|
|
|
|
+ filterable></el-cascader>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="对接人" prop="dockingPerson">
|
|
|
|
|
+ <el-input v-model="agreementsHistoryInfo.agreement.dockingPerson" placeholder="请添加对接人"
|
|
|
|
|
+ style="width: 100%"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="联系方式" prop="dockingPhone">
|
|
|
|
|
+ <el-input maxlength="11" show-word-limit v-model="agreementsHistoryInfo.agreement.dockingPhone"
|
|
|
|
|
+ placeholder="请输入联系方式" style="width: 100%" type="text"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="含增值税结算" prop="withTax">
|
|
|
|
|
+ <el-select v-model="agreementsHistoryInfo.agreement.withTax" placeholder="请选择是否含增值税结算"
|
|
|
|
|
+ style="width: 100%">
|
|
|
|
|
+ <el-option label="是" value="是"></el-option>
|
|
|
|
|
+ <el-option label="否" value="否"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="保单日期类型" prop="matchType">
|
|
|
|
|
+ <el-select v-model="agreementsHistoryInfo.agreement.matchType" placeholder="请选择保单日期类型"
|
|
|
|
|
+ style="width: 100%">
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议生效日期" prop="startDate">
|
|
|
|
|
+ <el-date-picker style="width: 100%" v-model="agreementsHistoryInfo.agreement.startDate" type="date"
|
|
|
|
|
+ placeholder="选择协议生效日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd">
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议失效日期" prop="endDate">
|
|
|
|
|
+ <el-date-picker style="width: 100%" v-model="agreementsHistoryInfo.agreement.endDate" type="date"
|
|
|
|
|
+ placeholder="选择失效日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd">
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="佣金发放方式" prop="moneyType">
|
|
|
|
|
+ <el-select v-model="agreementsHistoryInfo.agreement.moneyType" placeholder="请选择佣金发放方式"
|
|
|
|
|
+ style="width: 100%">
|
|
|
|
|
+ <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>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="有效状态" prop="validStatus">
|
|
|
|
|
+ <el-select v-model="agreementsHistoryInfo.agreement.validStatus" placeholder="请选择有效状态"
|
|
|
|
|
+ style="width: 100%">
|
|
|
|
|
+ <el-option label="有效" value="1"></el-option>
|
|
|
|
|
+ <el-option label="无效" value="2"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="结算周期" prop="moneyTime">
|
|
|
|
|
+ <el-select v-model="agreementsHistoryInfo.agreement.moneyTime" placeholder="请选择结算周期"
|
|
|
|
|
+ style="width: 100%">
|
|
|
|
|
+ <el-option :label="'T+' + item" :value="item" v-for="item of 60" :key="item"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="审核方式">
|
|
|
|
|
+ <el-select v-model="agreementsHistoryInfo.agreement.auditType" placeholder="请选择审核方式"
|
|
|
|
|
+ style="width: 100%">
|
|
|
|
|
+ <el-option label="人工审核" value="1"></el-option>
|
|
|
|
|
+ <el-option label="自动审核" value="2"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="序号" prop="serialNumber">
|
|
|
|
|
+ <el-input-number :min="0" v-model="agreementsHistoryInfo.agreement.serialNumber"></el-input-number>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="描述" prop="underwritingDescription">
|
|
|
|
|
+ <el-input type="textarea" :rows="2" placeholder="请输入内容"
|
|
|
|
|
+ v-model="agreementsHistoryInfo.agreement.underwritingDescription"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="保险公司账号配置" name="inscommany">
|
|
|
|
|
+ <el-form class="demo-ruleForm wrap-scrollbar scroll-style" :model="agreementsHistoryInfo.attributionform"
|
|
|
|
|
+ ref="attributionform" :label-width="labelWidth" size="small">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item class="apistyle" label="api类型:">
|
|
|
|
|
+ <el-select class="widths1" v-model="agreementsHistoryInfo.attributionform.apiType" @change="apiChange">
|
|
|
|
|
+ <el-option label="API" :value="1"></el-option>
|
|
|
|
|
+ <el-option label="python" :value="2"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <div v-if="attributionform.apiType == 2">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <h4>账号配置</h4>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="11">
|
|
|
|
|
+ <el-form-item label="用户名:" prop="username">
|
|
|
|
|
+ <el-input v-model="attributionform.username" placeholder="请输入用户名"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="11">
|
|
|
|
|
+ <el-form-item label="密码:" prop="password">
|
|
|
|
|
+ <el-input v-model="attributionform.password" placeholder="请输入密码"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <template v-if="attributionform.fields.length > 0">
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <h4>配置参数</h4>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="11" v-for="(domain, index) in attributionform.fields" :key="domain.index">
|
|
|
|
|
+ <el-form-item :label="domain.label + ':'" :prop="'fields.' + index + '.value'" :rules="{
|
|
|
|
|
+ required: domain.isEdit,
|
|
|
|
|
+ message: domain.label + '不能为空',
|
|
|
|
|
+ trigger: 'blur',
|
|
|
|
|
+ }">
|
|
|
|
|
+ <el-input class="widths1" v-model="domain.value" :type="domain.type"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="授权" name="authorize">
|
|
|
|
|
+ <el-tree class="filter-tree" :data="treedata" accordion :props="defaultProps" show-checkbox node-key="id"
|
|
|
|
|
+ :filter-node-method="filterNode" :default-checked-keys="treekeys" ref="trees" @check="treechange"
|
|
|
|
|
+ :default-expand-all="expandshow">
|
|
|
|
|
+ </el-tree>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
+ </el-tabs>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <el-dialog title="产品费用历史记录详情" :visible.sync="productHistoryDetailsDialogVisible" width="70%" :fullscreen="true">
|
|
|
|
|
+ <Product-Cost-Form v-if="productHistoryDetailsDialogVisible" :form="dynamicFormArray" :operator="operatorlist"
|
|
|
|
|
+ over-size="small" @cancelForm="productHistoryDetailsDialogVisible = false" :disabled="true"></Product-Cost-Form>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <el-dialog title="产品费用历史记录详情" :visible.sync="underwritingRulesHistoryDetailsDialogVisible" width="70%"
|
|
|
|
|
+ :fullscreen="true">
|
|
|
|
|
+ <Product-Cost-Form v-if="underwritingRulesHistoryDetailsDialogVisible" :form="dynamicFormArray"
|
|
|
|
|
+ :operator="operatorlist" over-size="small" @cancelForm="underwritingRulesHistoryDetailsDialogVisible = false"
|
|
|
|
|
+ :disabled="true"></Product-Cost-Form>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -1243,6 +1466,9 @@ export default {
|
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
|
totalSize: null,
|
|
totalSize: null,
|
|
|
agreementdialogVisible: false, //控制协议对话框显示
|
|
agreementdialogVisible: false, //控制协议对话框显示
|
|
|
|
|
+ agreementsHistoryDialogVisible: false,
|
|
|
|
|
+ productHistoryDetailsDialogVisible: false,
|
|
|
|
|
+ underwritingRulesHistoryDetailsDialogVisible: false,
|
|
|
VehicleFactorVisible: false, //费用车辆因子 显示/隐藏
|
|
VehicleFactorVisible: false, //费用车辆因子 显示/隐藏
|
|
|
productCostVehicleFactorVisible: false, //产品费用 显示/隐藏
|
|
productCostVehicleFactorVisible: false, //产品费用 显示/隐藏
|
|
|
productCostAddVehicleFactorVisible: false, //产品费用录入 显示/隐藏
|
|
productCostAddVehicleFactorVisible: false, //产品费用录入 显示/隐藏
|
|
@@ -1273,6 +1499,11 @@ export default {
|
|
|
underwritingRulesAddDialogTitle: "承保规则录入",
|
|
underwritingRulesAddDialogTitle: "承保规则录入",
|
|
|
underwritingRulesAddDialogType: "add",
|
|
underwritingRulesAddDialogType: "add",
|
|
|
//协议json
|
|
//协议json
|
|
|
|
|
+ agreementsHistoryInfo: {
|
|
|
|
|
+ agreement: {},
|
|
|
|
|
+ attributionform: {},
|
|
|
|
|
+ dept: [],
|
|
|
|
|
+ },
|
|
|
agreement: {
|
|
agreement: {
|
|
|
agreementAbbreviation: "", //协议简称
|
|
agreementAbbreviation: "", //协议简称
|
|
|
agreementCode: "", //协议代码
|
|
agreementCode: "", //协议代码
|
|
@@ -1651,6 +1882,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.agreement.partnerCompaniesId = "";
|
|
this.agreement.partnerCompaniesId = "";
|
|
|
|
|
+
|
|
|
this.getDicType("agreementType"); //协议类型
|
|
this.getDicType("agreementType"); //协议类型
|
|
|
this.getDicType("matchType"); //保单日期类型
|
|
this.getDicType("matchType"); //保单日期类型
|
|
|
this.getDicType("moneyType"); //佣金发放方式
|
|
this.getDicType("moneyType"); //佣金发放方式
|
|
@@ -1743,12 +1975,36 @@ export default {
|
|
|
this.queryForm.agreementEndDate = e[1];
|
|
this.queryForm.agreementEndDate = e[1];
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- // 协议历史记录里的详情
|
|
|
|
|
- handleButtonHistory({ row, column }) {
|
|
|
|
|
- this.$api.insCompany.agreementhistoryGetDetail(row.id).then((res) => {
|
|
|
|
|
|
|
+ // 协议历史记录详情
|
|
|
|
|
+ agreementsHistory({ row, column }) {
|
|
|
|
|
+ this.dept=[];
|
|
|
|
|
+ this.treekeys=[];
|
|
|
|
|
+ this.$api.insCompany.agreementhistoryGetDetail(row.batch).then((res) => {
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
|
- let obj = Object.assign({}, res.data);
|
|
|
|
|
- obj.costsAttrLinks.map(val => {
|
|
|
|
|
|
|
+ this.agreementsHistoryDialogVisible = true;
|
|
|
|
|
+ this.agreementsHistoryInfo.agreement = res.data.ptlAgreementHistory;
|
|
|
|
|
+ this.agreementsHistoryInfo.attributionform = res.data.ptlAgreementAttributionHistory ? res.data.ptlAgreementAttributionHistory : '{}';
|
|
|
|
|
+ if (res.data.deptHistories.length > 0) {
|
|
|
|
|
+ res.data.deptHistories.map((ele, index) => {
|
|
|
|
|
+ this.dept.push(ele.deptId);
|
|
|
|
|
+ return ele;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ this.treekeys = this.dept;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ //产品历史记录详情
|
|
|
|
|
+ productHistoryDetails({ row, column }) {
|
|
|
|
|
+ this.$api.insCompany.productCostHistoryDetails(row.batch).then((res) => {
|
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
|
+ let obj = Object.assign({}, res.data.agreementProductCostsNewHistory);
|
|
|
|
|
+ obj.costsAttrLinkList.map(val => {
|
|
|
switch (val.attrType) {
|
|
switch (val.attrType) {
|
|
|
case 'inputNumber':
|
|
case 'inputNumber':
|
|
|
if (!val.operator) {
|
|
if (!val.operator) {
|
|
@@ -1762,7 +2018,40 @@ export default {
|
|
|
return val;
|
|
return val;
|
|
|
})
|
|
})
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
- this.dynamicFormArray = obj.costsAttrLinks;
|
|
|
|
|
|
|
+ this.dynamicFormArray = obj.costsAttrLinkList;
|
|
|
|
|
+ this.productCostForm = obj;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.productHistoryDetailsDialogVisible = true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ // this.productHistoryDetailsDialogVisible = true;
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ //承保规则历史记录详情
|
|
|
|
|
+ underwritingRulesHistoryDetails({ row, column }) {
|
|
|
|
|
+ this.$api.insCompany.undwrtRulesHistoryPageDetails(row.batch).then((res) => {
|
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
|
+ let obj = Object.assign({}, res.data.agreementUndwrtRulesNewHistory);
|
|
|
|
|
+ obj.costsAttrLinkList.map(val => {
|
|
|
|
|
+ switch (val.attrType) {
|
|
|
|
|
+ case 'inputNumber':
|
|
|
|
|
+ if (!val.operator) {
|
|
|
|
|
+ val.operator = '1';
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (val.attrCode == 'LicenseNo') {
|
|
|
|
|
+ val.dictLabal = this.areanumberplateList;
|
|
|
|
|
+ }
|
|
|
|
|
+ return val;
|
|
|
|
|
+ })
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.dynamicFormArray = obj.costsAttrLinkList;
|
|
|
this.underwritingRulesForm = {
|
|
this.underwritingRulesForm = {
|
|
|
id: obj.id,
|
|
id: obj.id,
|
|
|
agreementId: obj.agreementId, //协议id
|
|
agreementId: obj.agreementId, //协议id
|
|
@@ -1771,9 +2060,6 @@ export default {
|
|
|
rulesAttrList: [],//规则属性
|
|
rulesAttrList: [],//规则属性
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
- this.underwritingRulesAddDialogType = "edit";
|
|
|
|
|
- this.underwritingRulesAddDialogTitle = "承保规则编辑";
|
|
|
|
|
- this.underwritingRulesAddVehicleFactorVisible = true;
|
|
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -1781,6 +2067,8 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ this.underwritingRulesHistoryDetailsDialogVisible = true;
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
getFactorTemplate() {
|
|
getFactorTemplate() {
|
|
|
this.$api.insCompany.productConfigItem().then(res => {
|
|
this.$api.insCompany.productConfigItem().then(res => {
|
|
@@ -1991,9 +2279,9 @@ export default {
|
|
|
//产品费用复制
|
|
//产品费用复制
|
|
|
expenseCopy() {
|
|
expenseCopy() {
|
|
|
this.productCostCopyDialogVisible = true;
|
|
this.productCostCopyDialogVisible = true;
|
|
|
- this.productcopyItemPageRequest.agreementId="";
|
|
|
|
|
- this.productcopyItemPageRequest.productCode="";
|
|
|
|
|
- this.productcopyItemResult=[];
|
|
|
|
|
|
|
+ this.productcopyItemPageRequest.agreementId = "";
|
|
|
|
|
+ this.productcopyItemPageRequest.productCode = "";
|
|
|
|
|
+ this.productcopyItemResult = [];
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
//产品编辑
|
|
//产品编辑
|
|
@@ -2316,6 +2604,13 @@ export default {
|
|
|
this.parentkeys = [];
|
|
this.parentkeys = [];
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ agreementsHistorycloseDialog(){
|
|
|
|
|
+ if (this.treekeys.length) {
|
|
|
|
|
+ this.$refs.trees.setCheckedKeys([]);
|
|
|
|
|
+ this.expandshow = false;
|
|
|
|
|
+ this.parentkeys = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
totalCostRatioInput(total, partial, other) {
|
|
totalCostRatioInput(total, partial, other) {
|
|
|
//参数1为总费用,参数2为费用
|
|
//参数1为总费用,参数2为费用
|
|
|
let pay1 = this.productCostForm[total]; //总
|
|
let pay1 = this.productCostForm[total]; //总
|