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; cursor: pointer;
width: auto; width: auto;
// margin-left: 10px; // margin-left: 10px;
min-width: 178px;
height: 28px;
// min-width: 178px;
line-height: 28px;
word-break: break-all;
border-radius: 4px; border-radius: 4px;
border: 1px solid #4ea2ff; border: 1px solid #4ea2ff;
display: flex; display: flex;

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

@ -34,7 +34,7 @@
:ref="`ladderStepFormPackageRef_${ladderIndex}`" :formConfig="ladderStepFormConfig" :ref="`ladderStepFormPackageRef_${ladderIndex}`" :formConfig="ladderStepFormConfig"
:formData="ladderConfig" fieldItemLabel="阶梯配制" :prefixKey="'ladder_' + ladderIndex" /> :formData="ladderConfig" fieldItemLabel="阶梯配制" :prefixKey="'ladder_' + ladderIndex" />
<CustomTable @blur="(e) => onHandleTableBlur('ladder', ladderIndex, e)" <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="阶梯配制"> :formData="ladderConfig" :prefixKey="'ladder_' + ladderIndex" fieldItemLabel="阶梯配制">
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion @printTag="(e) => printTag(e, 'ladderConfigs', ladderIndex)" <TableOpertaion @printTag="(e) => printTag(e, 'ladderConfigs', ladderIndex)"
@ -67,7 +67,7 @@
:ref="`paralleStepFormPackageRef_${paralleIndex}`" :formConfig="paralleStepFormConfig" :ref="`paralleStepFormPackageRef_${paralleIndex}`" :formConfig="paralleStepFormConfig"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex" fieldItemLabel="平行配制" /> :formData="paralleConfig" :prefixKey="'paralle' + paralleIndex" fieldItemLabel="平行配制" />
<CustomTable @blur="(e) => onHandleTableBlur('paralle', paralleIndex, e)" <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)" @clickable="(e, tableRowIndex, rowData) => handleTableClickable('paralle', paralleIndex, e, tableRowIndex, rowData)"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex" fieldItemLabel="平行配制"> :formData="paralleConfig" :prefixKey="'paralle' + paralleIndex" fieldItemLabel="平行配制">
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <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', bodySubKey: 'subTargetSolutionCode',
bodyFillType: 'preFill', bodyFillType: 'preFill',
width: 280, width: 280,
showWidth: 180,
myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段 myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段
maxVolumeField: "actSolutionVolume",//分装的最大量字段 maxVolumeField: "actSolutionVolume",//分装的最大量字段
maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段 maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段
@ -17,6 +18,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.qsrybh', label: 'template.sp.sp00456.qsrybh',
prop: 'startSolutionCode', prop: 'startSolutionCode',
width: 280, width: 280,
showWidth: 180,
bodyType: 'input', bodyType: 'input',
bodyFillType: 'actFill', bodyFillType: 'actFill',
bodyMaxlength: 10 bodyMaxlength: 10
@ -25,6 +27,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysqsrytj', label: 'template.sp.sp00456.ysqsrytj',
prop: 'targetStartSolutionVolume', prop: 'targetStartSolutionVolume',
width: 280, width: 280,
showWidth: 180,
headerSelectKey: 'targetStartSolutionVolumeUnit', headerSelectKey: 'targetStartSolutionVolumeUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
@ -43,6 +46,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjqsrytj', label: 'template.sp.sp00456.sjqsrytj',
prop: 'actStartSolutionVolume', prop: 'actStartSolutionVolume',
width: 280, width: 280,
showWidth: 180,
headerSelectKey: 'actStartSolutionVolumeUnit', headerSelectKey: 'actStartSolutionVolumeUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
@ -56,6 +60,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysxsytj', label: 'template.sp.sp00456.ysxsytj',
prop: 'targetDiluentVolume', prop: 'targetDiluentVolume',
width: 280, width: 280,
showWidth: 180,
headerSelectKey: 'targetDiluentVolumeUnit', headerSelectKey: 'targetDiluentVolumeUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
@ -75,6 +80,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjxsytj', label: 'template.sp.sp00456.sjxsytj',
prop: 'actDiluentVolume', prop: 'actDiluentVolume',
width: 280, width: 280,
showWidth: 180,
headerSelectKey: 'actDiluentVolumeUnit', headerSelectKey: 'actDiluentVolumeUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
@ -88,6 +94,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysmbrynd', label: 'template.sp.sp00456.ysmbrynd',
prop: 'targetSolutionConcentration', prop: 'targetSolutionConcentration',
width: 280, width: 280,
showWidth: 180,
headerSelectKey: 'targetSolutionConcentrationUnit', headerSelectKey: 'targetSolutionConcentrationUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'), headerOptions: $this.getDictOptions('business_nddw'),
@ -99,6 +106,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjmbrynd', label: 'template.sp.sp00456.sjmbrynd',
prop: 'actSolutionConcentration', prop: 'actSolutionConcentration',
width: 280, width: 280,
showWidth: 180,
headerSelectKey: 'actSolutionConcentrationUnit', headerSelectKey: 'actSolutionConcentrationUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'), headerOptions: $this.getDictOptions('business_nddw'),
@ -119,6 +127,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysmbrytj', label: 'template.sp.sp00456.ysmbrytj',
prop: 'targetSolutionVolume', prop: 'targetSolutionVolume',
width: 280, width: 280,
showWidth: 180,
headerSelectKey: 'targetSolutionVolumeUnit', headerSelectKey: 'targetSolutionVolumeUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
@ -130,6 +139,7 @@ export const getLadderColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjmbrytj', label: 'template.sp.sp00456.sjmbrytj',
prop: 'actSolutionVolume', prop: 'actSolutionVolume',
width: 280, width: 280,
showWidth: 180,
headerSelectKey: 'actSolutionVolumeUnit', headerSelectKey: 'actSolutionVolumeUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
@ -169,12 +179,14 @@ export const getParallelColumnsConfig = ($this) => {
myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段 myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段
maxVolumeField: "actSolutionVolume",//分装的最大量字段 maxVolumeField: "actSolutionVolume",//分装的最大量字段
maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段 maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段
showWidth: 180,
width: 280 width: 280
}, },
{ {
label: 'template.sp.sp00456.ysmbrynd', label: 'template.sp.sp00456.ysmbrynd',
prop: 'targetSolutionConcentration', prop: 'targetSolutionConcentration',
width: 280, width: 280,
showWidth: 120,
headerSelectKey: 'targetSolutionConcentrationUnit', headerSelectKey: 'targetSolutionConcentrationUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'), headerOptions: $this.getDictOptions('business_nddw'),
@ -186,6 +198,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjmbrynd', label: 'template.sp.sp00456.sjmbrynd',
prop: 'actSolutionConcentration', prop: 'actSolutionConcentration',
width: 280, width: 280,
showWidth: 120,
headerSelectKey: 'actSolutionConcentrationUnit', headerSelectKey: 'actSolutionConcentrationUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'), headerOptions: $this.getDictOptions('business_nddw'),
@ -205,6 +218,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysmbrytj', label: 'template.sp.sp00456.ysmbrytj',
prop: 'targetSolutionVolume', prop: 'targetSolutionVolume',
width: 280, width: 280,
showWidth: 120,
headerSelectKey: 'targetSolutionVolumeUnit', headerSelectKey: 'targetSolutionVolumeUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
@ -216,6 +230,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjmbrytj', label: 'template.sp.sp00456.sjmbrytj',
prop: 'actSolutionVolume', prop: 'actSolutionVolume',
width: 280, width: 280,
showWidth: 120,
headerSelectKey: 'actSolutionVolumeUnit', headerSelectKey: 'actSolutionVolumeUnit',
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
@ -235,6 +250,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.mbryyxzq', label: 'template.sp.sp00456.mbryyxzq',
prop: 'targetSolutionCycle', prop: 'targetSolutionCycle',
width: 280, width: 280,
showWidth: 160,
fillType: 'preFill', fillType: 'preFill',
bodyType: 'inputNumber', bodyType: 'inputNumber',
bodySubType: 'select', bodySubType: 'select',
@ -248,6 +264,7 @@ export const getParallelColumnsConfig = ($this) => {
{ {
label: 'template.sp.sp00456.mbrysxr', label: 'template.sp.sp00456.mbrysxr',
prop: 'targetSolutionExpirationDate', prop: 'targetSolutionExpirationDate',
showWidth: 120,
width: 180, width: 180,
bodyType: 'span' bodyType: 'span'
}, },
@ -255,6 +272,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysysrybh', label: 'template.sp.sp00456.ysysrybh',
prop: 'startSolutionCode', prop: 'startSolutionCode',
width: 280, width: 280,
showWidth: 120,
bodyType: 'input', bodyType: 'input',
bodyFillType: 'preFill' bodyFillType: 'preFill'
}, },
@ -262,6 +280,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjysrybh', label: 'template.sp.sp00456.sjysrybh',
prop: 'actStartSolutionCode', prop: 'actStartSolutionCode',
width: 280, width: 280,
showWidth: 180,
bodyType: 'clickable', bodyType: 'clickable',
bodyFillType: 'actFill', bodyFillType: 'actFill',
compareTo: 'startSolutionCode', //比较哪个字段 compareTo: 'startSolutionCode', //比较哪个字段
@ -270,6 +289,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.ysysrynd', label: 'template.sp.sp00456.ysysrynd',
prop: 'targetStartSolutionConcentration', prop: 'targetStartSolutionConcentration',
width: 280, width: 280,
showWidth: 160,
bodyType: 'inputNumber', bodyType: 'inputNumber',
bodyFillType: 'preFill', bodyFillType: 'preFill',
bodySubType: 'select', bodySubType: 'select',
@ -283,6 +303,7 @@ export const getParallelColumnsConfig = ($this) => {
label: 'template.sp.sp00456.sjysrynd', label: 'template.sp.sp00456.sjysrynd',
prop: 'targetAcSolution', prop: 'targetAcSolution',
width: 280, width: 280,
showWidth: 120,
bodyType: 'inputNumber', bodyType: 'inputNumber',
bodyFillType: 'actFill', bodyFillType: 'actFill',
bodyDisabled: true, bodyDisabled: true,
@ -295,6 +316,7 @@ export const getParallelColumnsConfig = ($this) => {
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
width: 280, width: 280,
showWidth: 120,
bodyType: 'inputNumber', bodyType: 'inputNumber',
bodyFillType: 'preFill', bodyFillType: 'preFill',
bodySubType: 'inputNumber', bodySubType: 'inputNumber',
@ -316,6 +338,7 @@ export const getParallelColumnsConfig = ($this) => {
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
width: 280, width: 280,
showWidth: 120,
bodyType: 'inputNumber', bodyType: 'inputNumber',
bodyFillType: 'actFill', bodyFillType: 'actFill',
bodyMaxlength: 10, bodyMaxlength: 10,
@ -330,6 +353,7 @@ export const getParallelColumnsConfig = ($this) => {
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
width: 280, width: 280,
showWidth: 120,
bodyType: 'inputNumber', bodyType: 'inputNumber',
bodyFillType: 'preFill', bodyFillType: 'preFill',
bodySubType: 'inputNumber', bodySubType: 'inputNumber',
@ -348,6 +372,7 @@ export const getParallelColumnsConfig = ($this) => {
fillType: 'preFill', fillType: 'preFill',
headerOptions: $this.getDictOptions('business_tjdw'), headerOptions: $this.getDictOptions('business_tjdw'),
width: 280, width: 280,
showWidth: 120,
bodyType: 'inputNumber', bodyType: 'inputNumber',
bodyFillType: 'actFill', bodyFillType: 'actFill',
bodyMaxlength: 10, bodyMaxlength: 10,

Loading…
Cancel
Save