Browse Source

feat: [步骤管理] 表配置步骤

ouqian
memorylkf 1 month ago
parent
commit
e0020e50d0
18 changed files with 305 additions and 17 deletions
  1. +38
    -1
      src/components/Template/Step.vue
  2. +43
    -0
      src/components/Template/StepComponents/b/cl.vue
  3. +14
    -1
      src/components/Template/StepComponents/ry/cs.vue
  4. +14
    -1
      src/components/Template/StepComponents/ry/dc.vue
  5. +14
    -1
      src/components/Template/StepComponents/ry/ddhy.vue
  6. +14
    -1
      src/components/Template/StepComponents/ry/fr.vue
  7. +14
    -1
      src/components/Template/StepComponents/ry/fy.vue
  8. +14
    -1
      src/components/Template/StepComponents/ry/glsd.vue
  9. +14
    -1
      src/components/Template/StepComponents/ry/glzd.vue
  10. +14
    -1
      src/components/Template/StepComponents/ry/hwhy.vue
  11. +14
    -1
      src/components/Template/StepComponents/ry/jb.vue
  12. +14
    -1
      src/components/Template/StepComponents/ry/jd.vue
  13. +14
    -1
      src/components/Template/StepComponents/ry/jrjb.vue
  14. +14
    -1
      src/components/Template/StepComponents/ry/jz.vue
  15. +14
    -1
      src/components/Template/StepComponents/ry/sy.vue
  16. +14
    -1
      src/components/Template/StepComponents/ry/wxhy.vue
  17. +14
    -1
      src/components/Template/StepComponents/ry/zy.vue
  18. +14
    -1
      src/components/Template/StepComponents/ry/zyhy.vue

+ 38
- 1
src/components/Template/Step.vue View File

