|
|
@ -33,7 +33,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="handle-row" v-if="isShowHandle()"> |
|
|
<div class="handle-row" v-if="isShowHandle()"> |
|
|
<el-checkbox :checked="getChecked()" v-if="getIsShowCheckboxIcon()" :disabled="getCheckboxDisabled()" class="mr-5" |
|
|
|
|
|
|
|
|
<el-checkbox v-model="checkboxValue" v-if="getIsShowCheckboxIcon()" :disabled="getCheckboxDisabled()" class="mr-5" |
|
|
@change="onCheckboxChange"></el-checkbox> |
|
|
@change="onCheckboxChange"></el-checkbox> |
|
|
<div class="handle-icon" v-if="getIsShowQuestionIcon()" @click="onClickQuestion" |
|
|
<div class="handle-icon" v-if="getIsShowQuestionIcon()" @click="onClickQuestion" |
|
|
@mouseenter="(e) => onMouseEnter('replyRecord', e)" @mouseleave="onMouseLeave"> |
|
|
@mouseenter="(e) => onMouseEnter('replyRecord', e)" @mouseleave="onMouseLeave"> |
|
|
@ -161,7 +161,7 @@ export default { |
|
|
currentRecordType: '', // 当前悬停的记录类型(replyRecord 或 modifyRecord) |
|
|
currentRecordType: '', // 当前悬停的记录类型(replyRecord 或 modifyRecord) |
|
|
replyContent: '', // 回复内容 |
|
|
replyContent: '', // 回复内容 |
|
|
visible: false,//是否显示弹窗 |
|
|
visible: false,//是否显示弹窗 |
|
|
checked: false,//是否选中 |
|
|
|
|
|
|
|
|
checkboxValue: this.getChecked(),//是否选中 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
@ -278,6 +278,16 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 复选框变化处理 |
|
|
// 复选框变化处理 |
|
|
onCheckboxChange(val) { |
|
|
onCheckboxChange(val) { |
|
|
|
|
|
//有提出意见就不能勾选 |
|
|
|
|
|
if (this.templateFillType == 'qc' && this.getQuestionColor()=== "orange") { |
|
|
|
|
|
this.checkboxValue = false; |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '该表单还有质疑项未处理,无法勾选', |
|
|
|
|
|
type: 'error' |
|
|
|
|
|
}); |
|
|
|
|
|
return ; |
|
|
|
|
|
} |
|
|
|
|
|
this.checkboxValue = val; |
|
|
// 触发修改记录事件 |
|
|
// 触发修改记录事件 |
|
|
EventBus.$emit('onModifyRecord', { |
|
|
EventBus.$emit('onModifyRecord', { |
|
|
type: "checkbox", |
|
|
type: "checkbox", |
|
|
|