|
|
@@ -439,7 +439,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="10" :offset="2">
|
|
|
- <el-form-item label="优先级" prop="sort">
|
|
|
+ <el-form-item label="优先级" >
|
|
|
<el-input style="width: 100%" v-model="productCostForm.priorityLevel"
|
|
|
onkeyup="value=value.replace(/\D/g,'')" placeholder="输入数字"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -508,7 +508,9 @@
|
|
|
|
|
|
<el-col :span="5" :offset="1">
|
|
|
<el-form-item label="费用比例" prop="syCarCostsProportion">
|
|
|
- <el-input v-model="productCostForm.syCarCostsProportion" @blur="totalCostRatioInput('syCostsProportion', 'syCarCostsProportion', 'syCarOtherCostsProportion')" placeholder="请输入费用比例"></el-input>
|
|
|
+ <el-input v-model="productCostForm.syCarCostsProportion"
|
|
|
+ @blur="totalCostRatioInput('syCostsProportion', 'syCarCostsProportion', 'syCarOtherCostsProportion')"
|
|
|
+ placeholder="请输入费用比例"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
@@ -521,7 +523,7 @@
|
|
|
<el-col :span="5" :offset="1" v-if="permissions">
|
|
|
<el-form-item label="总费用比例" prop="syCostsProportion">
|
|
|
<el-input v-model="productCostForm.syCostsProportion" placeholder="请输入总费用比例"
|
|
|
- @blur="totalCostRatioInput('syCostsProportion', 'syCarCostsProportion', 'syCarOtherCostsProportion')"></el-input>
|
|
|
+ @blur="totalCostRatioInput('syCostsProportion', 'syCarCostsProportion', 'syCarOtherCostsProportion')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5" :offset="1">
|
|
|
@@ -559,7 +561,9 @@
|
|
|
<h4 style="color: tomato">非车费用</h4>
|
|
|
<el-col :span="5" :offset="1">
|
|
|
<el-form-item label="费用比例" prop="noCarCostsProportion">
|
|
|
- <el-input v-model="productCostForm.noCarCostsProportion" @blur="totalCostRatioInput('noCostsProportion', 'noCarCostsProportion', 'noCarOtherCostsProportion')" placeholder="请输入费用比例"></el-input>
|
|
|
+ <el-input v-model="productCostForm.noCarCostsProportion"
|
|
|
+ @blur="totalCostRatioInput('noCostsProportion', 'noCarCostsProportion', 'noCarOtherCostsProportion')"
|
|
|
+ placeholder="请输入费用比例"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
@@ -572,7 +576,7 @@
|
|
|
<el-col :span="5" :offset="1" v-if="permissions">
|
|
|
<el-form-item label="总费用比例" prop="noCostsProportion">
|
|
|
<el-input v-model="productCostForm.noCostsProportion" placeholder="请输入总费用比例"
|
|
|
- @blur="totalCostRatioInput('noCostsProportion', 'noCarCostsProportion', 'noCarOtherCostsProportion')"></el-input>
|
|
|
+ @blur="totalCostRatioInput('noCostsProportion', 'noCarCostsProportion', 'noCarOtherCostsProportion')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5" :offset="1">
|
|
|
@@ -663,7 +667,7 @@
|
|
|
</kt-common-table>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="产品因子录入" :visible.sync="productCostFactorDialogVisible" :close-on-click-modal="false" width="70%"
|
|
|
- top="6vh" :fullscreen="true" @close="productCostFactoropenDialog">
|
|
|
+ top="6vh" :fullscreen="true" @close="productCostFactoropenDialog" >
|
|
|
<Product-Cost-Form v-if="productCostFactorDialogVisible" :form="dynamicFormArray" :operator="operatorlist"
|
|
|
over-size="small" @saveForm="productCostFactorSaveForm"
|
|
|
@cancelForm="productCostFactorCancelForm"></Product-Cost-Form>
|
|
|
@@ -1346,14 +1350,6 @@ export default {
|
|
|
trigger: "blur",
|
|
|
},
|
|
|
],
|
|
|
- priorityLevel: [
|
|
|
- { required: true, message: "请输入方案优先级", trigger: "change" },
|
|
|
- {
|
|
|
- pattern: /^[1-9][0-9]{0,3}$/,
|
|
|
- message: "请输入1-10000的整数",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
- ],
|
|
|
},
|
|
|
|
|
|
underwritingRules: {
|
|
|
@@ -1694,7 +1690,9 @@ export default {
|
|
|
obj.costsAttrLinks.map(val => {
|
|
|
switch (val.attrType) {
|
|
|
case 'inputNumber':
|
|
|
- val.operator = '1';
|
|
|
+ if (!val.operator) {
|
|
|
+ val.operator = '1';
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
if (val.attrCode == 'LicenseNo') {
|
|
|
@@ -1725,7 +1723,9 @@ export default {
|
|
|
obj.costsAttrLinks.map(val => {
|
|
|
switch (val.attrType) {
|
|
|
case 'inputNumber':
|
|
|
- val.operator = '1';
|
|
|
+ if (!val.operator) {
|
|
|
+ val.operator = '1';
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
if (val.attrCode == 'LicenseNo') {
|
|
|
@@ -2057,17 +2057,18 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
productCostFactoropenDialog() {
|
|
|
- if (this.productCostAddDialogType == 'edit') {
|
|
|
+ if (this.productCostAddDialogType == 'add') {
|
|
|
this.getFactorTemplate();
|
|
|
}
|
|
|
},
|
|
|
- //弹框打开事件
|
|
|
+ //弹框关闭事件
|
|
|
productcloseDialog() {
|
|
|
for (const key in this.productCostForm) {
|
|
|
if (key !== "agreementId" && key !== "costsAttrLinks") {
|
|
|
this.productCostForm[key] = "";
|
|
|
}
|
|
|
}
|
|
|
+ this.getFactorTemplate();
|
|
|
this.roductList1 = null;
|
|
|
},
|
|
|
underwritingRulescloseDialog() {
|
|
|
@@ -2550,5 +2551,4 @@ export default {
|
|
|
|
|
|
.el-icon-arrow-down {
|
|
|
font-size: 12px;
|
|
|
-}
|
|
|
-</style>
|
|
|
+}</style>
|