From d4c8d1edf768cf0593f66f14bab46ad44f3a17ef Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Thu, 16 Apr 2026 17:16:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20SP019=E5=88=A0=E9=99=A4=E5=8E=BB=E6=8E=89=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=E5=92=8C=E7=89=88=E6=9C=AC=E5=8F=B7=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=20=E7=A6=85=E9=81=937719?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../comps/template/formConfig/sp/SP0019.js | 112 +++++++++++++-------- 1 file changed, 71 insertions(+), 41 deletions(-) diff --git a/src/views/business/comps/template/formConfig/sp/SP0019.js b/src/views/business/comps/template/formConfig/sp/SP0019.js index ac2a221..70f1719 100644 --- a/src/views/business/comps/template/formConfig/sp/SP0019.js +++ b/src/views/business/comps/template/formConfig/sp/SP0019.js @@ -1,46 +1,76 @@ export const getBaseInfoFormConfig = (formType) => { - return [ - { - type: 'cardItem', - config: { - studyMc: { - label: 'template.common.testName', - type: 'input', - disabled: true - }, - studySn: { - label: 'template.common.testNumber', - type: 'input', - disabled: true - }, - methodCode: { - label: 'template.common.methodCode', - type: 'input', - fillType: formType === 'sp0020' ? 'actFill' : 'preFill', - maxlength: 50 - }, - versionNum: { - label: 'template.common.versionNumber', - type: 'inputNumber', - fillType: formType === 'sp0020' ? 'actFill' : 'preFill', - prepend: 'V', - maxlength: 50 - }, - clpbh: { - label: '处理批编号', - type: 'input', - fillType: 'actFill', - maxlength: 50 - }, - fxpbh: { - label: '分析批编号', - type: 'input', - fillType: 'actFill', - maxlength: 50 + return formType === 'sp0019' + ? [ + { + type: 'cardItem', + config: { + studyMc: { + label: 'template.common.testName', + type: 'input', + disabled: true + }, + studySn: { + label: 'template.common.testNumber', + type: 'input', + disabled: true + }, + clpbh: { + label: '处理批编号', + type: 'input', + fillType: 'actFill', + maxlength: 50 + }, + fxpbh: { + label: '分析批编号', + type: 'input', + fillType: 'actFill', + maxlength: 50 + } + } } - } - } - ] + ] + : [ + { + type: 'cardItem', + config: { + studyMc: { + label: 'template.common.testName', + type: 'input', + disabled: true + }, + studySn: { + label: 'template.common.testNumber', + type: 'input', + disabled: true + }, + methodCode: { + label: 'template.common.methodCode', + type: 'input', + fillType: formType === 'sp0020' ? 'actFill' : 'preFill', + maxlength: 50 + }, + versionNum: { + label: 'template.common.versionNumber', + type: 'inputNumber', + fillType: formType === 'sp0020' ? 'actFill' : 'preFill', + prepend: 'V', + maxlength: 50 + }, + clpbh: { + label: '处理批编号', + type: 'input', + fillType: 'actFill', + maxlength: 50 + }, + fxpbh: { + label: '分析批编号', + type: 'input', + fillType: 'actFill', + maxlength: 50 + } + } + } + ] } export const getStorageFormConfig = ($this) => {