|
@@ -275,7 +275,9 @@
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
type="expand"
|
|
type="expand"
|
|
|
>
|
|
>
|
|
|
- <Product-Cost-Form ref="ProductRef" :form="dynamicFormArray" :operator="operatorlist" over-size="small" :underwritingRulesForm="underwritingRulesForm" :disabled="true"></Product-Cost-Form>
|
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <Product-Cost-Form ref="ProductRef" :form="dynamicFormArray" :operator="operatorlist" over-size="small" :underwritingRulesForm="scope.row.underwritingRulesForm" :disabled="true"></Product-Cost-Form>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="validInd"
|
|
prop="validInd"
|
|
@@ -629,7 +631,7 @@ export default {
|
|
|
if(value&&value.length == 1) {
|
|
if(value&&value.length == 1) {
|
|
|
this.expandRows.push(value[0].id)
|
|
this.expandRows.push(value[0].id)
|
|
|
}
|
|
}
|
|
|
- let obj = Object.assign({}, res.data);
|
|
|
|
|
|
|
+ let obj = {...res.data}
|
|
|
obj.costsAttrLinks.map(val => {
|
|
obj.costsAttrLinks.map(val => {
|
|
|
switch (val.attrType) {
|
|
switch (val.attrType) {
|
|
|
case 'inputNumber':
|
|
case 'inputNumber':
|
|
@@ -651,7 +653,7 @@ export default {
|
|
|
return val;
|
|
return val;
|
|
|
})
|
|
})
|
|
|
that.dynamicFormArray = obj.costsAttrLinks;
|
|
that.dynamicFormArray = obj.costsAttrLinks;
|
|
|
- that.underwritingRulesForm = {
|
|
|
|
|
|
|
+ row.underwritingRulesForm = {
|
|
|
id: obj.id,
|
|
id: obj.id,
|
|
|
agreementId: obj.agreementId, //协议id
|
|
agreementId: obj.agreementId, //协议id
|
|
|
ruleDescription: obj.ruleDescription, //规则描述
|
|
ruleDescription: obj.ruleDescription, //规则描述
|
|
@@ -660,6 +662,7 @@ export default {
|
|
|
rulesEndDate: obj.rulesEndDate,
|
|
rulesEndDate: obj.rulesEndDate,
|
|
|
rulesAttrList: [],//规则属性
|
|
rulesAttrList: [],//规则属性
|
|
|
};
|
|
};
|
|
|
|
|
+ that.$forceUpdate();
|
|
|
} else {
|
|
} else {
|
|
|
that.$message({
|
|
that.$message({
|
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -856,6 +859,21 @@ export default {
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
if(res.content) {
|
|
if(res.content) {
|
|
|
this.underwritingRulesResult = res.content.filter(item => item.validInd == 1);
|
|
this.underwritingRulesResult = res.content.filter(item => item.validInd == 1);
|
|
|
|
|
+ if(this.underwritingRulesResult.length>0) {
|
|
|
|
|
+ this.underwritingRulesResult.forEach(item => {
|
|
|
|
|
+ item.underwritingRulesForm = {
|
|
|
|
|
+ agreementId: "", //协议id
|
|
|
|
|
+ ruleDescription: "", //规则描述
|
|
|
|
|
+ rulesStartDate: "",//规则起期
|
|
|
|
|
+ rulesEndDate: "",//规则止期
|
|
|
|
|
+ validInd: "1", //是否有效
|
|
|
|
|
+ rulesAttrList: [],//规则属性
|
|
|
|
|
+ carClassList: [],
|
|
|
|
|
+ areanumberplateList: [],
|
|
|
|
|
+ licenseAreaList: [],
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
this.agreementListShow = true
|
|
this.agreementListShow = true
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.warning(res.msg)
|
|
this.$message.warning(res.msg)
|