Browse Source

feat: [模板管理] 非试验下表单不需要方法编号和版本号

luojie
memorylkf 2 weeks ago
parent
commit
45b6c870dd
8 changed files with 144 additions and 34 deletions
  1. +5
    -5
      src/lang/en/template/dj.js
  2. +2
    -3
      src/lang/en/template/xb.js
  3. +5
    -5
      src/lang/zh/template/dj.js
  4. +2
    -3
      src/lang/zh/template/xb.js
  5. +0
    -13
      src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue
  6. +59
    -1
      src/views/business/comps/template/comps/gsp/GSP001.vue
  7. +69
    -2
      src/views/business/comps/template/comps/gsp/GSP002.vue
  8. +2
    -2
      src/views/business/comps/template/comps/sp/SP001.vue

+ 5
- 5
src/lang/en/template/dj.js View File

@ -3,8 +3,8 @@ export default {
dj001: { dj001: {
syts: '试验天数', syts: '试验天数',
fhfw: '复核范围', fhfw: '复核范围',
fhlr: '复核内容',
},
fhlr: '复核内容'
},
//dj002复用dj003 //dj002复用dj003
dj003: { dj003: {
yplx: '样品类型', yplx: '样品类型',
@ -13,7 +13,7 @@ export default {
cyd: '采样点', cyd: '采样点',
ypmc: '样品名称', ypmc: '样品名称',
dwbh: '动物编号', dwbh: '动物编号',
cysj: '采样时间',
cysj: '采样开始时间',
sjbd: '时间比对', sjbd: '时间比对',
sjbd: '时间比对', sjbd: '时间比对',
yps: '样品数', yps: '样品数',
@ -21,6 +21,6 @@ export default {
yjczxx: '移交处置信息', yjczxx: '移交处置信息',
yjsj: '移交时间', yjsj: '移交时间',
hqsj: '获取时间', hqsj: '获取时间',
dsfs: '递送方式',
},
dsfs: '递送方式'
}
} }

+ 2
- 3
src/lang/en/template/xb.js View File

@ -1,7 +1,7 @@
//细胞 //细胞
export default { export default {
xb001: { xb001: {
jcsj: '检测时间',
jcsj: '操作时间',
czbz: 'Operation Workflow', czbz: 'Operation Workflow',
qtbz: '其他步骤', qtbz: '其他步骤',
fj: 'Attachment', fj: 'Attachment',
@ -11,6 +11,5 @@ export default {
ks: 'Start', ks: 'Start',
js: 'End', js: 'End',
fysc: '孵育时长(hr: min)' fysc: '孵育时长(hr: min)'
},
}
} }

+ 5
- 5
src/lang/zh/template/dj.js View File

@ -3,8 +3,8 @@ export default {
dj001: { dj001: {
syts: '试验天数', syts: '试验天数',
fhfw: '复核范围', fhfw: '复核范围',
fhlr: '复核内容',
},
fhlr: '复核内容'
},
//dj002复用dj003 //dj002复用dj003
dj003: { dj003: {
yplx: '样品类型', yplx: '样品类型',
@ -13,7 +13,7 @@ export default {
cyd: '采样点', cyd: '采样点',
ypmc: '样品名称', ypmc: '样品名称',
dwbh: '动物编号', dwbh: '动物编号',
cysj: '采样时间',
cysj: '采样开始时间',
sjbd: '时间比对', sjbd: '时间比对',
sjbd: '时间比对', sjbd: '时间比对',
yps: '样品数', yps: '样品数',
@ -21,6 +21,6 @@ export default {
yjczxx: '移交处置信息', yjczxx: '移交处置信息',
yjsj: '移交时间', yjsj: '移交时间',
hqsj: '获取时间', hqsj: '获取时间',
dsfs: '递送方式',
},
dsfs: '递送方式'
}
} }

+ 2
- 3
src/lang/zh/template/xb.js View File

@ -1,7 +1,7 @@
//细胞 //细胞
export default { export default {
xb001: { xb001: {
jcsj: '检测时间',
jcsj: '操作时间',
czbz: '操作步骤', czbz: '操作步骤',
qtbz: '其他步骤', qtbz: '其他步骤',
fj: '附件', fj: '附件',
@ -11,6 +11,5 @@ export default {
ks: '开始', ks: '开始',
js: '结束', js: '结束',
fysc: '孵育时长(hr: min)' fysc: '孵育时长(hr: min)'
},
}
} }

+ 0
- 13
src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue View File

@ -134,19 +134,6 @@ export default {
type: "input", type: "input",
disabled: true, disabled: true,
}, },
methodCode: {
label: 'template.common.methodCode',
type: "input",
fillType: "preFill",
maxlength: 50
},
versionNum: {
label: 'template.common.versionNumber',
type: "inputNumber",
fillType: "preFill",
prepend: "V",
maxlength: 50
},
} }
}, },

