luojie 1 week ago
parent
commit
ae9993e240
4 changed files with 117 additions and 4 deletions
  1. +3
    -0
      src/components/Template/Step.vue
  2. +91
    -0
      src/components/Template/StepComponents/ry/dr.vue
  3. +7
    -2
      src/views/business/comps/template/dialog/SelectInstrumentDialog.vue
  4. +16
    -2
      src/views/business/comps/template/dialog/SelectMixReagentDialog.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 Fs from "./StepComponents/ry/fs.vue";//-
import Fb from "./StepComponents/ry/fb.vue";//- import Fb from "./StepComponents/ry/fb.vue";//-
import Zlfz from "./StepComponents/ry/zlfz.vue";//- import Zlfz from "./StepComponents/ry/zlfz.vue";//-
import dr from "./StepComponents/ry/dr.vue";//-
// //
import kbyq from "./StepComponents/ry/kbyq.vue";//- import kbyq from "./StepComponents/ry/kbyq.vue";//-
@ -444,6 +445,7 @@ export default {
Fs, Fs,
Fb, Fb,
Zlfz, Zlfz,
dr,
// //
kbyq, kbyq,
kbsjgsp, kbsjgsp,
@ -644,6 +646,7 @@ export default {
'fs': 'Fs', 'fs': 'Fs',
'fb': 'Fb', 'fb': 'Fb',
'zlfz': 'Zlfz', 'zlfz': 'Zlfz',
'dr': 'dr',
// //
'kbyq': 'kbyq', '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>

+ 7
- 2
src/views/business/comps/template/dialog/SelectInstrumentDialog.vue View File

@ -130,11 +130,16 @@ export default {
this.$emit('cancel'); this.$emit('cancel');
}, },
onSubmit() { onSubmit() {
let row = this.currentRow;
let row = this.otherChecked ? {bh: this.otherReagent}:this.currentRow;
const selectedValue = this.otherChecked ? this.otherReagent : this.selectedId; const selectedValue = this.otherChecked ? this.otherReagent : this.selectedId;
this.$emit('submit', selectedValue,row); this.$emit('submit', selectedValue,row);
const selectInfo = this.otherChecked ?{}: {
const selectInfo = this.otherChecked ?{
mc: "",
bh: row.bh,
xh: "",
jzrq: "",
}: {
mc: row.mc, mc: row.mc,
bh: row.bh, bh: row.bh,
xh: row.xh, xh: row.xh,

+ 16
- 2
src/views/business/comps/template/dialog/SelectMixReagentDialog.vue View File

@ -179,9 +179,23 @@ export default {
this.$emit('cancel'); this.$emit('cancel');
}, },
onSubmit() { onSubmit() {
let row = this.currentRow;
let row = this.otherChecked ? {bh: this.otherReagent}:this.currentRow;
const selectedValue = this.otherChecked ? this.otherReagent : this.selectedId; const selectedValue = this.otherChecked ? this.otherReagent : this.selectedId;
const selectInfo = this.otherChecked ?{}:{
const selectInfo = this.otherChecked ?{
mc: "",
bh: row.bh,
nd: "",
ly: "",
nddw: "",
sxrq: "",
yxq: "",
ndz: "",
type: Number(this.selectType),
kc: "",
kcdw: "",
gg: "",
ggdw: "",
}:{
mc: row.mc, mc: row.mc,
bh: row.bh, bh: row.bh,
nd: row.nd, nd: row.nd,

Loading…
Cancel
Save