From 315a6722552b787b0f9d434f6d5eb3c2cd3b1e2b Mon Sep 17 00:00:00 2001
From: "15881625488@163.com" <15881625488@163.com>
Date: Tue, 21 Apr 2026 20:14:48 +0800
Subject: [PATCH 1/4] =?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
---
src/lang/en/template/gsp.js | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/lang/en/template/gsp.js b/src/lang/en/template/gsp.js
index 5539101..bc99f5b 100644
--- a/src/lang/en/template/gsp.js
+++ b/src/lang/en/template/gsp.js
@@ -16,17 +16,17 @@ export default {
MJYLQSQD: {
jbxx: 'Basic Information',
qxzsyhbm: 'Please Select Study/Department',
- sybhhbmmc: 'Study Number/Department',
- sd: 'Study Director/Manager',
- sywzmc: 'Study Material Name',
- gyjl: 'Dosage',
- xynd: 'Required Concentration',
- xyl: 'Required Volume',
- xysj: 'Required Time',
- yjghsj: 'Expected Return Time',
- dwzs: 'Species',
+ sybhhbmmc: 'Study No. or Dept.',
+ sd: 'SD/Manager',
+ sywzmc: 'Drug Name',
+ gyjl: 'Dose',
+ xynd: 'Concentration',
+ xyl: 'Amount',
+ xysj: 'Need Time',
+ yjghsj: 'Anticipate Return Time',
+ dwzs: 'Animal Species',
dwpjtz: 'Average Body Weight',
- dwsl: 'Number'
+ dwsl: 'Animal No'
},
// 毒麻药品配制记录表
DMYPPZJLB: {
From 11ed828e2eb927219b8f698c3d43e401ba86f352 Mon Sep 17 00:00:00 2001
From: "15881625488@163.com" <15881625488@163.com>
Date: Tue, 21 Apr 2026 21:01:58 +0800
Subject: [PATCH 2/4] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?=
=?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=89=93=E5=8D=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/business/comps/template/TemplateTable.vue | 3 +++
.../business/comps/template/mixins/templateMixin.js | 4 ++++
src/views/business/study/comp/tbbd/Bj.vue | 17 +++++++++++++++++
3 files changed, 24 insertions(+)
diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue
index ecb4cee..c47e528 100644
--- a/src/views/business/comps/template/TemplateTable.vue
+++ b/src/views/business/comps/template/TemplateTable.vue
@@ -524,6 +524,9 @@ export default {
getResource() {
return this.$refs.templateComponent.getResource();
},
+ getPrintResource() {
+ return this.$refs.templateComponent.getPrintResource();
+ },
getYqResource() {
return this.$refs.templateComponent.getYqResource();
},
diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js
index 650905a..3ddeee0 100644
--- a/src/views/business/comps/template/mixins/templateMixin.js
+++ b/src/views/business/comps/template/mixins/templateMixin.js
@@ -215,6 +215,7 @@ export default {
jcbList: [], //检测板信息
xbxj: [], //细胞细菌信息
+ printResourceTmp:[],//标签打印list信息
resourceTmp: [], //试验试剂信息提交用
yqResourceTmp: [], //仪器信息提交用
jcbListTmp: [], //检测板信息提交用
@@ -386,6 +387,9 @@ export default {
getResource() {
return this.resourceTmp
},
+ getPrintResource() {
+ return this.printResourceTmp
+ },
getYqResource() {
return this.yqResourceTmp
},
diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue
index b950501..36be48c 100644
--- a/src/views/business/study/comp/tbbd/Bj.vue
+++ b/src/views/business/study/comp/tbbd/Bj.vue
@@ -28,6 +28,9 @@
{{ $t('page.business.study.studyFormFill.next') }}
+ {{
+ $t('template.common.bqdy')
+ }}
{{
$t('page.business.study.studyFormFill.yjcc')
}}
@@ -813,6 +816,20 @@ export default {
that.$modal.msgError("没有可存储的药剂")
}
},
+ async showDy() {
+ let that = this
+ that.resetYjcc()
+ that.formYjcc.id = that.form.id
+ that.cclistYj = []
+ that.addCcYj()
+ that.$refs.templateTable.getFilledFormData()
+ let resource = that.$refs.templateTable.getPrintResource()
+ if (resource.length > 0) {
+
+ } else {
+ that.$modal.msgError("没有可打印的标签")
+ }
+ },
async showTjsh(qmyy) {
let that = this
let content = await this.$refs.templateTable.getFormData()
From 783f41b49e01a6a47f73ff4948317ef7f08a6200 Mon Sep 17 00:00:00 2001
From: "15881625488@163.com" <15881625488@163.com>
Date: Tue, 21 Apr 2026 21:10:58 +0800
Subject: [PATCH 3/4] =?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/gsp/GSP001.vue | 26 ++++++++++++++--------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/views/business/comps/template/comps/gsp/GSP001.vue b/src/views/business/comps/template/comps/gsp/GSP001.vue
index ea89737..5f6e31c 100644
--- a/src/views/business/comps/template/comps/gsp/GSP001.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP001.vue
@@ -27,16 +27,15 @@
type="danger" @click="handleDeleteFormConfig(ladderIndex)">{{
$t('template.common.deleteBtn')
}}
- {{ $t('template.common.bqdy') }}
+
+ :formIndex="ladderIndex" :prefixKey="'form_' + ladderIndex">
@@ -79,9 +78,10 @@ export default {
return {
getMybhByIndex: (index) => {
const data = this.$refs[`formConfigStepFormPackageRef_${index}`][0].getFilledFormData()
- return { mybh: data.targetCode + data.targetCodeSn, maxVolume: data.targetActVolume, maxVolumeUnit: data.targetActVolumeUnit,
- nd:data.targetActConcentration,ndz:`${data.targetActConcentration}${data.targetActConcentrationUnit}`,nddw:data.targetActConcentrationUnit,sxrq:data.expireDate,elnType:this.product,yxzq:data.effectivePeriod,yxzqdw:data.effectivePeriodUnit
- }
+ return {
+ mybh: data.targetCode + data.targetCodeSn, maxVolume: data.targetActVolume, maxVolumeUnit: data.targetActVolumeUnit,
+ nd: data.targetActConcentration, ndz: `${data.targetActConcentration}${data.targetActConcentrationUnit}`, nddw: data.targetActConcentrationUnit, sxrq: data.expireDate, elnType: this.product, yxzq: data.effectivePeriod, yxzqdw: data.effectivePeriodUnit
+ }
}
}
},
@@ -125,7 +125,7 @@ export default {
},
// 试验基本信息表单配制
baseInfoFormConfig() {
- return this.sn==='GG005'?[
+ return this.sn === 'GG005' ? [
{
type: "cardItem",
config: {
@@ -179,7 +179,7 @@ export default {
},
}
}
- ]:[
+ ] : [
{
type: "cardItem",
config: {
@@ -477,6 +477,14 @@ export default {
this.yqResourceTmp = stepResource.yqResource || []
return this.resourceTmp;
},
+ //返回打印数据
+ getPrintResource() {
+ let content = this.getFilledFormData();
+ let printResourceTmp = []
+
+ this.printResourceTmp=printResourceTmp
+ return this.printResourceTmp
+ },
//获取步骤使用物资
getStepResource() {
const sjResource = [], yqResource = [];
From 4c6368fdf57fe98227539a44826358ff0e8dac9b Mon Sep 17 00:00:00 2001
From: "15881625488@163.com" <15881625488@163.com>
Date: Tue, 21 Apr 2026 21:52:38 +0800
Subject: [PATCH 4/4] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?=
=?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=89=93=E5=8D=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/lang/en/template/commonTemplate.js | 2 +
src/lang/zh/template/commonTemplate.js | 2 +
.../business/comps/template/TemplateTable.vue | 3 -
.../business/comps/template/comps/gsp/GSP001.vue | 8 ---
.../comps/template/mixins/templateMixin.js | 4 --
src/views/business/study/comp/tbbd/Bj.vue | 82 ++++++++++++++++++++--
6 files changed, 79 insertions(+), 22 deletions(-)
diff --git a/src/lang/en/template/commonTemplate.js b/src/lang/en/template/commonTemplate.js
index b9c46ee..d2be78e 100644
--- a/src/lang/en/template/commonTemplate.js
+++ b/src/lang/en/template/commonTemplate.js
@@ -13,6 +13,8 @@ export default {
remark: 'Comments',
step: 'Step',
bqdy: 'Label Print',
+ dayji: 'Printer',
+ label: 'Label',
//平行配制,阶梯配制
xzpxpz:'新增平行配制',
diff --git a/src/lang/zh/template/commonTemplate.js b/src/lang/zh/template/commonTemplate.js
index 9f52319..16dead2 100644
--- a/src/lang/zh/template/commonTemplate.js
+++ b/src/lang/zh/template/commonTemplate.js
@@ -19,6 +19,8 @@ export default {
step: '步骤',
remark: '备注',
bqdy: '标签打印',
+ dayji: '打印机',
+ label: '标签',
//平行配制,阶梯配制
xzpxpz:'新增平行配制',
diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue
index c47e528..ecb4cee 100644
--- a/src/views/business/comps/template/TemplateTable.vue
+++ b/src/views/business/comps/template/TemplateTable.vue
@@ -524,9 +524,6 @@ export default {
getResource() {
return this.$refs.templateComponent.getResource();
},
- getPrintResource() {
- return this.$refs.templateComponent.getPrintResource();
- },
getYqResource() {
return this.$refs.templateComponent.getYqResource();
},
diff --git a/src/views/business/comps/template/comps/gsp/GSP001.vue b/src/views/business/comps/template/comps/gsp/GSP001.vue
index 5f6e31c..b044c4c 100644
--- a/src/views/business/comps/template/comps/gsp/GSP001.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP001.vue
@@ -477,14 +477,6 @@ export default {
this.yqResourceTmp = stepResource.yqResource || []
return this.resourceTmp;
},
- //返回打印数据
- getPrintResource() {
- let content = this.getFilledFormData();
- let printResourceTmp = []
-
- this.printResourceTmp=printResourceTmp
- return this.printResourceTmp
- },
//获取步骤使用物资
getStepResource() {
const sjResource = [], yqResource = [];
diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js
index 3ddeee0..650905a 100644
--- a/src/views/business/comps/template/mixins/templateMixin.js
+++ b/src/views/business/comps/template/mixins/templateMixin.js
@@ -215,7 +215,6 @@ export default {
jcbList: [], //检测板信息
xbxj: [], //细胞细菌信息
- printResourceTmp:[],//标签打印list信息
resourceTmp: [], //试验试剂信息提交用
yqResourceTmp: [], //仪器信息提交用
jcbListTmp: [], //检测板信息提交用
@@ -387,9 +386,6 @@ export default {
getResource() {
return this.resourceTmp
},
- getPrintResource() {
- return this.printResourceTmp
- },
getYqResource() {
return this.yqResourceTmp
},
diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue
index 36be48c..a757f97 100644
--- a/src/views/business/study/comp/tbbd/Bj.vue
+++ b/src/views/business/study/comp/tbbd/Bj.vue
@@ -28,7 +28,7 @@
{{ $t('page.business.study.studyFormFill.next') }}
- {{
+ {{
$t('template.common.bqdy')
}}
{{
@@ -430,6 +430,37 @@
{{ $t('form.cancel') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -451,6 +482,7 @@ export default {
data() {
return {
showIndex: 1,
+ printCheck: [],
form: {},
rules: {
bdmc: [{
@@ -476,12 +508,17 @@ export default {
openSave: false,
openTjsh: false,
openApprove: false,
+ openBqdy: false,
openYjcc: false,
formSave: {
qmyy: this.$t('page.business.study.studyFormFill.txbbc'),
remark: '',
qmrmm: '',
},
+ formBqdy: {
+ dyj: null,
+ printList: null
+ },
formApprove: {
id: null,
qmyy: this.$t('page.business.study.studyFormFill.txbtjjl'),
@@ -531,6 +568,18 @@ export default {
jcbList: [],
xbxj: [],
bdmbTitle: this.$t('page.business.form.bdmb'),
+ rulesBqdy: {
+ dyj: [{
+ required: true,
+ message: ' ',
+ trigger: 'blur'
+ }],
+ printList: [{
+ required: true,
+ message: ' ',
+ trigger: 'blur'
+ }]
+ },
rulesApprove: {
qmrmm: [{
required: true,
@@ -564,6 +613,7 @@ export default {
studyFormType: null,
ccwzlist: [],
selectedDeptId: null,
+ resourcePrint: []
}
},
computed: {
@@ -576,6 +626,13 @@ export default {
this.getCcwz()
},
methods: {
+ printCheckChange() {
+ if (this.printCheck && this.printCheck.length > 0) {
+ this.formBqdy.printList = this.printCheck.join(',')
+ } else {
+ this.formBqdy.printList = null
+ }
+ },
validForm() {
this.$refs["form"].validate(valid => {
if (valid) { }
@@ -823,13 +880,24 @@ export default {
that.cclistYj = []
that.addCcYj()
that.$refs.templateTable.getFilledFormData()
- let resource = that.$refs.templateTable.getPrintResource()
- if (resource.length > 0) {
-
+ that.resourcePrint = _.filter(that.$refs.templateTable.getResource(), function (item) { return item.type == null || item.elnType && item.elnType != '' })
+ if (that.resourcePrint.length > 0) {
+ that.formBqdy.dyj=null
+ that.formBqdy.printList=null
+ that.printCheck=[]
+ that.openBqdy = true
} else {
that.$modal.msgError("没有可打印的标签")
}
},
+ printbq() {
+ let that = this
+ this.$refs["formBqdy"].validate(valid => {
+ if (valid) {
+ that.$modal.msgError("todo")
+ }
+ })
+ },
async showTjsh(qmyy) {
let that = this
let content = await this.$refs.templateTable.getFormData()
@@ -1022,7 +1090,7 @@ export default {
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空")
return
}
- if (that.cclistYj[i].cctj == '其他'&& that.cclistYj[i].cctjqt == '') {
+ if (that.cclistYj[i].cctj == '其他' && that.cclistYj[i].cctjqt == '') {
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空")
return
}
@@ -1060,7 +1128,7 @@ export default {
this.$modal.msgError('第' + (i + 1) + "个处置,处置方式不能为空")
return
}
- if (that.czlist[i].czfs == '其他'&& that.czlist[i].czfsqt == '') {
+ if (that.czlist[i].czfs == '其他' && that.czlist[i].czfsqt == '') {
this.$modal.msgError('第' + (i + 1) + "个存储,处置方式不能为空")
return
}
@@ -1074,7 +1142,7 @@ export default {
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空")
return
}
- if (that.cclist[i].cctj=='其他' && that.cclist[i].cctjqt == '') {
+ if (that.cclist[i].cctj == '其他' && that.cclist[i].cctjqt == '') {
this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空")
return
}