+ 59
- 1
src/views/business/comps/template/comps/gsp/GSP001.vue View File

@ -70,6 +70,10 @@ export default {
type: String, type: String,
default: 'preFill', default: 'preFill',
}, },
sn: {
type: String,
default: '',
},
}, },
provide() { provide() {
return { return {
@ -119,7 +123,61 @@ export default {
}, },
// //
baseInfoFormConfig() { baseInfoFormConfig() {
return [
return this.sn==='GG005'?[
{
type: "cardItem",
config: {
studyMc: {
label: 'template.common.testName',
type: "input",
disabled: true,
},
studySn: {
label: 'template.common.testNumber',
type: "input",
disabled: true,
},
}
},
{
type: "conditionItem",
label: 'template.common.testConfigurationConditions',
config: {
pre: {
label: 'template.common.preFill',
type: "select",
multiple: true,
fillType: "preFill",
options: this.getDictOptions('business_pztj'),
otherCode: "preOther",
},
act: {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
otherCode: "actOther", otherCodeCompareTo: "preOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
}
}
},
{
type: "cellItem",
label: 'template.common.configurationTime',
config: {
startDate: {
label: 'template.common.startTime',
type: "input",
},
endDate: {
label: 'template.common.endTime',
type: "input",
},
}
}
]:[
{ {
type: "cardItem", type: "cardItem",
config: { config: {

+ 69
- 2
src/views/business/comps/template/comps/gsp/GSP002.vue View File

@ -126,7 +126,74 @@ export default {
}, },
// //
baseInfoFormConfig() { baseInfoFormConfig() {
return [
return this.sn==='GG006'?[
{
type: 'cardItem',
config: {
studyMc: {
label: 'template.common.testName',
type: 'input',
disabled: true
},
studySn: {
label: 'template.common.testNumber',
type: 'input',
disabled: true
},
}
},
{
type: 'conditionItem',
label: 'template.common.testConfigurationConditions',
config: {
pre: {
label: 'template.common.preFill',
type: 'select',
multiple: true,
fillType: 'preFill',
options: this.getDictOptions('business_pztj'),
otherCode: 'preOther'
},
act: {
label: 'template.common.actualFill',
type: 'select',
fillType: 'actFill',
otherCode: 'actOther',
multiple: true,
options: this.getDictOptions('business_pztj'),
compareTo: 'pre'
}
}
},
{
type: 'conditionItem',
label: 'template.sp.sp00456.rqcz',
config: {
containerMaterial: {
label: 'template.sp.sp00456.rqcz',
type: 'select',
options: this.getDictOptions('business_rqcz'),
fillType: 'actFill',
multiple: true,
otherCode: 'containerMaterialOther'
}
}
},
{
type: 'cellItem',
label: 'template.common.configurationTime',
config: {
startDate: {
label: 'template.common.startTime',
type: 'input'
},
endDate: {
label: 'template.common.endTime',
type: 'input'
}
}
}
]:[
{ {
type: 'cardItem', type: 'cardItem',
config: { config: {
@ -206,7 +273,7 @@ export default {
} }
} }
} }
];
]
}, },
paralleStepFormConfig() { paralleStepFormConfig() {
return [ return [

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

@ -104,8 +104,8 @@ export default {
}, },
// //
baseInfoFormConfig() { baseInfoFormConfig() {
//002
let baseConfig = this.sn=='DL002'?
//002+GG003+GG004
let baseConfig = this.sn=='DL002' || this.sn=='GG003' || this.sn=='GG004'?
{ {
studyMc: { studyMc: {
label: 'template.common.testName', label: 'template.common.testName',

Loading…
Cancel
Save