Browse Source

feat: [模板管理] YP002待完善

lkf
memorylkf 1 month ago
parent
commit
f6fa90bd5c
6 changed files with 24 additions and 13 deletions
  1. +1
    -0
      src/lang/en/template/yp.js
  2. +1
    -0
      src/lang/zh/template/yp.js
  3. +15
    -11
      src/views/business/comps/template/comps/yp/YP002.vue
  4. +1
    -1
      src/views/business/comps/template/dialog/SelectMixReagentDialog.vue
  5. +4
    -0
      src/views/business/comps/template/formConfig/formConfig.js
  6. +2
    -1
      src/views/business/comps/template/mixins/templateMixin.js

+ 1
- 0
src/lang/en/template/yp.js View File

@ -7,6 +7,7 @@ export default {
qxbd: 'Related Earlier Form', qxbd: 'Related Earlier Form',
xzbd: '请选表单', xzbd: '请选表单',
bdmc: 'Record Name', bdmc: 'Record Name',
bdbh: 'Record ID',
cjr: 'Creator', cjr: 'Creator',
cjsj: 'Creation Date', cjsj: 'Creation Date',
bdzt: 'Status', bdzt: 'Status',

+ 1
- 0
src/lang/zh/template/yp.js View File

@ -7,6 +7,7 @@ export default {
qxbd: '前序表单', qxbd: '前序表单',
xzbd: '请选表单', xzbd: '请选表单',
bdmc: '表单名称', bdmc: '表单名称',
bdbh: '表单编号',
cjr: '创建人', cjr: '创建人',
cjsj: '创建时间', cjsj: '创建时间',
bdzt: '表单状态', bdzt: '表单状态',

+ 15
- 11
src/views/business/comps/template/comps/yp/YP002.vue View File

@ -10,6 +10,8 @@
<BaseInfoFormPackage fieldItemLabel="template.yp.yp002.swypyjjlbxx" label="template.yp.yp002.swypyjjlbxx" <BaseInfoFormPackage fieldItemLabel="template.yp.yp002.swypyjjlbxx" label="template.yp.yp002.swypyjjlbxx"
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData" ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData"
@onRegentSubmit="onRegentSubmit"
@beforeReagentSubmit="beforeReagentSubmit"
/> />
<BaseInfoFormPackage fieldItemLabel="template.yp.yp002.qbjsxx" label="template.yp.yp002.qbjsxx" <BaseInfoFormPackage fieldItemLabel="template.yp.yp002.qbjsxx" label="template.yp.yp002.qbjsxx"
@ -93,11 +95,6 @@ export default {
label: 'template.yp.yp002.qxbd', label: 'template.yp.yp002.qxbd',
type: 'qxbd', type: 'qxbd',
fillType: 'actFill', fillType: 'actFill',
// span:1,
// label: 'template.yp.yp002.jsdd',
// type: 'input',
// fillType: 'actFill',
}, },
} }
}, },
@ -120,14 +117,16 @@ export default {
} }
}, },
{ {
type: "cellItem",
type: "conditionItem",
label: 'template.yp.yp002.jsscftj', label: 'template.yp.yp002.jsscftj',
config: { config: {
jsdd: {
jsscftj: {
label: 'template.yp.yp002.jsscftj', label: 'template.yp.yp002.jsscftj',
type: 'input',
type: 'select',
multiple: true,
fillType: 'actFill', fillType: 'actFill',
maxlength: 200
options: this.getDictOptions('business_cftj'),
otherCode: 'jsscftjOther',
}, },
} }
}, },
@ -135,7 +134,7 @@ export default {
type: "cellItem", type: "cellItem",
label: 'template.yp.yp002.jssj', label: 'template.yp.yp002.jssj',
config: { config: {
jsdd: {
jssj: {
label: 'template.yp.yp002.jssj', label: 'template.yp.yp002.jssj',
type: 'input', type: 'input',
fillType: 'actFill', fillType: 'actFill',
@ -191,7 +190,12 @@ export default {
this.yqResourceTmp = [] this.yqResourceTmp = []
return this.resourceTmp; return this.resourceTmp;
}, },
onRegentSubmit(val,val1,val2){
debugger
},
beforeReagentSubmit(val,val1,val2){
debugger
},
// //
async onSave() { async onSave() {
const formData = this.getStepResource(); const formData = this.getStepResource();

+ 1
- 1
src/views/business/comps/template/dialog/SelectMixReagentDialog.vue View File

@ -177,7 +177,7 @@ export default {
handleSelect(code, row) { handleSelect(code, row) {
this.selectedId = code; this.selectedId = code;
if(this.currentType==15){//idbdmc if(this.currentType==15){//idbdmc
this.selectedId = row.bdmc
this.selectedId = row.bdmc+'('+row.bdbh+')'
} }
this.currentRow = row; this.currentRow = row;
}, },

+ 4
- 0
src/views/business/comps/template/formConfig/formConfig.js View File

@ -206,6 +206,10 @@ export const getQxbdSearchForm = () => {
export const getQxbdColumns = () => { export const getQxbdColumns = () => {
return [ return [
{ {
prop: 'bdbh',
label: 'template.yp.yp002.bdbh'
},
{
prop: 'bdmc', prop: 'bdmc',
label: 'template.yp.yp002.bdmc' label: 'template.yp.yp002.bdmc'
}, },

+ 2
- 1
src/views/business/comps/template/mixins/templateMixin.js View File

@ -30,7 +30,8 @@ export default {
'business_sp_cbydb', //色谱-编号-储备液对比 'business_sp_cbydb', //色谱-编号-储备液对比
'business_pcr_gzy', // PCR-编号-工作液 'business_pcr_gzy', // PCR-编号-工作液
'business_lba_jg' // LBA006-结果
'business_lba_jg', // LBA006-结果
'business_cftj' // 存放条件
], ],
props: { props: {
templateData: { templateData: {

Loading…
Cancel
Save