Browse Source

fix:[模板管理]DL024新增,DL016-DL021对比检查

ouqian
lslaiwy 1 month ago
parent
commit
958f4fc089
7 changed files with 159 additions and 98 deletions
  1. +14
    -0
      src/lang/en/template/dl.js
  2. +14
    -0
      src/lang/zh/template/dl.js
  3. +11
    -10
      src/views/business/comps/template/comps/dl/DL016.vue
  4. +11
    -9
      src/views/business/comps/template/comps/dl/DL017.vue
  5. +28
    -15
      src/views/business/comps/template/comps/dl/DL018.vue
  6. +17
    -5
      src/views/business/comps/template/comps/dl/DL019.vue
  7. +64
    -59
      src/views/business/comps/template/comps/dl/DL024.vue

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

@ -211,6 +211,8 @@ export default {
xybh:'悬液编号', xybh:'悬液编号',
rsks:'染色开始', rsks:'染色开始',
rsjs:'染色结束', rsjs:'染色结束',
ksButton:'开始',
jsButton:'结束',
zs:'左上(个)', zs:'左上(个)',
ys:'右上(个)', ys:'右上(个)',
zy:'左下(个)', zy:'左下(个)',
@ -291,4 +293,16 @@ export default {
ksButton:'开始', ksButton:'开始',
jsButton:'结束', jsButton:'结束',
}, },
dl024: {
sydd:'实验地点',
czsj:'操作时间',
dlbz: '备注',
xbpyxx: '细胞培养信息',
qxbd:'前序表单',
pykssj:'培养开始时间',
pyjssj:'培养结束时间',
jsButton:'培养结束时间',
xbbh:'细胞编号',
},
} }

+ 14
- 0
src/lang/zh/template/dl.js View File

@ -212,6 +212,8 @@ export default {
xybh:'悬液编号', xybh:'悬液编号',
rsks:'染色开始', rsks:'染色开始',
rsjs:'染色结束', rsjs:'染色结束',
ksButton:'开始',
jsButton:'结束',
zs:'左上(个)', zs:'左上(个)',
ys:'右上(个)', ys:'右上(个)',
zy:'左下(个)', zy:'左下(个)',
@ -291,4 +293,16 @@ export default {
ksButton:'开始', ksButton:'开始',
jsButton:'结束', jsButton:'结束',
}, },
dl024: {
sydd:'实验地点',
czsj:'操作时间',
dlbz: '备注',
xbpyxx: '细胞培养信息',
qxbd:'前序表单',
pykssj:'培养开始时间',
pyjssj:'培养结束时间',
jsButton:'培养结束时间',
xbbh:'细胞编号',
},
} }

+ 11
- 10
src/views/business/comps/template/comps/dl/DL016.vue View File

