Browse Source

feat:[模板管理][update]

lkf
luojie 2 months ago
parent
commit
6490919117
29 changed files with 863 additions and 25 deletions
  1. +2
    -2
      src/components/Template/CustomTable.vue
  2. +40
    -2
      src/components/Template/Step.vue
  3. +3
    -1
      src/components/Template/StepComponents/ry/bdtj.vue
  4. +3
    -1
      src/components/Template/StepComponents/ry/bdzl.vue
  5. +4
    -2
      src/components/Template/StepComponents/ry/clcz.vue
  6. +3
    -1
      src/components/Template/StepComponents/ry/clfcz.vue
  7. +99
    -0
      src/components/Template/StepComponents/ry/cs.vue
  8. +1
    -1
      src/components/Template/StepComponents/ry/czdd.vue
  9. +4
    -2
      src/components/Template/StepComponents/ry/czhj.vue
  10. +58
    -0
      src/components/Template/StepComponents/ry/dc.vue
  11. +50
    -0
      src/components/Template/StepComponents/ry/ddhy.vue
  12. +120
    -0
      src/components/Template/StepComponents/ry/hwhy.vue
  13. +82
    -0
      src/components/Template/StepComponents/ry/jb.vue
  14. +100
    -0
      src/components/Template/StepComponents/ry/jrjb.vue
  15. +3
    -1
      src/components/Template/StepComponents/ry/jrry.vue
  16. +11
    -5
      src/components/Template/StepComponents/ry/lx.vue
  17. +1
    -1
      src/components/Template/StepComponents/ry/qywz.vue
  18. +70
    -0
      src/components/Template/StepComponents/ry/sy.vue
  19. +1
    -1
      src/components/Template/StepComponents/ry/tjphcz.vue
  20. +1
    -1
      src/components/Template/StepComponents/ry/tjphfcz.vue
  21. +1
    -1
      src/components/Template/StepComponents/ry/tpjydd.vue
  22. +1
    -1
      src/components/Template/StepComponents/ry/tpjysd.vue
  23. +40
    -0
      src/components/Template/StepComponents/ry/wxhy.vue
  24. +1
    -1
      src/components/Template/StepComponents/ry/xzrq.vue
  25. +3
    -1
      src/components/Template/StepComponents/ry/ym.vue
  26. +40
    -0
      src/components/Template/StepComponents/ry/zy.vue
  27. +106
    -0
      src/components/Template/StepComponents/ry/zyhy.vue
  28. +3
    -0
      src/components/Template/mixins/stepMixins.js
  29. +12
    -0
      src/components/Template/operation/TableOpertaion.vue

+ 2
- 2
src/components/Template/CustomTable.vue View File

