Browse Source

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

ouqian
ZHANGTENG\张腾 1 month ago
parent
commit
feb198ae00
7 changed files with 197 additions and 4 deletions
  1. +4
    -1
      src/lang/en.js
  2. +7
    -0
      src/lang/en/template/dj.js
  3. +3
    -0
      src/lang/zh.js
  4. +7
    -0
      src/lang/zh/template/dj.js
  5. +10
    -2
      src/views/business/comps/template/TemplateTable.vue
  6. +165
    -0
      src/views/business/comps/template/comps/dj/DJ001.vue
  7. +1
    -1
      src/views/business/comps/template/comps/xb/XB001.vue

+ 4
- 1
src/lang/en.js View File

@ -30,7 +30,9 @@ import ada from './en/template/ada'
//毒理模板
import dl from './en/template/dl'
//细胞模板
import xb from './zh/template/xb'
import xb from './en/template/xb'
//动技模板
import dj from './en/template/dj'
// 试验管理
import study from './en/business/study/study'
@ -208,5 +210,6 @@ export default {
ada: ada,
dl: dl,
xb: xb,
dj: dj,
}
}

+ 7
- 0
src/lang/en/template/dj.js View File

@ -0,0 +1,7 @@
//动技
export default {
dj001: {
syts: '试验天数',
},
}

+ 3
- 0
src/lang/zh.js View File

@ -31,6 +31,8 @@ import ada from './zh/template/ada'
import dl from './zh/template/dl'
//细胞模板
import xb from './zh/template/xb'
//动技模板
import dj from './zh/template/dj'
// 试验管理
import study from './zh/business/study/study'
@ -204,5 +206,6 @@ export default {
ada: ada,
dl: dl,
xb: xb,
dj: dj,
}
}

+ 7
- 0
src/lang/zh/template/dj.js View File

@ -0,0 +1,7 @@
//动技
export default {
dj001: {
syts: '试验天数',
},
}

+ 10
- 2
src/views/business/comps/template/TemplateTable.vue View File

@ -78,6 +78,9 @@ import YP005 from "./comps/yp/YP005.vue";
//
import XB001 from "./comps/xb/XB001.vue";
//
import DJ001 from "./comps/dj/DJ001.vue";
//
// DL001-SYWZPZJHB
// DL002-使SP001
@ -145,7 +148,10 @@ export default {
DL022,
DL023,
DL024,
XB001,//
//
XB001,
//
DJ001,
},
data() {
return {
@ -250,8 +256,10 @@ export default {
'YP003': 'YP003',
'YP004': 'YP004',
'YP005': 'YP005',
//
//
'XB001': 'XB001',
//
'DJ001': 'DJ001',
//
//DL001-SYWZPZJHB
'DL002': 'SP001',

+ 165
- 0
src/views/business/comps/template/comps/dj/DJ001.vue View File

@ -0,0 +1,165 @@
<!-- 细胞CIC配制记录表 -->
<template>
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.bdmc }}<img
src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<!-- 操作步骤 -->
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.operationSteps"
ref="operateRef" :formConfig="operateConfig" :formData="formData" />
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark"
ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div>
</div>
</div>
<!-- <button @click="onSave">保存</button> -->
</div>
</template>
<script>
import BaseInfoFormPackage from "@/components/Template/BaseInfoFormPackage";
import LineLabel from "@/components/Template/LineLabel";
import TableList from "@/components/Template/Table";
import Step from "@/components/Template/Step";
import templateMixin from "../../mixins/templateMixin";
import stepMixins from '@/components/Template/mixins/stepMixins.js';
import CustomTable from '@/components/Template/CustomTable.vue';
import { EventBus } from "@/utils/eventBus";
import { uniqeResource } from "@/utils/calUnitTools";
import { debounce } from 'lodash-es'
import TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue"
import StepFormPackage from "@/components/Template/StepFormPackage.vue"
export default {
name: "DJ001",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable, TableOpertaionDelete, StepFormPackage },
mixins: [templateMixin],
props: {
fillType: {
type: String,
default: 'preFill',
},
},
computed: {
//
remarkConig() {
return [
{
type: "cellItem",
config: {
remark: {
label: "",
type: "textarea",
fillType: "actFill",
span: 1,
placeholder: 'template.common.remarkPlaceholder',
maxlength: 1000,
rows: 5
}
}
}
]
},
//
baseInfoFormConfig() {
return [
{
type: "cardItem",
config: {
studyMc: {
label: 'template.common.testName',
type: "input",
disabled: true,
},
studySn: {
label: 'template.common.testNumber',
type: "input",
disabled: true,
},
}
},
]
},
//
operateConfig() {
return [
{
type: "cellItem",
config: {
syts: {
label: 'template.dj.dj001.syts',
type: "input",
fillType: 'actFill',
},
}
},
]
}
},
data() {
return {
formData: {},
};
},
mounted() {
},
methods: {
//
getFilledFormData() {
return this.getFilledFormDataByRefs(
[
"baseInfoRef", "stepRef", "remarkRef",
"fjRef", "tableFirstRef", "stepFormPackageSecondRef",
"stepFormPackageThirdRef", "stepFormPackageFourthRef",
"stepFormPackageFivthRef", "tableSecondRef", "stepFormPackageSixthRef"
]
)
},
//
async getFormData() {
let content = await this.validFormFields([
"baseInfoRef", "stepRef", "remarkRef",
"fjRef", "tableFirstRef", "stepFormPackageSecondRef",
"stepFormPackageThirdRef", "stepFormPackageFourthRef",
"stepFormPackageFivthRef", "tableSecondRef", "stepFormPackageSixthRef"
]);
return content;
},
getResource() {
//使
const stepResource = this.$refs.stepRef.getStepResource()
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
return this.resourceTmp;
},
//
async onSave() {
let content = await this.$refs.stepRef.getFormData();
console.log(content);
},
//
deleteRow(rowIndex,type) {
const tableRef1 = this.$refs['tableFirstRef'];
const tableRef2 = this.$refs['tableSecondRef'];
if (type == 'firstTable' && tableRef1) {
tableRef1.deleteRow(rowIndex);
}
if (type == 'secondTable' && tableRef2) {
tableRef2.deleteRow(rowIndex);
}
},
}
};
</script>
<style rel="stylesheet/scss" lang="scss">
</style>

+ 1
- 1
src/views/business/comps/template/comps/xb/XB001.vue View File

@ -13,7 +13,7 @@
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<!-- 操作步骤 -->
<LineLabel label="template.xb.xb001.czbz" />
<LineLabel label="template.common.operationSteps" />
<div class="template-form-item">
<div>第1步准备分析批</div>
<CustomTable

Loading…
Cancel
Save