Browse Source

feat: [模板管理] 模板文件修改

lkf
memorylkf 3 months ago
parent
commit
8788984b52
5 changed files with 399 additions and 416 deletions
  1. +3
    -3
      src/views/business/comps/template/TemplateTable.vue
  2. +6
    -6
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue
  3. +10
    -27
      src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js

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

@ -15,7 +15,7 @@ import SWYPFXRYPZB from "./comps/sp/SWYPFXRYPZB.vue";
import SWYPFXCBYPZB from "./comps/sp/SWYPFXCBYPZB.vue";
import SWYPBQGZYZBB from "./comps/sp/SWYPBQGZYZBB.vue";
import SWYPNBGZYZBB from "./comps/sp/SWYPNBGZYZBB.vue";
import SWYPFXFFXYPZBBZQDYJMD from "./comps/sp/SWYPFXFFXYPZBBZQDYJMD.vue";
import ZQDYJMD from "./comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue";
import Demo from "./comps/sp/Demo.vue";
//
import SYWZPZJHB from "./comps/gy/SYWZPZJHB.vue";
@ -25,7 +25,7 @@ export default {
name: "TemplateTable",
components: {
MJYLQSQD, SYWZPZJHB,
SP001, SWYPFXRYPZB, Demo, SWYPFXCBYPZB, SWYPBQGZYZBB, SWYPNBGZYZBB,SWYPFXFFXYPZBBZQDYJMD
SP001, SWYPFXRYPZB, Demo, SWYPFXCBYPZB, SWYPBQGZYZBB, SWYPNBGZYZBB,ZQDYJMD
},
props: {
sn: {
@ -54,7 +54,7 @@ export default {
'SP002': 'SWYPFXCBYPZB',
'SP003': 'SWYPBQGZYZBB',
'SP004': 'SWYPNBGZYZBB',
'SP008': 'SWYPFXFFXYPZBB-ZQDYJMD',
'SP008': 'ZQDYJMD',
'SYWZPZJHB': 'SYWZPZJHB',
'MJYLQSQD': 'MJYLQSQD',
}

src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBBZQDYJMD.vue → src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue View File

@ -1,4 +1,4 @@
<!-- 生物样品分析溶液配制表 -->
<!-- 生物样品分析方法学样品制备表-准确度与精密度 -->
<template>
<div>
<div class="detail-container">
@ -24,8 +24,8 @@
:ref="`tableRef`"
:columns="tableStepColumns"
:formData="formData"
:prefixKey = "'table'"
fieldItemLabel = "平行配制"
:prefixKey = "`table`"
fieldItemLabel = "这个是什么"
>
<template slot="operation" slot-scope="{ row, rowIndex}">
<TableOpertaion
@ -53,10 +53,10 @@ import BaseInfoFormPcakge from "@/components/Template/BaseInfoFormPcakge";
import LineLabel from "@/components/Template/LineLabel";
import TableList from "@/components/Template/Table";
import Step from "@/components/Template/Step";
import templateMixin from "../../mixins/templateMixin";
import templateMixin from "../../../mixins/templateMixin";
import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSn } from '@/api/template';
import {getSWYPFXFFXYPZBBConfig} from "../../formConfig/SWYPFXFFXYPZBBConfig.js";
import {getSWYPFXFFXYPZBBTableConfig} from "../../../formConfig/SWYPFXFFXYPZBBTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
export default {
@ -211,7 +211,7 @@ export default {
]
},
tableStepColumns() {
return getSWYPFXFFXYPZBBConfig(this);
return getSWYPFXFFXYPZBBTableConfig(this);
},
},
data() {

src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBConfig.js → src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js View File

@ -1,44 +1,27 @@
// 生物样品分析方法学样品制备表-表格配置
export const getSWYPFXFFXYPZBBConfig = ($this) => {
export const getSWYPFXFFXYPZBBTableConfig = ($this) => {
return [
{
label: '编号',
prop: 'targetSolutionCode',
prop: 'bh',
bodyType: 'select',
bodyOptions: [
{
label: '溶液1',
value: '1'
}
],
bodyOptions: $this.getDictOptions('business_jmdyzqdyp'),
subType: 'span',
subKey: 'subTargetSolutionCode',
subKey: 'bhCode',
bodyFillType: 'preFill',
width: 280
},
{
label: '预设溶液',
prop: 'ysry',
bodyType: 'select',
bodyOptions: [
{
label: '溶液1',
value: '1'
}
],
bodyType: 'input',
bodyFillType: 'preFill',
width: 280
},
{
label: '实际溶液',
prop: 'sjry',
bodyType: 'select',
bodyOptions: [
{
label: '溶液1',
value: '1'
}
],
bodyType: 'input',
bodyFillType: 'actFill',
width: 280
},
@ -48,7 +31,7 @@ export const getSWYPFXFFXYPZBBConfig = ($this) => {
width: 280,
headerSelectKey: 'yjryxqlUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'),
headerOptions: $this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodyMaxlength: 10
@ -59,7 +42,7 @@ export const getSWYPFXFFXYPZBBConfig = ($this) => {
width: 280,
headerSelectKey: 'sjryxqlUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'),
headerOptions: $this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10
@ -70,7 +53,7 @@ export const getSWYPFXFFXYPZBBConfig = ($this) => {
width: 280,
headerSelectKey: 'yjjzxqlUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'),
headerOptions: $this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodyMaxlength: 10
@ -81,7 +64,7 @@ export const getSWYPFXFFXYPZBBConfig = ($this) => {
width: 280,
headerSelectKey: 'sjjzxqlUnit',
fillType: 'preFill',
headerOptions: $this.getDictOptions('business_nddw'),
headerOptions: $this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10

Loading…
Cancel
Save