@ -226,7 +226,7 @@ export default {
const { stepTableFormData = [], headerSelectFields = {} } = newData;
this.updateDataSource(stepTableFormData);
this.headerSelectFields = JSON.parse(JSON.stringify(headerSelectFields));
console.log(stepTableFormData,"stepTableFormData")
// compareTo
this.checkCompareToOnDataLoad();
}
@ -577,7 +577,7 @@ export default {
options: col.bodySubOptions,
maxlength: col.bodySubMaxlength || 10,
label: "",
placeholder: col.bodySubPlaceholder || "请输入",
placeholder: col.bodySubPlaceholder || (col.bodySubType === 'select' ? '请选择' : '请输入'),
precision: col.subPrecision,
compareTo: col.bodySubCompareTo, // compareTo
type: col.bodySubType || "input",

+ 40
- 2
src/components/Template/Step.vue View File

@ -47,8 +47,16 @@ import Bdzl from './StepComponents/ry/bdzl.vue';//标定(质量)
import Tjphcz from './StepComponents/ry/tjphcz.vue';//PH()
import Tjphfcz from './StepComponents/ry/tjphfcz.vue';//PH()
import Lx from './StepComponents/ry/lx.vue';//
import Hwhy from './StepComponents/ry/hwhy.vue';//-
import Zyhy from './StepComponents/ry/zyhy.vue';//-
import Wxhy from "./StepComponents/ry/wxhy.vue";//-
import Ddhy from "./StepComponents/ry/ddhy.vue";//-
import Ym from "./StepComponents/ry/ym.vue";//-
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 Dc from "./StepComponents/ry/dc.vue";//-
@ -67,6 +75,16 @@ const stepTypes = [
{ 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' },
];
@ -107,6 +125,16 @@ export default {
Tjphcz,
Tjphfcz,
Lx,
Hwhy,
Zyhy,
Wxhy,
Ddhy,
Ym,
Jb,
Jrjb,
Cs,
Sy,
Dc,
},
computed: {
stepComponentMap() {
@ -126,6 +154,16 @@ export default {
'tjphcz': 'Tjphcz',
'tjphfcz': 'Tjphfcz',
'lx': 'Lx',
'hwhy': 'Hwhy',
'zyhy': 'Zyhy',
'wxhy': 'Wxhy',
'ddhy': 'Ddhy',
'ym': 'Ym',
'jb': 'Jb',
'jrjb': 'Jrjb',
'sy': 'Sy',
'cs': 'Cs',
'dc': 'Dc',
}
}
return this.componentMap

+ 3
- 1
src/components/Template/StepComponents/ry/bdtj.vue View File

@ -1,6 +1,6 @@
<!-- 标定(体积) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>
@ -61,6 +61,8 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
sjbdtj:{
type:"inputNumber",
fillType:"actFill",
compareTo:"bdtj",
copyFrom:"bdtj"
},
sjbdtjdw:{
type:"select",

+ 3
- 1
src/components/Template/StepComponents/ry/bdzl.vue View File

@ -1,6 +1,6 @@
<!-- 标定(质量) -->
<template>
<StepFormPackage ref = "stepFormPackageRef" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>
@ -46,6 +46,8 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
sjbdtj:{
type:"inputNumber",
fillType:"actFill",
compareTo:"rm",
copyFrom:"rm"
},
button1:{
type:"button",

+ 4
- 2
src/components/Template/StepComponents/ry/clcz.vue View File

@ -1,6 +1,6 @@
<!-- 称量非传值 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>
@ -50,7 +50,9 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
label:",实际质量为"
},
sjcz:{
type:"span"
type:"span",
compareTo:"wzsul",
copyFrom:"wzsul"
},
}
}]

+ 3
- 1
src/components/Template/StepComponents/ry/clfcz.vue View File

@ -1,6 +1,6 @@
<!-- 称量传值 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>
@ -53,6 +53,8 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
sjcz:{
type:"inputNumber",
fillType:"actFill",
compareTo:"wzsul",
copyFrom:"wzsul"
},
wzsuldw1:{
type:"select",

+ 99
- 0
src/components/Template/StepComponents/ry/cs.vue View File

@ -0,0 +1,99 @@
<!-- 超声 -->
<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",
},
yjpl:{
type:"inputNumber",
fillType:"preFill",
},
text3:{
label:"Hz,实际频率为",
type:"text",
},
sjpl:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjpl",
copyFrom:"yjpl",
},
text4:{
label:"Hz,设置预计时长为",
type:"text",
},
yjsc:{
type:"inputNumber",
fillType:"preFill",
},
yjscdw:{
type:"select",
options: this.getDictOptions("business_tjdw"),
selectTo: "sjscdw",
fillType: "preFill",
},
text5:{
label:",实际时长为",
type:"text",
},
sjsc:{
type:"inputNumber",
fillType:"preFill",
compareTo:"yjsc",
copyFrom:"yjsc",
},
sjscdw:{
type:"select",
options: this.getDictOptions("business_tjdw"),
fillType: "preFill",
},
text6:{
label:",进行",
type:"text",
},
cssr:{
type:"input",
fillType:"preFill",
},
text7:{
label:"超声,超声",
type:"text",
},
button1:{
type:"button",
buttonName:"开始"
}
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

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

@ -1,6 +1,6 @@
<!-- 操作地点 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 4
- 2
src/components/Template/StepComponents/ry/czhj.vue View File

