Browse Source

feat: [步骤管理] 增加定容步骤

luojie
memorylkf 1 week ago
parent
commit
08d4a42013
2 changed files with 94 additions and 0 deletions
  1. +3
    -0
      src/components/Template/Step.vue
  2. +91
    -0
      src/components/Template/StepComponents/ry/dr.vue

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

@ -75,6 +75,7 @@ import Mj from "./StepComponents/ry/mj.vue";//溶液-灭菌
import Fs from "./StepComponents/ry/fs.vue";//-
import Fb from "./StepComponents/ry/fb.vue";//-
import Zlfz from "./StepComponents/ry/zlfz.vue";//-
import dr from "./StepComponents/ry/dr.vue";//-
//
import kbyq from "./StepComponents/ry/kbyq.vue";//-
@ -444,6 +445,7 @@ export default {
Fs,
Fb,
Zlfz,
dr,
//
kbyq,
kbsjgsp,
@ -644,6 +646,7 @@ export default {
'fs': 'Fs',
'fb': 'Fb',
'zlfz': 'Zlfz',
'dr': 'dr',
//
'kbyq': 'kbyq',

+ 91
- 0
src/components/Template/StepComponents/ry/dr.vue View File

@ -0,0 +1,91 @@
<!-- 定容 -->
<template>
<StepFormPackage :fieldItemLabel = "fieldItemLabel" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'ry_dr'" @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],
props: {
sn: {
type: String,
default: 'dr',
},
},
components: {
StepFormPackage
},
computed: {
formConfig() {
return [{
config: {
text1: {
label: "使用",
type: "text",
},
yqmc: {
fillType: "preFill",
type: "input",
},
yyq: {
fillType: "actFill",
type: "yq",
},
text3: {
label: ",取",
type: "text",
},
mry: {
fillType: "preFill",
type: "input",
},
sjry:{
fillType: "actFill",
type: "sj",
ylCode: "sjtj",
dwCode: "sjtjdw",
},
text4:{
label: ",预计定容至",
type: "text",
},
yjtj:{
fillType: "preFill",
type: "inputNumber",
},
yjtjdw:{
fillType: "preFill",
type: "select",
selectTo: "sjtjdw",
options:this.getDictOptions('business_tjdw'),
},
text5:{
label: ",实际定容至",
type: "text",
},
sjtj:{
fillType: "actFill",
type: "inputNumber",
compareTo:"yjtj",
copyFrom:"yjtj"
},
sjtjdw:{
fillType: "preFill",
type: "select",
options: this.getDictOptions('business_tjdw'),
},
text6:{
label: "。",
type: "text",
},
}
}]
}
},
}
</script>
<style lang="scss" scoped></style>

Loading…
Cancel
Save