Browse Source

feat: [选择器] 选择其他也返回1个bh

luojie
memorylkf 1 week ago
parent
commit
13a3e9076d
2 changed files with 23 additions and 4 deletions
  1. +7
    -2
      src/views/business/comps/template/dialog/SelectInstrumentDialog.vue
  2. +16
    -2
      src/views/business/comps/template/dialog/SelectMixReagentDialog.vue

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

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

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

@ -179,9 +179,23 @@ export default {
this.$emit('cancel');
},
onSubmit() {
let row = this.currentRow;
let row = this.otherChecked ? {bh: this.otherReagent}:this.currentRow;
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,
bh: row.bh,
nd: row.nd,

Loading…
Cancel
Save