@ -21,7 +21,7 @@
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit" @beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
:showAddRow="false" :showOperation="false" :showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData">
ref="qcxjjyqkTableRef" :columns="stepColumns" :formData="formData">
</CustomTable> </CustomTable>
<LineLabel label="template.dl.dl016.czbz" /> <LineLabel label="template.dl.dl016.czbz" />
@ -160,6 +160,7 @@ export default {
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
width: 180, width: 180,
disabled:true
}, },
{ {
label: "template.dl.dl016.xybh", label: "template.dl.dl016.xybh",
@ -168,7 +169,7 @@ export default {
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10, bodyMaxlength: 10,
// bodyDisabled: true,
disabled:true
}, },
{ {
label: "template.dl.dl016.qsxjjrl", label: "template.dl.dl016.qsxjjrl",
@ -193,14 +194,14 @@ export default {
onRegentSubmit(e) { onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e const { selectInfo, key, rowIndex } = e
const { row } = selectInfo const { row } = selectInfo
if (key === 'yqbh') {
console.log('selectInfo==============',selectInfo)
if (key === 'qxbd') {
const params = { const params = {
yqmc: row.mc,
yqxh: row.xh,
xccsjzjdrq: row.jzrq
jlzb: row.mc,
xybh: row.xh,
xccsjzjdrq: ''
} }
// this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params)
this.$refs.qcxjjyqkTableRef.updateDataSourceByRowIndex(rowIndex, params)
} }
}, },
//table header //table header
@ -269,11 +270,11 @@ export default {
}, },
// //
getFilledFormData() { getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"])
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "qcxjjyqkTableRef", "stepRef","remarkRef"])
}, },
// //
async getFormData() { async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"]);
let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef", "qcxjjyqkTableRef", "stepRef","remarkRef"]);
return content; return content;
}, },
getResource() { getResource() {

+ 11
- 9
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_sjqszqk','business_dl_sjqcdqk','business_dl_sjqqtqk'
'business_dl_qsxjbltj','business_tjdw','business_dl_sjqszqk','business_dl_sjqcdqk','business_dl_sjqqtqk','business_dl_xbmc'
], ],
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete }, components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete },
mixins: [templateMixin], mixins: [templateMixin],
@ -111,8 +111,11 @@ export default {
config: { config: {
sydd: { sydd: {
label: 'template.dl.dl017.sydd', label: 'template.dl.dl017.sydd',
type: "input",
fillType: "actFill",
type: 'select',
fillType: 'actFill',
options: this.getDictOptions('business_dl_xbmc'),
otherCode: 'xbmcOther',
showOtherLabel:false
}, },
} }
}, },
@ -158,7 +161,7 @@ export default {
} }
] ]
}, },
//
//
stepColumns() { stepColumns() {
return [ return [
{ {
@ -278,14 +281,13 @@ export default {
onRegentSubmit(e) { onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e const { selectInfo, key, rowIndex } = e
const { row } = selectInfo const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') { if (key === 'yqbh') {
const params = { const params = {
yqmc: row.mc,
yqxh: row.xh,
xccsjzjdrq: row.jzrq
jlzb: row.mc,
xybh: row.xh,
} }
// this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params)
this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params)
} }
}, },
//table header //table header

+ 28
- 15
src/views/business/comps/template/comps/dl/DL018.vue View File

@ -19,7 +19,7 @@
<CustomTable <CustomTable
@headerSelectChange="onHeaderSelectChange" @headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
:showAddRow="false" :showOperation="false" :showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData"> ref="stepTableRef" :columns="stepColumns" :formData="formData">
<!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }"> <!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -167,7 +167,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
disabled: true,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -176,7 +176,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
disabled: true,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -185,8 +185,11 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
disabled: true,
subType: 'button',
subKey: 'rsks',
buttonName: 'template.dl.dl018.ksButton',
}, },
{ {
label: "template.dl.dl018.rsjs", label: "template.dl.dl018.rsjs",
@ -194,52 +197,50 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
disabled: true,
subType: 'button',
subKey: 'rsjs',
buttonName: 'template.dl.dl018.jsButton',
}, },
{ {
label: "template.dl.dl018.zs", label: "template.dl.dl018.zs",
prop: "zs", prop: "zs",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
label: "template.dl.dl018.ys", label: "template.dl.dl018.ys",
prop: "ys", prop: "ys",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
label: "template.dl.dl018.zy", label: "template.dl.dl018.zy",
prop: "zy", prop: "zy",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
label: "template.dl.dl018.yx", label: "template.dl.dl018.yx",
prop: "yx", prop: "yx",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
label: "template.dl.dl018.tj", label: "template.dl.dl018.tj",
prop: "tj", prop: "tj",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
} }
] ]
@ -253,6 +254,18 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') {
const params = {
jlzb: row.mc,
xybh: row.xh,
}
this.$refs.stepTableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
//table header //table header
onHeaderSelectChange(data){ onHeaderSelectChange(data){
const {key, headerSelectFields,dataSource=[]} = data; const {key, headerSelectFields,dataSource=[]} = data;

+ 17
- 5
src/views/business/comps/template/comps/dl/DL019.vue View File

@ -19,7 +19,7 @@
<CustomTable <CustomTable
@headerSelectChange="onHeaderSelectChange" @headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
:showAddRow="false" :showOperation="false" :showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData"> ref="stepTableRef" :columns="stepColumns" :formData="formData">
<!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }"> <!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -167,7 +167,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
disabled: true,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -176,7 +176,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
disabled: true,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -185,7 +185,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyMaxlength: 50,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -194,7 +194,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyMaxlength: 50,
bodyDisabled: true, bodyDisabled: true,
} }
] ]
@ -208,6 +208,18 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') {
const params = {
jlzb: row.mc,
xybh: row.xh,
}
this.$refs.stepTableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
//table header //table header
onHeaderSelectChange(data){ onHeaderSelectChange(data){
const {key, headerSelectFields,dataSource=[]} = data; const {key, headerSelectFields,dataSource=[]} = data;

+ 64
- 59
src/views/business/comps/template/comps/dl/DL024.vue View File

@ -8,33 +8,30 @@
<div class="content"> <div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" <BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" /> ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<!-- 仪器使用信息 -->
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<LineLabel label="template.dl.dl021.gcqk" />
<!-- 观察情况 -->
<LineLabel label="template.dl.dl024.xbpyxx" />
<!-- 操作记录 -->
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps"
@onRegentSubmit="onRegentSubmit"
:formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<CustomTable
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps"
:formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<CustomTable
:ref="`tableRef`" :ref="`tableRef`"
:columns="tableColumns" :columns="tableColumns"
:formData="formData" :formData="formData"
operationWidth = "80px" operationWidth = "80px"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.dl.dl021.gcqk"
:showAddRow="fillType === 'actFill'"
:showOperation="fillType === 'actFill'"
fieldItemLabel = "template.dl.dl024.gcqk"
:showAddRow="false"
:showOperation="false"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete> <TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete>
</template> </template>
</CustomTable> </CustomTable>
</div>
</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" />
</div> </div>
@ -57,7 +54,7 @@ import { debounce } from 'lodash-es'
import TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue" import TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue"
export default { export default {
name: "DL024",
name: "dl024",
dicts: [ dicts: [
'business_dl_xbmc' 'business_dl_xbmc'
], ],
@ -106,10 +103,23 @@ export default {
disabled: true, disabled: true,
}, },
} }
},{
type: "cellItem",
label: 'template.dl.dl024.sydd',
config: {
sydd: {
label: 'template.dl.dl024.sydd',
type: 'select',
fillType: 'actFill',
options: this.getDictOptions('business_dl_xbmc'),
otherCode: 'xbmcOther',
showOtherLabel:false
},
}
}, },
{
{
type: "cellItem", type: "cellItem",
label: 'template.dl.dl021.czsj',
label: 'template.dl.dl024.czsj',
config: { config: {
startDate: { startDate: {
label: 'template.common.startTime', label: 'template.common.startTime',
@ -124,55 +134,50 @@ export default {
] ]
}, },
//
tableColumns() {
return [{
label: 'template.dl.dl021.bpbh',
prop: 'bpbh',
bodyType: 'input',
bodyFillType: 'actFill',
width: 100,
bodyMaxlength: 50,
},{
label: 'template.dl.dl021.gcxps',
prop: 'gcxps',
bodyType: 'input',
bodyFillType: 'actFill',
width: 100,
bodyMaxlength: 50,
},{
label: 'template.dl.dl021.zqxxbs',
prop: 'zqxxbs',
bodyType: 'input',
bodyFillType: 'actFill',
width: 80,
bodyMaxlength: 50,
}]
},
//
stepFormConfig() {
return [
//
stepFormConfig(){
return [
{ {
type: "step",
type: "cellItem",
config: { config: {
xbmc: {
label: 'template.dl.dl021.xbmc',
type: 'select',
fillType: 'actFill',
options: this.getDictOptions('business_dl_xbmc'),
otherCode: 'xbmcOther',
showOtherLabel:false
},
xwj: {
qxbd: {
// span:1, // span:1,
label: 'template.dl.dl021.xwj',
label: 'template.dl.dl024.qxbd',
type: 'qxbd', type: 'qxbd',
fillType: 'actFill', fillType: 'actFill',
filledCodes:['bdmc','bdbh'], filledCodes:['bdmc','bdbh'],
}, },
pykssj:{
label: 'template.dl.dl024.pykssj',
type: 'input',
fillType: 'actFill',
subType: 'button',
subKey: 'pyjssj',
buttonName: 'template.dl.dl024.jsButton',
},
pyjssj: {
label: 'template.dl.dl024.pyjssj',
type: 'input',
fillType: 'actFill',
subType: 'button',
subKey: 'pyjssj',
buttonName: 'template.dl.dl024.jsButton',
},
} }
} }
] ]
},
tableColumns() {
return [
{
label: 'template.dl.dl024.xbbh',
prop: 'xbbh',
bodyType: 'input',
bodyFillType: 'actFill',
width: 100,
bodyMaxlength: 50,
}
]
}, },
}, },
data() { data() {
@ -183,11 +188,11 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
//
//
onRegentSubmit(e) { onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e const { selectInfo, key, rowIndex } = e
const { row } = selectInfo const { row } = selectInfo
console.log('选择显微镜预留===',row)
console.log('选择仪器编号预留===',row)
// if (key === 'yqbh' && this.$refs.yqsyTableRef) { // if (key === 'yqbh' && this.$refs.yqsyTableRef) {
// const params = { // const params = {
// yqmc: row.mc, // yqmc: row.mc,

Loading…
Cancel
Save