From 875f7c63eff13c863be8b01a139f4cdf52e934e5 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Wed, 21 Jan 2026 14:13:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E9=9D=9E=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?=E7=AE=A1=E7=90=86]=E9=BA=BB=E7=B2=BE=E8=8D=AF=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/comps/template/comps/gy/MJYLQSQD.vue | 125 ++++++++++----------- 1 file changed, 60 insertions(+), 65 deletions(-) diff --git a/src/views/business/comps/template/comps/gy/MJYLQSQD.vue b/src/views/business/comps/template/comps/gy/MJYLQSQD.vue index 02508bb..4c105f8 100644 --- a/src/views/business/comps/template/comps/gy/MJYLQSQD.vue +++ b/src/views/business/comps/template/comps/gy/MJYLQSQD.vue @@ -2,31 +2,24 @@ @@ -41,8 +34,8 @@ import { public_studyList } from '@/api/business/public/public'; export default { name: "MJYLQSQD", - dicts:["business_gyjl","business_gynd","business_dwzs","business_dwsl","business_dwtz","business_sywzmc"], - components: { BaseInfoFormPcakge, LineLabel, CustomTable, TableOpertaion,SelectReagentDialog }, + dicts: ["business_gyjl", "business_gynd", "business_dwzs", "business_dwsl", "business_dwtz", "business_sywzmc"], + components: { BaseInfoFormPcakge, LineLabel, CustomTable, TableOpertaion, SelectReagentDialog }, mixins: [templateMixin], props: { value: { @@ -64,12 +57,12 @@ export default { fillType: { immediate: true, handler(v) { - console.log(v,"fillType") + console.log(v, "fillType") } }, }, computed: { - + // 备注表单配置 remarkConig() { return [ @@ -163,7 +156,7 @@ export default { fillType: "actFill", subType: "select", subFillType: "actFill", - subKey: "dwzsUnit", + subKey: "dwslUnit", otherCode: "dwslOther", subOptions: this.getDictOptions('business_dwsl'), }, @@ -175,71 +168,70 @@ export default { }, data() { return { - syId:null, - bmId:null, - sdId:null, - public_studyList:public_studyList, + syId: null, + bmId: null, + sdId: null, + public_studyList: public_studyList, searchForm: { name: { - label:this.$t('page.business.study.study.name'), + label: this.$t('page.business.study.study.name'), }, sn: { - label:this.$t('page.business.study.study.sn'), + label: this.$t('page.business.study.study.sn'), }, leaderName: { - label:this.$t('page.business.study.study.leader'), + label: this.$t('page.business.study.study.leader'), }, }, - columns:[ - { - prop: 'name', - label: 'page.business.study.study.name', - }, - { - prop: 'sn', - label: 'page.business.study.study.sn', - }, - { - prop: 'status', - label: 'page.business.study.study.status', - }, - { - prop: 'leaderName', - label: 'page.business.study.study.leader', - }, - { - prop: 'createTime', - label: 'page.business.study.study.createDate', - } - ] + columns: [ + { + prop: 'name', + label: 'page.business.study.study.name', + }, + { + prop: 'sn', + label: 'page.business.study.study.sn', + }, + { + prop: 'status', + label: 'page.business.study.study.status', + }, + { + prop: 'leaderName', + label: 'page.business.study.study.leader', + }, + { + prop: 'createTime', + label: 'page.business.study.study.createDate', + } + ] }; }, mounted() { }, methods: { - onDialogSubmit(selectedId,currentRow){ + onDialogSubmit(selectedId, currentRow) { console.log(JSON.stringify(currentRow)) //试验 - if(currentRow.type==1){ + if (currentRow.type == 1) { this.$refs.baseInfoRef.batchUpdateFormData({ syNo: currentRow.sn, SD: currentRow.leaderName, }); - this.syId=currentRow.id - this.bmId=currentRow.deptId - this.sdId=currentRow.leader + this.syId = currentRow.id + this.bmId = currentRow.deptId + this.sdId = currentRow.leader } //部门 - if(currentRow.type==2){ + if (currentRow.type == 2) { this.$refs.baseInfoRef.batchUpdateFormData({ syNo: currentRow.deptName, SD: currentRow.nickName, }); - this.syId='' - this.bmId=currentRow.deptId - this.sdId=currentRow.userId + this.syId = '' + this.bmId = currentRow.deptId + this.sdId = currentRow.userId } - console.log(currentRow,"currentRow") this.$refs.selectReagentDialogRef.onCancel() }, // 试验编号或部门名称点击事件 @@ -248,14 +240,18 @@ export default { // this.$refs.baseInfoRef.setClickable("syNo", true); }, //获取已填写的表单数据 - getFilledFormData(){ - return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"]) + getFilledFormData() { + let content = this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"]) + content.syId = this.syId + content.bmId = this.bmId + content.sdId = this.sdId + return content; }, async getFormData() { - let content = await this.validFormFields(["baseInfoRef","remarkRef"]); - content.syId=this.syId - content.bmId=this.bmId - content.sdId=this.sdId + let content = await this.validFormFields(["baseInfoRef", "remarkRef"]); + content.syId = this.syId + content.bmId = this.bmId + content.sdId = this.sdId return content; }, async onSave() { @@ -270,5 +266,4 @@ export default { .mt-20 { margin-top: 20px; } - \ No newline at end of file