Browse Source

feat:[模板管理]DL021-待完善

ouqian
lslaiwy 1 month ago
parent
commit
83a516d94d
4 changed files with 102 additions and 52 deletions
  1. +5
    -5
      src/lang/en/template/dl.js
  2. +2
    -1
      src/lang/zh/template/dl.js
  3. +7
    -10
      src/views/business/comps/template/comps/dl/DL017.vue
  4. +88
    -36
      src/views/business/comps/template/comps/dl/DL021.vue

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

@ -213,14 +213,14 @@ export default {
czbz: 'Operation Steps', czbz: 'Operation Steps',
}, },
dl021: { dl021: {
xbxx:'细胞信息',
czsj:'操作时间', czsj:'操作时间',
dlbz: '备注', dlbz: '备注',
gcqk: '观察情况', gcqk: '观察情况',
jlzb:'剂量组别',
xybh:'悬液编号',
bplsh1:'玻片流水号',
bplsh2:'玻片流水号',
xbmc:'细胞名称',
xwj:'显微镜',
bpbh:'玻片编号',
gcxps:'观察细胞数目',
zqxxbs:'中期相细胞数',
}, },
} }

+ 2
- 1
src/lang/zh/template/dl.js View File

@ -213,11 +213,12 @@ export default {
czbz: '操作步骤', czbz: '操作步骤',
}, },
dl021: { dl021: {
xbxx:'细胞信息',
czsj:'操作时间', czsj:'操作时间',
dlbz: '备注', dlbz: '备注',
gcqk: '观察情况', gcqk: '观察情况',
xbmc:'细胞名称',
xwj:'显微镜',
bpbh:'玻片编号', bpbh:'玻片编号',
gcxps:'观察细胞数目', gcxps:'观察细胞数目',
zqxxbs:'中期相细胞数', zqxxbs:'中期相细胞数',

+ 7
- 10
src/views/business/comps/template/comps/dl/DL017.vue View File

@ -57,7 +57,7 @@ import TableOpertaionDelete from "@/components/Template/operation/TableOpertaion
export default { export default {
name: "DL017", name: "DL017",
dicts: [ dicts: [
'business_dl_qsxjbltj','business_tjdw'
'business_dl_qsxjbltj','business_tjdw','business_dl_sjqszqk','business_dl_sjqcdqk','business_dl_sjqqtqk'
], ],
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete }, components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete },
mixins: [templateMixin], mixins: [templateMixin],
@ -182,26 +182,23 @@ export default {
label: "template.dl.dl017.sjqszqk", label: "template.dl.dl017.sjqszqk",
prop: "sjqszqk", prop: "sjqszqk",
width: 180, width: 180,
bodyType: "input",
bodyType: "select",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
options: this.getDictOptions('business_dl_sjqszqk'),
},{ },{
label: "template.dl.dl017.sjqcdqk", label: "template.dl.dl017.sjqcdqk",
prop: "sjqcdqk", prop: "sjqcdqk",
width: 180, width: 180,
bodyType: "input",
bodyType: "select",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
options: this.getDictOptions('business_dl_sjqcdqk'),
},{ },{
label: "template.dl.dl017.saqqtqk", label: "template.dl.dl017.saqqtqk",
prop: "saqqtqk", prop: "saqqtqk",
width: 180, width: 180,
bodyType: "input",
bodyType: "select",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
options: this.getDictOptions('business_dl_sjqqtqk'),
},{ },{
label: "template.dl.dl017.ddpyy", label: "template.dl.dl017.ddpyy",
prop: "ddpyy", prop: "ddpyy",

+ 88
- 36
src/views/business/comps/template/comps/dl/DL021.vue View File

@ -11,21 +11,29 @@
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" /> <TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<LineLabel label="template.dl.dl021.gcqk" /> <LineLabel label="template.dl.dl021.gcqk" />
<CustomTable
:ref="`tableRef`"
:columns="tableColumns"
:formData="formData"
operationWidth = "80px"
:prefixKey = "`table`"
fieldItemLabel = "template.dl.dl021.gcqk"
@clickButton="handleClickButton"
@onCheckboxTagChange="onCheckboxTagChange"
:showOperation="fillType === 'preFill'"
>
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete>
</template>
</CustomTable>
<!-- 观察情况 -->
<div class="template-form-item">
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps"
@onRegentSubmit="onRegentSubmit"
:formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<CustomTable
:ref="`tableRef`"
:columns="tableColumns"
:formData="formData"
operationWidth = "80px"
:prefixKey = "`table`"
fieldItemLabel = "template.dl.dl021.gcqk"
:showAddRow="fillType === 'preFill'"
:showOperation="fillType === 'preFill'"
>
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete>
</template>
</CustomTable>
</div>
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark" <BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark"
ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
@ -50,6 +58,9 @@ import TableOpertaionDelete from "@/components/Template/operation/TableOpertaion
export default { export default {
name: "DL021", name: "DL021",
dicts: [
'business_dl_xbmc'
],
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete }, components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete },
mixins: [templateMixin], mixins: [templateMixin],
props: { props: {
@ -112,33 +123,57 @@ export default {
} }
] ]
}, },
//
//
tableColumns() { tableColumns() {
return [{ return [{
label: 'template.dl.dl021.bpbh', label: 'template.dl.dl021.bpbh',
prop: 'cyd',
prop: 'bpbh',
bodyType: 'input', bodyType: 'input',
bodyFillType: 'actFill', bodyFillType: 'actFill',
width: 100, width: 100,
bodyMaxlength: 50, bodyMaxlength: 50,
},{ },{
label: 'template.dl.dl021.gcxps', label: 'template.dl.dl021.gcxps',
prop: 'cyd',
prop: 'gcxps',
bodyType: 'input', bodyType: 'input',
bodyFillType: 'actFill', bodyFillType: 'actFill',
width: 100, width: 100,
bodyMaxlength: 10,
bodyMaxlength: 50,
},{ },{
label: 'template.dl.dl021.zqxxbs', label: 'template.dl.dl021.zqxxbs',
label: 'template.dl.dl021.gcxps',
prop: 'cyd',
prop: 'zqxxbs',
bodyType: 'input', bodyType: 'input',
bodyFillType: 'actFill', bodyFillType: 'actFill',
width: 80, width: 80,
bodyMaxlength: 10,
bodyMaxlength: 50,
}] }]
}, },
//
stepFormConfig() {
return [
{
type: "step",
config: {
xbmc: {
label: 'template.dl.dl021.xbmc',
type: 'select',
fillType: 'actFill',
options: this.getDictOptions('business_dl_xbmc'),
otherCode: 'xbmcOther',
showOtherLabel:false
},
xwj: {
// span:1,
label: 'template.dl.dl021.xwj',
type: 'qxbd',
fillType: 'actFill',
filledCodes:['bdmc','bdbh'],
},
}
}
]
},
}, },
data() { data() {
return { return {
@ -148,6 +183,23 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
//
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('选择显微镜预留===',row)
// if (key === 'yqbh' && this.$refs.yqsyTableRef) {
// const params = {
// yqmc: row.mc,
// yqxh: row.xh,
// xccsjzjdrq: row.jzrq
// }
// this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params)
// }
},
onFormSelect(fields){
this.onHandleBlur(fields)
},
//table header //table header
onHeaderSelectChange(data){ onHeaderSelectChange(data){
const {key, headerSelectFields,dataSource=[]} = data; const {key, headerSelectFields,dataSource=[]} = data;
@ -214,32 +266,32 @@ export default {
}, },
// //
getFilledFormData() { getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"])
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef","remarkRef","tableRef"])
}, },
// //
async getFormData() { async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"]);
let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef","remarkRef","tableRef"]);
return content; return content;
}, },
getResource() { getResource() {
//使 //使
const stepResource = this.$refs.stepRef.getStepResource()
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
// stepRef
this.resourceTmp = []
this.yqResourceTmp = []
return this.resourceTmp; return this.resourceTmp;
}, },
// //
async onSave() { async onSave() {
let content = await this.$refs.stepRef.getFormData();
console.log(content);
// stepRef
console.log({});
}, },
// //
// deleteRow(rowIndex) {
// const tableRef = this.$refs['tableRef'];
// if (tableRef) {
// tableRef.deleteRow(rowIndex);
// }
// },
deleteRow(rowIndex) {
const tableRef = this.$refs['tableRef'];
if (tableRef) {
tableRef.deleteRow(rowIndex);
}
},
} }
}; };
</script> </script>

Loading…
Cancel
Save