Browse Source

feat: [模板管理] YP002

lkf
memorylkf 1 month ago
parent
commit
41f5aacfe6
4 changed files with 29 additions and 6 deletions
  1. +6
    -1
      src/components/Template/SelectTable.vue
  2. +8
    -2
      src/views/business/comps/template/TemplateTable.vue
  3. +11
    -1
      src/views/business/comps/template/comps/yp/YP002.vue
  4. +4
    -2
      src/views/business/comps/template/dialog/SelectMixReagentDialog.vue

+ 6
- 1
src/components/Template/SelectTable.vue View File

@ -56,7 +56,7 @@ export default {
}, },
selectedId: { selectedId: {
type: String,
type: [String,Number],
default: "", default: "",
}, },
selectedCode: { selectedCode: {
@ -71,6 +71,10 @@ export default {
type: [String,Number], type: [String,Number],
default: "", default: "",
}, },
studyId: {
type: [String,Number],
default: "",
},
}, },
data() { data() {
return { return {
@ -111,6 +115,7 @@ export default {
} }
this.listParams = {...this.listParams} this.listParams = {...this.listParams}
this.listParams.studyFormId = this.studyFormId || '' this.listParams.studyFormId = this.studyFormId || ''
this.listParams.studyId = this.studyId || ''
}, },
async getList() { async getList() {
const res = await this.listApi(this.listParams); const res = await this.listApi(this.listParams);

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

+ 11
- 1
src/views/business/comps/template/comps/yp/YP002.vue View File

@ -9,7 +9,9 @@
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" /> ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<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" />
@ -190,6 +192,14 @@ 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();

+ 4
- 2
src/views/business/comps/template/dialog/SelectMixReagentDialog.vue View File

@ -8,7 +8,7 @@
<el-radio-button label="3">给药制剂列表</el-radio-button> <el-radio-button label="3">给药制剂列表</el-radio-button>
</el-radio-group> </el-radio-group>
<SelectTable ref="selectSjRef" :columns="columns" :selectedId="selectedId" :searchForm="searchForm" <SelectTable ref="selectSjRef" :columns="columns" :selectedId="selectedId" :searchForm="searchForm"
:studyFormId="studyFormId" :listApi="listApi" :selectedCode="selectedCode" @radioSelect="handleSelect" />
:studyFormId="studyFormId" :studyId="studyId" :listApi="listApi" :selectedCode="selectedCode" @radioSelect="handleSelect" />
<!-- 只有步骤才会又这个选项 --> <!-- 只有步骤才会又这个选项 -->
<div v-if="sourceFrom === 'step'" class="other-reagent"> <div v-if="sourceFrom === 'step'" class="other-reagent">
@ -92,6 +92,7 @@ export default {
bzList: [], bzList: [],
depart: "", depart: "",
studyFormId: '',//studyFormId studyFormId: '',//studyFormId
studyId:'',//studyId
uuid: '',//eventBusid, uuid: '',//eventBusid,
selectType: '1',// selectType: '1',//
listApi: public_sjList, listApi: public_sjList,
@ -112,7 +113,7 @@ export default {
} }
}, },
methods: { methods: {
show(studyFormId, data) {
show(studyFormId, data,studyId) {
if (data && data.uuid) {//eventBusid if (data && data.uuid) {//eventBusid
this.uuid = data.uuid this.uuid = data.uuid
} }
@ -121,6 +122,7 @@ export default {
this.mixType = mixType; this.mixType = mixType;
this.sourceFrom = sourceFrom; this.sourceFrom = sourceFrom;
this.studyFormId = studyFormId; this.studyFormId = studyFormId;
this.studyId = studyId || '';
this.visible = true; this.visible = true;
this.handleShowTableInfo(type); this.handleShowTableInfo(type);

Loading…
Cancel
Save