|
@@ -372,7 +372,16 @@ export default {
|
|
|
},
|
|
|
isFlag:{
|
|
|
type: [Number,String],
|
|
|
- }
|
|
|
+ },
|
|
|
+ isEdit:{
|
|
|
+ type: [Number,String],
|
|
|
+ },
|
|
|
+ isCondition:{
|
|
|
+ type: [Number,String],
|
|
|
+ },
|
|
|
+ code:{
|
|
|
+ type: [Number,String],
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
conditList: {
|
|
@@ -457,9 +466,9 @@ export default {
|
|
|
handleBack() {
|
|
|
const isShow = this.isShow
|
|
|
if ([4, 5].includes(isShow)) {
|
|
|
- this.$parent.isEdit = 1
|
|
|
+ this.$emit('back')
|
|
|
} else {
|
|
|
- this.$parent.isCondition = 0
|
|
|
+ this.$emit('back')
|
|
|
Object.assign(this.$data, this.$options.data())
|
|
|
}
|
|
|
},
|
|
@@ -542,7 +551,7 @@ export default {
|
|
|
for (let i = 0; i < this.conditionBox.length; i++) {
|
|
|
for (let j = 0; j < this.conditionBox[i].length; j++) {
|
|
|
this.conditionBox[i][j].popType = i + 1
|
|
|
- this.conditionBox[i][j].policyId = this.$parent.searchForm.code || this.comCode
|
|
|
+ this.conditionBox[i][j].policyId = this.code || this.comCode
|
|
|
this.conditionBox[i][j].id = ''
|
|
|
// this.conditionBox[i][j].policyMaterialId =this.conditionBox[i][j].materialId
|
|
|
}
|
|
@@ -561,7 +570,7 @@ export default {
|
|
|
const params = {
|
|
|
id: '',
|
|
|
policyConditionMaterials: tableData,
|
|
|
- policyId: this.$parent.searchForm.code || this.comCode,
|
|
|
+ policyId: this.code || this.comCode,
|
|
|
policyName: '',
|
|
|
pop: pop.join(':')
|
|
|
}
|
|
@@ -573,10 +582,10 @@ export default {
|
|
|
this.limit = ''
|
|
|
this.pop = ''
|
|
|
this.popArr = {}
|
|
|
- this.$parent.isCondition = 0
|
|
|
this.isFlag = 1
|
|
|
// Object.assign(this.$data, this.$options.data());
|
|
|
- this.$emit('handleSubmitCon', this.$parent.searchForm.code || this.comCode)
|
|
|
+ this.$emit('back')
|
|
|
+ this.$emit('handleSubmitCon', this.code || this.comCode)
|
|
|
})
|
|
|
},
|
|
|
handleSelectionChange(val) {
|
|
@@ -626,7 +635,7 @@ export default {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
saleTypeCode: this.saleTypeCode,
|
|
|
- policyId: this.$parent.searchForm.code || this.comCode
|
|
|
+ policyId: this.code || this.comCode
|
|
|
}).then(res => {
|
|
|
let datas = []
|
|
|
|