Browse Source

feat: [模板管理]

lkf
memorylkf 1 month ago
parent
commit
5a67f17f02
2 changed files with 52 additions and 26 deletions
  1. +7
    -0
      src/views/business/comps/template/TemplateTable.vue
  2. +45
    -26
      src/views/business/comps/template/comps/sp/SP001.vue

+ 7
- 0
src/views/business/comps/template/TemplateTable.vue View File

@ -73,6 +73,10 @@ import YP002 from "./comps/yp/YP002.vue";
import YP003 from "./comps/yp/YP003.vue"; import YP003 from "./comps/yp/YP003.vue";
import YP005 from "./comps/yp/YP005.vue"; import YP005 from "./comps/yp/YP005.vue";
//
// DL001-SYWZPZJHB
// DL002-使SP001
export default { export default {
name: "TemplateTable", name: "TemplateTable",
components: { components: {
@ -184,6 +188,9 @@ export default {
'YP002': 'YP002', 'YP002': 'YP002',
'YP003': 'YP003', 'YP003': 'YP003',
'YP005': 'YP005', 'YP005': 'YP005',
//
//DL001-SYWZPZJHB
'DL002': 'SP001',
} }
} }
return this.componentMap || "Demo" return this.componentMap || "Demo"

+ 45
- 26
src/views/business/comps/template/comps/sp/SP001.vue View File

@ -53,6 +53,10 @@ export default {
type: String, type: String,
default: 'preFill', default: 'preFill',
}, },
sn: {
type: String,
default: '',
},
}, },
computed: { computed: {
// //
@ -93,35 +97,50 @@ export default {
}, },
// //
baseInfoFormConfig() { baseInfoFormConfig() {
//002
let baseConfig = this.sn=='DL002'?
{
studyMc: {
label: 'template.common.testName',
type: "input",
disabled: true,
},
studySn: {
label: 'template.common.testNumber',
type: "input",
disabled: true,
}
}:
{
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
},
}
return [ return [
{ {
type: "cardItem", 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
},
}
config: baseConfig
}, },
{ {
type: "conditionItem", type: "conditionItem",

Loading…
Cancel
Save