Browse Source

feat: [模板管理] LBA004

lkf
memorylkf 2 months ago
parent
commit
73c40e2871
19 changed files with 309 additions and 167 deletions
  1. +8
    -0
      src/api/business/public/public.js
  2. +2
    -1
      src/components/Template/HandleFormItem.vue
  3. +3
    -1
      src/lang/en/template/lba.js
  4. +3
    -1
      src/lang/zh/template/lba.js
  5. +2
    -1
      src/views/business/comps/template/comps/lba/LBA002.vue
  6. +106
    -22
      src/views/business/comps/template/comps/lba/LBA004.vue
  7. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP008.vue
  8. +2
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP009.vue
  9. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP010.vue
  10. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP011.vue
  11. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP012.vue
  12. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP013.vue
  13. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP014.vue
  14. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP015.vue
  15. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP016.vue
  16. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP017.vue
  17. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP018.vue
  18. +8
    -2
      src/views/business/comps/template/dialog/SelectMixReagentDialog.vue
  19. +165
    -137
      src/views/business/comps/template/formConfig/formConfig.js

+ 8
- 0
src/api/business/public/public.js View File

@ -131,3 +131,11 @@ export function public_saveSimpleLog(query) {
params: query params: query
}) })
} }
// 检测板
export function public_jcbList(query) {
return request({
url: '/system/business/public/jcbList',
method: 'get',
params: query
})
}

+ 2
- 1
src/components/Template/HandleFormItem.vue View File

