-
+
删除
@@ -10,10 +10,12 @@
\ No newline at end of file
diff --git a/src/lang/en/business/study/studyFormApply.js b/src/lang/en/business/study/studyFormApply.js
index c7470be..758f653 100644
--- a/src/lang/en/business/study/studyFormApply.js
+++ b/src/lang/en/business/study/studyFormApply.js
@@ -60,5 +60,10 @@ export default {
smxz: 'Declaration of Collaboration',
bcsm: 'Additional Remark',
fztgjj: 'Approve/Reject Record Abolition',
- ysy: 'Reviewed'
+ ysy: 'Reviewed',
+ sybhbm: 'Study Number/Department',
+ sywzmc: 'Study Material Name',
+ xynd: 'Required Concentration',
+ xysj: 'Required Time',
+ bdzt:'Status'
}
diff --git a/src/lang/en/business/study/studyFormFill.js b/src/lang/en/business/study/studyFormFill.js
index 4abb26f..b2deb74 100644
--- a/src/lang/en/business/study/studyFormFill.js
+++ b/src/lang/en/business/study/studyFormFill.js
@@ -22,6 +22,8 @@ export default {
next: 'Next',
pre: 'Pre',
save: 'Save',
+ blxjshtg:'病历学家审核通过',
+ blxjshjj:'病历学家审核拒绝',
submit: 'Submit',
bdnr: 'Record Information',
qmxx: 'Signature information',
@@ -31,6 +33,8 @@ export default {
bzyy: 'Comment/Reason',
jcgj: 'Track Record',
cjjl: 'Create Record',
+ tjsh:'Submit Audit',
+ blxjsh:'病理学家审核',
sfbl: 'Back Entry',
yes: 'Yes',
no: 'No',
diff --git a/src/lang/en/template/dl.js b/src/lang/en/template/dl.js
index 1f4b018..312c9e2 100644
--- a/src/lang/en/template/dl.js
+++ b/src/lang/en/template/dl.js
@@ -49,7 +49,7 @@ export default {
dl004: {
...common,
zjjgqr: '增菌结果确认',
- ccwz: 'Storage Location',
+ ccwz: 'Storage Location'
},
dl006: {
...common,
@@ -78,7 +78,8 @@ export default {
pykssj: 'Cultivation Start Time',
pyjssj: 'Cultivation End Time',
jsButton: 'End',
- yqsyxxEmpty: 'Instrument usage information has not been filled in, please fill in before submitting'
+ yqsyxxEmpty:
+ 'Instrument usage information has not been filled in, please fill in before submitting'
},
dl008: {
...common,
@@ -89,8 +90,10 @@ export default {
jzbh2: 'Strain Number',
jzbh3: 'Strain Number',
jzbh4: 'Strain Number',
- yqsyxxEmpty: 'Instrument usage information has not been filled in, please fill in before submitting',
- cxqkEmpty: 'Imaging status has not been filled in, please fill in before submitting'
+ yqsyxxEmpty:
+ 'Instrument usage information has not been filled in, please fill in before submitting',
+ cxqkEmpty:
+ 'Imaging status has not been filled in, please fill in before submitting'
},
dl009: {
...common,
@@ -104,11 +107,16 @@ export default {
czqk: 'Precipitation Status',
bjjt: 'Background Lawn',
jls: 'Colony Count',
- czqkDesc: 'Precipitation codes: "P-" = "None"; "P+" = "Slight"; "P++" = "Moderate"; "P+++" = "Severe".',
- bjjtDesc: 'Background lawn codes: "N" = "Normal"; "R1" = "Weak, lawn covers 70%-90% of plate area"; "R2" = "Medium, lawn covers 40%-70% of plate area"; "R3" = "Strong, lawn covers 10%-40% of plate area"; "A" = "Absent, no lawn on plate"; "O" = "Precipitation present, affecting lawn assessment";',
- jlsDesc: 'Colony count special case: "*" indicates pinpoint colonies visible on plate;',
- yqsyxxEmpty: 'Instrument usage information has not been filled in, please fill in before submitting',
- jgxxEmpty: 'Result information has not been filled in, please fill in before submitting'
+ czqkDesc:
+ 'Precipitation codes: "P-" = "None"; "P+" = "Slight"; "P++" = "Moderate"; "P+++" = "Severe".',
+ bjjtDesc:
+ 'Background lawn codes: "N" = "Normal"; "R1" = "Weak, lawn covers 70%-90% of plate area"; "R2" = "Medium, lawn covers 40%-70% of plate area"; "R3" = "Strong, lawn covers 10%-40% of plate area"; "A" = "Absent, no lawn on plate"; "O" = "Precipitation present, affecting lawn assessment";',
+ jlsDesc:
+ 'Colony count special case: "*" indicates pinpoint colonies visible on plate;',
+ yqsyxxEmpty:
+ 'Instrument usage information has not been filled in, please fill in before submitting',
+ jgxxEmpty:
+ 'Result information has not been filled in, please fill in before submitting'
},
dl010: {
...common,
@@ -195,8 +203,10 @@ export default {
yxg: 'Lower Right Grid (cells)',
cdxxTime: 'Time {index}',
addCdxx: 'Add',
- yqsyxxEmpty: 'Instrument usage information has not been filled in, please fill in before submitting',
- cdxxEmpty: 'Measurement information has not been filled in, please fill in before submitting'
+ yqsyxxEmpty:
+ 'Instrument usage information has not been filled in, please fill in before submitting',
+ cdxxEmpty:
+ 'Measurement information has not been filled in, please fill in before submitting'
},
dl014: {
...common,
@@ -224,7 +234,8 @@ export default {
gyhzqk: 'Post-dose Status',
qrButton: 'Confirm',
wcButton: 'Complete',
- yqsyxxEmpty: 'Instrument usage information has not been filled in, please fill in before submitting'
+ yqsyxxEmpty:
+ 'Instrument usage information has not been filled in, please fill in before submitting'
},
dl015: {
...common,
@@ -236,151 +247,151 @@ export default {
hyqqtqk: 'Other Conditions Before Medium Change',
qqpyy: 'Discard Culture Medium',
pbsxd: 'PBS Wash',
- pyybrl: 'Culture Medium Volume Added (ul)'
+ pyybrl: 'Culture Medium Volume Added'
},
dl016: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
czbz: '操作步骤',
- qcxjjyqk:'秋水仙碱加液情况',
- bltj:'暴露条件',
- jlzb:'剂量组别',
- xybh:'悬液编号',
- qsxjjrl:'秋水仙碱加入量',
+ qcxjjyqk: '秋水仙碱加液情况',
+ bltj: '暴露条件',
+ jlzb: '剂量组别',
+ xybh: '悬液编号',
+ qsxjjrl: '秋水仙碱加入量'
},
dl017: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
czbz: '操作步骤',
- xbczqk:'细胞操作情况',
- bltj:'暴露条件',
+ xbczqk: '细胞操作情况',
+ bltj: '暴露条件',
- jlzb:'剂量组别',
- xybh:'悬液编号',
- sjqszqk:'收集前生长情况',
- sjqcdqk:'收集前沉淀情况',
- saqqtqk:'收集前其他情况',
- ddpyy:'倒掉培养液',
- xd:'洗涤',
- sj:'收集',
- ds:'低渗',
- dy1gd:'第一次固定',
- dy2gd:'第二次固定',
- dy3gd:'第三次固定',
- dy4gd:'第四次固定',
+ jlzb: '剂量组别',
+ xybh: '悬液编号',
+ sjqszqk: '收集前生长情况',
+ sjqcdqk: '收集前沉淀情况',
+ saqqtqk: '收集前其他情况',
+ ddpyy: '倒掉培养液',
+ xd: '洗涤',
+ sj: '收集',
+ ds: '低渗',
+ dy1gd: '第一次固定',
+ dy2gd: '第二次固定',
+ dy3gd: '第三次固定',
+ dy4gd: '第四次固定'
},
dl018: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
czbz: '操作步骤',
- xbczqk:'细胞操作情况',
- bltj:'暴露条件',
+ xbczqk: '细胞操作情况',
+ bltj: '暴露条件',
- jlzb:'剂量组别',
- xybh:'悬液编号',
- rsks:'染色开始',
- rsjs:'染色结束',
- ksButton:'开始',
- jsButton:'结束',
- zs:'左上(个)',
- ys:'右上(个)',
- zy:'左下(个)',
- yx:'右下(个)',
- tj:'体积(mL)',
+ jlzb: '剂量组别',
+ xybh: '悬液编号',
+ rsks: '染色开始',
+ rsjs: '染色结束',
+ ksButton: '开始',
+ jsButton: '结束',
+ zs: '左上(个)',
+ ys: '右上(个)',
+ zy: '左下(个)',
+ yx: '右下(个)',
+ tj: '体积(mL)'
},
dl019: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
czbz: '操作步骤',
- xbczqk:'细胞操作情况',
- bltj:'暴露条件',
+ xbczqk: '细胞操作情况',
+ bltj: '暴露条件',
- jlzb:'剂量组别',
- xybh:'悬液编号',
- bplsh1:'玻片流水号',
- bplsh2:'玻片流水号',
+ jlzb: '剂量组别',
+ xybh: '悬液编号',
+ bplsh1: '玻片流水号',
+ bplsh2: '玻片流水号'
},
dl020: {
swdljlbxx: 'Toxicology Record Information',
- xbxx:'Cell Information',
- sydd:'Test Location',
- czsj:'Operation Time',
+ xbxx: 'Cell Information',
+ sydd: 'Test Location',
+ czsj: 'Operation Time',
qxbd: 'Previous Form',
dlbz: 'Remarks',
- czbz: 'Operation Steps',
+ czbz: 'Operation Steps'
},
dl021: {
- czsj:'操作时间',
+ czsj: '操作时间',
dlbz: '备注',
gcqk: '观察情况',
- xbmc:'细胞名称',
- xwj:'显微镜',
- bpbh:'玻片编号',
- gcxps:'观察细胞数目',
- zqxxbs:'中期相细胞数',
+ xbmc: '细胞名称',
+ xwj: '显微镜',
+ bpbh: '玻片编号',
+ gcxps: '观察细胞数目',
+ zqxxbs: '中期相细胞数'
},
dl022: {
- czsj:'操作时间',
+ czsj: '操作时间',
dlbz: '备注',
- gcqk: '观察情况',
+ jbqk: '畸变情况',
- xbmc:'细胞名称',
- xwj:'显微镜',
- bpbh:'玻片编号',
- gcxps:'观察细胞数目',
+ xbmc: '细胞名称',
+ xwj: '显微镜',
+ bpbh: '玻片编号',
+ gcxps: '观察细胞数目',
- jgjxjbs:'结构畸形畸变数',
- lxjbs:'裂隙畸变数',
- dbtjbs:'多倍体畸变数',
- nfzjbs:'内复制畸变数',
- jblx:'畸变类型'
+ jgjxjbs: '结构畸形畸变数',
+ lxjbs: '裂隙畸变数',
+ dbtjbs: '多倍体畸变数',
+ nfzjbs: '内复制畸变数',
+ jblx: '畸变类型'
},
dl023: {
- czsj:'操作时间',
+ czsj: '操作时间',
dlbz: '备注',
yqsyxx: '仪器使用信息',
czjl: '操作记录',
- yqbh:'仪器编号',
- yqmc:'仪器名称',
- yqxh:'仪器型号',
- xcrq:'下次测试/校准/检定日期',
+ yqbh: '仪器编号',
+ yqmc: '仪器名称',
+ yqxh: '仪器型号',
+ xcrq: '下次测试/校准/检定日期',
- dwzshxbx:'动物种属或细胞系',
- dwzs:'动物种属',
- xbx:'细胞系',
- sydd:'试验地点',
- zwbh:'动物编号/细胞培养板名称',
- uvazsjl:'UVA照射剂量',
- zszsj:'照射总时间(分:秒)',
- zskssj:'照射开始时间',
- zsjssj:'照射结束时间',
- ksButton:'开始',
- jsButton:'结束',
+ dwzshxbx: '动物种属或细胞系',
+ dwzs: '动物种属',
+ xbx: '细胞系',
+ sydd: '试验地点',
+ zwbh: '动物编号/细胞培养板名称',
+ uvazsjl: 'UVA照射剂量',
+ zszsj: '照射总时间(分:秒)',
+ zskssj: '照射开始时间',
+ zsjssj: '照射结束时间',
+ ksButton: '开始',
+ jsButton: '结束'
},
dl024: {
- sydd:'实验地点',
- czsj:'操作时间',
+ sydd: '试验地点',
+ czsj: '操作时间',
dlbz: '备注',
xbpyxx: '细胞培养信息',
- qxbd:'前序表单',
- pykssj:'培养开始时间',
- pyjssj:'培养结束时间',
- jsButton:'培养结束时间',
- xbbh:'细胞编号',
- },
+ qxbd: '前序表单',
+ pykssj: '培养开始时间',
+ pyjssj: '培养结束时间',
+ jsButton: '培养结束时间',
+ xbbh: '细胞编号'
+ }
}
diff --git a/src/lang/en/template/gsp.js b/src/lang/en/template/gsp.js
index 1cd6e39..7a476ae 100644
--- a/src/lang/en/template/gsp.js
+++ b/src/lang/en/template/gsp.js
@@ -68,6 +68,9 @@ export default {
rjyjtj:'溶剂预计体积',
rjsjtj:'溶剂实际体积',
},
+ gsp007:{
+ bzqx:'标准曲线',
+ },
gsp009: {
xtsyx: '系统适应性',
ypbh: '样品编号',
diff --git a/src/lang/zh/business/study/studyFormApply.js b/src/lang/zh/business/study/studyFormApply.js
index 55db5cd..b8b0ab6 100644
--- a/src/lang/zh/business/study/studyFormApply.js
+++ b/src/lang/zh/business/study/studyFormApply.js
@@ -60,5 +60,9 @@ export default {
smxz: '申明协作',
bcsm: '补充说明',
fztgjj: '废止通过/拒绝',
- ysy: '已审阅'
+ ysy: '已审阅',
+ sybhbm: '试验编号/部门',
+ sywzmc: '试验物质名称',
+ xynd: '需要浓度',
+ xysj: '需要时间',
}
diff --git a/src/lang/zh/business/study/studyFormFill.js b/src/lang/zh/business/study/studyFormFill.js
index fd76c40..61d1744 100644
--- a/src/lang/zh/business/study/studyFormFill.js
+++ b/src/lang/zh/business/study/studyFormFill.js
@@ -21,6 +21,8 @@ export default {
zc: '暂存',
next: '下一步',
pre: '上一步',
+ blxjshtg:'病历学家审核通过',
+ blxjshjj:'病历学家审核拒绝',
save: '保存',
submit: '提交',
bdnr: '表单内容',
@@ -31,8 +33,10 @@ export default {
bzyy: '备注原因',
jcgj: '稽查轨迹',
cjjl: '创建记录',
- sfbl: '是否为补录',
+ sfbl: '是否补录',
yes: '是',
+ blxjsh:'病理学家审核',
+ tjsh:'提交审核',
no: '否',
tjjl: '提交记录',
sqfz: '申请废止',
diff --git a/src/lang/zh/template/dl.js b/src/lang/zh/template/dl.js
index d1795d0..1e523c2 100644
--- a/src/lang/zh/template/dl.js
+++ b/src/lang/zh/template/dl.js
@@ -50,7 +50,7 @@ export default {
dl004: {
...common,
zjjgqr: '增菌结果确认',
- ccwz: '存储位置',
+ ccwz: '存储位置'
},
dl006: {
...common,
@@ -73,7 +73,7 @@ export default {
jzbh: '菌种编号',
gspcdqk: '供试品沉淀情况',
czxx: '操作信息',
- pyxbh:"培养箱编号"
+ pyxbh: '培养箱编号'
},
dl007: {
...common,
@@ -107,8 +107,10 @@ export default {
czqk: '沉淀情况',
bjjt: '背景菌苔',
jls: '菌落数(个)',
- czqkDesc: '沉淀量以代码填入:"P-" 代表 "无沉淀";"P+" 代表 "少量";"P++" 代表 "中等";"P+++" 代表 "严重"。',
- bjjtDesc: '背景菌苔以代码填入:"N" 代表 "正常";"R1" 代表 "弱,菌苔约占平皿面积 70%-90%";"R2" 代表 "中,菌苔约占平皿面积 40%-70%";"R3" 代表 "强,菌苔约占平皿面积 10%-40%";"A" 代表 "消失,平皿上无菌苔";"O" 代表 "产生沉淀,影响背景菌苔判断";',
+ czqkDesc:
+ '沉淀量以代码填入:"P-" 代表 "无沉淀";"P+" 代表 "少量";"P++" 代表 "中等";"P+++" 代表 "严重"。',
+ bjjtDesc:
+ '背景菌苔以代码填入:"N" 代表 "正常";"R1" 代表 "弱,菌苔约占平皿面积 70%-90%";"R2" 代表 "中,菌苔约占平皿面积 40%-70%";"R3" 代表 "强,菌苔约占平皿面积 10%-40%";"A" 代表 "消失,平皿上无菌苔";"O" 代表 "产生沉淀,影响背景菌苔判断";',
jlsDesc: '菌落数特殊情况:"*" 该平皿可见针尖样菌落;',
yqsyxxEmpty: '仪器使用信息还未填写,请填写后再提交',
jgxxEmpty: '结果信息还未填写,请填写后再提交'
@@ -239,150 +241,150 @@ export default {
hyqqtqk: '换液前其他情况',
qqpyy: '倾去培养液',
pbsxd: 'PBS洗涤',
- pyybrl: '培养液补入量(ul)'
+ pyybrl: '培养液补入量'
},
dl016: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
czbz: '操作步骤',
- qcxjjyqk:'秋水仙碱加液情况',
- bltj:'暴露条件',
- jlzb:'剂量组别',
- xybh:'悬液编号',
- qsxjjrl:'秋水仙碱加入量',
+ qcxjjyqk: '秋水仙碱加液情况',
+ bltj: '暴露条件',
+ jlzb: '剂量组别',
+ xybh: '悬液编号',
+ qsxjjrl: '秋水仙碱加入量'
},
dl017: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
czbz: '操作步骤',
- xbczqk:'细胞操作情况',
- bltj:'暴露条件',
+ xbczqk: '细胞操作情况',
+ bltj: '暴露条件',
- jlzb:'剂量组别',
- xybh:'悬液编号',
- sjqszqk:'收集前生长情况',
- sjqcdqk:'收集前沉淀情况',
- saqqtqk:'收集前其他情况',
- ddpyy:'倒掉培养液',
- xd:'洗涤',
- sj:'收集',
- ds:'低渗',
- dy1gd:'第一次固定',
- dy2gd:'第二次固定',
- dy3gd:'第三次固定',
- dy4gd:'第四次固定',
+ jlzb: '剂量组别',
+ xybh: '悬液编号',
+ sjqszqk: '收集前生长情况',
+ sjqcdqk: '收集前沉淀情况',
+ saqqtqk: '收集前其他情况',
+ ddpyy: '倒掉培养液',
+ xd: '洗涤',
+ sj: '收集',
+ ds: '低渗',
+ dy1gd: '第一次固定',
+ dy2gd: '第二次固定',
+ dy3gd: '第三次固定',
+ dy4gd: '第四次固定'
},
dl018: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
czbz: '操作步骤',
- xbczqk:'细胞操作情况',
- bltj:'暴露条件',
+ xbczqk: '细胞操作情况',
+ bltj: '暴露条件',
- jlzb:'剂量组别',
- xybh:'悬液编号',
- rsks:'染色开始',
- rsjs:'染色结束',
- ksButton:'开始',
- jsButton:'结束',
- zs:'左上(个)',
- ys:'右上(个)',
- zy:'左下(个)',
- yx:'右下(个)',
- tj:'体积(mL)',
+ jlzb: '剂量组别',
+ xybh: '悬液编号',
+ rsks: '染色开始',
+ rsjs: '染色结束',
+ ksButton: '开始',
+ jsButton: '结束',
+ zs: '左上(个)',
+ ys: '右上(个)',
+ zy: '左下(个)',
+ yx: '右下(个)',
+ tj: '体积(mL)'
},
dl019: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
czbz: '操作步骤',
- xbczqk:'细胞操作情况',
- bltj:'暴露条件',
+ xbczqk: '细胞操作情况',
+ bltj: '暴露条件',
- jlzb:'剂量组别',
- xybh:'悬液编号',
- bplsh1:'玻片流水号',
- bplsh2:'玻片流水号',
+ jlzb: '剂量组别',
+ xybh: '悬液编号',
+ bplsh1: '玻片流水号',
+ bplsh2: '玻片流水号'
},
dl020: {
- xbxx:'细胞信息',
- sydd:'实验地点',
- czsj:'操作时间',
+ xbxx: '细胞信息',
+ sydd: '试验地点',
+ czsj: '操作时间',
qxbd: '前序表单',
dlbz: '备注',
- czbz: '操作步骤',
+ czbz: '操作步骤'
},
dl021: {
- czsj:'操作时间',
+ czsj: '操作时间',
dlbz: '备注',
gcqk: '观察情况',
- xbmc:'细胞名称',
- xwj:'显微镜',
- bpbh:'玻片编号',
- gcxps:'观察细胞数目',
- zqxxbs:'中期相细胞数',
+ xbmc: '细胞名称',
+ xwj: '显微镜',
+ bpbh: '玻片编号',
+ gcxps: '观察细胞数目',
+ zqxxbs: '中期相细胞数'
},
dl022: {
- czsj:'操作时间',
+ czsj: '操作时间',
dlbz: '备注',
- gcqk: '观察情况',
+ jbqk: '畸变情况',
- xbmc:'细胞名称',
- xwj:'显微镜',
- bpbh:'玻片编号',
- gcxps:'观察细胞数目',
+ xbmc: '细胞名称',
+ xwj: '显微镜',
+ bpbh: '玻片编号',
+ gcxps: '观察细胞数目',
- jgjxjbs:'结构畸形畸变数',
- lxjbs:'裂隙畸变数',
- dbtjbs:'多倍体畸变数',
- nfzjbs:'内复制畸变数',
- jblx:'畸变类型'
+ jgjxjbs: '结构畸形畸变数',
+ lxjbs: '裂隙畸变数',
+ dbtjbs: '多倍体畸变数',
+ nfzjbs: '内复制畸变数',
+ jblx: '畸变类型'
},
dl023: {
- czsj:'操作时间',
+ czsj: '操作时间',
dlbz: '备注',
yqsyxx: '仪器使用信息',
czjl: '操作记录',
- yqbh:'仪器编号',
- yqmc:'仪器名称',
- yqxh:'仪器型号',
- xcrq:'下次测试/校准/检定日期',
+ yqbh: '仪器编号',
+ yqmc: '仪器名称',
+ yqxh: '仪器型号',
+ xcrq: '下次测试/校准/检定日期',
- dwzshxbx:'动物种属或细胞系',
- dwzs:'动物种属',
- xbx:'细胞系',
- sydd:'试验地点',
- zwbh:'动物编号/细胞培养板名称',
- uvazsjl:'UVA照射剂量',
- zszsj:'照射总时间(分:秒)',
- zskssj:'照射开始时间',
- zsjssj:'照射结束时间',
- ksButton:'开始',
- jsButton:'结束',
+ dwzshxbx: '动物种属或细胞系',
+ dwzs: '动物种属',
+ xbx: '细胞系',
+ sydd: '试验地点',
+ zwbh: '动物编号/细胞培养板名称',
+ uvazsjl: 'UVA照射剂量',
+ zszsj: '照射总时间(分:秒)',
+ zskssj: '照射开始时间',
+ zsjssj: '照射结束时间',
+ ksButton: '开始',
+ jsButton: '结束'
},
dl024: {
- sydd:'实验地点',
- czsj:'操作时间',
+ sydd: '试验地点',
+ czsj: '操作时间',
dlbz: '备注',
xbpyxx: '细胞培养信息',
- qxbd:'前序表单',
- pykssj:'培养开始时间',
- pyjssj:'培养结束时间',
- jsButton:'培养结束时间',
- xbbh:'细胞编号',
- },
+ qxbd: '前序表单',
+ pykssj: '培养开始时间',
+ pyjssj: '培养结束时间',
+ jsButton: '培养结束时间',
+ xbbh: '细胞编号'
+ }
}
diff --git a/src/lang/zh/template/gsp.js b/src/lang/zh/template/gsp.js
index 488c541..e5935a3 100644
--- a/src/lang/zh/template/gsp.js
+++ b/src/lang/zh/template/gsp.js
@@ -68,6 +68,9 @@ export default {
rjyjtj:'溶剂预计体积',
rjsjtj:'溶剂实际体积',
},
+ gsp007:{
+ bzqx:'标准曲线',
+ },
gsp009: {
xtsyx: '系统适应性',
ypbh: '样品编号',
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index f65883f..052da34 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -14,6 +14,8 @@
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
+ overflowY: 'auto',
+ overflowX: 'hidden',
height: 'calc(100vh - 100px)'
}"
mode="vertical"
diff --git a/src/utils/calUnitTools.js b/src/utils/calUnitTools.js
index 3d82e64..4ad979f 100644
--- a/src/utils/calUnitTools.js
+++ b/src/utils/calUnitTools.js
@@ -54,10 +54,10 @@ export function subTj(valueArr, unitArr) {
}
export function addDecimals(a, b) {
- if (Number.isNaN(a)) {
+ if (Number.isNaN(a) || a == 'NA') {
a = 0
}
- if (Number.isNaN(b)) {
+ if (Number.isNaN(b) || b == 'NA') {
b = 0
}
const strA = a.toString()
@@ -75,10 +75,10 @@ export function addDecimals(a, b) {
}
export function subDecimals(a, b) {
- if (Number.isNaN(a)) {
+ if (Number.isNaN(a) || a == 'NA') {
a = 0
}
- if (Number.isNaN(b)) {
+ if (Number.isNaN(b) || a == 'NA') {
b = 0
}
const strA = a.toString()
@@ -96,7 +96,7 @@ export function subDecimals(a, b) {
}
export function multiplyDecimals(a, b) {
- if (Number.isNaN(a) || Number.isNaN(b)) {
+ if (Number.isNaN(a) || Number.isNaN(b) || a == 'NA' || b == 'NA') {
return 0
}
const strA = a.toString()
@@ -187,11 +187,9 @@ export function uniqeYqOne(newList) {
let resultList = []
for (var i = 0; i < newList.length; i++) {
let _index = _.findIndex(resultList, function (item) {
- return (
- item.bh == newList[i].bh
- )
+ return item.bh == newList[i].bh
})
- if (_index <0) {
+ if (_index < 0) {
resultList.push(newList[i])
}
}
diff --git a/src/utils/index.js b/src/utils/index.js
index f63de38..d541b85 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -419,6 +419,9 @@ export const getExpireDate = (
effectivePeriod,
effectivePeriodUnit
) => {
+ if(effectivePeriod === "NA" || effectivePeriodUnit === "NA"){
+ return "NA";
+ }
const start = moment(startDate)
const unit = effectivePeriodUnit === '天' ? 'days' : 'hours'
const end = start
diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js
index 3de2d98..a5af056 100644
--- a/src/utils/ruoyi.js
+++ b/src/utils/ruoyi.js
@@ -13,12 +13,15 @@ export function parseTime(time, pattern) {
if (typeof time === 'object') {
date = time
} else {
- if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
+ if (typeof time === 'string' && /^[0-9]+$/.test(time)) {
time = parseInt(time)
} else if (typeof time === 'string') {
- time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.[\d]{3}/gm), '')
+ time = time
+ .replace(new RegExp(/-/gm), '/')
+ .replace('T', ' ')
+ .replace(new RegExp(/\.[\d]{3}/gm), '')
}
- if ((typeof time === 'number') && (time.toString().length === 10)) {
+ if (typeof time === 'number' && time.toString().length === 10) {
time = time * 1000
}
date = new Date(time)
@@ -35,7 +38,9 @@ export function parseTime(time, pattern) {
const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
let value = formatObj[key]
// Note: getDay() returns 0 on Sunday
- if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value] }
+ if (key === 'a') {
+ return ['日', '一', '二', '三', '四', '五', '六'][value]
+ }
if (result.length > 0 && value < 10) {
value = '0' + value
}
@@ -46,17 +51,24 @@ export function parseTime(time, pattern) {
// 表单重置
export function resetForm(refName) {
- if (this.$refs[refName]) {
- this.$refs[refName].resetFields()
- }
+ setTimeout(() => {
+ if (this.$refs[refName]) {
+ this.$refs[refName].resetFields()
+ }
+ }, 100)
}
// 添加日期范围
export function addDateRange(params, dateRange, propName) {
let search = params
- search.params = typeof (search.params) === 'object' && search.params !== null && !Array.isArray(search.params) ? search.params : {}
+ search.params =
+ typeof search.params === 'object' &&
+ search.params !== null &&
+ !Array.isArray(search.params)
+ ? search.params
+ : {}
dateRange = Array.isArray(dateRange) ? dateRange : []
- if (typeof (propName) === 'undefined') {
+ if (typeof propName === 'undefined') {
search.params['beginTime'] = dateRange[0]
search.params['endTime'] = dateRange[1]
} else {
@@ -69,11 +81,11 @@ export function addDateRange(params, dateRange, propName) {
// 回显数据字典
export function selectDictLabel(datas, value) {
if (value === undefined) {
- return ""
+ return ''
}
var actions = []
Object.keys(datas).some((key) => {
- if (datas[key].value == ('' + value)) {
+ if (datas[key].value == '' + value) {
actions.push(datas[key].label)
return true
}
@@ -86,19 +98,19 @@ export function selectDictLabel(datas, value) {
// 回显数据字典(字符串、数组)
export function selectDictLabels(datas, value, separator) {
- if (value === undefined || value.length ===0) {
- return ""
+ if (value === undefined || value.length === 0) {
+ return ''
}
if (Array.isArray(value)) {
- value = value.join(",")
+ value = value.join(',')
}
var actions = []
- var currentSeparator = undefined === separator ? "," : separator
+ var currentSeparator = undefined === separator ? ',' : separator
var temp = value.split(currentSeparator)
Object.keys(value.split(currentSeparator)).some((val) => {
var match = false
Object.keys(datas).some((key) => {
- if (datas[key].value == ('' + temp[val])) {
+ if (datas[key].value == '' + temp[val]) {
actions.push(datas[key].label + currentSeparator)
match = true
}
@@ -112,7 +124,9 @@ export function selectDictLabels(datas, value, separator) {
// 字符串格式化(%s )
export function sprintf(str) {
- var args = arguments, flag = true, i = 1
+ var args = arguments,
+ flag = true,
+ i = 1
str = str.replace(/%s/g, function () {
var arg = args[i++]
if (typeof arg === 'undefined') {
@@ -126,8 +140,8 @@ export function sprintf(str) {
// 转换字符串,undefined,null等转化为""
export function parseStrEmpty(str) {
- if (!str || str == "undefined" || str == "null") {
- return ""
+ if (!str || str == 'undefined' || str == 'null') {
+ return ''
}
return str
}
@@ -185,25 +199,29 @@ export function handleTree(data, id, parentId, children) {
}
/**
-* 参数处理
-* @param {*} params 参数
-*/
+ * 参数处理
+ * @param {*} params 参数
+ */
export function tansParams(params) {
let result = ''
for (const propName of Object.keys(params)) {
const value = params[propName]
- var part = encodeURIComponent(propName) + "="
- if (value !== null && value !== "" && typeof (value) !== "undefined") {
+ var part = encodeURIComponent(propName) + '='
+ if (value !== null && value !== '' && typeof value !== 'undefined') {
if (typeof value === 'object') {
for (const key of Object.keys(value)) {
- if (value[key] !== null && value[key] !== "" && typeof (value[key]) !== 'undefined') {
+ if (
+ value[key] !== null &&
+ value[key] !== '' &&
+ typeof value[key] !== 'undefined'
+ ) {
let params = propName + '[' + key + ']'
- var subPart = encodeURIComponent(params) + "="
- result += subPart + encodeURIComponent(value[key]) + "&"
+ var subPart = encodeURIComponent(params) + '='
+ result += subPart + encodeURIComponent(value[key]) + '&'
}
}
} else {
- result += part + encodeURIComponent(value) + "&"
+ result += part + encodeURIComponent(value) + '&'
}
}
}
diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue
index 6da29db..a8c0f68 100644
--- a/src/views/business/comps/template/TemplateTable.vue
+++ b/src/views/business/comps/template/TemplateTable.vue
@@ -52,9 +52,6 @@ import DMYPPZJLB from "./comps/gsp/DMYPPZJLB.vue";
// PCR
//PCR001-使用SP001
-import PCR002 from "./comps/pcr/PCR002.vue";
-import PCR003 from "./comps/pcr/PCR003.vue";
-import PCR004 from "./comps/pcr/PCR004.vue";
import PCR005 from "./comps/pcr/PCR005.vue";
import PCR007 from "./comps/pcr/PCR007.vue";
import PCR008 from "./comps/pcr/PCR008.vue";
@@ -68,9 +65,9 @@ import PCR012 from "./comps/pcr/PCR012.vue";
import LBA002 from "./comps/lba/LBA002.vue";
import LBA003 from "./comps/lba/LBA003.vue";
import LBA004 from "./comps/lba/LBA004.vue";
-import LBA005 from "./comps/lba/LBA005.vue";
+// LBA005-使用SP456
import LBA006 from "./comps/lba/LBA006.vue";
-import LBA007 from "./comps/lba/LBA007.vue";
+// LBA007-使用SP456
import LBA008 from "./comps/lba/LBA008.vue";
//ADA
@@ -78,9 +75,9 @@ import LBA008 from "./comps/lba/LBA008.vue";
// ADA002-使用LBA002
// ADA003-使用LBA003
// ADA004-使用LBA004
-// ADA005-使用LBA005
+// ADA005-使用SP456
// ADA006-使用LBA006
-// ADA007-使用LBA007
+// ADA007-使用SP456
//样品
// YP001-使用SP001
@@ -140,14 +137,12 @@ export default {
//色谱
SP001, SP003, SP00456,SP007, SP008, SP009,SP0019,SP0020,SP0021,
// PCR
- PCR002, PCR003, PCR004, PCR005,PCR007, PCR008, PCR009,PCR010, PCR011, PCR012,
+ PCR005,PCR007, PCR008, PCR009,PCR010, PCR011, PCR012,
//LBA
LBA002,
LBA003,
LBA004,
- LBA005,
LBA006,
- LBA007,
LBA008,
//样品
YP002,
@@ -340,6 +335,14 @@ export default {
'DL022': 'DL022',
'DL023': 'DL023',
'DL024': 'DL024',
+
+ //公共
+ 'GG001': 'DL011',
+ 'GG002': 'DL012',
+ 'GG003': 'SP001',
+ 'GG004': 'SP001',
+ 'GG005': 'GSP001',
+ 'GG006': 'GSP002',
}
}
return this.componentMap || "Demo"
@@ -360,10 +363,13 @@ export default {
if (v.zdxgjl) {
this.zdxgjl = JSON.parse(v.zdxgjl) || [];
}
+ if (v.submittedCodes) {
+ this.submittedCodes = JSON.parse(v.submittedCodes) || [];
+ }
if (v.fhyjjl) {
this.fhyjjl = JSON.parse(v.fhyjjl) || [];
}
- if (v.zdgxjl) {
+ if (v.zdgxjl) {//qc勾选记录
this.fieldCheckObj = JSON.parse(v.zdgxjl) || {};
}
}
@@ -376,12 +382,20 @@ export default {
templateData: this.templateData,
templateFillType: this.fillType,
getZdxgjl: () => this.zdxgjl,
+ getSubmittedCodes: () => this.submittedCodes,
getFhyjjl: () => this.fhyjjl,
getFieldCheckObj: () => this.fieldCheckObj,
//更新提交记录
updateZdxgjl: (data) => {
this.zdxgjl.unshift(data);
},
+ //更新已提交数据的codes
+ updateSubmittedCodes: (code) => {
+ if(!this.submittedCodes.includes(code)){
+ this.submittedCodes.unshift(code);
+ return
+ }
+ },
//更新复核意见记录
updateFhyjjl: (data) => {
this.fhyjjl.unshift(data);
@@ -406,6 +420,7 @@ export default {
currentEditSignUuid: null, // 当前请求EditSign的HandleFormItem的uuid
latestParams: {},//用于存储最新的params
hasCustomTable: false,//是否有自定义表格
+ submittedCodes: [],//用于记录已提交数据的codes
};
},
created() {
@@ -490,11 +505,14 @@ export default {
this.currentEditSignUuid = null;
}
},
+ // 检查是否有未填写的复核意见
+ isReply(){
+ return this.fhyjjl.every((item) => !!item.content && !!item.reply)
+ },
async getFormData() {
if (this.fillType === "actFill") {
//检查是否有未填写的复核意见
- const flag = this.fhyjjl.every((item) => !!item.content && !!item.reply)
- console.log(this.fhyjjl, flag, "flag")
+ const flag = this.isReply()
if (!flag) {
this.$message.error("疑问项还未回复,请回复后再提交");
return;
diff --git a/src/views/business/comps/template/comps/dl/DL006.vue b/src/views/business/comps/template/comps/dl/DL006.vue
index 724453c..81be375 100644
--- a/src/views/business/comps/template/comps/dl/DL006.vue
+++ b/src/views/business/comps/template/comps/dl/DL006.vue
@@ -1,4 +1,4 @@
-
+
diff --git a/src/views/business/comps/template/comps/dl/DL007.vue b/src/views/business/comps/template/comps/dl/DL007.vue
index 4b8e0a7..caba3f2 100644
--- a/src/views/business/comps/template/comps/dl/DL007.vue
+++ b/src/views/business/comps/template/comps/dl/DL007.vue
@@ -1,4 +1,4 @@
-
+
@@ -22,6 +22,7 @@
:ref="refConf.yqsy"
@onRegentSubmit="(e) => onRegentSubmit(e)"
:showOperation="fillType === 'actFill'"
+ fieldItemLabel = "template.dl.dl007.yqsyxx"
:showAddRow="fillType === 'actFill'"
:formData="formData"
:prefixKey="`yqsyTable`"
@@ -280,17 +281,7 @@ export default {
return await this.validFormFields(refNames)
},
getResource() {
- const yqsyData = this.$refs.yqsyTableRef?.getFilledFormData()
- const yqsyList = yqsyData?.stepTableFormData || []
-
- // 从仪器使用信息表格中提取仪器资源
- this.yqResourceTmp = yqsyList
- .filter((item) => item.yqbh)
- .map((item) => ({
- bh: item.yqbh,
- type: 'yq'
- }))
-
+ this.yqResourceTmp = []
this.resourceTmp = []
return this.resourceTmp
},
diff --git a/src/views/business/comps/template/comps/dl/DL008.vue b/src/views/business/comps/template/comps/dl/DL008.vue
index 4d658d1..0019082 100644
--- a/src/views/business/comps/template/comps/dl/DL008.vue
+++ b/src/views/business/comps/template/comps/dl/DL008.vue
@@ -439,17 +439,7 @@ export default {
return await this.validFormFields(refNames)
},
getResource() {
- const yqsyData = this.$refs.yqsyTableRef?.getFilledFormData()
- const yqsyList = yqsyData?.stepTableFormData || []
-
- // 从仪器使用信息表格中提取仪器资源
- this.yqResourceTmp = yqsyList
- .filter((item) => item.yqbh)
- .map((item) => ({
- bh: item.yqbh,
- type: 'yq'
- }))
-
+ this.yqResourceTmp = []
this.resourceTmp = []
return this.resourceTmp
},
diff --git a/src/views/business/comps/template/comps/dl/DL009.vue b/src/views/business/comps/template/comps/dl/DL009.vue
index 86bd1b9..1df900e 100644
--- a/src/views/business/comps/template/comps/dl/DL009.vue
+++ b/src/views/business/comps/template/comps/dl/DL009.vue
@@ -371,7 +371,7 @@ export default {
bodyFillType: 'actFill',
bodyDisabled: true,
disabled: true,
- width: 100
+ width: 200
}
]
@@ -550,17 +550,7 @@ export default {
return await this.validFormFields(refNames)
},
getResource() {
- const yqsyData = this.$refs.yqsyTableRef?.getFilledFormData()
- const yqsyList = yqsyData?.stepTableFormData || []
-
- // 从仪器使用信息表格中提取仪器资源
- this.yqResourceTmp = yqsyList
- .filter((item) => item.yqbh)
- .map((item) => ({
- bh: item.yqbh,
- type: 'yq'
- }))
-
+ this.yqResourceTmp = []
this.resourceTmp = []
return this.resourceTmp
},
@@ -664,7 +654,7 @@ export default {
bodyFillType: 'actFill',
bodyDisabled: true,
disabled: true,
- width: 100
+ width: 200
}
]
diff --git a/src/views/business/comps/template/comps/dl/DL010.vue b/src/views/business/comps/template/comps/dl/DL010.vue
index 23553da..6001839 100644
--- a/src/views/business/comps/template/comps/dl/DL010.vue
+++ b/src/views/business/comps/template/comps/dl/DL010.vue
@@ -29,7 +29,7 @@
-
+
{
- // 实际0.9%氯化钠注射液加入量
- if (item.sjlhnzsjyjrl) {
- sjxxResource.push({
- mc: '0.9%氯化钠注射液', // 名称
- bh: null, // 编号
- ph: null, // 批号
- nd: null, // 浓度
- nddw: null, // 浓度单位
- ndz: null, // 浓度值
- ly: null, // 来源
- sxrq: null, // 失效日期
- kc: null, // 库存
- kcdw: null, // 库存单位
- type: 1, // 类型:1表示使用的资源
- syl: item.sjlhnzsjyjrl, // 使用量
- syldw: headerSelectFields.sjlhnUnit || '', // 使用量单位
- yxzq: null, // 有效期
- yxzqdw: null // 有效期单位
- })
- }
-
- // 实际加入血清
- if (item.sjjrxq) {
- sjxxResource.push({
- mc: '血清', // 名称
- bh: null, // 编号
- ph: null, // 批号
- nd: null, // 浓度
- nddw: null, // 浓度单位
- ndz: null, // 浓度值
- ly: null, // 来源
- sxrq: null, // 失效日期
- kc: null, // 库存
- kcdw: null, // 库存单位
- type: 1, // 类型:1表示使用的资源
- syl: item.sjjrxq, // 使用量
- syldw: headerSelectFields.sjjrxqUnit || '', // 使用量单位
- yxzq: null, // 有效期
- yxzqdw: null // 有效期单位
- })
- }
- })
-
- // 将采集信息数据添加到资源列表中
- return [...this.resourceTmp, ...sjxxResource]
+ const stepResource = this.$refs.sjxxStepRef.getStepResource()
+ this.resourceTmp = stepResource.sjResource || []
+ this.yqResourceTmp = stepResource.yqResource || []
+ return this.resourceTmp;
},
onRegentSubmit(e) {
// 预留方法,如果需要处理试剂提交事件可以在这里添加
diff --git a/src/views/business/comps/template/comps/dl/DL011.vue b/src/views/business/comps/template/comps/dl/DL011.vue
index 3e116c6..352e970 100644
--- a/src/views/business/comps/template/comps/dl/DL011.vue
+++ b/src/views/business/comps/template/comps/dl/DL011.vue
@@ -40,6 +40,7 @@
label=""
:ref="refConf.xbxx"
:formConfig="xbxxConfig"
+ @onRegentSubmit="(data) => onTableRegentSubmit(data)"
:formData="formData"
/>
@@ -56,6 +57,7 @@
:ref="refConf.pyxx"
:formConfig="pyxxConfig"
:formData="formData"
+ @onRegentSubmit="(data) => onTableRegentSubmit(data)"
@clickButton="handlePyxxClickButton"
/>
@@ -82,6 +84,8 @@ import TableList from '@/components/Template/Table'
import Step from '@/components/Template/Step'
import templateMixin from '../../mixins/templateMixin'
import moment from 'moment'
+import { uniqeYqOne, uniqeResource } from '@/utils/calUnitTools'
+import { EventBus } from '@/utils/eventBus'
const refConf = {
base: 'baseInfoRef',
@@ -192,16 +196,23 @@ export default {
type: 'span',
label: ''
},
- pykssj: {
- label: 'template.dl.dl011.pykssj',
- type: 'input',
- fillType: 'actFill',
- subType: 'button',
- subKey: 'pykssjButton',
- subDisabled: this.fillType !== 'actFill',
- disabled: true,
- buttonName: 'template.dl.dl011.pykssjButton'
- }
+ pykssj:
+ this.fillType === 'actFill'
+ ? {
+ label: 'template.dl.dl011.pykssj',
+ type: 'input',
+ fillType: 'actFill',
+ subType: 'button',
+ subKey: 'pykssjButton',
+ disabled: true,
+ buttonName: 'template.dl.dl011.pykssjButton'
+ }
+ : {
+ label: 'template.dl.dl011.pykssj',
+ type: 'input',
+ fillType: 'actFill',
+ disabled: true
+ }
}
}
]
@@ -238,9 +249,9 @@ export default {
subType: 'select',
subKey: 'fshxbyjtjUnit',
fillType: 'preFill',
- subOptions: this.getDictOptions('business_nddw'),
+ subOptions: this.getDictOptions('business_tjdw'),
maxlength: 10,
- selectTo: 'fshxbsjtjUnit' //下拉选择后,赋值到对应字段
+ // selectTo: 'fshxbsjtjUnit'
},
fshxbsjtj: {
label: 'template.dl.dl011.fshxbsjtj',
@@ -297,6 +308,27 @@ export default {
}
},
methods: {
+ onTableRegentSubmit(data) {
+ if (data.key === 'xbdcbh') {
+ this.$refs.xbxxRef.updateFormData('xbdcbh_tj', data.selectInfo.row.tj)
+ this.$refs.xbxxRef.updateFormData('xbdcbh_dw', data.selectInfo.row.tjdw)
+ }
+ if (data.key === 'pyxbh') {
+ this.$refs.pyxxRef.updateFormData('pyxbh_mc', data.selectInfo.row.mc)
+ this.$refs.pyxxRef.updateFormData('pyxbh_xh', data.selectInfo.row.xh)
+ this.$refs.pyxxRef.updateFormData(
+ 'pyxbh_jzrq',
+ data.selectInfo.row.jzrq
+ )
+ }
+ //通知后端保存数据
+ const params = {
+ type: 'fieldChanged',
+ newRecord: null,
+ resourceList: null
+ }
+ EventBus.$emit('onModifyRecord', params)
+ },
// 处理培养信息中按钮点击事件
handlePyxxClickButton(_item, signData) {
this.$refs.pyxxRef.updateFormData(
@@ -322,48 +354,61 @@ export default {
return await this.validFormFields(refNames)
},
getResource() {
+ const content = this.getFilledFormData()
+ let tmpResource = []
+ let tmpYq = []
+ //生成细胞
+ tmpResource.push({
+ mc: content.xbmc,
+ bh: content.fshxbbh + content.fshxbbhCodeSn,
+ ph: '',
+ ndz: '',
+ nd: '',
+ nddw: '',
+ ly: 'ELN配制',
+ sxrq: null,
+ kc: content.fshxbsjtj,
+ kcdw: content.fshxbsjtjUnit,
+ syl: null,
+ type: null, //生成的时候传null
+ elnType: this.product, //生成的时候传 his.product
+ syldw: content.fshxbsjtjUnit,
+ yxzq: null,
+ yxzqdw: null
+ })
+ //使用细胞
+ tmpResource.push({
+ mc: null,
+ bh: content.xbdcbh,
+ ph: '',
+ ndz: '',
+ nd: '',
+ nddw: '',
+ ly: '',
+ sxrq: null,
+ kc: null,
+ kcdw: null,
+ syl: null,
+ type: 9, //使用的时候传对应的值
+ elnType: null, //传null
+ syldw: content.xbdcbh_dw,
+ yxzq: null,
+ yxzqdw: null
+ })
+ //使用仪器
+ tmpYq.push({
+ mc: content.pyxbh_mc,
+ xh: content.pyxbh_xh,
+ bh: content.pyxbh,
+ jzrq: content.pyxbh_jzrq
+ })
+ //使用的试剂、仪器
const stepResource = this.$refs.stepRef.getStepResource()
- // 使用的试剂、仪器(来自复苏步骤)
- this.resourceTmp = stepResource.sjResource || []
- this.yqResourceTmp = [...(stepResource.yqResource || [])]
-
- // 获取细胞信息
- const xbxxData = this.$refs.xbxxRef?.getFilledFormData() || {}
-
- // 如果选择了细胞冻存编号,添加到细胞细菌信息中
- if (xbxxData.xbdcbh) {
- const xbInfo = xbxxData.selectInfo_xbdcbh || {}
- // 细胞信息格式:不包含 type 字段(参考 StepFormPackage 中 xb 类型的处理)
- this.xbxjTmp = [
- {
- value: xbxxData.xbdcbh,
- bh: xbInfo.bh || xbxxData.xbdcbh,
- mc: xbInfo.mc || '',
- xh: xbInfo.xh || '',
- jzrq: xbInfo.jzrq || ''
- }
- ]
- } else {
- this.xbxjTmp = []
- }
-
- // 获取培养信息
- const pyxxData = this.$refs.pyxxRef?.getFilledFormData() || {}
-
- // 如果选择了培养箱编号,添加到仪器信息中
- if (pyxxData.pyxbh) {
- const pyxInfo = pyxxData.selectInfo_pyxbh || {}
- // 仪器信息格式:包含 type 字段(参考 StepFormPackage 中 yq 类型的处理)
- this.yqResourceTmp.push({
- type: 'yq',
- value: pyxxData.pyxbh,
- bh: pyxInfo.bh || pyxxData.pyxbh,
- mc: pyxInfo.mc || '',
- xh: pyxInfo.xh || '',
- jzrq: pyxInfo.jzrq || ''
- })
- }
-
+ this.resourceTmp = uniqeResource(
+ tmpResource,
+ stepResource.sjResource || []
+ )
+ this.yqResourceTmp = uniqeYqOne(tmpYq, stepResource.yqResource || [])
return this.resourceTmp
},
onRegentSubmit(e) {
@@ -391,6 +436,7 @@ export default {
.print-btn {
margin-bottom: 20px;
}
+
.config-header-end {
display: flex;
justify-content: flex-end;
diff --git a/src/views/business/comps/template/comps/dl/DL012.vue b/src/views/business/comps/template/comps/dl/DL012.vue
index 373c7fa..1dc84ff 100644
--- a/src/views/business/comps/template/comps/dl/DL012.vue
+++ b/src/views/business/comps/template/comps/dl/DL012.vue
@@ -8,35 +8,17 @@
-
+
-
-
+
+
-
+ onTableRegentSubmit(data)" :formData="formData" />
@@ -45,23 +27,13 @@
-
+ onTableRegentSubmit(data)"
+ :formData="formData" />
-
+
@@ -77,6 +49,8 @@ import TableList from '@/components/Template/Table'
import Step from '@/components/Template/Step'
import templateMixin from '../../mixins/templateMixin'
import moment from 'moment'
+import { uniqeYqOne, uniqeResource } from "@/utils/calUnitTools";
+import { EventBus } from "@/utils/eventBus";
const refConf = {
base: 'baseInfoRef',
@@ -257,7 +231,7 @@ export default {
fillType: 'preFill',
subOptions: this.getDictOptions('business_nddw'),
maxlength: 10,
- selectTo: 'zbhxbsjtjUnit'
+ // selectTo: 'zbhxbsjtjUnit'
},
zbhxbsjtj: {
label: 'template.dl.dl012.zbhxbsjtj',
@@ -339,6 +313,24 @@ export default {
}
},
methods: {
+ onTableRegentSubmit(data) {
+ if (data.key === 'xbzbqbh') {
+ this.$refs.xbxxRef.updateFormData('xbzbqbh_tj', data.selectInfo.row.tj)
+ this.$refs.xbxxRef.updateFormData('xbzbqbh_dw', data.selectInfo.row.tjdw)
+ }
+ if (data.key === 'pyxbh') {
+ this.$refs.pyxxRef.updateFormData('pyxbh_mc', data.selectInfo.row.mc)
+ this.$refs.pyxxRef.updateFormData('pyxbh_xh', data.selectInfo.row.xh)
+ this.$refs.pyxxRef.updateFormData('pyxbh_jzrq', data.selectInfo.row.jzrq)
+ }
+ //通知后端保存数据
+ const params = {
+ type: "fieldChanged",
+ newRecord: null,
+ resourceList: null,
+ }
+ EventBus.$emit('onModifyRecord', params);
+ },
handleClickButton(e, signData) {
console.log(e)
const { subKey } = e || {}
@@ -367,49 +359,61 @@ export default {
return await this.validFormFields(refNames)
},
getResource() {
- const stepResource = this.$refs.stepRef.getStepResource()
- // 使用的试剂、仪器(来自制备步骤)
- this.resourceTmp = stepResource.sjResource || []
- this.yqResourceTmp = [...(stepResource.yqResource || [])]
-
- // 获取细胞信息
- const xbxxData = this.$refs.xbxxRef?.getFilledFormData() || {}
-
- // 如果选择了细胞制备前编号,添加到细胞细菌信息中
- if (xbxxData.xbzbqbh) {
- const xbInfo = xbxxData.selectInfo_xbzbqbh || {}
- // 细胞信息格式:不包含 type 字段
- this.xbxjTmp = [
- {
- value: xbxxData.xbzbqbh,
- bh: xbInfo.bh || xbxxData.xbzbqbh,
- mc: xbInfo.mc || '',
- xh: xbInfo.xh || '',
- jzrq: xbInfo.jzrq || ''
- }
- ]
- } else {
- this.xbxjTmp = []
- }
-
- // 获取培养信息
- const pyxxData = this.$refs.pyxxRef?.getFilledFormData() || {}
-
- // 如果选择了培养箱编号,添加到仪器信息中
- if (pyxxData.pyxbh) {
- const pyxInfo = pyxxData.selectInfo_pyxbh || {}
- // 仪器信息格式:包含 type 字段
- this.yqResourceTmp.push({
- type: 'yq',
- value: pyxxData.pyxbh,
- bh: pyxInfo.bh || pyxxData.pyxbh,
- mc: pyxInfo.mc || '',
- xh: pyxInfo.xh || '',
- jzrq: pyxInfo.jzrq || ''
+ const content = this.getFilledFormData()
+ let tmpResource = []
+ let tmpYq = []
+ //生成细胞
+ for (var i = 0; i < parseInt(content.zbxbs); i++) {
+ tmpResource.push({
+ mc: content.xbmc,
+ bh: content['zbhxbbh_' + (i + 1)] + content['zbhxbbhCodeSn_' + (i + 1)],
+ ph: '',
+ ndz: '',
+ nd: '',
+ nddw: '',
+ ly: 'ELN配制',
+ sxrq: null,
+ kc: content.zbhxbsjtj,
+ kcdw: content.zbhxbsjtjUnit,
+ syl: null,
+ type: null, //生成的时候传null
+ elnType: this.product, //生成的时候传 his.product
+ syldw: content.zbhxbsjtjUnit,
+ yxzq: null,
+ yxzqdw: null,
})
}
-
- return this.resourceTmp
+ //使用细胞
+ tmpResource.push({
+ mc: null,
+ bh: content.xbzbqbh,
+ ph: '',
+ ndz: '',
+ nd: '',
+ nddw: '',
+ ly: '',
+ sxrq: null,
+ kc: null,
+ kcdw: null,
+ syl: null,
+ type: 9, //使用的时候传对应的值
+ elnType: null, //传null
+ syldw: content.xbzbqbh_dw,
+ yxzq: null,
+ yxzqdw: null,
+ })
+ //使用仪器
+ tmpYq.push({
+ mc: content.pyxbh_mc,
+ xh: content.pyxbh_xh,
+ bh: content.pyxbh,
+ jzrq: content.pyxbh_jzrq,
+ })
+ //使用的试剂、仪器
+ const stepResource = this.$refs.stepRef.getStepResource()
+ this.resourceTmp = uniqeResource(tmpResource, stepResource.sjResource || [])
+ this.yqResourceTmp = uniqeYqOne(tmpYq, stepResource.yqResource || [])
+ return this.resourceTmp;
},
onRegentSubmit(e) {
// 预留方法,如果需要处理试剂提交事件可以在这里添加
@@ -430,6 +434,7 @@ export default {
.print-btn {
margin-bottom: 20px;
}
+
.config-header-end {
display: flex;
justify-content: flex-end;
diff --git a/src/views/business/comps/template/comps/dl/DL013.vue b/src/views/business/comps/template/comps/dl/DL013.vue
index 6112df9..503c098 100644
--- a/src/views/business/comps/template/comps/dl/DL013.vue
+++ b/src/views/business/comps/template/comps/dl/DL013.vue
@@ -614,22 +614,7 @@ export default {
return await this.validFormFields(refsToValidate)
},
getResource() {
- // 从仪器使用信息表格中获取仪器资源
- const yqsyData = this.$refs.yqsyTableRef?.getFilledFormData()
- const yqsyList = yqsyData?.stepTableFormData || []
-
- // 从仪器使用信息表格中提取仪器资源
- this.yqResourceTmp = yqsyList
- .filter((item) => item.yqbh)
- .map((item) => ({
- type: 'yq',
- value: item.yqbh,
- bh: item.yqbh,
- mc: item.yqmc,
- xh: item.yqxh,
- jzrq: item.xccsjzjdrq
- }))
-
+ this.yqResourceTmp = []
this.resourceTmp = []
return this.resourceTmp
},
diff --git a/src/views/business/comps/template/comps/dl/DL014.vue b/src/views/business/comps/template/comps/dl/DL014.vue
index 4956fb3..823c441 100644
--- a/src/views/business/comps/template/comps/dl/DL014.vue
+++ b/src/views/business/comps/template/comps/dl/DL014.vue
@@ -8,76 +8,36 @@
-
-
-
-
+
+
+
+
-
onRegentSubmit(e)"
- :showOperation="fillType === 'actFill'"
- :showAddRow="fillType === 'actFill'"
- :formData="formData"
- :prefixKey="`yqsyTable`"
- >
+ onRegentSubmit(e)"
+ :showOperation="fillType === 'actFill'" :showAddRow="fillType === 'actFill'" :formData="formData"
+ :prefixKey="`yqsyTable`">
- deleteTableRow(rowIndex, 'yqsyTableRef')"
- >
+ deleteTableRow(rowIndex, 'yqsyTableRef')">
-
+
-
+
@@ -139,6 +77,8 @@ import LineLabel from '@/components/Template/LineLabel'
import TableList from '@/components/Template/Table'
import Step from '@/components/Template/Step'
import templateMixin from '../../mixins/templateMixin'
+import { uniqeResourceOne } from "@/utils/calUnitTools";
+import { EventBus } from "@/utils/eventBus";
const refConf = {
base: 'baseInfoRef',
@@ -464,7 +404,7 @@ export default {
bodyMaxlength: 10,
headerSelectKey: 'yss9hhyjrlUnit',
headerOptions: this.getDictOptions('business_tjdw'),
- width: 180,
+ width: 220,
fillType: 'preFill'
},
{
@@ -473,11 +413,11 @@ export default {
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10,
- headerSelectKey: 'yss9hhyjrlUnit',
+ headerSelectKey: 'sjs9hhyjrlUnit',
headerOptions: this.getDictOptions('business_tjdw'),
copyFrom: 'yss9hhyjrl',
compareTo: 'yss9hhyjrl',
- width: 180,
+ width: 220,
fillType: 'preFill'
}
)
@@ -513,7 +453,7 @@ export default {
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10,
- headerSelectKey: 'ysgspjrlUnit',
+ headerSelectKey: 'sjgspjrlUnit',
headerOptions: this.getDictOptions('business_tjdw'),
copyFrom: 'ysgspjrl',
width: 180,
@@ -565,6 +505,27 @@ export default {
}
},
methods: {
+ onTableRegentSubmit(data) {
+ if (data.key === 's9hhybh') {
+ this.$refs.jlzInfoRef.updateFormData('s9hhybh_dw', data.selectInfo.row.kcdw)
+ }
+ if (data.key === 'pyysj') {
+ this.$refs.pyyRef.updateFormData('pyysj_dw', data.selectInfo.row.kcdw)
+ }
+ // if (data.key === 'gspbh') {
+ // this.$refs.pyyRef.updateFormData(data.rowIndex+'_gspbh_dw', data.selectInfo.row.kcdw)
+ // }
+ if (data.key === 'xybh') {
+ this.$refs.pyyRef.updateFormData(data.rowIndex+'_xybh_dw', data.selectInfo.row.kcdw)
+ }
+ //通知后端保存数据
+ const params = {
+ type: "fieldChanged",
+ newRecord: null,
+ resourceList: null,
+ }
+ EventBus.$emit('onModifyRecord', params);
+ },
// 删除表格行
deleteTableRow(rowIndex, refName) {
this.$refs[refName].deleteRow(rowIndex)
@@ -682,104 +643,104 @@ export default {
return true
},
getResource() {
- // 从仪器使用信息表格中提取仪器资源
- const yqsyData = this.$refs.yqsyTableRef?.getFilledFormData()
- const yqsyList = yqsyData?.stepTableFormData || []
-
- // 提取仪器资源
- this.yqResourceTmp = yqsyList
- .filter((item) => item.yqbh)
- .map((item) => ({
- type: 'yq',
- bh: item.yqbh,
- mc: item.yqmc,
- xh: item.yqxh,
- jzrq: item.jzrq
- }))
-
- // 从剂量组配制信息中提取S9混合液编号(如果有)
- const jlzInfoData = this.$refs.jlzInfoRef?.getFilledFormData()
- const resourceList = []
-
- // 如果添加了S9混合液,提取S9混合液编号
- if (this.isSftjs9Yes && jlzInfoData?.s9hhybh) {
- resourceList.push({
- mc: 'S9混合液',
- bh: jlzInfoData.s9hhybh,
- ph: null,
- nd: null,
- nddw: null,
- ndz: null,
- ly: null,
+ const content = this.getFilledFormData()
+ let tmpResource = []
+ let tmpYq = []
+ let sjs9hhyjrltotal=0
+ for (var i = 0; i < content.jlzTableData.length; i++) {
+ let item = content.jlzTableData[i]
+ sjs9hhyjrltotal=sjs9hhyjrltotal+parseFloat(item.sjs9hhyjrl)
+ //混悬液
+ tmpResource.push({
+ mc: null,
+ bh: item.xybh,
+ ph: '',
+ ndz: '',
+ nd: '',
+ nddw: '',
+ ly: '',
sxrq: null,
kc: null,
kcdw: null,
- type: 1,
syl: null,
- syldw: null,
+ type: 1, //生成的时候传null
+ elnType: null, //生成的时候传 his.product
+ syldw: content[i+'_xybh_dw'],
yxzq: null,
- yxzqdw: null
+ yxzqdw: null,
+ })
+ //给药制剂
+ tmpResource.push({
+ mc: null,
+ bh: item.gyzjbh,
+ ph: '',
+ ndz: '',
+ nd: '',
+ nddw: '',
+ ly: '',
+ sxrq: null,
+ kc: null,
+ kcdw: null,
+ syl: item.sjgspjrl,
+ type: 3, //生成的时候传null
+ elnType: null, //生成的时候传 his.product
+ syldw: content.jlzHeaderSelectFields.sjgspjrlUnit,
+ yxzq: null,
+ yxzqdw: null,
})
}
-
- // 从剂量组表格中提取试剂资源(细胞悬液编号、供试品编号)
- const jlzData = this.$refs.jlzTableRef?.getFilledFormData()
- const jlzList = jlzData?.stepTableFormData || []
- const jlzHeaderSelectFields = jlzData?.headerSelectFields || {}
-
- // 用于去重的Set
- const xybhSet = new Set()
- const gspbhSet = new Set()
-
- jlzList.forEach((item) => {
- // 提取细胞悬液编号
- if (item.xybh && !xybhSet.has(item.xybh)) {
- xybhSet.add(item.xybh)
- resourceList.push({
- mc: '细胞悬液',
- bh: item.xybh,
- ph: null,
- nd: null,
- nddw: null,
- ndz: null,
- ly: null,
- sxrq: null,
- kc: null,
- kcdw: null,
- type: 1,
- syl: item.sjplyjrl || null,
- syldw: jlzHeaderSelectFields.ysplyjrlUnit || null,
- yxzq: null,
- yxzqdw: null
- })
- }
-
- // 提取供试品编号
- if (item.gspbh && !gspbhSet.has(item.gspbh)) {
- gspbhSet.add(item.gspbh)
- resourceList.push({
- mc: '供试品',
- bh: item.gspbh,
- ph: null,
- nd: null,
- nddw: null,
- ndz: null,
- ly: null,
- sxrq: null,
- kc: null,
- kcdw: null,
- type: 1,
- syl: item.sjgspjrl || null,
- syldw: jlzHeaderSelectFields.ysgspjrlUnit || null,
- yxzq: null,
- yxzqdw: null
- })
- }
+ //S9混合液
+ tmpResource.push({
+ mc: null,
+ bh: content.s9hhybh,
+ ph: '',
+ ndz: '',
+ nd: '',
+ nddw: '',
+ ly: '',
+ sxrq: null,
+ kc: null,
+ kcdw: null,
+ syl: sjs9hhyjrltotal,
+ type: 1, //使用的时候传对应的值
+ elnType: null, //传null
+ syldw: content.jlzHeaderSelectFields.sjs9hhyjrlUnit,
+ yxzq: null,
+ yxzqdw: null,
})
-
- this.resourceTmp = resourceList
-
- return this.resourceTmp
+ //培养液
+ tmpResource.push({
+ mc: null,
+ bh: content.pyysj,
+ ph: '',
+ ndz: '',
+ nd: '',
+ nddw: '',
+ ly: '',
+ sxrq: null,
+ kc: null,
+ kcdw: null,
+ syl: null,
+ type: 1, //使用的时候传对应的值
+ elnType: null, //传null
+ syldw: content.pyysj_dw,
+ yxzq: null,
+ yxzqdw: null,
+ })
+ //使用仪器
+ for (var i = 0; i < content.stepTableFormData.length; i++) {
+ let item = content.stepTableFormData[i]
+ tmpYq.push({
+ mc: item.yqmc,
+ xh: item.yqxh,
+ bh: item.yqbh,
+ jzrq: item.jzrq,
+ })
+ }
+ this.yqResourceTmp = tmpYq
+ this.resourceTmp = uniqeResourceOne(tmpResource)
+ debugger
+ return this.resourceTmp;
},
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
diff --git a/src/views/business/comps/template/comps/dl/DL015.vue b/src/views/business/comps/template/comps/dl/DL015.vue
index 787c7ae..72d5502 100644
--- a/src/views/business/comps/template/comps/dl/DL015.vue
+++ b/src/views/business/comps/template/comps/dl/DL015.vue
@@ -261,10 +261,7 @@ export default {
bodyType: 'select',
width: 180,
bodyFillType: 'actFill',
- bodyOptions: [
- { label: '大量贴壁细胞变圆', value: '大量贴壁细胞变圆' },
- { label: '无', value: '无' }
- ]
+ bodyOptions: this.getDictOptions('business_dl_sjqqtqk')
},
{
label: 'template.dl.dl015.qqpyy',
@@ -288,7 +285,10 @@ export default {
prop: 'pyybrl',
bodyType: 'inputNumber',
bodyFillType: 'actFill',
- bodyMaxlength: 10
+ bodyMaxlength: 10,
+ headerSelectKey: 'pyybrlUnit',
+ headerOptions: this.getDictOptions('business_tjdw'),
+ fillType: 'preFill'
}
]
}
@@ -327,43 +327,8 @@ export default {
},
getResource() {
const stepResource = this.$refs.stepRef.getStepResource()
- const hyqkData = this.$refs.hyqkTableRef?.getFilledFormData()
- const hyqkList = hyqkData?.stepTableFormData || []
-
- // 从操作步骤中提取试剂和仪器资源
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
-
- // 从换液情况表格中提取悬液编号作为试剂资源
- // 用于去重的Set
- const xybhSet = new Set()
- const sjResourceFromHyqk = []
-
- hyqkList.forEach((item) => {
- if (item.xybh && !xybhSet.has(item.xybh)) {
- xybhSet.add(item.xybh)
- sjResourceFromHyqk.push({
- mc: '细胞悬液',
- bh: item.xybh,
- ph: null,
- nd: null,
- nddw: null,
- ndz: null,
- ly: null,
- sxrq: null,
- kc: null,
- kcdw: null,
- type: 1,
- syl: item.pyybrl || null,
- syldw: item.pyybrl ? 'mL' : null,
- yxzq: null,
- yxzqdw: null
- })
- }
- })
-
- this.resourceTmp = [...this.resourceTmp, ...sjResourceFromHyqk]
-
return this.resourceTmp
},
onRegentSubmit(e) {
diff --git a/src/views/business/comps/template/comps/dl/DL016.vue b/src/views/business/comps/template/comps/dl/DL016.vue
index ddfbebd..c2a5ccb 100644
--- a/src/views/business/comps/template/comps/dl/DL016.vue
+++ b/src/views/business/comps/template/comps/dl/DL016.vue
@@ -45,13 +45,12 @@ import templateMixin from "../../mixins/templateMixin";
import CustomTable from '@/components/Template/CustomTable.vue';
import { EventBus } from "@/utils/eventBus";
import { uniqeResource } from "@/utils/calUnitTools";
-import { debounce } from 'lodash-es'
import TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue"
export default {
name: "DL016",
dicts: [
- 'business_dl_qsxjbltj','business_tjdw'
+ 'business_dl_qsxjbltj','business_tjdw','business_nddw'
],
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete },
mixins: [templateMixin],
@@ -179,13 +178,25 @@ export default {
bodyDisabled: true,
},
{
- label: "template.dl.dl016.qsxjjrl",
- prop: "qsxjjrl",
- width: 180,
- bodyType: "input",
- bodyFillType: "actFill",
- bodyMaxlength: 10,
- // bodyDisabled: true,
+ // label: "template.dl.dl016.qsxjjrl",
+ // prop: "qsxjjrl",
+ // width: 180,
+ // bodyFillType: "actFill",
+ // bodyMaxlength: 10,
+ // headerSelectKey: 'qsxjjrldw',
+ // fillType: "actFill",
+ // headerOptions: this.getDictOptions('business_nddw'),
+ // bodyType: 'inputNumber',
+ label: "template.dl.dl016.qsxjjrl",
+ prop: 'qsxjjrl',
+ width: 280,
+ headerSelectKey: 'qsxjjrldw',
+ fillType: "preFill",
+ headerOptions: this.getDictOptions('business_tjdw'),
+ bodyType: 'inputNumber',
+ bodyFillType: 'actFill',
+ copyFrom: 'ysqyl',
+ compareTo: 'ysqyl',
}
]
},
@@ -195,9 +206,6 @@ export default {
formData: {},
};
},
- mounted() {
- console.log('mounted=============',this.formData);
- },
methods: {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
@@ -261,33 +269,18 @@ export default {
//获取填写完成的表单数据
async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef", "qcxjjyqkTableRef", "stepRef","remarkRef"]);
- console.log('获取填写完成的表单数据==============',content);
return content;
},
getResource() {
//使用的试剂、仪器
const stepResource = this.$refs.stepRef.getStepResource()
- const tableList = this.$refs.qcxjjyqkTableRef?.getFilledFormData()?.stepTableFormData || []
- // const tableList = hyqkData?.stepTableFormData || []
- // 从操作步骤中提取试剂和仪器资源
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
-
- const tableFromHyqk = tableList
- .filter(item => item.xybh)
- .map(item => ({
- bh: item.xybh,
- type: 'cell'
- }))
-
- this.resourceTmp = [...this.resourceTmp, ...tableFromHyqk]
- console.log('回显填写完成的表单数据==============',this.resourceTmp);
return this.resourceTmp;
},
//保存
async onSave() {
let content = await this.$refs.stepRef.getFormData();
- console.log(content);
},
// 删除表格行
// deleteRow(rowIndex) {
diff --git a/src/views/business/comps/template/comps/dl/DL017.vue b/src/views/business/comps/template/comps/dl/DL017.vue
index b517588..a5a0a5c 100644
--- a/src/views/business/comps/template/comps/dl/DL017.vue
+++ b/src/views/business/comps/template/comps/dl/DL017.vue
@@ -369,20 +369,8 @@ export default {
getResource() {
//使用的试剂、仪器
const stepResource = this.$refs.stepRef.getStepResource()
- const hyqkData = this.$refs.stepTableRef?.getFilledFormData()
- const tableList = hyqkData?.stepTableFormData || []
- // 从操作步骤中提取试剂和仪器资源
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
-
- const sjResourceFromHyqk = tableList
- .filter(item => item.xybh)
- .map(item => ({
- bh: item.xybh,
- type: 'cell'
- }))
-
- this.resourceTmp = [...this.resourceTmp, ...sjResourceFromHyqk]
return this.resourceTmp;
},
//保存
diff --git a/src/views/business/comps/template/comps/dl/DL018.vue b/src/views/business/comps/template/comps/dl/DL018.vue
index 770704c..a7f91d3 100644
--- a/src/views/business/comps/template/comps/dl/DL018.vue
+++ b/src/views/business/comps/template/comps/dl/DL018.vue
@@ -331,22 +331,9 @@ export default {
return content;
},
getResource() {
- //使用的试剂、仪器
const stepResource = this.$refs.stepRef.getStepResource()
- const tableList = this.$refs.qcxjjyqkTableRef?.getFilledFormData()?.stepTableFormData || []
-
- // 从操作步骤中提取试剂和仪器资源
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
-
- const tableFromHyqk = tableList
- .filter(item => item.xybh)
- .map(item => ({
- bh: item.xybh,
- type: 'cell'
- }))
-
- this.resourceTmp = [...this.resourceTmp, ...tableFromHyqk]
return this.resourceTmp;
},
//保存
diff --git a/src/views/business/comps/template/comps/dl/DL019.vue b/src/views/business/comps/template/comps/dl/DL019.vue
index b14cc43..56ad972 100644
--- a/src/views/business/comps/template/comps/dl/DL019.vue
+++ b/src/views/business/comps/template/comps/dl/DL019.vue
@@ -297,21 +297,8 @@ export default {
getResource() {
//使用的试剂、仪器
const stepResource = this.$refs.stepRef.getStepResource()
- const tableList = this.$refs.qcxjjyqkTableRef?.getFilledFormData()?.stepTableFormData || []
- // const tableList = hyqkData?.stepTableFormData || []
- // 从操作步骤中提取试剂和仪器资源
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
-
- const tableFromHyqk = tableList
- .filter(item => item.xybh)
- .map(item => ({
- bh: item.xybh,
- type: 'cell'
- }))
-
- this.resourceTmp = [...this.resourceTmp, ...tableFromHyqk]
- console.log('回显填写完成的表单数据==============',this.resourceTmp);
return this.resourceTmp;
},
//保存
diff --git a/src/views/business/comps/template/comps/dl/DL021.vue b/src/views/business/comps/template/comps/dl/DL021.vue
index 005054e..b51f7f0 100644
--- a/src/views/business/comps/template/comps/dl/DL021.vue
+++ b/src/views/business/comps/template/comps/dl/DL021.vue
@@ -187,6 +187,25 @@ export default {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('选择显微镜预留===',row)
+
+ if (key == 'xwj') {
+ this.$refs.swypyjInfoRef.updateFormData('wxjmc', row.mc)
+ this.$refs.swypyjInfoRef.updateFormData('wxjxh', row.xh)
+ this.$refs.swypyjInfoRef.updateFormData('wxjjzrq', row.jzrq)
+ }
+
+ //通知后端保存数据
+ const params = {
+ type: "fieldChanged",
+ newRecord: null,
+ resourceList: null,
+ }
+ EventBus.$emit('onModifyRecord', params);
+
+
+
+
+
// if (key === 'yqbh' && this.$refs.yqsyTableRef) {
// const params = {
// yqmc: row.mc,
@@ -273,10 +292,17 @@ export default {
return content;
},
getResource() {
- //使用的试剂、仪器
- // stepRef不存在,直接返回空数组
+ let content = this.getFilledFormData();
+ let tmpYq = []
+ tmpYq.push({
+ mc: content.wxjmc,
+ xh: content.wxjxh,
+ bh: content.xwj,
+ jzrq: content.wxjjzrq,
+ })
+
this.resourceTmp = []
- this.yqResourceTmp = []
+ this.yqResourceTmp = tmpYq
return this.resourceTmp;
},
//保存
diff --git a/src/views/business/comps/template/comps/dl/DL022.vue b/src/views/business/comps/template/comps/dl/DL022.vue
index 9343d8c..13e9306 100644
--- a/src/views/business/comps/template/comps/dl/DL022.vue
+++ b/src/views/business/comps/template/comps/dl/DL022.vue
@@ -1,4 +1,4 @@
-
+
@@ -10,23 +10,24 @@
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
-
+
@@ -47,9 +49,6 @@ import moment from 'moment'
export default {
name: "dl023",
- dicts: [
- 'business_dl_xbmc',"business_sydd"
- ],
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, TableOpertaionDelete },
mixins: [templateMixin],
props: {
@@ -101,11 +100,11 @@ export default {
//yqsyxxColumns仪器使用信息
yqsyxxColumns() {
return [{
- label: 'template.dl.dl023.yqbh',
- prop: 'yqbh',
- bodyType: 'yq',
- bodyFillType: 'actFill'
- }, {
+ label: 'template.dl.dl023.yqbh',
+ prop: 'yqbh',
+ bodyType: 'yq',
+ bodyFillType: 'actFill'
+ }, {
label: 'template.dl.dl023.yqmc',
prop: 'yqmc',
bodyType: 'input',
@@ -145,6 +144,7 @@ export default {
{ label: "细胞系", value: "细胞系" }
],
otherCode: 'dwzshxbxOther',
+ thirdOtherCode: 'dwzshxbxThirdOther',
showOtherLabel: false,
otherOptions: this.otherOptions
},
@@ -166,9 +166,10 @@ export default {
label: "template.dl.dl023.uvazsjl",
type: "input",
fillType: "actFill",
- subType: "sj",
+ subType: "select",
subKey: "subUvazsjl",
subFillType: "actFill",
+ subOptions: this.getDictOptions('business_dl_uav'),
maxlength: 20,
},
zszsj: {
@@ -187,6 +188,8 @@ export default {
subType: 'button',
subKey: 'zskssj',
buttonName: 'template.dl.dl023.ksButton',
+ disabled: true,
+ subDisabled: this.fillType !== 'actFill'
},
zsjssj: {
label: 'template.dl.dl023.zsjssj',
@@ -196,6 +199,8 @@ export default {
subType: 'button',
subKey: 'zsjssj',
buttonName: 'template.dl.dl023.jsButton',
+ disabled: true,
+ subDisabled: this.fillType !== 'actFill'
},
}
}
@@ -209,22 +214,24 @@ export default {
};
},
mounted() {
+ const {dwzshxbx} = this.formData;
+ this.setOtherOptions(dwzshxbx);
},
- methods: {
- //开始介绍按钮回调
- handleClickButton(item,signData) {
+ methods: {
+ setOtherOptions(value){
+ this.otherOptions = value === '动物种属' ? this.getDictOptions('business_dl_dwzs') : this.getDictOptions('business_dl_xbx')
+ },
+ //开始介绍按钮回调
+ handleClickButton(item, signData) {
const arrStr = item.subKey;
- const value = moment().format('YYYY/MM/DD HH:mm');
- this.$refs.swypyjInfoRef.updateFormData(arrStr, value,{isUpdateRecord:true,signData});
+ const value = moment().format('YYYY/MM/DD HH:mm');
+ this.$refs.swypyjInfoRef.updateFormData(arrStr, value, { isUpdateRecord: true, signData });
// console.log(this.getFilledFormData())
},
onSelect(e) {
const { key, value } = e
if (key === "dwzshxbx") {//动物种属或细胞系
- this.otherOptions = value === '动物种属' ? this.getDictOptions('business_dl_xbmc') : [
- { label: "细胞系1", value: "细胞系1" },
- { label: "细胞系2", value: "细胞系2" },
- ]
+ this.setOtherOptions(value);
}
},
@@ -233,12 +240,12 @@ export default {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
if (key === 'yqbh' && this.$refs.tableRef) {
- const params = {
- yqmc: row.mc,
- yqxh: row.xh,
- xcrq: row.jzrq,
- }
- this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, params)
+ const params = {
+ yqmc: row.mc,
+ yqxh: row.xh,
+ xcrq: row.jzrq,
+ }
+ this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
onFormSelect(fields) {
@@ -318,10 +325,22 @@ export default {
return content;
},
getResource() {
- //使用的试剂、仪器
- // stepRef不存在,直接返回空数组
+ let content = this.getFilledFormData();
+ let tmpYq = []
+ let table = content.stepTableFormData
+ if (table && table.length > 0) {
+ for (let i = 0; i < table.length; i++) {
+ let item = table[i]
+ tmpYq.push({
+ mc: item.yqmc,
+ xh: item.yqxh,
+ bh: item.yqbh,
+ jzrq: item.xcrq,
+ })
+ }
+ }
+ this.yqResourceTmp = tmpYq
this.resourceTmp = []
- this.yqResourceTmp = []
return this.resourceTmp;
},
//保存
diff --git a/src/views/business/comps/template/comps/dl/DL024.vue b/src/views/business/comps/template/comps/dl/DL024.vue
index 2cc98b0..71cdd1b 100644
--- a/src/views/business/comps/template/comps/dl/DL024.vue
+++ b/src/views/business/comps/template/comps/dl/DL024.vue
@@ -1,4 +1,4 @@
-
+
@@ -9,7 +9,7 @@
-
+
@@ -51,14 +51,11 @@ import TableList from "@/components/Template/Table";
import Step from "@/components/Template/Step";
import templateMixin from "../../mixins/templateMixin";
import CustomTable from '@/components/Template/CustomTable.vue';
-import { EventBus } from "@/utils/eventBus";
-import { uniqeResource } from "@/utils/calUnitTools";
-import { debounce } from 'lodash-es'
import TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue"
import moment from 'moment'
export default {
- name: "dl024",
+ name: "DL024",
dicts: [
'business_dl_xbmc','business_sydd'
],
@@ -211,7 +208,6 @@ export default {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
- console.log('选择仪器编号预留===',row)
try {
// 解析前序表单的内容
const bdnr = JSON.parse(row.bdnr)
@@ -224,13 +220,11 @@ export default {
this.$message.warning('前序表单中没有细胞编号数据')
return
}
- console.log('选择仪器编号预留=2==',stepTableFormData)
// 从剂量组数据中提取细胞编号
const itemData = stepTableFormData.map(item => ({
- xbbh: item.jzlybh || '', // 细胞编号
+ xbbh: item.targetSolutionCode+'-'+item.subTargetSolutionCode, // 细胞编号
}))
// 使用 $set 更新 formData,触发 CustomTable 的响应式更新
- console.log('选择仪器编号预留=3==',itemData)
this.$set(this.formData, 'stepTableFormData', itemData)
this.$message.success(`已从前序表单加载 ${itemData.length} 条细胞编号数据`)
@@ -239,14 +233,6 @@ export default {
console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败')
}
- // if (key === 'qxbd' && this.$refs.tableRef) {
- // const params = {
- // yqmc: row.xbbh,
- // yqxh: row.xh,
- // xccsjzjdrq: row.jzrq
- // }
- // this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, params)
- // }
},
onFormSelect(fields){
this.onHandleBlur(fields)
@@ -261,20 +247,13 @@ export default {
return content;
},
getResource() {
- const tableList = this.$refs.qcxjjyqkTableRef?.getFilledFormData()?.stepTableFormData || []
- // 从操作步骤中提取试剂和仪器资源
- this.resourceTmp = tableList
- .filter(item => item.xybh)
- .map(item => ({
- bh: item.xybh,
- type: 'cell'
- }))
+ this.resourceTmp = []
+ this.yqResourceTmp = []
return this.resourceTmp;
},
//保存
async onSave() {
// stepRef不存在,直接返回空对象
- console.log({});
},
// 删除表格行
deleteRow(rowIndex) {
diff --git a/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue b/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue
index b107012..b41874d 100644
--- a/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue
+++ b/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue
@@ -157,7 +157,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/gsp/GSP001.vue b/src/views/business/comps/template/comps/gsp/GSP001.vue
index 09b5d01..12b7dbb 100644
--- a/src/views/business/comps/template/comps/gsp/GSP001.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP001.vue
@@ -156,7 +156,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/gsp/GSP003.vue b/src/views/business/comps/template/comps/gsp/GSP003.vue
index b8f4e8e..5d526ae 100644
--- a/src/views/business/comps/template/comps/gsp/GSP003.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP003.vue
@@ -179,7 +179,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/gsp/GSP005.vue b/src/views/business/comps/template/comps/gsp/GSP005.vue
index 17c9d55..da5ed1c 100644
--- a/src/views/business/comps/template/comps/gsp/GSP005.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP005.vue
@@ -181,7 +181,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/gsp/GSP009.vue b/src/views/business/comps/template/comps/gsp/GSP009.vue
index 1e9573d..2600afd 100644
--- a/src/views/business/comps/template/comps/gsp/GSP009.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP009.vue
@@ -128,7 +128,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/gsp/GSP010.vue b/src/views/business/comps/template/comps/gsp/GSP010.vue
index 2b87e66..dc83c71 100644
--- a/src/views/business/comps/template/comps/gsp/GSP010.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP010.vue
@@ -135,7 +135,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/gsp/GSP015.vue b/src/views/business/comps/template/comps/gsp/GSP015.vue
index 8162e3b..20d64cb 100644
--- a/src/views/business/comps/template/comps/gsp/GSP015.vue
+++ b/src/views/business/comps/template/comps/gsp/GSP015.vue
@@ -34,9 +34,14 @@
:showAddRow="fillType === 'preFill'" @onAddRow="() => addTableRow(index)"
fieldItemLabel="取样进样信息" :formData="item">
- onConfigComplete(e,'qy')"
+ @printTag="(e)=>onPrintTag(e,index)"
+ :fillType="fillType"
+ :showFz="false"
+ :showKspz="false"
@deleteRow="() => deleteTableRow(rowIndex, index)">
-
+
- onConfigComplete(e,'jy')"
+ @printTag="(e)=>onPrintTag(e,index)"
+ :fillType="fillType"
+ :showFz="false"
+ :showKspz="false"
@deleteRow="() => deleteTableRow(rowIndex, index)">
-
+
@@ -72,9 +82,14 @@
:showOperation="fillType === 'preFill' || fillType === 'actFill'"
@onAddRow="() => addEcTableRow(index, 'ecTableRef')" :formData="item">
- onConfigComplete(e,'jy')"
+ @printTag="(e)=>onPrintTag(e,index)"
+ :fillType="fillType"
+ :showFz="false"
+ :showKspz="false"
@deleteRow="() => deleteTableRow(rowIndex, index)">
-
+
@@ -91,7 +106,7 @@
-
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/lba/LBA006.vue b/src/views/business/comps/template/comps/lba/LBA006.vue
index 3fea786..f83cd2c 100644
--- a/src/views/business/comps/template/comps/lba/LBA006.vue
+++ b/src/views/business/comps/template/comps/lba/LBA006.vue
@@ -125,7 +125,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
options: this.getDictOptions('business_pztj')
}
diff --git a/src/views/business/comps/template/comps/lba/LBA007.vue b/src/views/business/comps/template/comps/lba/LBA007.vue
deleted file mode 100644
index 509b198..0000000
--- a/src/views/business/comps/template/comps/lba/LBA007.vue
+++ /dev/null
@@ -1,1042 +0,0 @@
-
-
-
-
-

{{ formData.bdmc }}

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('template.common.xzpxpz')
- }}
- {{ $t('template.common.xzjtpz')
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/lba/LBA008.vue b/src/views/business/comps/template/comps/lba/LBA008.vue
index bedcc8a..1ba72d0 100644
--- a/src/views/business/comps/template/comps/lba/LBA008.vue
+++ b/src/views/business/comps/template/comps/lba/LBA008.vue
@@ -9,7 +9,7 @@
-
+
@@ -162,7 +162,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/pcr/PCR002.vue b/src/views/business/comps/template/comps/pcr/PCR002.vue
deleted file mode 100644
index e113814..0000000
--- a/src/views/business/comps/template/comps/pcr/PCR002.vue
+++ /dev/null
@@ -1,586 +0,0 @@
-
-
-
-
-

{{ formData.bdmc }}

-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/pcr/PCR003.vue b/src/views/business/comps/template/comps/pcr/PCR003.vue
deleted file mode 100644
index f06318a..0000000
--- a/src/views/business/comps/template/comps/pcr/PCR003.vue
+++ /dev/null
@@ -1,587 +0,0 @@
-
-
-
-
-

{{ formData.bdmc }}

-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/pcr/PCR004.vue b/src/views/business/comps/template/comps/pcr/PCR004.vue
deleted file mode 100644
index 3ffe9cd..0000000
--- a/src/views/business/comps/template/comps/pcr/PCR004.vue
+++ /dev/null
@@ -1,587 +0,0 @@
-
-
-
-
-

{{ formData.bdmc }}

-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/pcr/PCR005.vue b/src/views/business/comps/template/comps/pcr/PCR005.vue
index ff2de9c..33d5f3e 100644
--- a/src/views/business/comps/template/comps/pcr/PCR005.vue
+++ b/src/views/business/comps/template/comps/pcr/PCR005.vue
@@ -166,7 +166,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/pcr/PCR008.vue b/src/views/business/comps/template/comps/pcr/PCR008.vue
index 6c62908..a19777d 100644
--- a/src/views/business/comps/template/comps/pcr/PCR008.vue
+++ b/src/views/business/comps/template/comps/pcr/PCR008.vue
@@ -145,7 +145,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/pcr/PCR009.vue b/src/views/business/comps/template/comps/pcr/PCR009.vue
index d491959..3a15a65 100644
--- a/src/views/business/comps/template/comps/pcr/PCR009.vue
+++ b/src/views/business/comps/template/comps/pcr/PCR009.vue
@@ -162,7 +162,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/pcr/PCR010.vue b/src/views/business/comps/template/comps/pcr/PCR010.vue
index 8ac872a..519da6d 100644
--- a/src/views/business/comps/template/comps/pcr/PCR010.vue
+++ b/src/views/business/comps/template/comps/pcr/PCR010.vue
@@ -147,7 +147,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/pcr/PCR011.vue b/src/views/business/comps/template/comps/pcr/PCR011.vue
index ef9f80b..bf61259 100644
--- a/src/views/business/comps/template/comps/pcr/PCR011.vue
+++ b/src/views/business/comps/template/comps/pcr/PCR011.vue
@@ -147,7 +147,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/pcr/PCR012.vue b/src/views/business/comps/template/comps/pcr/PCR012.vue
index ccefd9e..72c40e4 100644
--- a/src/views/business/comps/template/comps/pcr/PCR012.vue
+++ b/src/views/business/comps/template/comps/pcr/PCR012.vue
@@ -148,7 +148,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/sp/SP001.vue b/src/views/business/comps/template/comps/sp/SP001.vue
index a4def6b..648673f 100644
--- a/src/views/business/comps/template/comps/sp/SP001.vue
+++ b/src/views/business/comps/template/comps/sp/SP001.vue
@@ -157,7 +157,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/sp/SP003.vue b/src/views/business/comps/template/comps/sp/SP003.vue
index 70b7a29..c448464 100644
--- a/src/views/business/comps/template/comps/sp/SP003.vue
+++ b/src/views/business/comps/template/comps/sp/SP003.vue
@@ -158,7 +158,8 @@ export default {
otherCode: "actOther",
multiple: true,
options: this.getDictOptions('business_pztj'),
- compareTo: "pre"
+ compareTo: "pre",
+ otherCodeCompareTo: "preOther",
}
}
},
@@ -276,7 +277,7 @@ export default {
bodySubType: "span",
bodySubKey: "subTargetSolutionCode",
bodyFillType: "preFill",
- width: 140,
+ width: 280,
myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段
maxVolumeField: "actSolutionVolume",//分装的最大量字段
maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段
@@ -476,6 +477,7 @@ export default {
//更新记录
onRegentSubmit(data) {
const { selectInfo, key } = data;
+
const { row } = selectInfo;
if (key === "subStartSolution") {//选择起始源溶液需要同步更新table的变更记录。
this.$refs.stepFormPackageRef.updateFormData("targetAcSolution", row.nd);
diff --git a/src/views/business/comps/template/comps/sp/SP00456.vue b/src/views/business/comps/template/comps/sp/SP00456.vue
index c06aa51..4bb97d5 100644
--- a/src/views/business/comps/template/comps/sp/SP00456.vue
+++ b/src/views/business/comps/template/comps/sp/SP00456.vue
@@ -8,6 +8,8 @@
-
+
{{
$t('template.common.xzpxpz')
}}
@@ -33,6 +35,11 @@
$t('template.common.xzjtpz')
}}
+
+ {{
+ $t('template.common.addBtn')
+ }}
+
@@ -40,7 +47,9 @@
:showOperation="fillType === 'actFill' || fillType === 'preFill'"
:tableColumns="ladderStepColumns" :prefixKey="'ladder_' + ladderIndex"
:configType="'ladder'" :ref="`ladderRef_${ladderIndex}`"
- :fieldItemLabel="'template.common.jtpz'"
+ :sn = "sn"
+ ladderType = "bq"
+ :fieldItemLabel="getTableLabel('ladder')"
:showHeader="!isPcr234"
@deleteConfig="deleteConfig('ladderConfigs', ladderConfig)" :fillType="fillType" />
@@ -52,11 +61,12 @@
:showOperation="fillType === 'actFill' || fillType === 'preFill'"
:tableColumns="paralleStepColumns" :prefixKey="'paralle_' + paralleIndex"
:configType="'paralle'" :ref="`paralleRef_${paralleIndex}`"
- :fieldItemLabel="'template.common.pxpz'"
+ :fieldItemLabel="getTableLabel('paralle')"
:showHeader="!isPcr234"
+ :showHeaderLabel="!isGsp"
@deleteConfig="deleteConfig('paralleConfigs', paralleConfig)" :fillType="fillType" />
-
+
{{
@@ -73,7 +83,7 @@
:showOperation="fillType === 'actFill' || fillType === 'preFill'"
:tableColumns="ladderStepColumns" :prefixKey="'ladder_1_' + ladderIndex"
:configType="'ladder'" :ref="`ladderRef_1_${ladderIndex}`"
- :fieldItemLabel="'template.common.jtpz'"
+ :fieldItemLabel="'template.lba.lba005.zkpz'"
@deleteConfig="deleteConfig('ladderConfigs_1', ladderConfig)" :fillType="fillType" />
@@ -82,9 +92,9 @@
:key="'paralle_1_' + paralleConfig.id">
@@ -181,11 +191,17 @@ export default {
paralleStepFormConfig() {
return getParalleStepFormConfig(this);
},
+ paralleStepFormConfig1() {
+ return getParalleStepFormConfig(this);
+ },
// 操作步骤表单配置
ladderStepFormConfig() {
return getLadderFormConfig(this);
},
paralleStepColumns() {
+ return getParallelColumnsConfig(this,this.sn);
+ },
+ paralleStepColumns1() {
return getParallelColumnsConfig(this);
},
// 阶梯配置表格列配置
@@ -208,7 +224,8 @@ export default {
targetAcSolutionFromTable: true,//是否从表格中获取实际原始溶液浓度
currentRowData: {},//当前点击的行数据
isLba: labArr.includes(this.sn),
- isSp: sn.includes('SP'),//是否是色谱
+ isSp: sn.startsWith('SP'),//是否是色谱
+ isGsp: sn.startsWith('GSP'),//是否是供试品
isPcr234: pcr234Arr.includes(this.sn),//是否是PCR234
};
},
@@ -229,11 +246,24 @@ export default {
getOperationStepsLabel() {
const obj = {
"LBA005": "template.lba.lba005.bzqxpz",//标准曲线配制
- "ADA005": "template.lba.lba005.bzqxpz",//标准曲线配制
+ "ADA005": "template.lba.lba005.zkpz",//质控配制
+ "GSP007": "template.gsp.gsp007.bzqx",//标准曲线
// "LBA007": "template.lba.lba005.bzqxpz",//
}
return obj[this.sn] || 'template.common.operationSteps';//操作步骤
},
+ // 获取表格标签
+ getTableLabel(type) {
+ const obj = {
+ "paralle": "template.common.pxpz",//标准曲线配制
+ "ladder": "template.common.jtpz",//阶梯配制
+ }
+ if(this.isGsp){
+ return "";
+ }
+ return obj[type] || '';//表格标签
+ },
+ // 删除选板信息行
deleteJcbRow(rowIndex) {
const jcbRef = this.$refs['jcbRef'];
if (jcbRef) {
diff --git a/src/views/business/comps/template/comps/sp/SP008.vue b/src/views/business/comps/template/comps/sp/SP008.vue
index 296d5ac..647d779 100644
--- a/src/views/business/comps/template/comps/sp/SP008.vue
+++ b/src/views/business/comps/template/comps/sp/SP008.vue
@@ -171,7 +171,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
compareTo: "pre",
multiple: true,
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/sp/SP009.vue b/src/views/business/comps/template/comps/sp/SP009.vue
index 786cd05..76cf980 100644
--- a/src/views/business/comps/template/comps/sp/SP009.vue
+++ b/src/views/business/comps/template/comps/sp/SP009.vue
@@ -175,7 +175,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
compareTo: "pre",
multiple: true,
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/sp/comps/LadderConfig.vue b/src/views/business/comps/template/comps/sp/comps/LadderConfig.vue
index 9e29f33..4788a23 100644
--- a/src/views/business/comps/template/comps/sp/comps/LadderConfig.vue
+++ b/src/views/business/comps/template/comps/sp/comps/LadderConfig.vue
@@ -1,7 +1,9 @@
@@ -58,7 +52,7 @@ import ImportExcelDialog from '../../dialog/ImportExcelDialog'
export default {
name: "YP003",
- components: { ImportExcelDialog,BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete },
+ components: { ImportExcelDialog, BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, TableOpertaionDelete },
mixins: [templateMixin],
props: {
fillType: {
@@ -136,10 +130,10 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther", otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
- options: this.getDictOptions('business_pztj')
+ options: this.getDictOptions('business_pztj'),
}
}
},
@@ -181,18 +175,18 @@ export default {
bodyFillType: 'actFill',
width: 100,
bodyMaxlength: 50,
- },{
+ }, {
label: 'template.yp.yp003.dwbh',
prop: 'dwbh',
bodyType: 'checkboxTag',
bodyFillType: 'actFill',
- bodySubType:"button",
- bodySubFillType:"preFill",
- bodySubButtonName:"template.common.importTemplate",
- bodySubKey:"exportBtn",
- showBodySub:this.fillType === "preFill",
+ bodySubType: "button",
+ bodySubFillType: "preFill",
+ bodySubButtonName: "template.common.importTemplate",
+ bodySubKey: "exportBtn",
+ showBodySub: this.fillType === "preFill",
width: 280,
- },{
+ }, {
label: 'template.yp.yp003.ypsl',
prop: 'ypsl',
bodyType: 'input',
@@ -212,19 +206,19 @@ export default {
},
methods: {
// 点击按钮
- handleClickButton(key,rowIndex,colIndex,e,data){
- if(key === "exportBtn"){
+ handleClickButton(key, rowIndex, colIndex, e, data) {
+ if (key === "exportBtn") {
this.currentRowIndex = rowIndex;
this.$refs.ImportExcelDialog.show()
}
},
//获取已填写的表单数据
getFilledFormData() {
- return this.getFilledFormDataByRefs(["baseInfoRef", "tableRef", "stepRef", "fqyqRef","remarkRef"])
+ return this.getFilledFormDataByRefs(["baseInfoRef", "tableRef", "stepRef", "fqyqRef", "remarkRef"])
},
//获取填写完成的表单数据
async getFormData() {
- let content = await this.validFormFields(["baseInfoRef", "tableRef", "stepRef", "fqyqRef","remarkRef"]);
+ let content = await this.validFormFields(["baseInfoRef", "tableRef", "stepRef", "fqyqRef", "remarkRef"]);
return content;
},
getResource() {
@@ -253,28 +247,27 @@ export default {
},
onLoadExcelData(excelData) {
const data = excelData.splice(1);
- const tagData = data.map((item)=>{
+ const tagData = data.map((item) => {
return {
- checked:undefined,
- tagValue:item[0],
+ checked: undefined,
+ tagValue: item[0],
}
})
- this.$refs.tableRef.updateDataSourceByRowIndex(this.currentRowIndex,{dwbh:tagData});
+ this.$refs.tableRef.updateDataSourceByRowIndex(this.currentRowIndex, { dwbh: tagData });
this.$refs.tableRef.onErrorUpdate(this.currentRowIndex, 1, 'dwbh', false)
this.$refs.ImportExcelDialog.cancel()
setTimeout(() => {
this.justUpdateFilledFormData();
}, 100);
},
- downloadExcelTemplate(arr){
+ downloadExcelTemplate(arr) {
this.exportExcel(arr)
},
- onCheckboxTagChange(rowIndex,colIndex,data){
- const num = data.filter((item)=>item.checked).length;
- this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, {'ypsl':num})
+ onCheckboxTagChange(rowIndex, colIndex, data) {
+ const num = data.filter((item) => item.checked).length;
+ this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, { 'ypsl': num })
}
}
};
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/yp/YP004.vue b/src/views/business/comps/template/comps/yp/YP004.vue
index 5335fa9..49e14b7 100644
--- a/src/views/business/comps/template/comps/yp/YP004.vue
+++ b/src/views/business/comps/template/comps/yp/YP004.vue
@@ -114,7 +114,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
diff --git a/src/views/business/comps/template/comps/yp/YP005.vue b/src/views/business/comps/template/comps/yp/YP005.vue
index 580a870..486d7a9 100644
--- a/src/views/business/comps/template/comps/yp/YP005.vue
+++ b/src/views/business/comps/template/comps/yp/YP005.vue
@@ -119,7 +119,7 @@ export default {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
- otherCode: "actOther",
+ otherCode: "actOther",otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
@@ -172,7 +172,13 @@ export default {
bodySubButtonName:"template.yp.yp005.ks",
bodySubKey:"startBtn",
showBodySub:this.fillType === "actFill",
+ bodyThirdType:"button",
+ bodyThirdButtonName:"结束",
+ bodyThirdKey:"endBtn",
+ bodyThirdFillType:"actFill",
width: 280,
+ bodyDisabled:true,
+ bodySubDisabled:this.fillType !== 'actFill',
}]
},
},
@@ -187,14 +193,37 @@ export default {
methods: {
// 点击按钮
handleClickButton(key,rowIndex,colIndex,e,data){
+ let content = this.getFilledFormData();
+ let tableList = content.stepTableFormData
+ let qxsj = tableList[rowIndex].qxsj
+ let timeArr = qxsj?qxsj.split('~'):['','']
if(key === "exportBtn"){
this.currentRowIndex = rowIndex;
this.$refs.ImportExcelDialog.show()
}
if(key === "startBtn"){
+ let startTime = moment().format("YYYY/MM/DD HH:mm")
+ timeArr[0] = startTime
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{
- qxsj: moment().format("YYYY/MM/DD HH:mm"),
- })
+ qxsj: timeArr.join('~'),
+ },{signData:data,updateFields:['qxsj']})
+
+ // this.$nextTick(() => {
+ // //通知后端保存数据
+ // const params = {
+ // type: "fieldChanged",
+ // newRecord: null,
+ // resourceList: null,
+ // }
+ // EventBus.$emit('onModifyRecord', params,)
+ // })
+ }
+ if(key === "endBtn"){
+ let endTime = moment().format("YYYY/MM/DD HH:mm")
+ timeArr[1] = endTime
+ this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{
+ qxsj: timeArr.join('~'),
+ },{signData:data,updateFields:['qxsj']})
// this.$nextTick(() => {
// //通知后端保存数据
diff --git a/src/views/business/comps/template/formConfig/paralleAndLadderConfig.js b/src/views/business/comps/template/formConfig/paralleAndLadderConfig.js
index 2427c5c..37bc319 100644
--- a/src/views/business/comps/template/formConfig/paralleAndLadderConfig.js
+++ b/src/views/business/comps/template/formConfig/paralleAndLadderConfig.js
@@ -43,22 +43,23 @@ const optionsCode = {
PCR002: 'business_pcr_gzy',
PCR003: 'business_pcr_fxbzqxzbb',
PCR004: 'business_pcr_fxzkypzbb',
- GSP007:"",
- PCR013:"",
- LBA005:"",
- LBA007:"",
- ADA005:"",
- ADA007:"",
+ GSP007:"",//GSP007是输入框
+ PCR013:"business_pcr_fxffypzbb",
+ LBA005:"business_lba_ptjhbzqx_zkpx",
+ LBA007:"business_lba_ptjhfxyp",
+ ADA005:"business_ada_kyktzkyp",
+ ADA007:"business_ada_kyktffxyp",
}
// 阶梯配置表格列配置
export const getLadderColumnsConfig = ($this) => {
- const dic = optionsCode[$this.sn] || 'business_sp_nbgzy'
+ const dic = optionsCode[$this.sn] || 'business_sp_nbgzy';
+ const mbryType = $this.sn === "GSP007"?"input":"select"
return [
{
label: 'template.sp.sp00456.mbrybh',
prop: 'targetSolutionCode',
- bodyType: 'select',
+ bodyType: mbryType,
bodyOptions: $this.getDictOptions(dic),
bodySubType: 'span',
bodySubKey: 'subTargetSolutionCode',
@@ -223,8 +224,11 @@ export const getLadderColumnsConfig = ($this) => {
]
}
// 平行配置表格列配置
-export const getParallelColumnsConfig = ($this) => {
- const dic = optionsCode[$this.sn] || 'business_sp_nbgzy'
+export const getParallelColumnsConfig = ($this,sn) => {
+ let dic = optionsCode[$this.sn] || 'business_sp_nbgzy';
+ if(sn === "LBA005"){
+ dic = "business_lba_bqpx";
+ }
return [
{
label: 'template.sp.sp00456.mbrybh',
@@ -534,11 +538,12 @@ export const getBaseInfoFormConfig = ($this) => {
const sn = $this.sn
const labArr = ['LBA005', 'LBA007','ADA005','ADA007']
const isLba = labArr.includes(sn)
- const isSp = sn.includes('SP')//是否是色谱
+ const isSp = sn.startsWith('SP')//是否是色谱
return [
{
type: 'cardItem',
- config: {
+ config: isSp?
+ {
studyMc: {
label: 'template.common.testName',
type: 'input',
@@ -563,6 +568,19 @@ export const getBaseInfoFormConfig = ($this) => {
maxlength: 50
}
}
+ :
+ {
+ studyMc: {
+ label: 'template.common.testName',
+ type: 'input',
+ disabled: true
+ },
+ studySn: {
+ label: 'template.common.testNumber',
+ type: 'input',
+ disabled: true
+ },
+ }
},
{
type: 'conditionItem',
diff --git a/src/views/business/comps/template/formConfig/sp/SP0019.js b/src/views/business/comps/template/formConfig/sp/SP0019.js
index cf42240..be40b7f 100644
--- a/src/views/business/comps/template/formConfig/sp/SP0019.js
+++ b/src/views/business/comps/template/formConfig/sp/SP0019.js
@@ -54,6 +54,8 @@ export const getStorageFormConfig = ($this)=>{
fillType: 'actFill',
options: $this.spzxhOptions,
filledCodes:['mc','bh'],
+ selectRemote: true,
+
},
}
},
diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js
index 8c00ded..f1eb8a3 100644
--- a/src/views/business/comps/template/mixins/templateMixin.js
+++ b/src/views/business/comps/template/mixins/templateMixin.js
@@ -1,6 +1,6 @@
import moment from 'moment'
import { getLatestSn, getLatestSnArr } from '@/api/template';
-import { isValueEmpty, getStringWidth } from '@/utils/index';
+import { isValueEmpty, getStringWidth,getuuid } from '@/utils/index';
import { isCommonUnit } from "@/utils/conTools";
import { sj_subpackage, sj_startConfiguration, sj_configurationCompleted } from '@/api/business/sj/sj';
import { convertConcentration } from "@/utils/conConverter";//浓度单位转换
@@ -60,6 +60,16 @@ export default {
'business_zpdd', // 制片地点
'business_cjbw', // 制片部位
'business_qywz', // 取样位置
+
+ 'business_lba_ptjhbzqx_zkpx', // LBA-编号-配体结合分析标准曲线LBA005-质控平行
+ 'business_lba_bqpx', //LBA-编号-配体结合分析标准曲线LBA005-标曲平行
+ 'business_lba_ptjhfxyp', // LBA-编号-配体结合分析方法学样品制备表LBA007
+ 'business_ada_kyktzkyp', // ADA-编号-抗药抗体质控样品配制记录表ADA005
+ 'business_ada_kyktffxyp', // ADA-编号-抗药抗体方法学样品制备表ADA007
+ 'business_dl_uav', // 毒理-紫外照射操作记录表-UVA-DL023
+ 'business_pcr_fxffypzbb', //PCR-编号-分析方法学样品制备表
+ 'business_dl_xbx', //毒理-紫外照射操作记录表-细胞系
+ 'business_dl_dwzs', //毒理-紫外照射操作记录表-动物种属
],
props: {
templateData: {
@@ -83,12 +93,13 @@ export default {
templateId,
templateSn,
startDate,
+ submittedCodes,
bdmc,
endDate,
id
} = v
if (v.resource) {
- //type 类型:1:试剂;3:给药制剂;5:麻精药;7:供试品
+ //type 类型:1:试剂;3:给药制剂;5:麻精药;7:供试品 9:细胞;11:细菌
//试验试剂信息 试剂
// this.resource = _.filter(JSON.parse(v.resource), function (o) {
// return o.type == 1 || o.elnType == 1
@@ -131,6 +142,7 @@ export default {
templateId,
templateSn,
startDate,
+ submittedCodes,
bdmc,
endDate,
id
@@ -145,6 +157,7 @@ export default {
templateMcEn,
templateId,
templateSn,
+ submittedCodes,
startDate,
bdmc,
endDate,
@@ -161,11 +174,17 @@ export default {
effectivePeriodUnit &&
!expireDate
) {
- const start = moment(startDate)
- const unit = effectivePeriodUnit === '天' ? 'days' : 'hours'
- const end = start
- .add(Number(effectivePeriod), unit)
- .format('YYYY-MM-DD HH:mm:ss')
+ let end;
+ if (effectivePeriod === "NA" || effectivePeriodUnit === "NA") {
+ end = "NA";
+ } else {
+ const start = moment(startDate)
+ const unit = effectivePeriodUnit === '天' ? 'days' : 'hours'
+ end = start
+ .add(Number(effectivePeriod), unit)
+ .format('YYYY-MM-DD HH:mm:ss')
+ }
+
this.formData = { ...this.formData, expireDate: end }
}
console.log(this.formData, 'formData from templateData')
@@ -269,10 +288,14 @@ export default {
onBeforeReagentSubmit(data) {
const { selectData, callback, key, formFields } = data;
const { subTargetStartSolution } = formFields;
+
//判断选择的浓度单位和预制的浓度单位是否一致
if (key === "subStartSolution" && !isCommonUnit(selectData.row.nddw, [subTargetStartSolution])) {//选择起始源溶液需要同步更新table的变更记录。
callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。');
}
+ if(selectData.row.nd === "NA"){
+ callback.prevent('当前实际浓度为NA,请重新选择');
+ }
},
getFormDataByTemplateData() {
let o = {};
@@ -479,18 +502,20 @@ export default {
actSolutionConcentrationPrecision: 3, //小数点精度默认为3
targetDiluentVolumePrecision: 3, //小数点精度默认为3
targetStartSolutionVolumePrecision: 3, //小数点精度默认为3
- targetSolutionCode: `STD${Number(codeSTD) - index}`
+ targetSolutionCode: `CA-WS-STD${Number(codeSTD) - index}`,
+ id:getuuid(),
+ rowIndex:index,
}))
this.$refs.stepTableRef.updateDataSource(arr)
} else if (key === 'targetStartSolution' || key === 'subTargetStartSolution') {
//起始溶液体积失焦时,更新目标溶液预计浓度
const arr = this.$refs.stepTableRef?.getDataSource();
- const { headerSelectFields } = this.$refs.stepTableRef?.getFilledFormData();
+ const { headerSelectFields,stepTableFormData=[] } = this.$refs.stepTableRef?.getFilledFormData();
const params = {
subTargetStartSolution,
- headerSelectFields
- }
-
+ headerSelectFields,
+ dataSource:stepTableFormData,
+ }
arr.forEach((item, rowIndex) => {
this.updateTargetStartSolutionVolume(
item,
@@ -502,6 +527,7 @@ export default {
},
//批量更新目标起始源溶液体积
batchUpdateTargetStartSolutionVolume(arr, startConcentration, params) {
+ params.dataSource = arr;
arr.forEach((item, rowIndex) => {
this.updateTargetStartSolutionVolume(
item,
@@ -529,7 +555,8 @@ export default {
)
const params = {
subTargetStartSolution: subTargetStartSolution,
- headerSelectFields
+ headerSelectFields,
+ dataSource
}
if (isValueEmpty(volume)) {
this.$message.error('请先选择预设起始源溶液浓度')
@@ -554,7 +581,9 @@ export default {
} else {
initNd = dataSource[rowIndex - 1].actSolutionConcentration;
}
+
if (isValueEmpty(initNd)) {
+ console.log("initNd",initNd)
this.$message.error('请先选择起始源溶液')
return
} else {
@@ -569,13 +598,17 @@ export default {
//计算目标溶液浓度
calcNd(item, targetAcSolution, params) {
- console.log(params, "ppp")
+ console.log(item,params, "ppp")
// debugger
//targetStartSolutionUnit(实际起始源溶液浓度单位)
const { targetStartSolutionUnit, headerSelectFields } = params;
+ const { actStartSolutionVolumeUnit, actSolutionVolumeUnit, actDiluentVolumeUnit, actSolutionConcentrationUnit } = headerSelectFields;
+ let initUnit = targetStartSolutionUnit;
+ if (item.rowIndex > 0) {
+ initUnit = actSolutionConcentrationUnit;
+ }
//actStartSolutionVolumeUnit(实际起始源溶液体积单位)actSolutionVolumeUnit(实际目标溶液体积单位)
//actDiluentVolumeUnit(实际稀释液体积单位)actSolutionConcentrationUnit(实际目标溶液浓度单位)
- const { actStartSolutionVolumeUnit, actSolutionVolumeUnit, actDiluentVolumeUnit, actSolutionConcentrationUnit } = headerSelectFields;
//实际源溶液浓度÷(实际终体积÷源溶液加入体积);
const precision = item.actSolutionConcentrationPrecision
const volPrecision = item.actSolutionVolumePrecision;
@@ -583,10 +616,9 @@ export default {
const actDiluentVolume = item.actDiluentVolume
//实际起始源溶液体积
const actStartSolutionVolume = item.actStartSolutionVolume
- if (isValueEmpty(actStartSolutionVolume) || isValueEmpty(actDiluentVolume) || isValueEmpty(targetStartSolutionUnit)) {
+ if (isValueEmpty(actStartSolutionVolume) || isValueEmpty(actDiluentVolume) || isValueEmpty(initUnit)) {
return false
}
-
const converActDiluentVolume = volumeConverter.convert(actDiluentVolume + actDiluentVolumeUnit, actSolutionVolumeUnit)
const converActStartSolutionVolume = volumeConverter.convert(actStartSolutionVolume + actStartSolutionVolumeUnit, actSolutionVolumeUnit)
//实际源溶液加入体积+实际稀释液加入体积
@@ -596,7 +628,12 @@ export default {
const targetStartVolUnit = actSolutionConcentrationUnit.split("/")[1];//先按照预设目标溶液浓度的单位标准
const converActVol = volumeConverter.convert(actVol + actSolutionVolumeUnit, targetStartVolUnit)
const converActDiluentVolume1 = volumeConverter.convert(actStartSolutionVolume + actStartSolutionVolumeUnit, targetStartVolUnit)
- const converTargetAcSolution = convertConcentration.convert(targetAcSolution + targetStartSolutionUnit, actSolutionConcentrationUnit)
+ const converArr = (targetAcSolution+'').split("/");
+ converArr.map((item)=>{
+ return convertConcentration.convert(item + initUnit, actSolutionConcentrationUnit)
+ })
+ console.log(converArr,"converArr")
+ const converTargetAcSolution = convertConcentration.convert(targetAcSolution + initUnit, actSolutionConcentrationUnit)
// 实际目标溶液浓度 = 实际源溶液浓度÷(实际终体积÷源溶液加入体积);
const actNd = (
parseFloat(converTargetAcSolution) / (
@@ -615,15 +652,23 @@ export default {
},
//更新起始溶液体积时,计算预设起始溶液体积和预设稀释液体积
updateTargetStartSolutionVolume(item, volume, unitParams) {
+ const { rowIndex } = item
+ const { subTargetStartSolution, headerSelectFields, dataSource=[] } = unitParams
+ const { targetSolutionConcentrationUnit, targetSolutionVolumeUnit, targetStartSolutionVolumeUnit, targetDiluentVolumeUnit } = headerSelectFields
+
+ let initNd = volume,unit = subTargetStartSolution;
+ //平行配置不会传dataSource;
+ if (rowIndex > 0 && dataSource.length > 0) {
+ initNd = dataSource[rowIndex - 1].targetSolutionConcentration;
+ unit = targetSolutionConcentrationUnit;
+ }
const precision = item.targetStartSolutionVolumePrecision || 0
const concentration = item.targetSolutionConcentration
const targetVolume = item.targetSolutionVolume
- const { subTargetStartSolution, headerSelectFields } = unitParams
- const { targetSolutionConcentrationUnit, targetSolutionVolumeUnit, targetStartSolutionVolumeUnit, targetDiluentVolumeUnit } = headerSelectFields
if (
isValueEmpty(concentration) ||
isValueEmpty(targetVolume) ||
- isValueEmpty(subTargetStartSolution) ||
+ isValueEmpty(unit) ||
isValueEmpty(targetSolutionConcentrationUnit) ||
isValueEmpty(targetSolutionVolumeUnit) ||
isValueEmpty(targetStartSolutionVolumeUnit) ||
@@ -631,10 +676,15 @@ export default {
) {
return;
}
+
const targetStartVolUnit = targetSolutionConcentrationUnit.split("/")[1];//先按照预设目标溶液浓度的单位标准
-
+ const volumeArr = (initNd+'').split("/");
+ const converArr = volumeArr.map((item)=>{
+ return convertConcentration.convert(item + unit, targetSolutionConcentrationUnit)
+ })
+ console.log(converArr,"converArr")
//将起始溶液浓度转换为和预设目标溶液浓度一样的单位再计算;
- const converStartCon = convertConcentration.convert(volume + subTargetStartSolution, targetSolutionConcentrationUnit)
+ const converStartCon = convertConcentration.convert(initNd + unit, targetSolutionConcentrationUnit)
//将预设目标溶液体积转换为和预设目标溶液浓度单位的分母一样的单位再计算;如:预设目标溶液浓度单位为mg/mL,预设目标溶液体积单位为uL,则将预设目标溶液体积转换为mL
const convertTargetVol = volumeConverter.convert(targetVolume + targetSolutionVolumeUnit, targetStartVolUnit)
diff --git a/src/views/business/form/drug/comp/sqbdList.vue b/src/views/business/form/drug/comp/sqbdList.vue
index 9cd934c..0c5983c 100644
--- a/src/views/business/form/drug/comp/sqbdList.vue
+++ b/src/views/business/form/drug/comp/sqbdList.vue
@@ -11,8 +11,8 @@
-
-
+
@@ -23,41 +23,55 @@
-
-
- {{ $t('form.search') }}
- {{ $t('form.reset') }}
-
+
+
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
-
-
+
-
-
+
+
+
+
+
+
+
@@ -66,18 +80,35 @@
-
+
{{
$t('page.business.study.studyFormApply.xzbd') }}
+
+ {{ $t('form.search') }}
+ {{ $t('form.reset') }}
+
-
+
-
+
+
+ {{ scope.row.sySn || '' }}
+ {{ scope.row.bmName || '' }}
+
+
+
+
+
+
@@ -106,7 +137,7 @@
$t('page.business.study.studyFormApply.yfz') }}
-
+
@@ -246,16 +277,22 @@ export default {
studyStatus: 5,
studySn: '',
studyMc: '',
+ sywzmc: '',
bdbh: '',
bdmc: '',
+ xyssort: null,
+ tjsjsort: 10,
userId: '',
userMc: '',
templateMc: '',
- cjsjjs: '',
- cjsjks: '',
+ xysjks: '',
+ xysjjs: '',
sfbl: null,
tjsjjs: '',
tjsjks: '',
+ xynd: '',
+ sybhbm: '',
+ bdzt: '',
},
loading: false,
total: 0,
@@ -265,6 +302,31 @@ export default {
},
created() { this.getIsQa() },
methods: {
+ sortChange(e, event) {
+ // column: {…}
+ // order: "ascending"
+ // prop: "tjsj"
+ if (e.prop == 'tjsj') {
+ if (e.order == 'ascending') {
+ this.searchForm.tjsjsort = 1
+ } else {
+ this.searchForm.tjsjsort = 10
+ }
+ this.searchForm.xyssort = null
+ }
+ if (e.prop == 'xysj') {
+ if (e.order == 'ascending') {
+ this.searchForm.xyssort = 1
+ } else {
+ this.searchForm.xyssort = 10
+ }
+ this.searchForm.tjsjsort = null
+ }
+ this.search()
+ event.preventDefault()
+ event.stopPropagation()
+ return
+ },
checkPermi,
checkRole,
getIsQa() {
@@ -302,10 +364,14 @@ export default {
this.searchForm.userId = ''
this.searchForm.userMc = ' '
this.searchForm.templateMc = ''
- this.searchForm.cjsjks = ''
- this.searchForm.cjsjjs = ''
+ this.searchForm.sywzmc = ''
+ this.searchForm.xysjks = ''
+ this.searchForm.xysjjs = ''
this.searchForm.tjsjks = ''
this.searchForm.tjsjjs = ''
+ this.searchForm.xynd = ''
+ this.searchForm.sybhbm = ''
+ this.searchForm.bdzt = null
this.searchForm.sfbl = null
this.daterange = []
this.daterangetj = []
@@ -313,15 +379,15 @@ export default {
},
getList() {
if (this.daterange != null && this.daterange.length > 0) {
- this.searchForm.cjsjks = this.daterange[0]
- this.searchForm.cjsjjs = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.searchForm.xysjks = this.daterange[0]
+ this.searchForm.xysjjs = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
- this.searchForm.cjsjks = ''
- this.searchForm.cjsjjs = ''
+ this.searchForm.xysjks = ''
+ this.searchForm.xysjjs = ''
}
if (this.daterangetj != null && this.daterangetj.length > 0) {
this.searchForm.tjsjks = this.daterangetj[0]
- this.searchForm.tjsjjs = moment().add(this.daterangetj[1], 'days').format('YYYY-MM-DD');
+ this.searchForm.tjsjjs = moment(this.daterangetj[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.searchForm.tjsjks = ''
this.searchForm.tjsjjs = ''
diff --git a/src/views/business/form/drug/comp/tbbdList.vue b/src/views/business/form/drug/comp/tbbdList.vue
index 885c49a..de31417 100644
--- a/src/views/business/form/drug/comp/tbbdList.vue
+++ b/src/views/business/form/drug/comp/tbbdList.vue
@@ -3,65 +3,44 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('form.search') }}
- {{ $t('form.reset') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('form.search') }}
+ {{ $t('form.reset') }}
+
@@ -165,6 +144,8 @@
+
+
@@ -189,6 +170,7 @@ import Xq from "@/views/business/study/comp/tbbd/Xq";
import Sy from "@/views/business/study/comp/tbbd/Sy";
import Fz from "@/views/business/study/comp/tbbd/Fz";
import Fh from "@/views/business/study/comp/tbbd/Fh";
+import Blxjsh from "@/views/business/study/comp/tbbd/Blxjsh";
import Qrfz from "@/views/business/study/comp/tbbd/Qrfz";
import Jq from "@/views/business/study/comp/tbbd/Jq";
import Ghgsr from "@/views/business/study/comp/tbbd/Ghgsr";
@@ -228,13 +210,14 @@ export default {
deep: true
}
},
- components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
+ components: { Ghgsr, Fh, Fz, Bj, Blxjsh, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() {
return {
isQa: false,
leader: null,
showFh: false,
showAudit: false,
+ showBlxjsh: false,
showEdit: false,
showDetail: false,
daterangetj: [],
@@ -326,7 +309,7 @@ export default {
getList() {
if (this.daterange != null && this.daterange.length > 0) {
this.searchForm.cjsjks = this.daterange[0]
- this.searchForm.cjsjjs = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.searchForm.cjsjjs = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.searchForm.cjsjks = ''
this.searchForm.cjsjjs = ''
@@ -391,6 +374,11 @@ export default {
this.$emit('showDetail', this.showFh)
this.search()
},
+ blxjshClose() {
+ this.showBlxjsh = false
+ this.$emit('showDetail', this.showBlxjsh)
+ this.search()
+ },
detail(row) {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
@@ -406,6 +394,11 @@ export default {
this.$emit('showDetail', this.showFh)
this.$refs.Fh.show(row)
},
+ blxjsh(row) {
+ this.showBlxjsh = true
+ this.$emit('showDetail', this.showBlxjsh)
+ this.$refs.Blxjsh.show(row)
+ },
}
}
diff --git a/src/views/business/form/drug/comp/ytbdList.vue b/src/views/business/form/drug/comp/ytbdList.vue
index 8fdcae2..d6e4d29 100644
--- a/src/views/business/form/drug/comp/ytbdList.vue
+++ b/src/views/business/form/drug/comp/ytbdList.vue
@@ -2,48 +2,31 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('form.search') }}
- {{ $t('form.reset') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('form.search') }}
+ {{ $t('form.reset') }}
+
@@ -114,11 +97,11 @@
{{ $t('page.business.study.studyFormPre.guanbi')
- }}
+ }}
{{ $t('page.business.study.studyFormPre.qrgb')
- }}
+ }}
@@ -396,7 +379,7 @@ export default {
getList() {
if (this.daterange != null && this.daterange.length > 0) {
this.searchForm.startDate = this.daterange[0]
- this.searchForm.endDate = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.searchForm.endDate = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.searchForm.startDate = ''
this.searchForm.endDate = ''
@@ -444,7 +427,7 @@ export default {
detail(row) {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
- this.$refs.Xq.show(row, true,this.searchForm)
+ this.$refs.Xq.show(row, true, this.searchForm)
},
audit(row) {
this.showAudit = true
diff --git a/src/views/business/form/drug/list.vue b/src/views/business/form/drug/list.vue
index 76e7852..81b3fe1 100644
--- a/src/views/business/form/drug/list.vue
+++ b/src/views/business/form/drug/list.vue
@@ -240,7 +240,17 @@ export default {
},
enter(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'进入麻精药表单',jcmcEn:'Enter Controlled Drug'})
- this.$tab.openPage(" ", '/drug/enter/' + row.id+'/ytbd')
+ // this.$tab.openPage(" ", '/drug/enter/' + row.id+'/ytbd')
+
+ let path = '/drug/enter/' + row.id+'/ytbd'
+ let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => {
+ return tab.path === path
+ })
+ if (index > -1) {
+ this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
+ } else {
+ this.$tab.openPage(" ", path)
+ }
// this.showType = 'enter'
// this.$refs.enter.show(row)
},
diff --git a/src/views/business/form/nonTrial/comp/syffList.vue b/src/views/business/form/nonTrial/comp/syffList.vue
index 96c6941..a8200cc 100644
--- a/src/views/business/form/nonTrial/comp/syffList.vue
+++ b/src/views/business/form/nonTrial/comp/syffList.vue
@@ -9,12 +9,12 @@
+ @keyup.enter.native="search" @change="search"/>
-
-
+
+
@@ -141,10 +141,6 @@ export default {
pageNum: 1,
pageSize: 10,
studyId: '',
- syjh: '',
- syqy: '',
- qyr: '',
- jsr: '',
startDate: '',
endDate: ''
},
@@ -179,6 +175,7 @@ export default {
},
reset() {
this.resetForm("searchForm")
+ this.daterange = []
this.search()
},
getList() {
diff --git a/src/views/business/form/nonTrial/comp/tbbdList.vue b/src/views/business/form/nonTrial/comp/tbbdList.vue
index 0e9d123..1418074 100644
--- a/src/views/business/form/nonTrial/comp/tbbdList.vue
+++ b/src/views/business/form/nonTrial/comp/tbbdList.vue
@@ -2,65 +2,44 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('form.search') }}
- {{ $t('form.reset') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('form.search') }}
+ {{ $t('form.reset') }}
+
@@ -163,6 +142,8 @@
+
+
@@ -188,6 +169,7 @@ import Xq from "@/views/business/study/comp/tbbd/Xq";
import Sy from "@/views/business/study/comp/tbbd/Sy";
import Fz from "@/views/business/study/comp/tbbd/Fz";
import Fh from "@/views/business/study/comp/tbbd/Fh";
+import Blxjsh from "@/views/business/study/comp/tbbd/Blxjsh";
import Qrfz from "@/views/business/study/comp/tbbd/Qrfz";
import Jq from "@/views/business/study/comp/tbbd/Jq";
import Ghgsr from "@/views/business/study/comp/tbbd/Ghgsr";
@@ -227,13 +209,14 @@ export default {
deep: true
}
},
- components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
+ components: { Ghgsr, Fh, Fz, Blxjsh, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() {
return {
isQa: false,
leader: null,
showFh: false,
showAudit: false,
+ showBlxjsh: false,
showEdit: false,
showDetail: false,
daterangetj: [],
@@ -391,7 +374,7 @@ export default {
getList() {
if (this.daterange != null && this.daterange.length > 0) {
this.searchForm.cjsjks = this.daterange[0]
- this.searchForm.cjsjjs = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.searchForm.cjsjjs = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.searchForm.cjsjks = ''
this.searchForm.cjsjjs = ''
@@ -476,6 +459,11 @@ export default {
this.$emit('showDetail', this.showFh)
this.search()
},
+ blxjshClose() {
+ this.showBlxjsh = false
+ this.$emit('showDetail', this.showBlxjsh)
+ this.search()
+ },
detail(row) {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
@@ -487,18 +475,14 @@ export default {
this.$refs.Sy.show(row)
},
fh(row) {
- this.$modal.loading()
- studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId }).then(response => {
- if (response.data.toUrl) {
- this.toRead(response.data)
- } else {
- this.showFh = true
- this.$emit('showDetail', this.showFh)
- this.$refs.Fh.show(row)
- }
- }).finally(() => {
- this.$modal.closeLoading()
- })
+ this.showFh = true
+ this.$emit('showDetail', this.showFh)
+ this.$refs.Fh.show(row)
+ },
+ blxjsh(row) {
+ this.showBlxjsh = true
+ this.$emit('showDetail', this.showBlxjsh)
+ this.$refs.Blxjsh.show(row)
},
}
}
diff --git a/src/views/business/form/nonTrial/comp/ytbdList.vue b/src/views/business/form/nonTrial/comp/ytbdList.vue
index fe3662a..1f838fc 100644
--- a/src/views/business/form/nonTrial/comp/ytbdList.vue
+++ b/src/views/business/form/nonTrial/comp/ytbdList.vue
@@ -2,48 +2,31 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('form.search') }}
- {{ $t('form.reset') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('form.search') }}
+ {{ $t('form.reset') }}
+
@@ -113,11 +96,11 @@
{{ $t('page.business.study.studyFormPre.guanbi')
- }}
+ }}
{{ $t('page.business.study.studyFormPre.qrgb')
- }}
+ }}
@@ -265,7 +248,7 @@ export default {
pageNum: 1,
pageSize: 10,
studyId: -1,
- studyStatus:5,
+ studyStatus: 5,
studySn: '',
studyMc: '',
bdbh: '',
@@ -424,7 +407,7 @@ export default {
getList() {
if (this.daterange != null && this.daterange.length > 0) {
this.searchForm.startDate = this.daterange[0]
- this.searchForm.endDate = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.searchForm.endDate = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.searchForm.startDate = ''
this.searchForm.endDate = ''
@@ -481,7 +464,7 @@ export default {
detail(row) {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
- this.$refs.Xq.show(row, true,this.searchForm)
+ this.$refs.Xq.show(row, true, this.searchForm)
},
audit(row) {
this.showAudit = true
diff --git a/src/views/business/form/nonTrial/list.vue b/src/views/business/form/nonTrial/list.vue
index 9bc69d7..40d60a4 100644
--- a/src/views/business/form/nonTrial/list.vue
+++ b/src/views/business/form/nonTrial/list.vue
@@ -240,7 +240,17 @@ export default {
},
enter(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'进入非试验表单',jcmcEn:'Enter Non-study'})
- this.$tab.openPage(" ", '/nonTrial/enter/' + row.id+'/ytbd')
+ // this.$tab.openPage(" ", '/nonTrial/enter/' + row.id+'/ytbd')
+
+ let path = '/nonTrial/enter/' + row.id+'/ytbd'
+ let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => {
+ return tab.path === path
+ })
+ if (index > -1) {
+ this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
+ } else {
+ this.$tab.openPage(" ", path)
+ }
// this.showType = 'enter'
// this.$refs.enter.show(row)
},
diff --git a/src/views/business/resource/gsp/comps/ffjlList.vue b/src/views/business/resource/gsp/comps/ffjlList.vue
index 4524ff6..379a36d 100644
--- a/src/views/business/resource/gsp/comps/ffjlList.vue
+++ b/src/views/business/resource/gsp/comps/ffjlList.vue
@@ -7,22 +7,22 @@
-
+
-
+
-
-
+
-
+
@@ -33,7 +33,7 @@
-
+
@@ -42,13 +42,13 @@
-
+
-
+
@@ -78,6 +78,14 @@
{{
$t('form.export') }}
+
+
+ {{ $t('page.business.resource.gsp.rkl') }}:{{ rkl }}
+ {{ $t('page.business.resource.gsp.ckl') }}:{{ ckl }}
+ {{ $t('page.business.resource.gsp.syl') }}:{{ syl }}
+
+
+
@@ -195,7 +203,7 @@
diff --git a/src/views/business/resource/gsp/comps/gsp/Ff.vue b/src/views/business/resource/gsp/comps/gsp/Ff.vue
index 7902e68..24c5e6c 100644
--- a/src/views/business/resource/gsp/comps/gsp/Ff.vue
+++ b/src/views/business/resource/gsp/comps/gsp/Ff.vue
@@ -123,7 +123,7 @@
-
+
@@ -222,9 +222,10 @@ import { mapGetters } from 'vuex'
import SelectList from "./SelectList";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import SelectStudy from '@/views/business/comps/select/SelectStudy';
+import BusinessSelect from '@/views/business/comps/select/BusinessSelect';
export default {
name: "Ff",
- components: { SelectList, SelectDeptUser, SelectStudy },
+ components: { SelectList, SelectDeptUser, SelectStudy, BusinessSelect },
data() {
return {
isBatch: false,
diff --git a/src/views/business/resource/gsp/comps/gsp/Xq copy.vue b/src/views/business/resource/gsp/comps/gsp/Xq copy.vue
new file mode 100644
index 0000000..3bb2f68
--- /dev/null
+++ b/src/views/business/resource/gsp/comps/gsp/Xq copy.vue
@@ -0,0 +1,237 @@
+
+
+
+
+
+
+

+
+
+
+ {{ $t('form.cancel') }}
+ {{ $t('form.export') }}
+
+
+

{{ $t('page.business.resource.gyzj.gyzjxq')
+ }}

+
+
+
+
+
{{ $t('page.business.resource.gyzj.jbxx') }}
+
+
+
+
{{ $t('page.business.resource.gyzj.mc') }}
+
+
+
+
{{ $t('page.business.resource.gyzj.bh') }}
+
+
+
+
+
+
{{ $t('page.business.resource.gyzj.nd') }}
+
{{
+ form.nddw }}
+
+
+
+
{{ $t('page.business.resource.gyzj.kcl') }}
+
{{
+ form.kcdw }}
+
+
+
+
+
{{ $t('page.business.resource.gyzj.sxrq') }}
+
+
+
+
{{ $t('page.business.resource.gyzj.cctj') }}
+
+
+
+
+
+
{{ $t('page.business.resource.gyzj.ccwz') }}
+
+
+
+
{{ $t('page.business.resource.gyzj.zjzt') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('page.business.resource.gyzj.bdxx') }}
+
+
+
+
{{ $t('page.business.resource.gyzj.sssy') }}
+
+
+
+
{{ $t('page.business.resource.gyzj.ssbd') }}
+
+
+
+
+
+
{{ $t('page.business.resource.gyzj.bdssr') }}
+
+
+
+
+
+
{{ $t('page.business.resource.gyzj.tz') }}
+
+
+
+
+
+ {{ scope.row.qmrMc }}
+
+
+
+
+ {{ scope.row.lqrMc }}{{ scope.row.ghrMc }}
+
+
+
+
+
+ {{ scope.row.ffrMc }}{{ scope.row.jsrMc }}
+
+
+
+
+
+
+ {{ scope.row.czl }}{{ scope.row.czldw }}
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('page.business.resource.gyzj.jcgj') }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/business/resource/gsp/comps/gsp/Xz.vue b/src/views/business/resource/gsp/comps/gsp/Xz.vue
index 74f4520..8976bf2 100644
--- a/src/views/business/resource/gsp/comps/gsp/Xz.vue
+++ b/src/views/business/resource/gsp/comps/gsp/Xz.vue
@@ -47,7 +47,7 @@
+ dictType="business_zldw,business_tjdw">
@@ -107,7 +107,7 @@
-
+
diff --git a/src/views/business/resource/gsp/comps/gsp/Ysff.vue b/src/views/business/resource/gsp/comps/gsp/Ysff.vue
index e98b6f3..f9e3bf8 100644
--- a/src/views/business/resource/gsp/comps/gsp/Ysff.vue
+++ b/src/views/business/resource/gsp/comps/gsp/Ysff.vue
@@ -4,26 +4,30 @@
-
+
-
-
-
+
+
- {{ scope.row.ckl }}{{ scope.row.ckldw }}
+ {{ scope.row.gg }}{{ scope.row.ggdw }}
-
-
-
-
+
+
+ {{ scope.row.kc }}{{ scope.row.kcdw }}
+
+
-
-
-
+
+
@@ -55,8 +57,7 @@
-
+
@@ -64,13 +65,12 @@
-
+
-
+
@@ -78,13 +78,12 @@
-
+
-
+
@@ -92,14 +91,14 @@
-
+
-
@@ -118,10 +117,10 @@
import { ysff } from "@/api/business/mjy/mjy"
import { mapGetters } from 'vuex'
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
-
+import SelectZcg from '@/views/business/comps/select/SelectZcg';
export default {
name: "Ysff",
- components: {SelectDeptUser},
+ components: { SelectDeptUser, SelectZcg },
data() {
return {
ids: [],
@@ -139,27 +138,27 @@ export default {
message: ' ',
trigger: 'blur'
}],
- lqr2mm:[{
+ lqr2mm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
- lqr1mm:[{
+ lqr1mm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
- lqr1Id:[{
+ lqr1Id: [{
required: true,
message: ' ',
trigger: 'blur'
}],
- lqr2Id:[{
+ lqr2Id: [{
required: true,
message: ' ',
trigger: 'blur'
}],
- ffrmm:[{
+ ffrmm: [{
required: true,
message: ' ',
trigger: 'blur'
diff --git a/src/views/business/resource/gsp/comps/gspList.vue b/src/views/business/resource/gsp/comps/gspList.vue
index 530ff38..8417c4d 100644
--- a/src/views/business/resource/gsp/comps/gspList.vue
+++ b/src/views/business/resource/gsp/comps/gspList.vue
@@ -113,6 +113,7 @@
+
diff --git a/src/views/business/resource/gsp/comps/rkjl/Xz.vue b/src/views/business/resource/gsp/comps/rkjl/Xz.vue
index 75f39f1..545c642 100644
--- a/src/views/business/resource/gsp/comps/rkjl/Xz.vue
+++ b/src/views/business/resource/gsp/comps/rkjl/Xz.vue
@@ -49,7 +49,7 @@
+ dictType="business_zldw,business_tjdw">
diff --git a/src/views/business/resource/gsp/comps/rkjlList.vue b/src/views/business/resource/gsp/comps/rkjlList.vue
index 7d7e69f..ae6feaf 100644
--- a/src/views/business/resource/gsp/comps/rkjlList.vue
+++ b/src/views/business/resource/gsp/comps/rkjlList.vue
@@ -7,22 +7,22 @@
-
+
-
-
-
+
+
-
+
-
+
@@ -33,7 +33,7 @@
-
+
@@ -42,8 +42,8 @@
-
-
+
@@ -82,6 +82,9 @@
{{
$t('form.export') }}
+
+ {{ $t('page.business.resource.gsp.rkl') }}:{{ rkl }}
+
@@ -185,7 +188,7 @@
diff --git a/src/views/business/storageLocation/list.vue b/src/views/business/storageLocation/list.vue
index 672f62f..330fc80 100644
--- a/src/views/business/storageLocation/list.vue
+++ b/src/views/business/storageLocation/list.vue
@@ -114,7 +114,8 @@
-
+
@@ -126,19 +127,21 @@
+
diff --git a/src/views/business/study/comp/tbbd/Jq.vue b/src/views/business/study/comp/tbbd/Jq.vue
index 8e90acd..cb00571 100644
--- a/src/views/business/study/comp/tbbd/Jq.vue
+++ b/src/views/business/study/comp/tbbd/Jq.vue
@@ -3,11 +3,11 @@
-
+
-
+
@@ -36,7 +36,7 @@
-
@@ -85,7 +85,7 @@ export default {
},
computed: {
...mapGetters([
- 'nickName','name'
+ 'nickName', 'name'
]),
},
created() {
@@ -108,6 +108,11 @@ export default {
this.form.id = row.id
this.open = true
},
+ validForm() {
+ this.$refs["form"].validate(valid => {
+ if (valid) { }
+ })
+ },
save() {
this.$refs["form"].validate(valid => {
if (valid) {
diff --git a/src/views/business/study/comp/tbbdList.vue b/src/views/business/study/comp/tbbdList.vue
index fa5355b..b9efeaa 100644
--- a/src/views/business/study/comp/tbbdList.vue
+++ b/src/views/business/study/comp/tbbdList.vue
@@ -1,66 +1,49 @@
-
+
-
-
-
+
+
+ style="width: 150px" />
-
-
+
+ style="width: 150px" />
-
-
+
-
-
-
-
-
- {{ $t('form.search') }}
- {{ $t('form.reset') }}
-
-
-
-
-
-
+ style="width: 150px" />
-
-
-
-
+
-
-
+
-
+
-
-
+
+ {{ $t('form.search') }}
+ {{ $t('form.reset') }}
+
@@ -114,7 +97,7 @@
{{
$t('form.edit') }}
@@ -136,17 +119,21 @@
@click="sy(scope.row)" v-hasPermi="['business:studyFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}
- {{
$t('page.business.study.studyFormFill.fz') }}
{{
$t('page.business.study.studyFormFill.qrfz') }}
-
+
{{
$t('page.business.study.studyFormFill.gc') }}
+
+ {{
+ $t('page.business.study.studyFormFill.blxjsh') }}
@@ -164,6 +151,8 @@
+
+
@@ -192,6 +181,7 @@ import Qrfz from "./tbbd/Qrfz";
import Jq from "./tbbd/Jq";
import Ghgsr from "./tbbd/Ghgsr";
import Gc from "./tbbd/Gc";
+import Blxjsh from "./tbbd/Blxjsh";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import SelectDeptUserDialog from '@/views/business/comps/select/SelectDeptUserDialog';
import { caesarCipher } from "@/utils/index";
@@ -238,6 +228,7 @@ export default {
},
mounted() {
EventBus.$on('onRefreshStudyTbbdList', (data) => {
+ debugger
this.getList()
});
},
@@ -245,7 +236,7 @@ export default {
// 记得移除监听,避免内存泄漏
EventBus.$off('onRefreshStudyTbbdList');
},
- components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
+ components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc,Blxjsh, SelectDeptUser, SelectDeptUserDialog },
data() {
return {
isMatchSubject: false,
@@ -253,6 +244,7 @@ export default {
leader: null,
showFh: false,
showAudit: false,
+ showBlxjsh: false,
showEdit: false,
showDetail: false,
daterangetj: [],
@@ -386,7 +378,7 @@ export default {
getList() {
if (this.daterange != null && this.daterange.length > 0) {
this.searchForm.cjsjks = this.daterange[0]
- this.searchForm.cjsjjs = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.searchForm.cjsjjs = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.searchForm.cjsjks = ''
this.searchForm.cjsjjs = ''
@@ -492,6 +484,11 @@ export default {
this.$emit('showDetail', this.showFh)
this.search()
},
+ blxjshClose() {
+ this.showBlxjsh = false
+ this.$emit('showDetail', this.showBlxjsh)
+ this.search()
+ },
detail(row) {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
@@ -515,6 +512,20 @@ export default {
}).finally(() => {
this.$modal.closeLoading()
})
+ },
+ blxjsh(row) {
+ this.$modal.loading()
+ studyMethod_getReadAllMethodStatus({ userId: this.id, studyId: this.searchForm.studyId, studySubjectId: this.searchForm.studySubjectId }).then(response => {
+ if (response.data.toUrl) {
+ this.toRead(response.data)
+ } else {
+ this.showBlxjsh = true
+ this.$emit('showDetail', this.showBlxjsh)
+ this.$refs.Blxjsh.show(row)
+ }
+ }).finally(() => {
+ this.$modal.closeLoading()
+ })
},
}
}
diff --git a/src/views/business/study/comp/wzlb/bacteriaList.vue b/src/views/business/study/comp/wzlb/bacteriaList.vue
index 9c9a0ae..820a9ea 100644
--- a/src/views/business/study/comp/wzlb/bacteriaList.vue
+++ b/src/views/business/study/comp/wzlb/bacteriaList.vue
@@ -5,22 +5,22 @@
-
+
-
+
-
+
-
+
diff --git a/src/views/business/study/comp/wzlb/cellList.vue b/src/views/business/study/comp/wzlb/cellList.vue
index c4a42aa..e57cad2 100644
--- a/src/views/business/study/comp/wzlb/cellList.vue
+++ b/src/views/business/study/comp/wzlb/cellList.vue
@@ -5,27 +5,27 @@
-
+
-
+
-
+
-
+
-
+
diff --git a/src/views/business/study/comp/wzlb/gspList.vue b/src/views/business/study/comp/wzlb/gspList.vue
index 26662ac..d9663e1 100644
--- a/src/views/business/study/comp/wzlb/gspList.vue
+++ b/src/views/business/study/comp/wzlb/gspList.vue
@@ -5,17 +5,17 @@
-
+
-
+
-
+
@@ -27,7 +27,7 @@
-
+
@@ -59,6 +59,14 @@
+
+
+ {{
+ $t('page.business.resource.resource.cczt.qc') }}
+ {{
+ $t('page.business.resource.resource.cczt.cc') }}
+
+
{{ $t('page.business.resource.resource.zjzt.rk') }}
@@ -74,23 +82,32 @@
{{
+ v-hasPermi="['business:studyGsp:xq', 'business:nonTrialGsp:xq', 'business:drugGsp:xq']">{{
$t('page.business.resource.gsp.detail') }}
-
+
{{
+ v-hasPermi="['business:studyGsp:cz', 'business:nonTrialGsp:cz', 'business:drugGsp:cz']">{{
$t('page.business.resource.gsp.cz') }}
{{
+ v-hasPermi="['business:studyGsp:bj', 'business:nonTrialGsp:bj', 'business:drugGsp:bj']">{{
$t('form.edit') }}
{{
+ v-hasPermi="['business:studyGsp:xgkc', 'business:nonTrialGsp:xgkc', 'business:drugGsp:xgkc']">{{
$t('page.business.resource.gsp.xgkc') }}
+
+
+ {{
+ $t('page.business.resource.gyzj.quchu') }}
+
+ {{
+ $t('page.business.resource.gyzj.cunchu') }}
@@ -105,6 +122,10 @@
+
+
+
+
@@ -117,11 +138,12 @@ import Xq from "@/views/business/resource/gsp/comps/gsp/Xq";
import Bj from "@/views/business/resource/gsp/comps/gsp/Bj";
import Xgkc from "@/views/business/resource/gsp/comps/gsp/Xgkc";
import Cz from "@/views/business/resource/gsp/comps/gsp/Cz";
-import moment from "moment";
+import Cc from "@/views/business/resource/gyzj/comps/gyzj/Cc";
+import Qc from "@/views/business/resource/gyzj/comps/gyzj/Qc";
export default {
name: "GspList",
- components: { Xq, Bj, Xgkc, Cz },
+ components: { Xq, Bj, Xgkc, Cz, Cc, Qc },
data() {
return {
daterange: [],
@@ -197,6 +219,14 @@ export default {
this.$emit('showDetail', this.showDetail)
this.$refs.Xq.show(row)
},
+ //取出
+ handleQc(row) {
+ this.$refs.Qc.show(row)
+ },
+ //存储
+ handleCc(row) {
+ this.$refs.Cc.show(row)
+ },
//获取列表
getList() {
if (this.daterange != null && this.daterange.length > 0) {
diff --git a/src/views/business/study/comp/wzlb/gyzjList.vue b/src/views/business/study/comp/wzlb/gyzjList.vue
index 6a1d69d..da7e287 100644
--- a/src/views/business/study/comp/wzlb/gyzjList.vue
+++ b/src/views/business/study/comp/wzlb/gyzjList.vue
@@ -255,7 +255,7 @@ export default {
getList() {
if (this.daterange != null && this.daterange.length > 0) {
this.queryParams.startDate = this.daterange[0]
- this.queryParams.endDate = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.queryParams.endDate = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.queryParams.startDate = ''
this.queryParams.endDate = ''
diff --git a/src/views/business/study/comp/wzlb/mjyList.vue b/src/views/business/study/comp/wzlb/mjyList.vue
index 414e1a8..b61d488 100644
--- a/src/views/business/study/comp/wzlb/mjyList.vue
+++ b/src/views/business/study/comp/wzlb/mjyList.vue
@@ -233,7 +233,7 @@ export default {
getList() {
if (this.daterange != null && this.daterange.length > 0) {
this.queryParams.startDate = this.daterange[0]
- this.queryParams.endDate = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.queryParams.endDate = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.queryParams.startDate = ''
this.queryParams.endDate = ''
diff --git a/src/views/business/study/comp/wzlb/sjList.vue b/src/views/business/study/comp/wzlb/sjList.vue
index ed45c8f..90893fe 100644
--- a/src/views/business/study/comp/wzlb/sjList.vue
+++ b/src/views/business/study/comp/wzlb/sjList.vue
@@ -5,17 +5,17 @@
-
+
-
+
-
+
@@ -71,21 +71,21 @@
- {{
+ {{
$t('page.business.resource.sj.detail') }}
- {{
+ {{
$t('page.business.resource.sj.cz') }}
- {{
+ {{
$t('form.edit') }}
- {{
+ {{
$t('page.business.resource.sj.xgkc') }}
@@ -168,7 +168,7 @@ export default {
},
methods: {
//处置
- handleCzyj(row) {
+ handleCz(row) {
this.$refs.Cz.show(row)
},
//编辑
diff --git a/src/views/business/study/comp/ytbd/Bj.vue b/src/views/business/study/comp/ytbd/Bj.vue
index b0e5bf6..2f8b5a2 100644
--- a/src/views/business/study/comp/ytbd/Bj.vue
+++ b/src/views/business/study/comp/ytbd/Bj.vue
@@ -65,7 +65,7 @@
-
+
@@ -89,7 +89,7 @@
-
+
{{
$t('page.business.study.studyFormPre.yes')
}}
@@ -204,6 +204,11 @@ export default {
created() {
},
methods: {
+ validFormSubmit() {
+ this.$refs["formSubmit"].validate(valid => {
+ if (valid) { }
+ })
+ },
onPreCallback(data) {
console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
@@ -212,6 +217,7 @@ export default {
{
id: this.form.id,
bdnr: JSON.stringify(this.$refs.templateTable.getFilledFormData()),
+ submittedCodes: data.submittedCodes ? JSON.stringify(data.submittedCodes) : ''
// zdxgjl: JSON.stringify(data.resourceList),
// filedValue: JSON.stringify(data.newRecord)
}
diff --git a/src/views/business/study/comp/ytbd/Sh.vue b/src/views/business/study/comp/ytbd/Sh.vue
index 733058e..fbc33e7 100644
--- a/src/views/business/study/comp/ytbd/Sh.vue
+++ b/src/views/business/study/comp/ytbd/Sh.vue
@@ -67,7 +67,7 @@
-
+
@@ -184,18 +184,25 @@ export default {
this.$emit('close')
this.open = false
},
- reset() {
- this.form = {
+ resetApprove() {
+ this.formApprove = {
id: null,
- studyId: null,
qmyy: null,
remark: null,
qmrmm: null
}
- this.resetForm("form")
+ this.resetForm("formApprove")
+ },
+ resetReject() {
+ this.formReject = {
+ id: null,
+ qmyy: null,
+ remark: null,
+ qmrmm: null
+ }
+ this.resetForm("formReject")
},
show(row) {
- this.reset()
this.$modal.loading()
studyFormPre_info({ id: row.id }).then(response => {
this.form = response.data
@@ -207,6 +214,7 @@ export default {
})
},
showApprove() {
+ this.resetApprove()
this.formApprove.id = this.form.id
this.openApprove = true
},
@@ -226,6 +234,7 @@ export default {
})
},
showReject() {
+ this.resetReject()
this.formReject.id = this.form.id
this.openReject = true
},
diff --git a/src/views/business/study/comp/ytbdList.vue b/src/views/business/study/comp/ytbdList.vue
index 7dd0421..f539ff8 100644
--- a/src/views/business/study/comp/ytbdList.vue
+++ b/src/views/business/study/comp/ytbdList.vue
@@ -2,48 +2,32 @@
-
-
-
+
+ style="width: 150px" />
-
-
+ style="width: 150px" />
-
-
-
-
-
- {{ $t('form.search') }}
- {{ $t('form.reset') }}
-
-
-
-
-
+ style="width: 150px" />
-
-
-
-
+
+ {{ $t('form.search') }}
+ {{ $t('form.reset') }}
+
@@ -430,7 +414,7 @@ export default {
getList() {
if (this.daterange != null && this.daterange.length > 0) {
this.searchForm.startDate = this.daterange[0]
- this.searchForm.endDate = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD');
+ this.searchForm.endDate = moment(this.daterange[1]).add(1, 'days').format('YYYY-MM-DD');
} else {
this.searchForm.startDate = ''
this.searchForm.endDate = ''
diff --git a/src/views/business/study/list.vue b/src/views/business/study/list.vue
index f5619dc..e382394 100644
--- a/src/views/business/study/list.vue
+++ b/src/views/business/study/list.vue
@@ -239,7 +239,16 @@ export default {
},
enter(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'进入试验',jcmcEn:'Enter Study'})
- this.$tab.openPage(" ", '/study/enter/' + row.id+'/ytbd')
+ // this.$tab.openPage(" ", '/study/enter/' + row.id+'/ytbd')
+ let path = '/study/enter/' + row.id+'/ytbd'
+ let index = _.findIndex(this.$store.state.tagsView.visitedViews, (tab) => {
+ return tab.path === path
+ })
+ if (index > -1) {
+ this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]);
+ } else {
+ this.$tab.openPage(" ", path)
+ }
// this.showType = 'enter'
// this.$refs.enter.show(row)
diff --git a/src/views/business/template/list.vue b/src/views/business/template/list.vue
index 972a116..940812d 100644
--- a/src/views/business/template/list.vue
+++ b/src/views/business/template/list.vue
@@ -138,6 +138,15 @@
+
+
+
+
+
+
+
+