diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue
index 7ebe2d8..45edc07 100644
--- a/src/components/Template/HandleFormItem.vue
+++ b/src/components/Template/HandleFormItem.vue
@@ -16,7 +16,7 @@
+ @visible-change="onSelectBlur" @change="onInputChange" filterable>
diff --git a/src/components/Template/Step.vue b/src/components/Template/Step.vue
index b378158..fcaac4e 100644
--- a/src/components/Template/Step.vue
+++ b/src/components/Template/Step.vue
@@ -56,6 +56,7 @@ import Jb from "./StepComponents/ry/jb.vue";//溶液-搅拌
import Jrjb from "./StepComponents/ry/jrjb.vue";//溶液-加热搅拌
import Cs from "./StepComponents/ry/cs.vue";//溶液-超声
import Sy from "./StepComponents/ry/sy.vue";//溶液-水浴
+import Zy from "./StepComponents/ry/zy.vue";//溶液-正压
import Dc from "./StepComponents/ry/dc.vue";//溶液-氮吹
import Jd from "./StepComponents/ry/jd.vue";//溶液-解冻
import Jz from "./StepComponents/ry/jz.vue";//溶液-静置
@@ -73,53 +74,63 @@ import Fs from "./StepComponents/ry/fs.vue";//溶液-复苏
import Fb from "./StepComponents/ry/fb.vue";//溶液-封板
import Zlfz from "./StepComponents/ry/zlfz.vue";//溶液-质量分装
-
-
-const stepTypes = [
- { label: '操作地点', value: 'czdd' },
- { label: '操作方法', value: 'czhj' },
- { label: '选择容器', value: 'xzrq' },
- { label: '加入溶液', value: 'jrry' },
- { label: '天平校验(单点)', value: 'tpjydd' },
- { label: '天平校验(双点)', value: 'tpjysd' },
- { label: '取用物质', value: 'qywz' },
- { label: '称量(非传值)', value: 'clfcz' },
- { label: '称量(传值)', value: 'clcz' },
- { label: '标定(体积)', value: 'bdtj' },
- { label: '标定(质量)', value: 'bdzl' },
- { label: '调节PH(传值)', value: 'tjphcz' },
- { label: '调节PH(非传值)', value: 'tjphfcz' },
- { label: '离心', value: 'lx' },
- { label: '恒温混匀', value: 'hwhy' },
- { label: '振摇混匀', value: 'zyhy' },
- { label: '涡旋混匀', value: 'wxhy' },
- { label: '颠倒混匀', value: 'ddhy' },
- { label: '研磨', value: 'ym' },
- { label: '搅拌', value: 'jb' },
- { label: '加热搅拌', value: 'jrjb' },
- { label: '超声', value: 'cs' },
- { label: '水浴', value: 'sy' },
- { label: '氮吹', value: 'dc' },
- { label: '解冻', value: 'jd' },
- { label: '静置', value: 'jz' },
- { label: '过滤(自动)', value: 'glzd' },
- { label: '过滤(手动)', value: 'glsd' },
- { label: '孵育', value: 'fy' },
- { label: '取出原药', value: 'qcyy' },
- { label: '复溶(多容器)', value: 'frdrq' },
- { label: '复溶', value: 'fr' },
- { label: '合并', value: 'hb' },
- { label: '染色', value: 'rs' },
- { label: '计数', value: 'js' },
- { label: '灭菌', value: 'mj' },
- { label: '复苏', value: 'fs' },
- { label: '封板', value: 'fb' },
- // { label: '质量分装', value: 'zlfz' },
+//罗开凡新增
+import kbyq from "./StepComponents/ry/kbyq.vue";//溶液-空白仪器
+import kbsjgsp from "./StepComponents/ry/kbsjgsp.vue";//溶液-空白(试剂/供试品)
+import kb from "./StepComponents/ry/kb.vue";//溶液-空白
+import jr from "./StepComponents/ry/jr.vue";//溶液-加热
+//罗开凡新增
+
+
+import { public_templateStepList } from '@/api/business/public/public';
+
+
+// const stepTypes = [
+// { label: '操作地点', value: 'czdd' },
+// { label: '操作方法', value: 'czhj' },
+// { label: '选择容器', value: 'xzrq' },
+// { label: '加入溶液', value: 'jrry' },
+// { label: '天平校验(单点)', value: 'tpjydd' },
+// { label: '天平校验(双点)', value: 'tpjysd' },
+// { label: '取用物质', value: 'qywz' },
+// { label: '称量(非传值)', value: 'clfcz' },
+// { label: '称量(传值)', value: 'clcz' },
+// { label: '标定(体积)', value: 'bdtj' },
+// { label: '标定(质量)', value: 'bdzl' },
+// { label: '调节PH(传值)', value: 'tjphcz' },
+// { label: '调节PH(非传值)', value: 'tjphfcz' },
+// { label: '离心', value: 'lx' },
+// { label: '恒温混匀', value: 'hwhy' },
+// { label: '振摇混匀', value: 'zyhy' },
+// { label: '涡旋混匀', value: 'wxhy' },
+// { label: '颠倒混匀', value: 'ddhy' },
+// { label: '研磨', value: 'ym' },
+// { label: '搅拌', value: 'jb' },
+// { label: '加热搅拌', value: 'jrjb' },
+// { label: '超声', value: 'cs' },
+// { label: '水浴', value: 'sy' },
+// { label: '正压', value: 'zy' },
+// { label: '氮吹', value: 'dc' },
+// { label: '解冻', value: 'jd' },
+// { label: '静置', value: 'jz' },
+// { label: '过滤(自动)', value: 'glzd' },
+// { label: '过滤(手动)', value: 'glsd' },
+// { label: '孵育', value: 'fy' },
+// { label: '取出原药', value: 'qcyy' },
+// { label: '复溶(多容器)', value: 'frdrq' },
+// { label: '复溶', value: 'fr' },
+// { label: '合并', value: 'hb' },
+// { label: '染色', value: 'rs' },
+// { label: '计数', value: 'js' },
+// { label: '灭菌', value: 'mj' },
+// { label: '复苏', value: 'fs' },
+// { label: '封板', value: 'fb' },
+// { label: '质量分装', value: 'zlfz' },
-];
+// ];
export default {
- inject: ['templateFillType'],
+ inject: ['templateFillType','templateData'],
name: 'Step',
props: {
formData: {
@@ -130,7 +141,7 @@ export default {
data() {
return {
stepSelectConfig: {
- options: stepTypes,
+ options: [],
fillType: "preFill",
placeholder: "请选择步骤类型"
},
@@ -164,6 +175,7 @@ export default {
Jrjb,
Cs,
Sy,
+ Zy,
Dc,
Jd,
Jz,
@@ -180,6 +192,12 @@ export default {
Fs,
Fb,
Zlfz,
+ //罗开凡新增
+ kbyq,
+ kbsjgsp,
+ kb,
+ jr
+ //罗开凡新增
},
computed: {
stepComponentMap() {
@@ -207,6 +225,7 @@ export default {
'jb': 'Jb',
'jrjb': 'Jrjb',
'sy': 'Sy',
+ 'zy': 'Zy',
'cs': 'Cs',
'dc': 'Dc',
'jd': 'Jd',
@@ -224,6 +243,14 @@ export default {
'fs': 'Fs',
'fb': 'Fb',
'zlfz': 'Zlfz',
+
+ //罗开凡新增
+ 'kbyq': 'kbyq',
+ 'kbsjgsp': 'kbsjgsp',
+ 'kb': 'kb',
+ 'jr': 'jr',
+ // 'fz': 'fz',
+ //罗开凡新增
}
}
return this.componentMap
@@ -242,6 +269,7 @@ export default {
// // 默认添加一个步骤
// this.addStep()
// }
+ this.getStepList()
},
watch: {
// steps: {
@@ -263,6 +291,17 @@ export default {
}
},
methods: {
+ getStepList(){
+ debugger
+ public_templateStepList({templateId:this.templateData.templateId}).then(response => {
+ let options = []
+ _.forEach(response.data,(item)=>{
+ options.push({ label: item.name, value: item.sn })
+ })
+ debugger
+ this.stepSelectConfig.options = options
+ });
+ },
isShowAddStep() {
return this.templateFillType === 'preFill';
},
diff --git a/src/components/Template/StepComponents/ry/jr.vue b/src/components/Template/StepComponents/ry/jr.vue
new file mode 100644
index 0000000..5cdb4c9
--- /dev/null
+++ b/src/components/Template/StepComponents/ry/jr.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Template/StepComponents/ry/kb.vue b/src/components/Template/StepComponents/ry/kb.vue
new file mode 100644
index 0000000..a1545c9
--- /dev/null
+++ b/src/components/Template/StepComponents/ry/kb.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Template/StepComponents/ry/kbsjgsp.vue b/src/components/Template/StepComponents/ry/kbsjgsp.vue
new file mode 100644
index 0000000..4f938e5
--- /dev/null
+++ b/src/components/Template/StepComponents/ry/kbsjgsp.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Template/StepComponents/ry/kbyq.vue b/src/components/Template/StepComponents/ry/kbyq.vue
new file mode 100644
index 0000000..40f25ff
--- /dev/null
+++ b/src/components/Template/StepComponents/ry/kbyq.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/business/template/list.vue b/src/views/business/template/list.vue
index 80ab658..5b017a6 100644
--- a/src/views/business/template/list.vue
+++ b/src/views/business/template/list.vue
@@ -317,6 +317,7 @@ export default {
this.tableDialog.title = '表单配置'
this.tableDialog.sn = row.sn
this.tableDialog.templateData.bdmc =this.$i18n.locale === 'zh_CN'? row.name:row.nameEn
+ this.tableDialog.templateData.templateId = row.id
this.tableDialog.visible = true
},
getList() {