@ -202,7 +202,7 @@ export default {
visible: false,// visible: false,//
checkboxValue: this.getChecked(),// checkboxValue: this.getChecked(),//
uuid: getuuid(), // EventBus uuid: getuuid(), // EventBus
regentType: ['sj', 'gsp', 'mix', 'xj', 'xb', 'gyzj', 'mjy', 'yq'], ////
regentType: ['sj', 'gsp', 'mix', 'xj', 'xb', 'gyzj', 'mjy', 'yq','jcb'], ////
selectRegentInfo: {},//// selectRegentInfo: {},////
fileList: [],// fileList: [],//
uploadFileUrl: process.env.VUE_APP_BASE_API + "/file/upload", uploadFileUrl: process.env.VUE_APP_BASE_API + "/file/upload",
@ -348,6 +348,7 @@ export default {
mjy: "5",// mjy: "5",//
xj: "9",// xj: "9",//
xb: "11",// xb: "11",//
jcb: "13",//
} }
params = { params = {
...params, ...params,

+ 3
- 1
src/lang/en/template/lba.js View File

@ -4,7 +4,9 @@ export default {
lba002: { lba002: {
cztj: 'Work Condition', cztj: 'Work Condition',
czsj: 'Work Time', czsj: 'Work Time',
jcbmc: 'Analysis Plate Name'
jcbmc: 'Analysis Plate Name',
cjr: 'Creator',
cjsj: 'Creation Date'
}, },
lba003: { lba003: {
jclc: 'Testing Process', jclc: 'Testing Process',

+ 3
- 1
src/lang/zh/template/lba.js View File

@ -4,7 +4,9 @@ export default {
lba002: { lba002: {
cztj: '操作条件', cztj: '操作条件',
czsj: '操作时间', czsj: '操作时间',
jcbmc: '检测板名称'
jcbmc: '检测板名称',
cjr: '创建人',
cjsj: '创建时间'
}, },
lba003: { lba003: {
jclc: '检测流程', jclc: '检测流程',

+ 2
- 1
src/views/business/comps/template/comps/lba/LBA002.vue View File

@ -21,8 +21,9 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }" v-if="fillType!='actFill'">
<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>

+ 106
- 22
src/views/business/comps/template/comps/lba/LBA004.vue View File

@ -20,9 +20,10 @@
:formData="formData" :formData="formData"
:prefixKey = "`jcb`" :prefixKey = "`jcb`"
fieldItemLabel = "template.lba.lba004.xbxx" fieldItemLabel = "template.lba.lba004.xbxx"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }" v-if="fillType!='actFill'">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete>
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteJcbRow" ></TableOpertaionDelete>
</template> </template>
</CustomTable> </CustomTable>
@ -38,14 +39,14 @@
<div class="template-form-item"> <div class="template-form-item">
<div class="config-header-end" v-if="fillType === 'preFill'"> <div class="config-header-end" v-if="fillType === 'preFill'">
<el-button type="primary" @click="handleAddParalle">{{ $t('template.lba.lba004.xz')}}</el-button>
<el-button type="primary" @click="handleAddParalle(false)">{{ $t('template.lba.lba004.xz')}}</el-button>
<el-button type="danger" plain @click="deleteParalleConfig(paralleIndex)">{{ $t('template.lba.lba004.sc')}}</el-button> <el-button type="danger" plain @click="deleteParalleConfig(paralleIndex)">{{ $t('template.lba.lba004.sc')}}</el-button>
</div> </div>
<BaseInfoFormPackage @clickable="(e) => handleClickable('paralle', paralleIndex, e)" <BaseInfoFormPackage @clickable="(e) => handleClickable('paralle', paralleIndex, e)"
:ref="`paralleStepFormPackageRef_${paralleIndex}`" :formConfig="paralleStepFormConfig" :ref="`paralleStepFormPackageRef_${paralleIndex}`" :formConfig="paralleStepFormConfig"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex" :formData="paralleConfig" :prefixKey="'paralle' + paralleIndex"
:fieldItemLabel="$t('template.lba.lba004.xszj')" /> :fieldItemLabel="$t('template.lba.lba004.xszj')" />
<CustomTable @blur="(e) => onHandleTableBlur('paralle', paralleIndex, e)"
<!-- <CustomTable @blur="(e) => onHandleTableBlur('paralle', paralleIndex, e)"
:ref="`paralleStepTableRef_${paralleIndex}`" :showOperation="fillType === 'actFill' || fillType === 'preFill'" :ref="`paralleStepTableRef_${paralleIndex}`" :showOperation="fillType === 'actFill' || fillType === 'preFill'"
:columns="paralleStepColumns" :columns="paralleStepColumns"
@onRegentSubmit="(data) => onTableRegentSubmit('paralle', paralleIndex, data)" @onRegentSubmit="(data) => onTableRegentSubmit('paralle', paralleIndex, data)"
@ -54,6 +55,15 @@
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="(rowIndex) => deleteRow(rowIndex, 'paralle', paralleIndex)" ></TableOpertaionDelete> <TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="(rowIndex) => deleteRow(rowIndex, 'paralle', paralleIndex)" ></TableOpertaionDelete>
</template> </template>
</CustomTable> -->
<CustomTable
:ref="`paralleStepTableRef_${paralleIndex}`" :showOperation="fillType === 'preFill'"
:columns="paralleStepColumns"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex"
:fieldItemLabel="$t('template.lba.lba004.xszj')">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="(rowIndex) => deleteRow(rowIndex, 'paralle', paralleIndex)" ></TableOpertaionDelete>
</template>
</CustomTable> </CustomTable>
<Step class="mt-0 s-container" :ref="`paralleStepRef_${paralleIndex}`" <Step class="mt-0 s-container" :ref="`paralleStepRef_${paralleIndex}`"
@ -104,7 +114,7 @@ export default {
width: 280, width: 280,
},{ },{
prop: 'jcbBh', prop: 'jcbBh',
bodyType: 'sj',
bodyType: 'jcb',
bodyFillType: 'actFill', bodyFillType: 'actFill',
width: 280 width: 280
}] }]
@ -302,7 +312,7 @@ export default {
}, },
mounted() { mounted() {
if(this.fillType === "preFill"){ if(this.fillType === "preFill"){
this.handleAddParalle();
this.handleAddParalle(true);
} }
if(this.fillType === "actFill"){ if(this.fillType === "actFill"){
this.getCode(formData); this.getCode(formData);
@ -311,12 +321,59 @@ export default {
methods: { methods: {
// //
getFilledFormData() { getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef","stepRef","jcbRef", "remarkRef","fjRef"])
const baseData = this.$refs.baseInfoRef.getFilledFormData();
const jcbData = this.$refs.jcbRef.getFilledFormData();
const fjData = this.$refs.fjRef.getFilledFormData();
const remarkData = this.$refs.remarkRef.getFilledFormData();
//
const paralleConfigsData = [];
if (this.formData.paralleConfigs && this.formData.paralleConfigs.length > 0) {
for (let i = 0; i < this.formData.paralleConfigs.length; i++) {
const paralleFormData = this.$refs[`paralleStepFormPackageRef_${i}`][0].getFilledFormData();
const paralleTableFormData = this.$refs[`paralleStepTableRef_${i}`][0].getFilledFormData();
const paralleStepData = this.$refs[`paralleStepRef_${i}`][0].getFilledFormData();
paralleConfigsData.push({
...paralleFormData,
...paralleTableFormData,
paralleStepData: paralleStepData.stepData,
showParalleConfig: true
});
}
}
return {
...baseData,
...jcbData,
...fjData,
...remarkData,
paralleConfigs: paralleConfigsData,
}
}, },
// //
async getFormData() { async getFormData() {
let content = await this.validFormFields(["baseInfoRef","stepRef","jcbRef",, "remarkRef","fjRef"]);
return content;
//
const validFlag = await this.validFields();
if (!validFlag) {
return false;
}
let content = this.getFilledFormData();
return content
},
//
async validFields() {
//
let refsToValidate = ["baseInfoRef","jcbRef","fjRef", "remarkRef"];
//
if (this.formData.paralleConfigs && this.formData.paralleConfigs.length > 0) {
for (let i = 0; i < this.formData.paralleConfigs.length; i++) {
refsToValidate.push(`paralleStepFormPackageRef_${i}`);
refsToValidate.push(`paralleStepTableRef_${i}`);
refsToValidate.push(`paralleStepRef_${i}`);
}
}
return await this.validFormFields(refsToValidate);
}, },
getResource() { getResource() {
let content = this.getFilledFormData(); let content = this.getFilledFormData();
@ -328,22 +385,28 @@ export default {
}, },
// //
async onSave() { async onSave() {
let content =await this.$refs.fjRef.getFormData();
console.log(content);
const formData = this.getStepResource();
console.log(formData, "formData")
}, },
// //
handleAddParalle() {
//
if (!this.formData.paralleConfigs) {
this.$set(this.formData, 'paralleConfigs', []);
handleAddParalle(init) {
if(init){
if (!this.formData.paralleConfigs) {
this.$set(this.formData, 'paralleConfigs', []);
}
}else{
//
if (!this.formData.paralleConfigs) {
this.$set(this.formData, 'paralleConfigs', []);
}
//
this.formData.paralleConfigs.push({
paralleStepData: [],
paralleTableFormData: [],
showParalleConfig: true
});
} }
//
this.formData.paralleConfigs.push({
paralleStepData: [],
paralleTableFormData: [],
showParalleConfig: true
});
}, },
// //
deleteParalleConfig(index) { deleteParalleConfig(index) {
@ -353,6 +416,27 @@ export default {
} }
this.formData.paralleConfigs.splice(index, 1); this.formData.paralleConfigs.splice(index, 1);
}, },
deleteJcbRow(rowIndex){
const jcbRef = this.$refs['jcbRef'];
if (jcbRef) {
jcbRef.deleteRow(rowIndex);
}
},
//
deleteRow(rowIndex, type, configIndex = 0) {
//
if (type === 'ladder') {
const tableRef = this.$refs[`ladderStepTableRef_${configIndex}`];
if (tableRef) {
tableRef.deleteRow(rowIndex);
}
} else if (type === 'paralle') {
const tableRef = this.$refs[`paralleStepTableRef_${configIndex}`];
if (tableRef) {
tableRef[0].deleteRow(rowIndex);
}
}
},
} }
}; };
</script> </script>
@ -366,7 +450,7 @@ export default {
} }
.config-header-end { .config-header-end {
display: flex; display: flex;
justify-content: end;
justify-content: flex-end;
align-items: center; align-items: center;
margin-bottom: 15px; margin-bottom: 15px;
font-weight: bold; font-weight: bold;

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP008.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

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

@ -18,7 +18,7 @@
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef"
:formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" /> :formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" />
<CustomTable @blur="onHandleTableBlur" :ref="`tableRef`" :columns="tableStepColumns"
<CustomTable @blur="onHandleTableBlur" :ref="`tableRef`" :columns="tableStepColumns" :showOperation="fillType === 'preFill'"
:formData="formData" :prefixKey="`table`" :formData="formData" :prefixKey="`table`"
fieldItemLabel="template.common.operationSteps"> fieldItemLabel="template.common.operationSteps">
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -37,7 +37,7 @@
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps"
ref="rongyeStepFormPackageRef" :formConfig="rongyeStepFormConfig" @blur="onHandleBlur" ref="rongyeStepFormPackageRef" :formConfig="rongyeStepFormConfig" @blur="onHandleBlur"
:formData="formData" /> :formData="formData" />
<CustomTable @blur="onHandleTableBlur" :ref="`rongyeTableRef`" :columns="rongyeTableStepColumns"
<CustomTable @blur="onHandleTableBlur" :ref="`rongyeTableRef`" :columns="rongyeTableStepColumns" :showOperation="fillType === 'preFill'"
:formData="{stepTableFormData:formData.stepTableFormData_1,headerSelectFields:formData.headerSelectFields_1}" :prefixKey="`rongyeTable`" :formData="{stepTableFormData:formData.stepTableFormData_1,headerSelectFields:formData.headerSelectFields_1}" :prefixKey="`rongyeTable`"
fieldItemLabel="template.common.operationSteps"> fieldItemLabel="template.common.operationSteps">
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP010.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP011.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP012.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP013.vue View File

@ -23,6 +23,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP014.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP015.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP016.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP017.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/SP018.vue View File

@ -25,6 +25,7 @@
:formData="formData" :formData="formData"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion <TableOpertaion

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

@ -25,8 +25,8 @@
<script> <script>
import SelectTable from '@/components/Template/SelectTable.vue'; import SelectTable from '@/components/Template/SelectTable.vue';
import SelectDept from "@/views/business/comps/select/SelectDept"; import SelectDept from "@/views/business/comps/select/SelectDept";
import { public_sjList, public_gyzjList, public_gspList, public_xbList } from '@/api/business/public/public';
import { getSjSearchForm, getSjColumns, getGyzjSearchForm, getGyzjColumns, getGspSearchForm, getGspColumns, getXbSearchForm, getXbColumns } from '@/views/business/comps/template/formConfig/formConfig.js';
import { public_sjList, public_gyzjList, public_gspList, public_xbList,public_jcbList } from '@/api/business/public/public';
import { getSjSearchForm, getSjColumns, getGyzjSearchForm, getGyzjColumns, getGspSearchForm, getGspColumns, getXbSearchForm, getXbColumns,getJcbSearchForm,getJcbColumns } from '@/views/business/comps/template/formConfig/formConfig.js';
import { EventBus } from "@/utils/eventBus"; import { EventBus } from "@/utils/eventBus";
const typeMap = { const typeMap = {
'1': { '1': {
@ -53,6 +53,12 @@ const typeMap = {
listApi: public_gyzjList, listApi: public_gyzjList,
title:"选择给药制剂" title:"选择给药制剂"
}, },
"13": {
searchForm: getJcbSearchForm(),
columns: getJcbColumns(),
listApi: public_jcbList,
title:"请选择检测板"
},
} }
export default { export default {
components: { components: {

+ 165
- 137
src/views/business/comps/template/formConfig/formConfig.js View File

@ -1,165 +1,193 @@
// 试剂列表查询表单 // 试剂列表查询表单
export const getSjSearchForm = () => { export const getSjSearchForm = () => {
return {
mc: {
label: 'page.business.resource.sj.sjmc',
},
bh: {
label: 'page.business.resource.sj.sjbh',
},
studyName: {
label: 'page.business.resource.sj.sssy',
},
return {
mc: {
label: 'page.business.resource.sj.sjmc'
},
bh: {
label: 'page.business.resource.sj.sjbh'
},
studyName: {
label: 'page.business.resource.sj.sssy'
} }
}
} }
// 供试品列表查询表单 // 供试品列表查询表单
export const getGspSearchForm = () => { export const getGspSearchForm = () => {
return {
mc: {
label: '名称/代号',
},
bh: {
label: 'page.business.resource.sj.sjbh',
},
ph: {
label: '物质批号',
},
return {
mc: {
label: '名称/代号'
},
bh: {
label: 'page.business.resource.sj.sjbh'
},
ph: {
label: '物质批号'
} }
}
} }
// 给药制剂列表查询表单 // 给药制剂列表查询表单
export const getGyzjSearchForm = () => { export const getGyzjSearchForm = () => {
return {
mc: {
label: 'page.business.resource.sj.sjmc',
},
bh: {
label: 'page.business.resource.sj.sjbh',
},
studyMc: {
label: 'page.business.resource.sj.sssy',
},
return {
mc: {
label: 'page.business.resource.sj.sjmc'
},
bh: {
label: 'page.business.resource.sj.sjbh'
},
studyMc: {
label: 'page.business.resource.sj.sssy'
} }
}
} }
// 细胞列表查询表单 // 细胞列表查询表单
export const getXbSearchForm = () => { export const getXbSearchForm = () => {
return {
mc: {
label: 'page.business.resource.sj.mc',
},
bh: {
label: 'page.business.resource.sj.bh',
},
studyMc: {
label: 'page.business.resource.sj.sssy',
},
return {
mc: {
label: 'page.business.resource.sj.mc'
},
bh: {
label: 'page.business.resource.sj.bh'
},
studyMc: {
label: 'page.business.resource.sj.sssy'
} }
}
} }
// 试剂列表表格列 // 试剂列表表格列
export const getSjColumns = () => { export const getSjColumns = () => {
return [
{
prop: 'mc',
label: 'page.business.resource.sj.sjmc',
},
{
prop: 'bh',
label: 'page.business.resource.sj.sjbh',
},
{
prop: 'nd',
label: 'page.business.resource.sj.sjnd',
},
{
prop: 'nddw',
label: 'page.business.resource.gsp.nddw',
},
{
prop: 'sxr',
label: 'page.business.resource.sj.sxr',
},
{
prop: 'studyName',
label: 'page.business.resource.sj.sssy',
},
]
return [
{
prop: 'mc',
label: 'page.business.resource.sj.sjmc'
},
{
prop: 'bh',
label: 'page.business.resource.sj.sjbh'
},
{
prop: 'nd',
label: 'page.business.resource.sj.sjnd'
},
{
prop: 'nddw',
label: 'page.business.resource.gsp.nddw'
},
{
prop: 'sxr',
label: 'page.business.resource.sj.sxr'
},
{
prop: 'studyName',
label: 'page.business.resource.sj.sssy'
}
]
} }
// 供试品列表表格列 // 供试品列表表格列
export const getGspColumns = () => { export const getGspColumns = () => {
return [
{
prop: 'mc',
label: '名称/代号',
},
{
prop: 'bh',
label: 'page.business.resource.sj.sjbh',
},
{
prop: 'yxq',
label: '有效期',
},
{
prop: 'ph',
label: '物质批号',
},
]
return [
{
prop: 'mc',
label: '名称/代号'
},
{
prop: 'bh',
label: 'page.business.resource.sj.sjbh'
},
{
prop: 'yxq',
label: '有效期'
},
{
prop: 'ph',
label: '物质批号'
}
]
} }
// 给药制剂列表表格列 // 给药制剂列表表格列
export const getGyzjColumns = () => { export const getGyzjColumns = () => {
return [
{
prop: 'mc',
label: 'page.business.resource.sj.sjmc',
},
{
prop: 'bh',
label: 'page.business.resource.sj.sjbh',
},
{
prop: 'nd',
label: 'page.business.resource.sj.sjnd',
},
{
prop: 'nddw',
label: 'page.business.resource.gsp.nddw',
},
{
prop: 'sxr',
label: 'page.business.resource.sj.sxr',
},
{
prop: 'studyName',
label: 'page.business.resource.sj.sssy',
},
]
return [
{
prop: 'mc',
label: 'page.business.resource.sj.sjmc'
},
{
prop: 'bh',
label: 'page.business.resource.sj.sjbh'
},
{
prop: 'nd',
label: 'page.business.resource.sj.sjnd'
},
{
prop: 'nddw',
label: 'page.business.resource.gsp.nddw'
},
{
prop: 'sxr',
label: 'page.business.resource.sj.sxr'
},
{
prop: 'studyName',
label: 'page.business.resource.sj.sssy'
}
]
} }
// 细胞列表表格列 // 细胞列表表格列
export const getXbColumns = () => { export const getXbColumns = () => {
return [
{
prop: 'mc',
label: '名称',
},
{
prop: 'bh',
label: '编号',
},
{
prop: 'tj',
label: '体积',
},
{
prop: 'ly',
label: '来源',
},
{
prop: 'sxr',
label: 'page.business.resource.sj.sxr',
},
{
prop: 'studyName',
label: 'page.business.resource.sj.sssy',
},
]
}
return [
{
prop: 'mc',
label: '名称'
},
{
prop: 'bh',
label: '编号'
},
{
prop: 'tj',
label: '体积'
},
{
prop: 'ly',
label: '来源'
},
{
prop: 'sxr',
label: 'page.business.resource.sj.sxr'
},
{
prop: 'studyName',
label: 'page.business.resource.sj.sssy'
}
]
}
// 检测板查询表单
export const getJcbSearchForm = () => {
return {
bh: {
label: 'template.lba.lba002.jcbmc'
},
cjr: {
label: 'template.lba.lba002.cjr'
}
}
}
// 检测板列表表格列
export const getJcbColumns = () => {
return [
{
prop: 'bh',
label: 'template.lba.lba002.jcbmc'
},
{
prop: 'createTime',
label: 'template.lba.lba002.cjsj'
},
{
prop: 'cjr',
label: 'template.lba.lba002.cjr'
}
]
}

Loading…
Cancel
Save