diff --git a/src/lang/en/template/dl.js b/src/lang/en/template/dl.js index 4a00053..7e0a10b 100644 --- a/src/lang/en/template/dl.js +++ b/src/lang/en/template/dl.js @@ -213,14 +213,14 @@ export default { czbz: 'Operation Steps', }, dl021: { - xbxx:'细胞信息', czsj:'操作时间', dlbz: '备注', gcqk: '观察情况', - jlzb:'剂量组别', - xybh:'悬液编号', - bplsh1:'玻片流水号', - bplsh2:'玻片流水号', + xbmc:'细胞名称', + xwj:'显微镜', + bpbh:'玻片编号', + gcxps:'观察细胞数目', + zqxxbs:'中期相细胞数', }, } diff --git a/src/lang/zh/template/dl.js b/src/lang/zh/template/dl.js index 1f86396..c2757c6 100644 --- a/src/lang/zh/template/dl.js +++ b/src/lang/zh/template/dl.js @@ -213,11 +213,12 @@ export default { czbz: '操作步骤', }, dl021: { - xbxx:'细胞信息', czsj:'操作时间', dlbz: '备注', gcqk: '观察情况', + xbmc:'细胞名称', + xwj:'显微镜', bpbh:'玻片编号', gcxps:'观察细胞数目', zqxxbs:'中期相细胞数', diff --git a/src/views/business/comps/template/comps/dl/DL017.vue b/src/views/business/comps/template/comps/dl/DL017.vue index 85a0333..8025b07 100644 --- a/src/views/business/comps/template/comps/dl/DL017.vue +++ b/src/views/business/comps/template/comps/dl/DL017.vue @@ -57,7 +57,7 @@ import TableOpertaionDelete from "@/components/Template/operation/TableOpertaion export default { name: "DL017", 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 }, mixins: [templateMixin], @@ -182,26 +182,23 @@ export default { label: "template.dl.dl017.sjqszqk", prop: "sjqszqk", width: 180, - bodyType: "input", + bodyType: "select", bodyFillType: "actFill", - bodyMaxlength: 10, - bodyDisabled: true, + options: this.getDictOptions('business_dl_sjqszqk'), },{ label: "template.dl.dl017.sjqcdqk", prop: "sjqcdqk", width: 180, - bodyType: "input", + bodyType: "select", bodyFillType: "actFill", - bodyMaxlength: 10, - bodyDisabled: true, + options: this.getDictOptions('business_dl_sjqcdqk'), },{ label: "template.dl.dl017.saqqtqk", prop: "saqqtqk", width: 180, - bodyType: "input", + bodyType: "select", bodyFillType: "actFill", - bodyMaxlength: 10, - bodyDisabled: true, + options: this.getDictOptions('business_dl_sjqqtqk'), },{ label: "template.dl.dl017.ddpyy", prop: "ddpyy", diff --git a/src/views/business/comps/template/comps/dl/DL021.vue b/src/views/business/comps/template/comps/dl/DL021.vue index 659bbbf..32dc8ff 100644 --- a/src/views/business/comps/template/comps/dl/DL021.vue +++ b/src/views/business/comps/template/comps/dl/DL021.vue @@ -11,21 +11,29 @@ - - - + +
+ + + + +
+ + @@ -50,6 +58,9 @@ import TableOpertaionDelete from "@/components/Template/operation/TableOpertaion export default { name: "DL021", + dicts: [ + 'business_dl_xbmc' + ], components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete }, mixins: [templateMixin], props: { @@ -112,33 +123,57 @@ export default { } ] }, - // 样本信息 + + // 观察情况 tableColumns() { return [{ label: 'template.dl.dl021.bpbh', - prop: 'cyd', + prop: 'bpbh', bodyType: 'input', bodyFillType: 'actFill', width: 100, bodyMaxlength: 50, },{ label: 'template.dl.dl021.gcxps', - prop: 'cyd', + prop: 'gcxps', bodyType: 'input', bodyFillType: 'actFill', width: 100, - bodyMaxlength: 10, + bodyMaxlength: 50, },{ label: 'template.dl.dl021.zqxxbs', - label: 'template.dl.dl021.gcxps', - prop: 'cyd', + prop: 'zqxxbs', bodyType: 'input', bodyFillType: 'actFill', 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() { return { @@ -148,6 +183,23 @@ export default { mounted() { }, 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下拉框也要更新体积 onHeaderSelectChange(data){ const {key, headerSelectFields,dataSource=[]} = data; @@ -214,32 +266,32 @@ export default { }, //获取已填写的表单数据 getFilledFormData() { - return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"]) + return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef","remarkRef","tableRef"]) }, //获取填写完成的表单数据 async getFormData() { - let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"]); + let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef","remarkRef","tableRef"]); return content; }, getResource() { //使用的试剂、仪器 - const stepResource = this.$refs.stepRef.getStepResource() - this.resourceTmp = stepResource.sjResource || [] - this.yqResourceTmp = stepResource.yqResource || [] + // stepRef不存在,直接返回空数组 + this.resourceTmp = [] + this.yqResourceTmp = [] return this.resourceTmp; }, //保存 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); + } + }, } };