Browse Source

feat:[模板管理][update]

lkf
luojie 1 month ago
parent
commit
f45f6f472e
3 changed files with 19 additions and 1 deletions
  1. +8
    -1
      src/components/Template/HandleFormItem.vue
  2. +3
    -0
      src/views/business/comps/template/comps/sp/SP00456.vue
  3. +8
    -0
      src/views/business/comps/template/formConfig/paralleAndLadderConfig.js

+ 8
- 1
src/components/Template/HandleFormItem.vue View File

@ -11,7 +11,7 @@
<DecimalInput v-else-if="type === 'inputNumber'" @blur="onCommonHandleSaveRecord"
:maxlength="item.maxlength || 10" class="flex1" :disabled="getDisabled()"
:controls="item.controls || false" :min="item.min || 0" :prepend="item.prepend"
:decimalDigits="item.precision || 6" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')"
:decimalDigits="getDecimalDigits()" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')"
:placeholder="getPlaceholder()" v-model="inputValue" @input="onInputChange" @change="onInputChange" />
<el-select v-else-if="type === 'select'" class="flex1" :multiple="item.multiple"
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" v-model="inputValue"
@ -260,6 +260,13 @@ export default {
EventBus.$off("onMixReagentSubmit", this.onMixReagentSubmit)
},
methods: {
getDecimalDigits(){
const {precision} = this.item;
if(!isNaN(precision)){
return precision
}
return 6
},
onInstrumentSubmit(data) {
if (data.uuid !== this.uuid) return;
this.selectRegentInfo = data;

+ 3
- 0
src/views/business/comps/template/comps/sp/SP00456.vue View File

@ -419,10 +419,13 @@ export default {
//
deleteLadderConfig(index) {
this.formData.ladderConfigs.splice(index, 1);
this.$set(this.formData, 'ladderConfigs', this.formData.ladderConfigs);
},
//
deleteParalleConfig(index) {
debugger
this.formData.paralleConfigs.splice(index, 1);
this.$set(this.formData, 'paralleConfigs', this.formData.paralleConfigs);
},
//
handleAddRow(type, rowIndex, configIndex = 0) {

+ 8
- 0
src/views/business/comps/template/formConfig/paralleAndLadderConfig.js View File

@ -38,6 +38,7 @@ export const getLadderColumnsConfig = ($this) => {
bodySubFillType: 'preFill',
showBodySub: $this.fillType === 'preFill',
bodyPrecisionKey: 'targetStartSolutionVolumePrecision',
subPrecision:0,
bodyMaxlength: 10,
bodyDisabled: true,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
@ -74,6 +75,7 @@ export const getLadderColumnsConfig = ($this) => {
showBodySub: $this.fillType === 'preFill',
bodyPrecisionKey: 'targetDiluentVolumePrecision',
subPrecision:0,
bodyMaxlength: 10,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
headerSelectTo:"actDiluentVolumeUnit",
@ -122,6 +124,7 @@ export const getLadderColumnsConfig = ($this) => {
showBodySub: $this.fillType === 'preFill',
bodyPrecisionKey: 'actSolutionConcentrationPrecision',
subPrecision:0,
bodyMaxlength: 10,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
compareTo: 'targetSolutionConcentration', //比较哪个字段
@ -156,6 +159,7 @@ export const getLadderColumnsConfig = ($this) => {
showBodySub: $this.fillType === 'preFill',
bodyPrecisionKey: 'actSolutionVolumePrecision',
subPrecision:0,
bodyMaxlength: 10,
// copyFrom: 'targetSolutionVolume', //复制哪个字段
bodySubPlaceholder: 'template.common.xswsPlaceholder',
@ -215,6 +219,7 @@ export const getParallelColumnsConfig = ($this) => {
bodySubFillType: 'preFill',
showBodySub: $this.fillType === 'preFill',
bodyPrecisionKey: 'actSolutionConcentrationPrecision',
subPrecision:0,
bodyMaxlength: 10,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
compareTo: 'targetSolutionConcentration', //比较哪个字段
@ -248,6 +253,7 @@ export const getParallelColumnsConfig = ($this) => {
bodySubFillType: 'preFill',
showBodySub: $this.fillType === 'preFill',
bodyPrecisionKey: 'actSolutionVolumePrecision',
subPrecision:0,
bodyMaxlength: 10,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
compareTo: 'targetSolutionVolume', //比较哪个字段
@ -335,6 +341,7 @@ export const getParallelColumnsConfig = ($this) => {
bodySubFillType: 'preFill',
bodyMaxlength: 10,
bodyPrecisionKey: 'targetStartSolutionVolumePrecision',
subPrecision:0,
bodyMaxlength: 10,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
bodyDisabled: true,
@ -373,6 +380,7 @@ export const getParallelColumnsConfig = ($this) => {
bodySubFillType: 'preFill',
bodyMaxlength: 10,
bodyPrecisionKey: 'targetDiluentVolumePrecision',
subPrecision:0,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
bodyDisabled: true,
showBodySub: $this.fillType === 'preFill',

Loading…
Cancel
Save