Browse Source

feat:[模板管理][update]

lkf
luojie 1 month ago
parent
commit
e949ca63df
3 changed files with 13 additions and 23 deletions
  1. +1
    -7
      src/views/business/comps/template/TemplateTable.vue
  2. +2
    -10
      src/views/business/comps/template/comps/yp/YP002.vue
  3. +10
    -6
      src/views/business/comps/template/dialog/SelectMixReagentDialog.vue

+ 1
- 7
src/views/business/comps/template/TemplateTable.vue View File

@ -7,7 +7,7 @@
<TagPrintDialog ref="tagPrintDialogRef"></TagPrintDialog> <TagPrintDialog ref="tagPrintDialogRef"></TagPrintDialog>
<SelectReagentDialog ref="selectReagentDialogRef" /> <SelectReagentDialog ref="selectReagentDialogRef" />
<SelectInstrumentDialog ref="selectInstrumentDialogRef" /> <SelectInstrumentDialog ref="selectInstrumentDialogRef" />
<SelectMixReagentDialog ref="selectMixReagentDialogRef" :selectedCode="selectedCode" />
<SelectMixReagentDialog ref="selectMixReagentDialogRef"/>
<EditSign ref="editSignRef" @cancel="handleEditSignCancel" @callback="handleEditSignCallback" /> <EditSign ref="editSignRef" @cancel="handleEditSignCancel" @callback="handleEditSignCallback" />
</div> </div>
</template> </template>
@ -244,8 +244,6 @@ export default {
currentEditSignUuid: null, // EditSignHandleFormItemuuid currentEditSignUuid: null, // EditSignHandleFormItemuuid
latestParams: {},//params latestParams: {},//params
hasCustomTable: false,// hasCustomTable: false,//
selectedCode:'bh'
}; };
}, },
created() { created() {
@ -271,10 +269,6 @@ export default {
}) })
//// ////
EventBus.$on("showSelectMixReagentDialog", (data) => { EventBus.$on("showSelectMixReagentDialog", (data) => {
debugger
if(data.type==15){
this.selectedCode = 'id'
}
this.$refs.selectMixReagentDialogRef.show(data.studyFormId, data,this.templateData.studyId) this.$refs.selectMixReagentDialogRef.show(data.studyFormId, data,this.templateData.studyId)
}) })
EventBus.$on("hideSelectMixReagentDialog", (data) => { EventBus.$on("hideSelectMixReagentDialog", (data) => {

+ 2
- 10
src/views/business/comps/template/comps/yp/YP002.vue View File

@ -10,8 +10,7 @@
<BaseInfoFormPackage fieldItemLabel="template.yp.yp002.swypyjjlbxx" label="template.yp.yp002.swypyjjlbxx" <BaseInfoFormPackage fieldItemLabel="template.yp.yp002.swypyjjlbxx" label="template.yp.yp002.swypyjjlbxx"
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData" ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData"
@onRegentSubmit="onRegentSubmit"
@beforeReagentSubmit="beforeReagentSubmit" />
/>
<BaseInfoFormPackage fieldItemLabel="template.yp.yp002.qbjsxx" label="template.yp.yp002.qbjsxx" <BaseInfoFormPackage fieldItemLabel="template.yp.yp002.qbjsxx" label="template.yp.yp002.qbjsxx"
ref="ypjsInfoRef" :formConfig="ypjsInfoFormConfig" :formData="formData" /> ref="ypjsInfoRef" :formConfig="ypjsInfoFormConfig" :formData="formData" />
@ -192,14 +191,7 @@ export default {
this.yqResourceTmp = [] this.yqResourceTmp = []
return this.resourceTmp; return this.resourceTmp;
}, },
onRegentSubmit(val,val1,val2){
debugger
this.$refs.swypyjInfoRef.updateFormData("qxbd", val.selectInfo.row.bdmc);
},
beforeReagentSubmit(val,val1,val2){
debugger
this.$refs.swypyjInfoRef.updateFormData("qxbd", val.selectData.row.bdmc);
},
// //
async onSave() { async onSave() {
const formData = this.getStepResource(); const formData = this.getStepResource();

+ 10
- 6
src/views/business/comps/template/dialog/SelectMixReagentDialog.vue View File

@ -76,17 +76,13 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
selectedCode: {
type: String,
default: "bh",
},
}, },
data() { data() {
return { return {
visible: false, visible: false,
otherChecked: false, otherChecked: false,
selectedId: "", selectedId: "",
selectedCode: "bh",
currentRow: {}, currentRow: {},
radio: 1, radio: 1,
bzList: [], bzList: [],
@ -101,7 +97,8 @@ export default {
sourceFrom: "step",// sourceFrom: "step",//
otherReagent: "",// otherReagent: "",//
mixType: false,// mixType: false,//
title:"选择试剂"
title:"选择试剂",
currentType: '1',//
} }
}, },
computed: { computed: {
@ -119,6 +116,10 @@ export default {
} }
//type:sj()gsp()gyzj() //type:sj()gsp()gyzj()
const { type, sourceFrom = "step", mixType = false } = data; const { type, sourceFrom = "step", mixType = false } = data;
this.currentType = type;
if(type==15){
this.selectedCode = 'id'
}
this.mixType = mixType; this.mixType = mixType;
this.sourceFrom = sourceFrom; this.sourceFrom = sourceFrom;
this.studyFormId = studyFormId; this.studyFormId = studyFormId;
@ -175,6 +176,9 @@ export default {
// //
handleSelect(code, row) { handleSelect(code, row) {
this.selectedId = code; this.selectedId = code;
if(this.currentType==15){//idbdmc
this.selectedId = row.bdmc
}
this.currentRow = row; this.currentRow = row;
}, },
} }

Loading…
Cancel
Save