Browse Source

feat:[模板管理][update]

lkf
luojie 2 months ago
parent
commit
7b95f28ed1
7 changed files with 309 additions and 1 deletions
  1. +3
    -0
      src/components/Template/CustomTable.vue
  2. +17
    -0
      src/components/Template/Step.vue
  3. +44
    -0
      src/components/Template/StepComponents/ry/glsd.vue
  4. +52
    -0
      src/components/Template/StepComponents/ry/glzd.vue
  5. +118
    -0
      src/components/Template/StepComponents/ry/jd.vue
  6. +74
    -0
      src/components/Template/StepComponents/ry/jz.vue
  7. +1
    -1
      src/components/Template/mixins/stepMixins.js

+ 3
- 0
src/components/Template/CustomTable.vue View File

@ -444,6 +444,9 @@ export default {
}, },
// //
onHeaderSelectChange(col, value) { onHeaderSelectChange(col, value) {
if(col.headerSelectTo){
this.headerSelectFields[col.headerSelectTo] = value;
}
this.headerSelectFields[col.headerSelectKey] = value; this.headerSelectFields[col.headerSelectKey] = value;
// //
this.formErrors = this.formErrors.filter(error => this.formErrors = this.formErrors.filter(error =>

+ 17
- 0
src/components/Template/Step.vue View File

@ -57,6 +57,11 @@ import Jrjb from "./StepComponents/ry/jrjb.vue";//溶液-加热搅拌
import Cs from "./StepComponents/ry/cs.vue";//- import Cs from "./StepComponents/ry/cs.vue";//-
import Sy from "./StepComponents/ry/sy.vue";//- import Sy from "./StepComponents/ry/sy.vue";//-
import Dc from "./StepComponents/ry/dc.vue";//- import Dc from "./StepComponents/ry/dc.vue";//-
import Jd from "./StepComponents/ry/jd.vue";//-
import Jz from "./StepComponents/ry/jz.vue";//-
import Glzd from "./StepComponents/ry/glzd.vue";//-()
import Glsd from "./StepComponents/ry/glsd.vue";//-()
@ -85,6 +90,10 @@ const stepTypes = [
{ label: '超声', value: 'cs' }, { label: '超声', value: 'cs' },
{ label: '水浴', value: 'sy' }, { label: '水浴', value: 'sy' },
{ label: '氮吹', value: 'dc' }, { label: '氮吹', value: 'dc' },
{ label: '解冻', value: 'jd' },
{ label: '静置', value: 'jz' },
{ label: '过滤(自动)', value: 'glzd' },
{ label: '过滤(手动)', value: 'glsd' },
]; ];
@ -135,6 +144,10 @@ export default {
Cs, Cs,
Sy, Sy,
Dc, Dc,
Jd,
Jz,
Glzd,
Glsd,
}, },
computed: { computed: {
stepComponentMap() { stepComponentMap() {
@ -164,6 +177,10 @@ export default {
'sy': 'Sy', 'sy': 'Sy',
'cs': 'Cs', 'cs': 'Cs',
'dc': 'Dc', 'dc': 'Dc',
'jd': 'Jd',
'jz': 'Jz',
'glzd': 'Glzd',
'glsd': 'Glsd',
} }
} }
return this.componentMap return this.componentMap

+ 44
- 0
src/components/Template/StepComponents/ry/glsd.vue View File

@ -0,0 +1,44 @@
<!-- 过滤(手动) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @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:{
text2:{
label:"选择",
type:"text",
},
sjsr:{
type:"input",
fillType:"preFill",
},
sj:{
type:"regent",
fillType:"actFill",
},
text3:{
label:"进行过滤",
type:"text",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 52
- 0
src/components/Template/StepComponents/ry/glzd.vue View File

@ -0,0 +1,52 @@
<!-- 过滤(自动) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @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:"instrument",
fillType:"actFill",
},
text2:{
label:"仪器,选择",
type:"text",
},
sjsr:{
type:"input",
fillType:"preFill",
},
sj:{
type:"regent",
fillType:"actFill",
},
text3:{
label:"进行过滤",
type:"text",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 118
- 0
src/components/Template/StepComponents/ry/jd.vue View File

@ -0,0 +1,118 @@
<!-- 解冻 -->
<template>
<StepFormPackage ref="stepFormPackageRef" @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",
},
sjsr: {
type: "input",
fillType: "preFill",
},
sj: {
type: "regent",
fillType: "actFill",
},
text2: {
label: "预计放置于",
type: "text",
},
ccwz: {
type: "select",
options: this.getDictOptions("business_ccwz"),
fillType: "preFill",
otherCode: "ccwzOther",
},
text3: {
label: "实际放置于",
type: "text",
},
sjccwz: {
type: "select",
options: this.getDictOptions("business_ccwz"),
fillType: "actFill",
otherCode: "sjccwzOther",
compareTo: "ccwz",
},
text4: {
label: "位置,其环境条件预计为",
type: "text",
},
yjwd: {
type: "select",
options: this.getDictOptions("business_wddw"),
fillType: "preFill",
otherCode: "yjwdOther",
},
yjhj: {
type: "select",
options: this.getDictOptions("business_hjxx"),
fillType: "preFill",
otherCode: "yjhjOther",
},
text5: {
label: ",实际条件为",
type: "text",
},
sjwd: {
type: "select",
options: this.getDictOptions("business_wddw"),
fillType: "preFill",
otherCode: "sjwdOther",
},
sjhj: {
type: "select",
options: this.getDictOptions("business_hjxx"),
fillType: "preFill",
otherCode: "sjhjOther",
},
text6: {
label: ",放置",
type: "text",
},
sr1:{
type: "input",
fillType: "preFill",
},
text7:{
type:"text",
label:",解冻",
},
button1:{
type:"button",
buttonName:"开始",
},
text8:{
type:"text",
label:",解冻",
},
button2:{
type:"button",
buttonName:"结束",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped></style>

+ 74
- 0
src/components/Template/StepComponents/ry/jz.vue View File

@ -0,0 +1,74 @@
<!-- 静置 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" @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",
},
sjsr:{
type:"input",
fillType:"preFill",
},
sj:{
type:"regent",
fillType:"actFill",
},
text2:{
label:"放置于",
type:"text",
},
wd:{
type:"select",
options: this.getDictOptions("business_wddw"),
fillType:"actFill",
otherCode:"wdOther"
},
text3:{
label:",条件下静置,静置",
type:"text",
},
jzsj:{
type:"input",
fillType:"preFill",
},
text4:{
type:"text",
label:"静置",
},
button1:{
type:"button",
buttonName:"开始",
},
text5:{
type:"text",
label:",静置",
},
button2:{
type:"button",
buttonName:"结束",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 1
- 1
src/components/Template/mixins/stepMixins.js View File

@ -1,5 +1,5 @@
export default { export default {
dicts:["business_tjdw","business_czhj","business_rqcz","business_zldw","business_yqscdw","business_zsdw"],
dicts:["business_tjdw","business_czhj","business_rqcz","business_zldw","business_yqscdw","business_zsdw","business_wddw","business_ccwz"],
props: { props: {
formData: { formData: {
type: Object, type: Object,

Loading…
Cancel
Save