@ -1,6 +1,6 @@
<!-- 操作环境 -->
<template>
<StepFormPackage ref="stepFormPackageRef" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>
@ -46,7 +46,9 @@ export default {
fillType: "actFill",
type: "select",
options: this.getDictOptions('business_czhj'),
otherCode: "sjczhjOther"
otherCode: "sjczhjOther",
compareTo:"ytczhj",
copyFrom:"ytczhj"
},
text4: {
label: "条件下操作下述步骤",

+ 58
- 0
src/components/Template/StepComponents/ry/dc.vue View File

@ -0,0 +1,58 @@
<!-- 氮吹 -->
<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",
},
temp:{
type:"inputNumber",
fillType:"preFill",
},
text3:{
label:"°C,实际温度为",
type:"text",
},
actTemp:{
type:"inputNumber",
fillType:"actFill",
compareTo:"temp",
copyFrom:"temp",
},
text4:{
label:"°C,进行氮吹",
type:"text",
}
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 50
- 0
src/components/Template/StepComponents/ry/ddhy.vue View File

@ -0,0 +1,50 @@
<!-- 颠倒混匀 -->
<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",
},
ddcs1:{
type:"inputNumber",
fillType:"preFill",
},
text2:{
label:"次,实际颠倒",
type:"text",
},
ddcs2:{
type:"inputNumber",
fillType:"actFill",
compareTo:"ddcs1",
copyFrom:"ddcs1"
},
text3:{
label:"次",
type:"text",
}
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 120
- 0
src/components/Template/StepComponents/ry/hwhy.vue View File

@ -0,0 +1,120 @@
<!-- 恒温混匀 -->
<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",
},
yq1:{
type:"instrument",
fillType:"actFill",
},
text2:{
label:"仪器,设置预计温度为",
type:"text",
},
yjzs:{
type:"inputNumber",
fillType:"preFill",
},
text3:{
label:"°C,实际温度为",
type:"text",
},
sjwd:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjzs",
copyFrom:"yjzs"
},
text4:{
label:"°C,设置预计转速为",
type:"text",
},
yjzs2:{
type:"inputNumber",
fillType:"preFill",
},
yjzsdw:{
type:"select",
options:this.getDictOptions("business_zsdw"),
selectTo:"sjzsdw",
fillType:"preFill",
},
text8:{
label:"实际转速为",
type:"text",
},
sjzs:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjzs2",
copyFrom:"yjzs2"
},
sjzsdw:{
type:"select",
options:this.getDictOptions("business_zsdw"),
fillType:"preFill",
},
text7:{
label:",设置预计时长为",
type:"text",
},
yjsc:{
type:"inputNumber",
fillType:"preFill",
},
yjscdw:{
type:"select",
options:this.getDictOptions("business_yqscdw"),
selectTo:"sjscdw",
fillType:"preFill",
},
text5:{
label:",实际时长为",
type:"text",
},
sjsc:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjsc",
copyFrom:"yjsc"
},
sjscdw:{
type:"select",
options:this.getDictOptions("business_yqscdw"),
fillType:"preFill",
},
text6:{
label:",进行恒温混匀,混匀",
type:"text",
},
button1:{
type:"button",
buttonName:"开始"
}
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 82
- 0
src/components/Template/StepComponents/ry/jb.vue View File

