|
|
@@ -69,7 +69,7 @@
|
|
|
</el-form>
|
|
|
<div style="padding:0 10px 10px 10px ;" class=" flex j-s a-c">
|
|
|
<span style="font-weight: bold;font-size: 15px;color: #242833;">
|
|
|
- {{ lineData.agreementName }} - {{ lineData.businessDescription }} - {{ lineData.jobDescription }} -
|
|
|
+ {{ lineData.agreementName }} - {{ lineData.businessDescription }} - {{ lineData.jobDescription }} -
|
|
|
产品详情
|
|
|
</span>
|
|
|
<div class="flex a-c ">
|
|
|
@@ -94,7 +94,7 @@
|
|
|
customToolName="批量删除" button3Name="删除" permsButton3="agreement:input:productCost" @handleButton3="productDelete"
|
|
|
button5Name="轨迹" @handleButton5="trajectory" button3Icon="">
|
|
|
</kt-common-table>
|
|
|
- <el-dialog :title="productCostAddDialogTitle" :visible.sync="productCostAddVehicleFactorVisible" width="80%" top="6vh"
|
|
|
+ <el-dialog :append-to-body="true" :title="productCostAddDialogTitle" :visible.sync="productCostAddVehicleFactorVisible" width="80%" top="6vh"
|
|
|
@close="productcloseDialog">
|
|
|
<el-tabs v-model="activeName" type="card">
|
|
|
<el-tab-pane :label="tabtitle + '费用'" name="feiyong" class="tab-panestyle">
|
|
|
@@ -139,7 +139,7 @@
|
|
|
onkeyup="value=value.replace(/\D/g,'')" placeholder="输入数字"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="10" v-show="!!$route.query.isExternal">
|
|
|
+ <el-col :span="10" v-show="!!messageInfo.isExternal">
|
|
|
<el-form-item label="是否现询">
|
|
|
<el-select v-model="productCostForm.isInquiryNow" placeholder="请选择">
|
|
|
<el-option value="1" label="是"></el-option>
|
|
|
@@ -152,21 +152,21 @@
|
|
|
<el-row v-if="productjqincludes">
|
|
|
<h4>交强险费用</h4>
|
|
|
<el-col :span="5" :offset="1">
|
|
|
- <el-form-item :label="$route.query.isExternal ? '交强入口手续费比例 ' : '费用比例'" prop="jqCarCostsProportion">
|
|
|
+ <el-form-item :label="messageInfo.isExternal ? '交强入口手续费比例 ' : '费用比例'" prop="jqCarCostsProportion">
|
|
|
<el-input v-model="productCostForm.jqCarCostsProportion"
|
|
|
@blur="costRatioInput('jqCostsProportion', 'jqCarCostsProportion', 'jqCarOtherCostsProportion')"
|
|
|
placeholder="请输入费用比例"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5" :offset="1"
|
|
|
- v-if="(permissions && !$route.query.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
+ v-if="(permissions && !messageInfo.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
<el-form-item label="其他费用比例">
|
|
|
<el-input disabled v-model="productCostForm.jqCarOtherCostsProportion"
|
|
|
placeholder="请输入其他费用比例"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5" :offset="1"
|
|
|
- v-if="(permissions && !$route.query.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
+ v-if="(permissions && !messageInfo.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
<el-form-item label="总费用比例" prop="jqCostsProportion">
|
|
|
<el-input v-model="productCostForm.jqCostsProportion"
|
|
|
@blur="totalCostRatioInput('jqCostsProportion', 'jqCarCostsProportion', 'jqCarOtherCostsProportion')"
|
|
|
@@ -208,7 +208,7 @@
|
|
|
<h4>商业险费用</h4>
|
|
|
|
|
|
<el-col :span="5" :offset="1">
|
|
|
- <el-form-item :label="$route.query.isExternal ? '商业入口手续费比例' : '费用比例'" prop="syCarCostsProportion">
|
|
|
+ <el-form-item :label="messageInfo.isExternal ? '商业入口手续费比例' : '费用比例'" prop="syCarCostsProportion">
|
|
|
<el-input v-model="productCostForm.syCarCostsProportion"
|
|
|
@blur="totalCostRatioInput('syCostsProportion', 'syCarCostsProportion', 'syCarOtherCostsProportion')"
|
|
|
placeholder="请输入费用比例"></el-input>
|
|
|
@@ -216,7 +216,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="5" :offset="1"
|
|
|
- v-if="(permissions && !$route.query.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
+ v-if="(permissions && !messageInfo.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
<el-form-item label="其他费用比例">
|
|
|
<el-input v-model="productCostForm.syCarOtherCostsProportion" placeholder="请输入其他费用比例"
|
|
|
disabled></el-input>
|
|
|
@@ -224,7 +224,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="5" :offset="1"
|
|
|
- v-if="(permissions && !$route.query.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
+ v-if="(permissions && !messageInfo.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
<el-form-item label="总费用比例" prop="syCostsProportion">
|
|
|
<el-input v-model="productCostForm.syCostsProportion" placeholder="请输入总费用比例"
|
|
|
@blur="totalCostRatioInput('syCostsProportion', 'syCarCostsProportion', 'syCarOtherCostsProportion')"></el-input>
|
|
|
@@ -264,7 +264,7 @@
|
|
|
<el-row>
|
|
|
<h4>非车费用</h4>
|
|
|
<el-col :span="5" :offset="1">
|
|
|
- <el-form-item :label="$route.query.isExternal ? '非车入口手续费比例' : '费用比例'" prop="noCarCostsProportion">
|
|
|
+ <el-form-item :label="messageInfo.isExternal ? '非车入口手续费比例' : '费用比例'" prop="noCarCostsProportion">
|
|
|
<el-input v-model="productCostForm.noCarCostsProportion"
|
|
|
@blur="totalCostRatioInput('noCostsProportion', 'noCarCostsProportion', 'noCarOtherCostsProportion')"
|
|
|
placeholder="请输入费用比例"></el-input>
|
|
|
@@ -272,7 +272,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="5" :offset="1"
|
|
|
- v-if="(permissions && !$route.query.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
+ v-if="(permissions && !messageInfo.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
<el-form-item label="其他费用比例">
|
|
|
<el-input v-model="productCostForm.noCarOtherCostsProportion" placeholder="请输入其他费用比例"
|
|
|
disabled></el-input>
|
|
|
@@ -280,7 +280,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="5" :offset="1"
|
|
|
- v-if="(permissions && !$route.query.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
+ v-if="(permissions && !messageInfo.isExternal) || productCostForm.isInquiryNow === '0'">
|
|
|
<el-form-item label="总费用比例" prop="noCostsProportion">
|
|
|
<el-input v-model="productCostForm.noCostsProportion" placeholder="请输入总费用比例"
|
|
|
@blur="totalCostRatioInput('noCostsProportion', 'noCarCostsProportion', 'noCarOtherCostsProportion')"></el-input>
|
|
|
@@ -321,7 +321,7 @@
|
|
|
</div>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="产品费用因子" name="yinzi" class="tab-panestyle" v-if="!$route.query.isExternal">
|
|
|
+ <el-tab-pane label="产品费用因子" name="yinzi" class="tab-panestyle" v-if="!messageInfo.isExternal">
|
|
|
<div class="tab-panecent2">
|
|
|
<Product-Cost-Form ref="ProductRef" v-if="productCostAddVehicleFactorVisible" :form="dynamicFormArray"
|
|
|
:operator="operatorlist" over-size="small"></Product-Cost-Form>
|
|
|
@@ -335,7 +335,7 @@
|
|
|
@click="productCostAddSubmit('productCostForm')">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :visible.sync="ddgjdialogVisible" width="25%" title="订单轨迹">
|
|
|
+ <el-dialog :append-to-body="true" :visible.sync="ddgjdialogVisible" width="25%" title="订单轨迹">
|
|
|
<div class="tab-panestyle">
|
|
|
<div style="height: 400px; overflow-y: auto;padding: 6px;">
|
|
|
<el-steps direction="vertical" :active="trajectoryTable.length - 1">
|
|
|
@@ -351,7 +351,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="产品历史记录" :visible.sync="productHistoryRecordDialogVisible" width="70%" :fullscreen="true">
|
|
|
+ <el-dialog :append-to-body="true" title="产品历史记录" :visible.sync="productHistoryRecordDialogVisible" width="70%" :fullscreen="true">
|
|
|
<div class="p-2">
|
|
|
<el-row class="queryFrom">
|
|
|
<el-form ref="queryFormRef" :model="productHistoryRecordForm" label-width="80px">
|
|
|
@@ -393,7 +393,7 @@
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="批量操作" :visible.sync="batchdialogVisible" width="50%">
|
|
|
+ <el-dialog :append-to-body="true" title="批量操作" :visible.sync="batchdialogVisible" width="50%">
|
|
|
<div class="tab-panestyle">
|
|
|
<el-form :inline="true" :model="batchUpdateForm" id="bulkOperation" class="demo-form-inline tab-panecent" style="padding: 20px;">
|
|
|
<!-- <el-row>
|
|
|
@@ -552,7 +552,7 @@
|
|
|
@click="batchCostsubmit">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="费用复制窗口" :visible.sync="productCostCopyDialogVisible" :close-on-click-modal="false"
|
|
|
+ <el-dialog :append-to-body="true" title="费用复制窗口" :visible.sync="productCostCopyDialogVisible" :close-on-click-modal="false"
|
|
|
:fullscreen="true">
|
|
|
<div class="p-2">
|
|
|
<el-form :inline="true" :model="productcopyItemPageRequest" class="demo-form-inline" size="small"
|
|
|
@@ -597,7 +597,7 @@
|
|
|
</kt-common-table>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="产品费用历史记录详情" :visible.sync="productHistoryDetailsDialogVisible" width="80%" top="6vh">
|
|
|
+ <el-dialog :append-to-body="true" title="产品费用历史记录详情" :visible.sync="productHistoryDetailsDialogVisible" width="80%" top="6vh">
|
|
|
<div class="tab-panestyle">
|
|
|
<Product-Cost-Form v-if="productHistoryDetailsDialogVisible" :form="dynamicFormArray" :operator="operatorlist"
|
|
|
over-size="small" @cancelForm="productHistoryDetailsDialogVisible = false" :disabled="true"></Product-Cost-Form>
|
|
|
@@ -605,7 +605,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
- <el-dialog title="批量修改起止时间" :visible.sync="showUpdate1" width="30%" top="6vh">
|
|
|
+ <el-dialog :append-to-body="true" title="批量修改起止时间" :visible.sync="showUpdate1" width="30%" top="6vh">
|
|
|
<div class="tab-panestyle">
|
|
|
<el-form :inline="true" :model="batchUpdateForm1" id="bulkOperation" class="demo-form-inline tab-panecent" style="padding: 20px;">
|
|
|
<el-row>
|
|
|
@@ -645,6 +645,11 @@ export default {
|
|
|
KtCommonTable,
|
|
|
ProductCostForm
|
|
|
},
|
|
|
+ props:{
|
|
|
+ messageInfo:{
|
|
|
+ default:{}
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
productDate: [],
|
|
|
@@ -969,14 +974,14 @@ export default {
|
|
|
productsTypeoptions: [],
|
|
|
productColumns: [
|
|
|
//数据列
|
|
|
- { prop: "id", label: " ID", minWidth: 160 },
|
|
|
- { prop: "productName", label: " 产品名称", minWidth: 160 },
|
|
|
+ { prop: "id", label: " ID", minWidth: 100 },
|
|
|
+ { prop: "productName", label: " 产品名称", minWidth: 80 },
|
|
|
{ prop: "costsStartDate", label: "费用起期", minWidth: 160 },
|
|
|
{ prop: "costsEndDate", label: "费用止期", minWidth: 160 },
|
|
|
{ prop: "costsDescription", label: "费用描述", minWidth: 220 },
|
|
|
{ prop: "desc", label: "费用因子描述", minWidth: 520 },
|
|
|
- { prop: "priorityLevel", label: "方案优先级", minWidth: 120 },
|
|
|
- { prop: "isAudit", label: "审核状态", minWidth: 160, formatter: this.auditTypeFormation },
|
|
|
+ { prop: "priorityLevel", label: "方案优先级", minWidth: 100 },
|
|
|
+ { prop: "isAudit", label: "审核状态", minWidth: 120, formatter: this.auditTypeFormation },
|
|
|
{
|
|
|
prop: "jqCarCostsProportion",
|
|
|
label: "费用比例(交强)",
|
|
|
@@ -985,12 +990,12 @@ export default {
|
|
|
{
|
|
|
prop: "jqCarOtherCostsProportion",
|
|
|
label: "其他费用比例(交强)",
|
|
|
- minWidth: 160,
|
|
|
+ minWidth: 150,
|
|
|
},
|
|
|
{
|
|
|
prop: "jqCostsProportion",
|
|
|
label: "总费用比例(交强)",
|
|
|
- minWidth: 160,
|
|
|
+ minWidth: 150,
|
|
|
},
|
|
|
{
|
|
|
prop: "jqExportRadioLevel1",
|
|
|
@@ -1233,11 +1238,11 @@ export default {
|
|
|
},
|
|
|
// 生命周期函数
|
|
|
created() {
|
|
|
- console.log(this.$route.query.isExternal, 888888);
|
|
|
- this.lineData = this.$route.query
|
|
|
- this.insuranceCompanyId = this.$route.query.insuranceCompanyId;
|
|
|
- this.productpageRequest.agreementId = this.$route.query.id;
|
|
|
- this.productCostForm.agreementId = this.$route.query.id;
|
|
|
+ console.log(this.messageInfo, 888888);
|
|
|
+ this.lineData = this.messageInfo
|
|
|
+ this.insuranceCompanyId = this.messageInfo.insuranceCompanyId;
|
|
|
+ this.productpageRequest.agreementId = this.messageInfo.id;
|
|
|
+ this.productCostForm.agreementId = this.messageInfo.id;
|
|
|
this.licenseQuery();
|
|
|
this.getFactorTemplate();
|
|
|
this.getDicType("productsType"); //车险产品
|
|
|
@@ -1332,6 +1337,7 @@ export default {
|
|
|
obj.costsAttrLinkList.map(val => {
|
|
|
switch (val.attrType) {
|
|
|
case 'inputNumber':
|
|
|
+ case 'datetime':
|
|
|
if (!val.operator) {
|
|
|
val.operator = '1';
|
|
|
}
|
|
|
@@ -1420,7 +1426,7 @@ export default {
|
|
|
this.roductList1 = [];
|
|
|
},
|
|
|
costRatioInput(total, partial, other) {
|
|
|
- if (!this.$route.query.isExternal) {
|
|
|
+ if (!this.messageInfo.isExternal) {
|
|
|
//参数1为总费用,参数2为费用
|
|
|
let pay1 = this.productCostForm[total]; //总
|
|
|
let pay2 = this.productCostForm[partial]; //费用
|
|
|
@@ -1717,6 +1723,7 @@ export default {
|
|
|
obj.costsAttrLinks.map(val => {
|
|
|
switch (val.attrType) {
|
|
|
case 'inputNumber':
|
|
|
+ case 'datetime':
|
|
|
if (!val.operator) {
|
|
|
val.operator = '1';
|
|
|
}
|
|
|
@@ -1800,6 +1807,7 @@ export default {
|
|
|
data.map(ele => {
|
|
|
switch (ele.attrType) {
|
|
|
case 'inputNumber':
|
|
|
+ case 'datetime':
|
|
|
ele.operator = '1';
|
|
|
break;
|
|
|
}
|
|
|
@@ -1809,6 +1817,9 @@ export default {
|
|
|
if (ele.attrName == '车牌地区') {
|
|
|
ele.dictLabal = this.licenseAreaList;
|
|
|
}
|
|
|
+ if (ele.attrName == '车辆类型') {
|
|
|
+ ele.dictLabal = this.carClassList
|
|
|
+ }
|
|
|
|
|
|
})
|
|
|
// this.productCostForm.costsAttrLinks = data;
|