From 0486bdf3b2edd507be4a27a12bfff80df4e4e831 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Fri, 6 Feb 2026 21:04:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/comps/template/comps/sp/SP00456.vue | 15 +++++-- src/views/business/study/comp/tbbd/Bj.vue | 52 +++++++++++----------- 2 files changed, 37 insertions(+), 30 deletions(-) diff --git a/src/views/business/comps/template/comps/sp/SP00456.vue b/src/views/business/comps/template/comps/sp/SP00456.vue index 72db623..1a80612 100644 --- a/src/views/business/comps/template/comps/sp/SP00456.vue +++ b/src/views/business/comps/template/comps/sp/SP00456.vue @@ -202,6 +202,8 @@ export default { nd: rowData.actSolutionConcentration || 0, nddw: headerSelectFields.actSolutionConcentrationUnit, studySubjectId: this.formData.studySubjectId, + studyId:this.formData.studyId, + studyFormId:this.formData.id, list: list } this.subPackageRequest(postData); @@ -213,6 +215,8 @@ export default { let postData = { bh: rowData.targetSolutionCode + rowData.subTargetSolutionCode, studySubjectId: this.formData.studySubjectId, + studyId:this.formData.studyId, + studyFormId:this.formData.id, } this.startConfigRequest(postData); }, @@ -227,6 +231,8 @@ export default { nd: rowData.actSolutionConcentration,//实际目标溶液浓度 nddw: headerSelectFields.actSolutionConcentrationUnit, studySubjectId: this.formData.studySubjectId, + studyId:this.formData.studyId, + studyFormId:this.formData.id, kc: total, kcdw: unit, } @@ -562,8 +568,11 @@ export default { return false; } let content = this.getFilledFormData(); - //生成resource - debugger + return content; + }, + getResource(){ + let content = this.getFilledFormData(); + //生成resource let tmpResource = [] if (this.fillType === "actFill") { //阶梯配置 @@ -744,7 +753,7 @@ export default { this.yqResourceTmp = stepResource.yqResource || [] this.resourceTmp = tmpResource - return content; + return this.resourceTmp; }, getStepResource() { const sjResource = [], yqResource = []; diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue index 02e39f2..b7b1c62 100644 --- a/src/views/business/study/comp/tbbd/Bj.vue +++ b/src/views/business/study/comp/tbbd/Bj.vue @@ -645,32 +645,30 @@ export default { }, async showYjcc() { let that = this - let content = await that.$refs.templateTable.getFormData() - if (content) { - that.resetYjcc() - that.formYjcc.id = that.form.id - that.cclistYj = [] - that.addCcYj() - let resource = that.$refs.templateTable.getResource() - let tmp = _.filter(resource, function (o) { - return o.type == null || o.type == 3 || o.type == 5 || o.type == 7 + that.resetYjcc() + that.formYjcc.id = that.form.id + that.cclistYj = [] + that.addCcYj() + let resource = that.$refs.templateTable.getResource() + debugger + let tmp = _.filter(resource, function (o) { + return o.type == null || o.type == 3 || o.type == 5 || o.type == 7 + }) + if (tmp.length > 0) { + that.$modal.loading() + studyFormFill_yjccFilter({ id: this.form.id, resource: JSON.stringify(tmp) }).then(response => { + let tmpResource = JSON.parse(response.msg) + if (tmpResource.length > 0) { + that.resourceYj = tmpResource + that.openYjcc = true + } else { + that.$modal.msgError("没有可存储的药剂") + } + }).finally(() => { + that.$modal.closeLoading() }) - if (tmp.length > 0) { - that.$modal.loading() - studyFormFill_yjccFilter({ id: this.form.id, resource: JSON.stringify(tmp) }).then(response => { - let tmpResource = JSON.parse(response.msg) - if (tmpResource.length > 0) { - that.resourceYj = tmpResource - that.openYjcc = true - } else { - that.$modal.msgError("没有可存储的药剂") - } - }).finally(() => { - that.$modal.closeLoading() - }) - } else { - that.$modal.msgError("没有可存储的药剂") - } + } else { + that.$modal.msgError("没有可存储的药剂") } }, resetYjcc() { @@ -818,8 +816,8 @@ export default { this.$modal.msgError("请选择要处置的药剂") } else { for (var i = 0; i < that.cclistYj.length; i++) { - if (!that.cclistYj[i].ccwz||that.cclistYj[i].ccwz=='') { - this.$modal.msgError('第'+(i+1) + "个存储,存储位置不能为空") + if (!that.cclistYj[i].ccwz || that.cclistYj[i].ccwz == '') { + this.$modal.msgError('第' + (i + 1) + "个存储,存储位置不能为空") return } if (!that.cclistYj[i].cctj || that.cclistYj[i].cctj == '') { From bc6adb0603012f33c0fa59e141fb615a3d19af28 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Fri, 6 Feb 2026 21:20:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/comps/template/comps/sp/SP00456.vue | 85 ++++++++++++---------- src/views/business/study/comp/tbbd/Bj.vue | 2 +- 2 files changed, 49 insertions(+), 38 deletions(-) diff --git a/src/views/business/comps/template/comps/sp/SP00456.vue b/src/views/business/comps/template/comps/sp/SP00456.vue index 1a80612..5bfa880 100644 --- a/src/views/business/comps/template/comps/sp/SP00456.vue +++ b/src/views/business/comps/template/comps/sp/SP00456.vue @@ -2,7 +2,8 @@