@ -0,0 +1,82 @@
<!-- 搅拌 -->
<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",
},
text4:{
label:",设置预计转速为",
type:"text",
},
yjzs2:{
type:"inputNumber",
fillType:"preFill",
},
yjzsdw:{
type:"select",
options: this.getDictOptions("business_zsdw"),
selectTo:"sjzsdw",
fillType:"preFill",
},
text5:{
label:"实际转速为",
type:"text",
},
sjzs:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjzs2",
copyFrom:"yjzs2"
},
sjzsdw:{
type:"select",
options: this.getDictOptions("business_zsdw"),
fillType:"preFill",
},
text6:{
label:"进行搅拌,搅拌",
type:"text",
},
button1:{
type:"button",
buttonName:"开始",
},
text7:{
label:"搅拌",
type:"text",
},
button2:{
type:"button",
buttonName:"结束",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 100
- 0
src/components/Template/StepComponents/ry/jrjb.vue View File

@ -0,0 +1,100 @@
<!-- 加热搅拌 -->
<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",
},
yjwd:{
type:"inputNumber",
fillType:"preFill",
},
text3:{
label:"°C,实际温度为",
type:"text",
},
sjwd:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjwd",
copyFrom:"yjwd"
},
text4:{
label:",设置预计转速为",
type:"text",
},
yjzs2:{
type:"inputNumber",
fillType:"preFill",
},
yjzsdw:{
type:"select",
options: this.getDictOptions("business_zsdw"),
selectTo:"sjzsdw",
fillType:"preFill",
},
text5:{
label:"实际转速为",
type:"text",
},
sjzs:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjzs2",
copyFrom:"yjzs2"
},
sjzsdw:{
type:"select",
options: this.getDictOptions("business_zsdw"),
fillType:"preFill",
},
text6:{
label:"进行搅拌,搅拌",
type:"text",
},
button1:{
type:"button",
buttonName:"开始",
},
text7:{
label:"搅拌",
type:"text",
},
button2:{
type:"button",
buttonName:"结束",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 3
- 1
src/components/Template/StepComponents/ry/jrry.vue View File

@ -1,6 +1,6 @@
<!-- 加入溶液 -->
<template>
<StepFormPackage ref="stepFormPackageRef" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>
@ -61,6 +61,8 @@ export default {
sjsr2:{
fillType: "actFill",
type: "inputNumber",
compareTo:"ytsr1",
copyFrom:"ytsr1"
},
sjsrdw2:{
fillType: "preFill",

+ 11
- 5
src/components/Template/StepComponents/ry/lx.vue View File

@ -1,6 +1,6 @@
<!-- 离心 -->
<template>
<StepFormPackage ref="stepFormPackageRef" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>
@ -39,6 +39,8 @@ export default {
rxry: {
type: "inputNumber",
fillType: "actFill",
compareTo:"rm",
copyFrom:"rm"
},
text4: {
@ -46,14 +48,14 @@ export default {
type: "text",
},
sjjrl: {
type: "input",
fillType: "actFill",
type: "inputNumber",
fillType: "preFill",
},
sjjrldw: {
type: "select",
options: this.getDictOptions("business_zsdw"),
selectTo: "sjzsdw",
fillType: "actFill",
fillType: "preFill",
},
text5: {
@ -63,11 +65,13 @@ export default {
jxry: {
type: "inputNumber",
fillType: "actFill",
compareTo:"sjjrl",
copyFrom:"sjjrl"
},
sjzsdw: {
type: "select",
options: this.getDictOptions("business_zsdw"),
fillType: "actFill",
fillType: "preFill",
},
text6: {
@ -91,6 +95,8 @@ export default {
sjsc: {
type: "inputNumber",
fillType: "actFill",
compareTo:"sjjrl1",
copyFrom:"sjjrl1"
},
sjscdw: {
type: "select",

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

@ -1,6 +1,6 @@
<!-- 取用物质 -->
<template>
<StepFormPackage @onDialogSubmit="onDialogSubmit" ref = "stepFormPackageRef" :form-config="formConfig" :formData = "formData" />
<StepFormPackage @onDialogSubmit="onDialogSubmit" ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>

+ 70
- 0
src/components/Template/StepComponents/ry/sy.vue View File

@ -0,0 +1,70 @@
<!-- 水浴 -->
<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",
},
temp:{
type:"inputNumber",
fillType:"preFill",
},
text3:{
label:"°C,实际温度为",
type:"text",
},
actTemp:{
type:"inputNumber",
fillType:"actFill",
compareTo:"temp",
copyFrom:"temp",
},
text4:{
label:"°C,进行水浴,水浴",
type:"text",
},
button1:{
type:"button",
buttonName:"开始"
},
text5:{
label:"水浴",
type:"text",
},
button2:{
type:"button",
buttonName:"结束"
}
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

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

@ -1,6 +1,6 @@
<!-- 调节PH(传值) -->
<template>
<StepFormPackage ref="stepFormPackageRef" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

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

@ -1,6 +1,6 @@
<!-- 调节PH(非传值) -->
<template>
<StepFormPackage ref="stepFormPackageRef" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

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

@ -1,7 +1,7 @@
<!-- 天平校验(单点) -->
<template>
<StepFormPackage
ref = "stepFormPackageRef"
ref = "stepFormPackageRef" @resetRecord = "resetRecord"
@clickButton="handleClickButton"
:form-config="formConfig" :formData = "formData" />
</template>

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

@ -1,7 +1,7 @@
<!-- 天平校验(双点) -->
<template>
<StepFormPackage
ref = "stepFormPackageRef"
ref = "stepFormPackageRef" @resetRecord = "resetRecord"
@clickButton="handleClickButton"
:form-config="formConfig" :formData = "formData" />
</template>

+ 40
- 0
src/components/Template/StepComponents/ry/wxhy.vue View File

@ -0,0 +1,40 @@
<!-- 涡旋混匀 -->
<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",
},
yq1:{
type:"instrument",
fillType:"actFill",
},
text2:{
label:"仪器,进行涡旋混匀",
type:"text",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

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

@ -1,6 +1,6 @@
<!-- 选择容器 -->
<template>
<StepFormPackage ref="stepFormPackageRef" :form-config="formConfig" :formData="formData" />
<StepFormPackage ref="stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
</template>
<script>

+ 3
- 1
src/components/Template/StepComponents/ry/ym.vue View File

@ -1,6 +1,6 @@
<!-- 研磨 -->
<template>
<StepFormPackage ref = "stepFormPackageRef" :form-config="formConfig" :formData = "formData" />
<StepFormPackage ref = "stepFormPackageRef" @resetRecord = "resetRecord" :form-config="formConfig" :formData = "formData" />
</template>
<script>
@ -69,6 +69,8 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js';
ry3:{
type:"input",
fillType:"actFill",
compareTo:"ry2",
copyFrom:"ry2"
},
sjrytjdw:{
type:"select",

+ 40
- 0
src/components/Template/StepComponents/ry/zy.vue View File

@ -0,0 +1,40 @@
<!-- 正压 -->
<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",
}
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

+ 106
- 0
src/components/Template/StepComponents/ry/zyhy.vue View File

@ -0,0 +1,106 @@
<!-- 振摇混匀 -->
<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:"input",
fillType:"preFill",
},
yq1:{
type:"instrument",
fillType:"actFill",
},
text2:{
label:",设置预计转速",
type:"text",
},
yjzs:{
type:"inputNumber",
fillType:"preFill",
},
yjzsdw:{
type:"select",
options:this.getDictOptions("business_zsdw"),
selectTo:"sjzsdw",
fillType:"preFill",
},
text3:{
label:",实际转速为",
type:"text",
},
sjzs:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjzs",
copyFrom:"yjzs"
},
sjzsdw:{
type:"select",
options:this.getDictOptions("business_zsdw"),
fillType:"preFill",
},
text4:{
label:",预计时长为",
type:"text",
},
yjsc:{
type:"inputNumber",
fillType:"preFill",
},
yjscdw:{
type:"select",
options:this.getDictOptions("business_yqscdw"),
selectTo:"sjscdw",
fillType:"preFill",
},
text5:{
label:",实际时长为",
type:"text",
},
sjsc:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjsc",
copyFrom:"yjsc"
},
sjscdw:{
type:"select",
options:this.getDictOptions("business_yqscdw"),
fillType:"preFill",
},
text6:{
label:",对上表进行混匀,混匀",
type:"text",
},
button1:{
type:"button",
buttonName:"开始"
}
}
}]
}
},
}
</script>
<style lang="scss" scoped>
</style>

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

@ -17,5 +17,8 @@ export default {
getDictOptions(dictType) {
return this.dict.type[dictType] || []
},
resetRecord() {
this.$refs.stepFormPackageRef.resetRecord();
}
},
}

+ 12
- 0
src/components/Template/operation/TableOpertaion.vue View File

@ -76,6 +76,18 @@ export default {
},
//
onConfigComplete() {
// const isComplete = Object.values(this.innerRow).every((val)=>{
// // 0
// if (val === 0) return true;
// if (val === "0") return true;
// // null undefined
// return val != null && val != undefined && val != "";
// });
// if(!isComplete){
// this.$message.error("")
// return
// }
console.log(this.columns,"columns")
this.$emit("configComplete", { rowData: this.innerRow, rowIndex: this.rowIndex, headerSelectFields: this.columns.headerSelectFields })
},
//

Loading…
Cancel
Save