Browse Source

fix:[模板管理]导出

lkf
15881625488@163.com 2 months ago
parent
commit
06ddb1015c
3 changed files with 30 additions and 4 deletions
  1. +3
    -2
      src/components/Template/HandleFormItem.vue
  2. +2
    -2
      src/views/business/comps/template/comps/sp/SP00456.vue
  3. +25
    -0
      src/views/business/comps/template/formConfig/paralleAndLadderConfig.js

+ 3
- 2
src/components/Template/HandleFormItem.vue View File

@ -976,8 +976,9 @@ export default {
cursor: pointer;
width: auto;
// margin-left: 10px;
min-width: 178px;
height: 28px;
// min-width: 178px;
line-height: 28px;
word-break: break-all;
border-radius: 4px;
border: 1px solid #4ea2ff;
display: flex;

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

@ -34,7 +34,7 @@
:ref="`ladderStepFormPackageRef_${ladderIndex}`" :formConfig="ladderStepFormConfig"
:formData="ladderConfig" fieldItemLabel="阶梯配制" :prefixKey="'ladder_' + ladderIndex" />
<CustomTable @blur="(e) => onHandleTableBlur('ladder', ladderIndex, e)"
:ref="`ladderStepTableRef_${ladderIndex}`" :columns="ladderStepColumns"
:ref="`ladderStepTableRef_${ladderIndex}`" :showOperation="fillType === 'actFill'" :columns="ladderStepColumns"
:formData="ladderConfig" :prefixKey="'ladder_' + ladderIndex" fieldItemLabel="阶梯配制">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion @printTag="(e) => printTag(e, 'ladderConfigs', ladderIndex)"
@ -67,7 +67,7 @@
:ref="`paralleStepFormPackageRef_${paralleIndex}`" :formConfig="paralleStepFormConfig"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex" fieldItemLabel="平行配制" />
<CustomTable @blur="(e) => onHandleTableBlur('paralle', paralleIndex, e)"
:ref="`paralleStepTableRef_${paralleIndex}`" :columns="paralleStepColumns"
:ref="`paralleStepTableRef_${paralleIndex}`" :showOperation="fillType === 'actFill'" :columns="paralleStepColumns"
@clickable="(e, tableRowIndex, rowData) => handleTableClickable('paralle', paralleIndex, e, tableRowIndex, rowData)"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex" fieldItemLabel="平行配制">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">

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

@ -9,6 +9,7 @@ export const getLadderColumnsConfig = ($this) => {
bodySubKey: 'subTargetSolutionCode',
bodyFillType: 'preFill',
width: 280,
showWidth: 180,
myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段
maxVolumeField: "actSolutionVolume",//分装的最大量字段
maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段
@ -17,6 +18,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.qsrybh',
prop: 'startSolutionCode',
width: 280,
showWidth: 180,
bodyType: 'input',
bodyFillType: 'actFill',
bodyMaxlength: 10
@ -25,6 +27,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysqsrytj',
prop: 'targetStartSolutionVolume',
width: 280,
showWidth: 180,
headerSelectKey: 'targetStartSolutionVolumeUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
@ -43,6 +46,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjqsrytj',
prop: 'actStartSolutionVolume',
width: 280,
showWidth: 180,
headerSelectKey: 'actStartSolutionVolumeUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
@ -56,6 +60,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysxsytj',
prop: 'targetDiluentVolume',
width: 280,
showWidth: 180,
headerSelectKey: 'targetDiluentVolumeUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
@ -75,6 +80,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjxsytj',
prop: 'actDiluentVolume',
width: 280,
showWidth: 180,
headerSelectKey: 'actDiluentVolumeUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
@ -88,6 +94,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysmbrynd',
prop: 'targetSolutionConcentration',
width: 280,
showWidth: 180,
headerSelectKey: 'targetSolutionConcentrationUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'),
@ -99,6 +106,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjmbrynd',
prop: 'actSolutionConcentration',
width: 280,
showWidth: 180,
headerSelectKey: 'actSolutionConcentrationUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'),
@ -119,6 +127,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysmbrytj',
prop: 'targetSolutionVolume',
width: 280,
showWidth: 180,
headerSelectKey: 'targetSolutionVolumeUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
@ -130,6 +139,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjmbrytj',
prop: 'actSolutionVolume',
width: 280,
showWidth: 180,
headerSelectKey: 'actSolutionVolumeUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
@ -169,12 +179,14 @@ export const getParallelColumnsConfig = ($this) => {
myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段
maxVolumeField: "actSolutionVolume",//分装的最大量字段
maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段
showWidth: 180,
width: 280
},
{
label: 'template.sp.sp00456.ysmbrynd',
prop: 'targetSolutionConcentration',
width: 280,
showWidth: 120,
headerSelectKey: 'targetSolutionConcentrationUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'),
@ -186,6 +198,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjmbrynd',
prop: 'actSolutionConcentration',
width: 280,
showWidth: 120,
headerSelectKey: 'actSolutionConcentrationUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'),
@ -205,6 +218,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysmbrytj',
prop: 'targetSolutionVolume',
width: 280,
showWidth: 120,
headerSelectKey: 'targetSolutionVolumeUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
@ -216,6 +230,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjmbrytj',
prop: 'actSolutionVolume',
width: 280,
showWidth: 120,
headerSelectKey: 'actSolutionVolumeUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
@ -235,6 +250,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.mbryyxzq',
prop: 'targetSolutionCycle',
width: 280,
showWidth: 160,
fillType: 'preFill',
bodyType: 'inputNumber',
bodySubType: 'select',
@ -248,6 +264,7 @@ export const getParallelColumnsConfig = ($this) => {
{
label: 'template.sp.sp00456.mbrysxr',
prop: 'targetSolutionExpirationDate',
showWidth: 120,
width: 180,
bodyType: 'span'
},
@ -255,6 +272,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysysrybh',
prop: 'startSolutionCode',
width: 280,
showWidth: 120,
bodyType: 'input',
bodyFillType: 'preFill'
},
@ -262,6 +280,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjysrybh',
prop: 'actStartSolutionCode',
width: 280,
showWidth: 180,
bodyType: 'clickable',
bodyFillType: 'actFill',
compareTo: 'startSolutionCode', //比较哪个字段
@ -270,6 +289,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysysrynd',
prop: 'targetStartSolutionConcentration',
width: 280,
showWidth: 160,
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodySubType: 'select',
@ -283,6 +303,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjysrynd',
prop: 'targetAcSolution',
width: 280,
showWidth: 120,
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyDisabled: true,
@ -295,6 +316,7 @@ export const getParallelColumnsConfig = ($this) => {
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
width: 280,
showWidth: 120,
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodySubType: 'inputNumber',
@ -316,6 +338,7 @@ export const getParallelColumnsConfig = ($this) => {
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
width: 280,
showWidth: 120,
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10,
@ -330,6 +353,7 @@ export const getParallelColumnsConfig = ($this) => {
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
width: 280,
showWidth: 120,
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodySubType: 'inputNumber',
@ -348,6 +372,7 @@ export const getParallelColumnsConfig = ($this) => {
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'),
width: 280,
showWidth: 120,
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10,

Loading…
Cancel
Save