@ -83,7 +83,25 @@ import jr from "./StepComponents/ry/jr.vue";//溶液-加热
// //
import jrry_b from './StepComponents/b/jrry_b.vue';//- import jrry_b from './StepComponents/b/jrry_b.vue';//-
//-使
//-使-
import cl from './StepComponents/b/cl.vue';//-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
import { public_templateStepList } from '@/api/business/public/public'; import { public_templateStepList } from '@/api/business/public/public';
@ -204,6 +222,7 @@ export default {
// //
jrry_b, jrry_b,
cl,
}, },
computed: { computed: {
stepComponentMap() { stepComponentMap() {
@ -260,7 +279,25 @@ export default {
// //
'jrry_b': 'jrry_b', 'jrry_b': 'jrry_b',
'cl': 'cl',
'lx_b': 'lx', 'lx_b': 'lx',
'cs_b': 'cs',
'hwhy_b': 'Hwhy',
'zyhy_b': 'Zyhy',
'wxhy_b': 'Wxhy',
'ddhy_b': 'Ddhy',
'jb_b': 'Jb',
'jrjb_b': 'Jrjb',
'sy_b': 'Sy',
'zy_b': 'Zy',
'dc_b': 'Dc',
'glzd_b': 'Glzd',
'glsd_b': 'Glsd',
'jz_b': 'Jz',
'jd_b': 'Jd',
'fy_b': 'Fy',
'fr_b': 'Fr',
} }
} }
return this.componentMap return this.componentMap

+ 43
- 0
src/components/Template/StepComponents/b/cl.vue View File

@ -0,0 +1,43 @@
<!-- 称量 -->
<template>
<StepFormPackage ref="stepFormPackageRef" prefixKey="ry_cl" @resetRecord="resetRecord" :form-config="formConfig"
:formData="formData" />
</template>
<script>
import StepFormPackage from '@/components/Template/StepFormPackage.vue';
import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default {
mixins: [stepMixins],
components: {
StepFormPackage
},
computed: {
formConfig() {
return [{
config: {
text1: {
label: "使用电子天平",
type: "text",
},
yq: {
type: "yq",
fillType: "actFill",
},
text2: {
label: "仪器,按上表进行称量。",
type: "text",
},
remark: {
type: "input",
fillType: "actFill",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped></style>

+ 14
- 1
src/components/Template/StepComponents/ry/cs.vue View File

@ -10,12 +10,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'cs',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config: { config: {
text1: { text1: {
label: "使用超声波清洗机", label: "使用超声波清洗机",
@ -100,6 +106,13 @@ export default {
} }
}] }]
if(this.sn==='cs_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/dc.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'dc',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"使用氮吹仪", label:"使用氮吹仪",
@ -48,6 +54,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
} }
} }
}] }]
if(this.sn==='dc_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/ddhy.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'ddhy',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"将溶液进行上下颠倒,预计颠倒", label:"将溶液进行上下颠倒,预计颠倒",
@ -40,6 +46,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
} }
} }
}] }]
if(this.sn==='ddhy_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/fr.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'fr',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"使用", label:"使用",
@ -77,6 +83,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
} }
} }
}] }]
if(this.sn==='fr_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/fy.vue View File

@ -10,12 +10,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'fy',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config: { config: {
text1: { text1: {
label: "使用", label: "使用",
@ -84,6 +90,13 @@ export default {
} }
}] }]
if(this.sn==='fy_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/glsd.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'glsd',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text2:{ text2:{
label:"选择", label:"选择",
@ -34,6 +40,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
}, },
} }
}] }]
if(this.sn==='glsd_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/glzd.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'glzd',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"使用隔膜真空泵", label:"使用隔膜真空泵",
@ -42,6 +48,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
}, },
} }
}] }]
if(this.sn==='glzd_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/hwhy.vue View File

@ -10,12 +10,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'hwhy',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config: { config: {
text1: { text1: {
label: "使用恒温混匀仪", label: "使用恒温混匀仪",
@ -125,6 +131,13 @@ export default {
}, },
} }
}] }]
if(this.sn==='hwhy_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/jb.vue View File

@ -10,12 +10,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'jb',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config: { config: {
text1: { text1: {
label: "使用搅拌仪", label: "使用搅拌仪",
@ -87,6 +93,13 @@ export default {
} }
}] }]
if(this.sn==='jb_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/jd.vue View File

@ -10,12 +10,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'jd',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config: { config: {
text1: { text1: {
label: "将", label: "将",
@ -126,6 +132,13 @@ export default {
} }
}] }]
if(this.sn==='jd_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/jrjb.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'jrjb',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"使用搅拌仪", label:"使用搅拌仪",
@ -104,6 +110,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
} }
}] }]
if(this.sn==='jrjb_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/jz.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'jz',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"将", label:"将",
@ -78,6 +84,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
}, },
} }
}] }]
if(this.sn==='jz_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/sy.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'sy',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"使用水浴锅", label:"使用水浴锅",
@ -74,6 +80,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
}, },
} }
}] }]
if(this.sn==='sy_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/wxhy.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'wxhy',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"使用涡旋混匀仪", label:"使用涡旋混匀仪",
@ -30,6 +36,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
}, },
} }
}] }]
if(this.sn==='wxhy_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/zy.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'zy',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"使用正压萃取仪", label:"使用正压萃取仪",
@ -30,6 +36,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
} }
} }
}] }]
if(this.sn==='zy_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

+ 14
- 1
src/components/Template/StepComponents/ry/zyhy.vue View File

@ -9,12 +9,18 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
export default { export default {
mixins: [stepMixins], mixins: [stepMixins],
props: {
sn: {
type: String,
default: 'zyhy',
},
},
components: { components: {
StepFormPackage StepFormPackage
}, },
computed: { computed: {
formConfig() { formConfig() {
return [{
let config = [{
config:{ config:{
text1:{ text1:{
label:"使用", label:"使用",
@ -105,6 +111,13 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
} }
} }
}] }]
if(this.sn==='zyhy_b'){
config[0].config.remark = {
type: "input",
fillType: "actFill",
}
}
return config
} }
}, },
} }

Loading…
Cancel
Save