diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index a1c7d57..c107545 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -60,7 +60,7 @@ :on-change="handleChange" :on-exceed="handleExceed" :file-list="fileList" :auto-upload="false"> - 点击上传 + 点击上传 请上传附件
支持扩展名:.rar .zip .doc .docx .pdf .jpg,文件大小不超过2MB
diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue index 565ca48..289339a 100644 --- a/src/views/business/comps/template/TemplateTable.vue +++ b/src/views/business/comps/template/TemplateTable.vue @@ -30,6 +30,7 @@ import SP007 from "./comps/sp/SP007.vue"; //色谱生物样品分析方法学样品制备表-10个类似 import SP008 from "./comps/sp/SP008.vue"; import SP009 from "./comps/sp/SP009.vue"; +import SP0019 from "./comps/sp/SP0019.vue"; import Demo from "./comps/sp/Demo.vue"; //供试品 import GSP002 from "./comps/gsp/GSP002.vue"; @@ -77,7 +78,7 @@ export default { //供试品 GSP002, GSP003, GSP004,GSP009, GSP010, //色谱 - SP001, SP003, SP00456,SP007, SP008, SP009, + SP001, SP003, SP00456,SP007, SP008, SP009,SP0019, // PCR PCR002, PCR003, PCR004, PCR005, //LBA @@ -128,6 +129,7 @@ export default { 'SP016': 'SP008', 'SP017': 'SP008', 'SP018': 'SP008', + 'SP019': 'SP0019', //供试品 'GSP001': 'DMYPPZJLB', diff --git a/src/views/business/comps/template/comps/sp/SP0019.vue b/src/views/business/comps/template/comps/sp/SP0019.vue new file mode 100644 index 0000000..5e59814 --- /dev/null +++ b/src/views/business/comps/template/comps/sp/SP0019.vue @@ -0,0 +1,138 @@ + + + + + \ No newline at end of file diff --git a/src/views/business/comps/template/comps/sp/SP007.vue b/src/views/business/comps/template/comps/sp/SP007.vue index 6f8d673..9270d4e 100644 --- a/src/views/business/comps/template/comps/sp/SP007.vue +++ b/src/views/business/comps/template/comps/sp/SP007.vue @@ -26,7 +26,7 @@ - + diff --git a/src/views/business/comps/template/formConfig/sp/SP0019.js b/src/views/business/comps/template/formConfig/sp/SP0019.js new file mode 100644 index 0000000..a98a0bc --- /dev/null +++ b/src/views/business/comps/template/formConfig/sp/SP0019.js @@ -0,0 +1,128 @@ +export const getBaseInfoFormConfig = ($this) => { + 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: 'preFill', + maxlength: 50 + }, + versionNum: { + label: 'template.common.versionNumber', + type: 'inputNumber', + fillType: 'actFill', + prepend: 'V', + maxlength: 50 + }, + clpbh: { + label: '处理批编号', + type: 'input', + fillType: 'actFill', + maxlength: 50 + }, + fxpbh: { + label: '分析批编号', + type: 'input', + fillType: 'actFill', + maxlength: 50 + }, + } + }, + ] +} + +export const storageFormConfig = [ + { + type: 'step', + config: { + yqmxh: { + label: '色谱柱型号', + type: 'yq', + fillType: 'actFill', + }, + } + }, +] + +//仪器信息 +export const getYqColumns = ($this) => { + return [ + { + label: 'template.common.instrumentName', + prop: "mc", + bodyType: "yq", + bodyFillType: 'actFill', + },//仪器名称 + { + label: 'template.common.instrumentModel', + prop: "xh", + bodyType: "input", + bodyDisabled: true, + bodyFillType: 'actFill', + },//仪器型号 + { + label: 'template.common.instrumentCode', + prop: "bh", + bodyType: "input", + bodyDisabled: true, + bodyFillType: 'actFill', + },//仪器编号 + { + label: 'template.common.nextTestDate', + prop: "jzrq", + bodyType: "input", + bodyDisabled: true, + bodyFillType: 'actFill', + },//下次测试/校准/检定日期 + ] +} + +//溶液 +export const getRyColumns = () => { + return [ + { + label: '溶液类型', + prop: "rylx", + bodyType: "select", + bodyOptions:[ + { + label:'溶液', + value:'溶液' + }, + ], + bodyFillType: 'preFill', + }, + { + label: '溶液名称(编号)', + prop: "rymc", + bodyType: "input", + disabled: true, + bodyFillType: 'actFill', + }, + { + label: '配置日期', + prop: "pzrq", + bodyType: "input", + disabled: true, + bodyFillType: 'actFill', + }, + { + label: '失效日', + prop: "sxr", + bodyType: "input", + bodyFillType: 'actFill', + }, + ] +} diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js index 870f6bf..1955227 100644 --- a/src/views/business/comps/template/mixins/templateMixin.js +++ b/src/views/business/comps/template/mixins/templateMixin.js @@ -328,7 +328,11 @@ export default { this.$store.commit('template/SET_TEMPLATE_DATA', data) }, //统一处理删除行 - deleteRow(index) { + deleteRow(index,ref) { + if(ref){ + this.$refs[ref].deleteRow(index); + return; + } this.$refs.stepTableRef.deleteRow(index) },