|
|
|
@ -188,16 +188,29 @@ export default { |
|
|
|
ndz: (row.nd||"")+(row.nddw||""), |
|
|
|
type: Number(this.selectType), |
|
|
|
} |
|
|
|
if(this.qxbdType && row.templateSn !== this.qxbdType){ |
|
|
|
this.$message.error(`请选择正确前序表单`); |
|
|
|
return |
|
|
|
const {qxbdType,checkType} = this; |
|
|
|
if(qxbdType){ |
|
|
|
if(checkType === "radio"&& row.templateSn !== qxbdType){ |
|
|
|
this.$message.error(`请选择正确前序表单`); |
|
|
|
return |
|
|
|
} |
|
|
|
if(checkType === "checkbox" ){ |
|
|
|
const isAllType = row.every((item)=>item.templateSn === qxbdType) |
|
|
|
if(!isAllType){ |
|
|
|
this.$message.error(`请选择正确前序表单`); |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
this.$emit('submit', selectedValue, row); |
|
|
|
let callbackData = { selectInfo, uuid: this.uuid, selectedId: selectedValue, row,selectType:this.selectType }; |
|
|
|
let callbackData = { selectInfo, uuid: this.uuid, selectedId: selectedValue, row,selectType:this.selectType,checkType }; |
|
|
|
if(this.checkType === "checkbox"){ |
|
|
|
callbackData = { |
|
|
|
uuid: this.uuid, |
|
|
|
selectedRows: row, |
|
|
|
selectedId:row.map((item)=>item.bdbh).join(","), |
|
|
|
checkType |
|
|
|
} |
|
|
|
} |
|
|
|
// 触发eventBus事件 |
|
|
|
|