Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
6dd8269bfe
2 changed files with 14 additions and 4 deletions
  1. +12
    -2
      src/components/Template/HandleFormItem.vue
  2. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue

+ 12
- 2
src/components/Template/HandleFormItem.vue View File

@ -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",

+ 2
- 2
src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue View File

@ -11,7 +11,7 @@
<TableList label="template.common.reagentInfo" :columns="sysjColumns" <TableList label="template.common.reagentInfo" :columns="sysjColumns"
:dataSource="resource" /> :dataSource="resource" />
<TableList label="template.common.instrumentInfo" :columns="yqsColumns" <TableList label="template.common.instrumentInfo" :columns="yqsColumns"
:dataSource="resource" />
:dataSource="yqResource" />
<BaseInfoFormPcakge fieldItemLabel="template.common.storageCondition" label="template.common.storageCondition" ref="storageConditionRef" <BaseInfoFormPcakge fieldItemLabel="template.common.storageCondition" label="template.common.storageCondition" ref="storageConditionRef"
:formConfig="storageFormConfig" :formData="formData" /> :formConfig="storageFormConfig" :formData="formData" />
<LineLabel label="template.common.operationSteps" /> <LineLabel label="template.common.operationSteps" />
@ -236,7 +236,7 @@ export default {
data() { data() {
return { return {
resource: [], resource: [],
resourceData1: [],
yqResource: [],
sysjColumns: [ sysjColumns: [
{ label: 'template.common.reagentName', prop: "mc" },// { label: 'template.common.reagentName', prop: "mc" },//
{ label: 'template.common.reagentCode', prop: "bh" },// { label: 'template.common.reagentCode', prop: "bh" },//

Loading…
Cancel
Save