Browse Source

fix: [文案修改] 配置->配制

luojie
memorylkf 1 month ago
parent
commit
4e232fb971
108 changed files with 2745 additions and 2533 deletions
  1. +3
    -3
      src/api/business/sj/sj.js
  2. +3
    -3
      src/api/system/config.js
  3. +1
    -1
      src/assets/images/dark.svg
  4. +1
    -1
      src/assets/images/light.svg
  5. +1
    -1
      src/components/Editor/index.vue
  6. +4
    -4
      src/components/Template/CustomTable.vue
  7. +9
    -5
      src/components/Template/README.md
  8. +79
    -79
      src/components/Template/Step.vue
  9. +1
    -1
      src/components/Template/StepComponents/ContainerStep.vue
  10. +1
    -1
      src/components/Template/StepComponents/ZLSubPackage.vue
  11. +661
    -554
      src/components/Template/mixins/formPackageMixins.js
  12. +140
    -116
      src/components/Template/mixins/stepMixins.js
  13. +3
    -3
      src/components/Template/operation/TableOpertaion.vue
  14. +1
    -1
      src/lang/en.js
  15. +1
    -1
      src/lang/en/business/study/studyEnter.js
  16. +22
    -22
      src/lang/en/template/gsp.js
  17. +2
    -2
      src/lang/zh.js
  18. +7
    -8
      src/lang/zh/business/study/studyEnter.js
  19. +2
    -2
      src/lang/zh/business/study/studyFormPlan.js
  20. +1
    -1
      src/lang/zh/system/template.js
  21. +23
    -23
      src/lang/zh/template/gsp.js
  22. +3
    -3
      src/layout/components/Settings/index.vue
  23. +2
    -2
      src/router/index.js
  24. +2
    -2
      src/settings.js
  25. +1
    -1
      src/utils/request.js
  26. +2
    -2
      src/views/business/comps/template/comps/bl/BL001.vue
  27. +3
    -3
      src/views/business/comps/template/comps/bl/BL002.vue
  28. +4
    -4
      src/views/business/comps/template/comps/dj/DJ001.vue
  29. +2
    -2
      src/views/business/comps/template/comps/dj/DJ002.vue
  30. +2
    -2
      src/views/business/comps/template/comps/dj/DJ003.vue
  31. +2
    -2
      src/views/business/comps/template/comps/dl/DL003.vue
  32. +2
    -2
      src/views/business/comps/template/comps/dl/DL004.vue
  33. +2
    -2
      src/views/business/comps/template/comps/dl/DL005.vue
  34. +11
    -11
      src/views/business/comps/template/comps/dl/DL006.vue
  35. +2
    -2
      src/views/business/comps/template/comps/dl/DL007.vue
  36. +11
    -11
      src/views/business/comps/template/comps/dl/DL008.vue
  37. +16
    -16
      src/views/business/comps/template/comps/dl/DL009.vue
  38. +2
    -2
      src/views/business/comps/template/comps/dl/DL010.vue
  39. +2
    -2
      src/views/business/comps/template/comps/dl/DL011.vue
  40. +5
    -5
      src/views/business/comps/template/comps/dl/DL012.vue
  41. +7
    -7
      src/views/business/comps/template/comps/dl/DL013.vue
  42. +7
    -7
      src/views/business/comps/template/comps/dl/DL014.vue
  43. +4
    -4
      src/views/business/comps/template/comps/dl/DL015.vue
  44. +2
    -2
      src/views/business/comps/template/comps/dl/DL016.vue
  45. +2
    -2
      src/views/business/comps/template/comps/dl/DL017.vue
  46. +2
    -2
      src/views/business/comps/template/comps/dl/DL018.vue
  47. +2
    -2
      src/views/business/comps/template/comps/dl/DL019.vue
  48. +2
    -2
      src/views/business/comps/template/comps/dl/DL020.vue
  49. +2
    -2
      src/views/business/comps/template/comps/dl/DL021.vue
  50. +2
    -2
      src/views/business/comps/template/comps/dl/DL022.vue
  51. +2
    -2
      src/views/business/comps/template/comps/dl/DL023.vue
  52. +2
    -2
      src/views/business/comps/template/comps/dl/DL024.vue
  53. +4
    -4
      src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue
  54. +4
    -4
      src/views/business/comps/template/comps/gsp/GSP001.vue
  55. +6
    -6
      src/views/business/comps/template/comps/gsp/GSP002.vue
  56. +4
    -4
      src/views/business/comps/template/comps/gsp/GSP003.vue
  57. +6
    -6
      src/views/business/comps/template/comps/gsp/GSP004.vue
  58. +6
    -6
      src/views/business/comps/template/comps/gsp/GSP005.vue
  59. +6
    -6
      src/views/business/comps/template/comps/gsp/GSP009.vue
  60. +3
    -3
      src/views/business/comps/template/comps/gsp/GSP010.vue
  61. +5
    -5
      src/views/business/comps/template/comps/gsp/GSP015.vue
  62. +2
    -2
      src/views/business/comps/template/comps/gsp/MJYLQSQD.vue
  63. +4
    -4
      src/views/business/comps/template/comps/gsp/SYWZPZJHB.vue
  64. +3
    -3
      src/views/business/comps/template/comps/lba/LBA002.vue
  65. +3
    -3
      src/views/business/comps/template/comps/lba/LBA003.vue
  66. +8
    -8
      src/views/business/comps/template/comps/lba/LBA004.vue
  67. +5
    -5
      src/views/business/comps/template/comps/lba/LBA006.vue
  68. +5
    -5
      src/views/business/comps/template/comps/lba/LBA008.vue
  69. +6
    -6
      src/views/business/comps/template/comps/pcr/PCR005.vue
  70. +5
    -5
      src/views/business/comps/template/comps/pcr/PCR007.vue
  71. +4
    -4
      src/views/business/comps/template/comps/pcr/PCR008.vue
  72. +6
    -6
      src/views/business/comps/template/comps/pcr/PCR009.vue
  73. +5
    -5
      src/views/business/comps/template/comps/pcr/PCR010.vue
  74. +5
    -5
      src/views/business/comps/template/comps/pcr/PCR011.vue
  75. +7
    -7
      src/views/business/comps/template/comps/pcr/PCR012.vue
  76. +1
    -1
      src/views/business/comps/template/comps/sp/Demo.vue
  77. +5
    -5
      src/views/business/comps/template/comps/sp/SP001.vue
  78. +3
    -3
      src/views/business/comps/template/comps/sp/SP0019.vue
  79. +2
    -2
      src/views/business/comps/template/comps/sp/SP0020.vue
  80. +5
    -5
      src/views/business/comps/template/comps/sp/SP0021.vue
  81. +5
    -5
      src/views/business/comps/template/comps/sp/SP003.vue
  82. +10
    -10
      src/views/business/comps/template/comps/sp/SP00456.vue
  83. +4
    -4
      src/views/business/comps/template/comps/sp/SP007.vue
  84. +4
    -4
      src/views/business/comps/template/comps/sp/SP008.vue
  85. +5
    -5
      src/views/business/comps/template/comps/sp/SP009.vue
  86. +7
    -7
      src/views/business/comps/template/comps/sp/comps/LadderConfig.vue
  87. +5
    -5
      src/views/business/comps/template/comps/xb/XB001.vue
  88. +2
    -2
      src/views/business/comps/template/comps/yp/YP002.vue
  89. +2
    -2
      src/views/business/comps/template/comps/yp/YP003.vue
  90. +2
    -2
      src/views/business/comps/template/comps/yp/YP004.vue
  91. +2
    -2
      src/views/business/comps/template/comps/yp/YP005.vue
  92. +4
    -4
      src/views/business/comps/template/formConfig/PCRTableConfig.js
  93. +1
    -1
      src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js
  94. +65
    -66
      src/views/business/comps/template/formConfig/paralleAndLadderConfig.js
  95. +139
    -140
      src/views/business/comps/template/formConfig/sp/SP0019.js
  96. +135
    -141
      src/views/business/comps/template/formConfig/sp/SP0020.js
  97. +353
    -343
      src/views/business/comps/template/formConfig/xb/xb001.js
  98. +783
    -707
      src/views/business/comps/template/mixins/templateMixin.js
  99. +1
    -1
      src/views/business/study/comp/tbbd/Xq.vue
  100. +2
    -2
      src/views/business/template/list.vue

+ 3
- 3
src/api/business/sj/sj.js View File

@ -161,7 +161,7 @@ export function sj_subpackage(data) {
data: data
})
}
// 开始配
// 开始配
export function sj_startConfiguration(data) {
return request({
url: '/system/business/studyFormFill/startConfiguration',
@ -169,7 +169,7 @@ export function sj_startConfiguration(data) {
data: data
})
}
// 完成配
// 完成配
export function sj_configurationCompleted(data) {
return request({
url: '/system/business/studyFormFill/configurationCompleted',
@ -185,4 +185,4 @@ export function exportDetail(query) {
method: 'get',
params: query
})
}
}

+ 3
- 3
src/api/system/config.js View File

@ -25,7 +25,7 @@ export function getConfigKey(configKey) {
})
}
// 新增参数配
// 新增参数配
export function addConfig(data) {
return request({
url: '/system/config',
@ -34,7 +34,7 @@ export function addConfig(data) {
})
}
// 修改参数配
// 修改参数配
export function updateConfig(data) {
return request({
url: '/system/config',
@ -43,7 +43,7 @@ export function updateConfig(data) {
})
}
// 删除参数配
// 删除参数配
export function delConfig(configId) {
return request({
url: '/system/config/' + configId,

+ 1
- 1
src/assets/images/dark.svg View File

@ -19,7 +19,7 @@
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="配面板" width="48" height="40" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="配面板" width="48" height="40" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="setting-copy-2" width="48" height="40" transform="translate(-1190.000000, -136.000000)">
<g id="Group-8" width="48" height="40" transform="translate(1167.000000, 0.000000)">
<g id="Group-5-Copy-5" filter="url(#filter-1)" transform="translate(25.000000, 137.000000)">

+ 1
- 1
src/assets/images/light.svg View File

@ -19,7 +19,7 @@
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="配面板" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="配面板" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="setting-copy-2" transform="translate(-1254.000000, -136.000000)">
<g id="Group-8" transform="translate(1167.000000, 0.000000)">
<g id="Group-5" filter="url(#filter-1)" transform="translate(89.000000, 137.000000)">

+ 1
- 1
src/components/Editor/index.vue View File

@ -72,7 +72,7 @@ export default {
bounds: document.body,
debug: "warn",
modules: {
//
//
toolbar: [
["bold", "italic", "underline", "strike"], // 线 线
["blockquote", "code-block"], //

+ 4
- 4
src/components/Template/CustomTable.vue View File

@ -507,7 +507,7 @@ export default {
getOperationColumns() {
return { columnsData: this.columns, headerSelectFields: this.headerSelectFields,fieldItemLabel: this.fieldItemLabel }
},
//
//
getOtherItem(sItem) {
return {
label: sItem.otherLabel ? this.$t(sItem.otherLabel) : this.$t("template.common.other"),
@ -936,7 +936,7 @@ export default {
// labeljzbh1Label
item.checkboxLabel = currentItem[dynamicLabelKey];
} else if (col.checkboxLabel !== undefined && col.checkboxLabel !== '') {
// 使checkboxLabel
// 使checkboxLabel
item.checkboxLabel = this.$t(col.checkboxLabel);
}
if (col.bodyType === "operableInput" ) {
@ -1151,7 +1151,7 @@ export default {
onBlur(rowIndex, colKey) {
const value = this.localDataSource[rowIndex][colKey];
//
//
const col = this.columns.find(c => c.prop === colKey);
if (col && col.bodyFillType === "actFill" && col.compareTo) {
const compareToValue = this.localDataSource[rowIndex][col.compareTo];
@ -1168,7 +1168,7 @@ export default {
this.$emit("blur", { rowIndex, colKey, value, dataSource: this.localDataSource, headerSelectFields: this.headerSelectFields, item: this.localDataSource[rowIndex] });
},
onSubBlur(rowIndex, colKey, value) {
//
//
const col = this.columns.find(c => c.bodySubKey === colKey);
if (col && col.bodySubFillType === "actFill" && col.bodySubCompareTo) {
const compareToValue = this.localDataSource[rowIndex][col.bodySubCompareTo];

+ 9
- 5
src/components/Template/README.md View File

@ -1,5 +1,7 @@
## BaseInfoFormPackage组件config字段描述:
# demo:
```
"formConfig":[
{
@ -11,7 +13,7 @@
fillType: "preFill" |"actFill",//主要是边框的区分,preFill为预填(蓝色),actFill为实际填报(橙色);
options: this.getDictOptions("business_cctj"),//当前表单的type为select时,options为必填项,如:[{label:"",value:""}]
otherCode: "storageConditionOther",//当前表单可能会触发其他输入项,otherCode为其他输入项的key值;
span:2,//一行几列,默认2列,目前最多配3列,如果有需要后续再调整;
span:2,//一行几列,默认2列,目前最多配3列,如果有需要后续再调整;
maxlength:100,//当前表单的最大长度,默认50;
placeholder: "请输入存储条件",//当前表单的placeholder值,不填写时默认拼接请输入/请选择+label;
rows: 5,//当前表单的type为textarea时,默认5行;
@ -29,10 +31,12 @@
}
}
]
```
```
## CommonTable组件config字段描述:
## CommonTable组件config字段描述:
# demo:
```
formConfig:[
{
@ -53,9 +57,9 @@ formConfig:[
compareTo: "storageCondition",//需要比较的字段,字段不一样时背景标红;
copyFrom:"storageCondition",//需要复制的字段,复制后会自动填充到当前表单;
bodyPrecisionKey: "storageConditionPrecision",//当前表单小数点位数
}
]
```
```

+ 79
- 79
src/components/Template/Step.vue View File

@ -82,27 +82,27 @@ import jr from "./StepComponents/ry/jr.vue";//溶液-加热
import fz from "./StepComponents/ry/fz.vue";//-
//
//
import jrry_b from './StepComponents/b/jrry_b.vue';//-
//-使-
import cl from './StepComponents/b/cl.vue';//-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//
import jrry_b from './StepComponents/b/jrry_b.vue';//-
//-使-
import cl from './StepComponents/b/cl.vue';//-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//-使-
//
@ -228,58 +228,58 @@ import yxpcry from './StepComponents/pcrfxyp/yxpcry.vue';//PCR分析样品处理
import cdnsypfz from './StepComponents/pcrfxyp/cdnsypfz.vue';//PCR-cDNA
//
import bb from './StepComponents/jcb/bb.vue';//-
//-使-
//-使-
import jy from './StepComponents/jcb/jy.vue';//-
//-使-
//-使-
//-使-
import sjjy_jcb from './StepComponents/jcb/sjjy_jcb.vue';//-
import zhfy from './StepComponents/jcb/zhfy.vue';//-
//-使-
import xs_jcb from './StepComponents/jcb/xs_jcb.vue';//-
//-使-
//-使-
import dbmby from './StepComponents/jcb/dbmby.vue';//-
//-使-
import dbdhxfgxt from './StepComponents/jcb/dbdhxfgxt.vue';//-
import dbygxt from './StepComponents/jcb/dbygxt.vue';//-
import dzacl from './StepComponents/jcb/dzacl.vue';//-ACL
import qb from './StepComponents/jcb/qb.vue';//-
import jzks from './StepComponents/jcb/jzks.vue';//-
import fyxks from './StepComponents/jcb/fyxks.vue';//-
import ycfyks from './StepComponents/jcb/ycfyks.vue';//-
import ycks from './StepComponents/jcb/ycks.vue';//-
import js_jcb from './StepComponents/jcb/js_jcb.vue';//-
//-使-ACL
//-使-ACL
import czqx from './StepComponents/jcb/czqx.vue';//-
import czzx from './StepComponents/jcb/czzx.vue';//-
import ychy from './StepComponents/jcb/ychy.vue';//-
import czzy from './StepComponents/jcb/czzy.vue';//-
import sjbj from './StepComponents/jcb/sjbj.vue';//-
///
import qxb from './StepComponents/xbjzpz/qxb.vue';///-
import qjz from './StepComponents/xbjzpz/qjz.vue';///-
import fr_xbjzpz from './StepComponents/xbjzpz/fr_xbjzpz.vue';///-
import lxqy from './StepComponents/xbjzpz/lxqy.vue';///-
import cd from './StepComponents/xbjzpz/cd.vue';///-
import xbzy from './StepComponents/xbjzpz/xbzy.vue';///-
import jzzy from './StepComponents/xbjzpz/jzzy.vue';///-
import dypyy from './StepComponents/xbjzpz/dypyy.vue';///-
import xd from './StepComponents/xbjzpz/xd.vue';///-
///-使/-
///-使/-
import copy from './StepComponents/xbjzpz/copy.vue';///-CO2
import gc from './StepComponents/xbjzpz/gc.vue';///-
import cdmd from './StepComponents/xbjzpz/cdmd.vue';///-
///-使/-
///-使/-
import cdxs from './StepComponents/xbjzpz/cdxs.vue';///-/
//
import bb from './StepComponents/jcb/bb.vue';//-
//-使-
//-使-
import jy from './StepComponents/jcb/jy.vue';//-
//-使-
//-使-
//-使-
import sjjy_jcb from './StepComponents/jcb/sjjy_jcb.vue';//-
import zhfy from './StepComponents/jcb/zhfy.vue';//-
//-使-
import xs_jcb from './StepComponents/jcb/xs_jcb.vue';//-
//-使-
//-使-
import dbmby from './StepComponents/jcb/dbmby.vue';//-
//-使-
import dbdhxfgxt from './StepComponents/jcb/dbdhxfgxt.vue';//-
import dbygxt from './StepComponents/jcb/dbygxt.vue';//-
import dzacl from './StepComponents/jcb/dzacl.vue';//-ACL
import qb from './StepComponents/jcb/qb.vue';//-
import jzks from './StepComponents/jcb/jzks.vue';//-
import fyxks from './StepComponents/jcb/fyxks.vue';//-
import ycfyks from './StepComponents/jcb/ycfyks.vue';//-
import ycks from './StepComponents/jcb/ycks.vue';//-
import js_jcb from './StepComponents/jcb/js_jcb.vue';//-
//-使-ACL
//-使-ACL
import czqx from './StepComponents/jcb/czqx.vue';//-
import czzx from './StepComponents/jcb/czzx.vue';//-
import ychy from './StepComponents/jcb/ychy.vue';//-
import czzy from './StepComponents/jcb/czzy.vue';//-
import sjbj from './StepComponents/jcb/sjbj.vue';//-
///
import qxb from './StepComponents/xbjzpz/qxb.vue';///-
import qjz from './StepComponents/xbjzpz/qjz.vue';///-
import fr_xbjzpz from './StepComponents/xbjzpz/fr_xbjzpz.vue';///-
import lxqy from './StepComponents/xbjzpz/lxqy.vue';///-
import cd from './StepComponents/xbjzpz/cd.vue';///-
import xbzy from './StepComponents/xbjzpz/xbzy.vue';///-
import jzzy from './StepComponents/xbjzpz/jzzy.vue';///-
import dypyy from './StepComponents/xbjzpz/dypyy.vue';///-
import xd from './StepComponents/xbjzpz/xd.vue';///-
///-使/-
///-使/-
import copy from './StepComponents/xbjzpz/copy.vue';///-CO2
import gc from './StepComponents/xbjzpz/gc.vue';///-
import cdmd from './StepComponents/xbjzpz/cdmd.vue';///-
///-使/-
///-使/-
import cdxs from './StepComponents/xbjzpz/cdxs.vue';///-/
//
@ -431,7 +431,7 @@ export default {
fz,
//
//
//
jrry_b,
cl,
@ -517,7 +517,7 @@ export default {
yxpcry,
cdnsypfz,
//
//
bb,
jy,
sjjy_jcb,
@ -539,7 +539,7 @@ export default {
czzy,
sjbj,
///
///
qxb,
qjz,
fr_xbjzpz,
@ -629,7 +629,7 @@ export default {
'fz': 'fz',
//
//
//
'jrry_b': 'jrry_b',
'cl': 'cl',
'lx_b': 'Lx',
@ -753,7 +753,7 @@ export default {
'yxpcry':'yxpcry',
'cdnsypfz':'cdnsypfz',
//
//
'bb':'bb',
'xb':'bb',
'fb_jcb':'bb',
@ -786,7 +786,7 @@ export default {
'czzy':'czzy',
'sjbj':'sjbj',
///
///
'qxb':'qxb',
'qjz':'qjz',
'fr_xbjzpz':'fr_xbjzpz',

+ 1
- 1
src/components/Template/StepComponents/ContainerStep.vue View File

@ -22,7 +22,7 @@ export default {
formData: {
containerType: '',
},
//
//
fieldConfigs: {
containerType: {
label: '容器选择',

+ 1
- 1
src/components/Template/StepComponents/ZLSubPackage.vue View File

@ -182,7 +182,7 @@ export default {
validateFormData() {
let isValid = true;
//
//
const baseFieldConfigs = this.subConfig;
//

+ 661
- 554
src/components/Template/mixins/formPackageMixins.js
File diff suppressed because it is too large
View File


+ 140
- 116
src/components/Template/mixins/stepMixins.js View File

@ -1,126 +1,150 @@
import { getuuid } from '@/utils/index.js';
import { EventBus } from "@/utils/eventBus";
import { getLatestSn, getLatestSnArr } from '@/api/template';
import { getuuid } from '@/utils/index.js'
import { EventBus } from '@/utils/eventBus'
import { getLatestSn, getLatestSnArr } from '@/api/template'
export default {
inject: ['templateFillType'],
dicts: [
"business_tjdw", "business_czhj", "business_rqcz", "business_zldw",
"business_yqscdw", "business_zsdw", "business_wddw", "business_ccwz", "business_ggdw",
"business_hjxx", "business_zzzc", "business_step_pcr", "business_fycx", "business_step_pcrfxyp",
"business_cctj"
],
props: {
formData: {
type: Object,
default: () => ({})
},
stepIndex: {
type: String,
default: ''
}
inject: ['templateFillType'],
dicts: [
'business_tjdw',
'business_czhj',
'business_rqcz',
'business_zldw',
'business_yqscdw',
'business_zsdw',
'business_wddw',
'business_ccwz',
'business_ggdw',
'business_hjxx',
'business_zzzc',
'business_step_pcr',
'business_fycx',
'business_step_pcrfxyp',
'business_cctj'
],
props: {
formData: {
type: Object,
default: () => ({})
},
data() {
return {
uuid: getuuid(),
fzInfo:null,
}
stepIndex: {
type: String,
default: ''
}
},
data() {
return {
uuid: getuuid(),
fzInfo: null
}
},
mounted() {
EventBus.$on('dialogSubPackageSubmit', (data) => {
this.onSubPackageSubmit(data)
})
EventBus.$on('subPackageDialogPrintTag', (data) => {
this.onPrintTag(data)
})
},
destroyed() {
EventBus.$off('dialogSubPackageSubmit')
EventBus.$off('subPackageDialogPrintTag')
},
methods: {
//获取最新的多个编号
async getLatestSnArr(params) {
const res = await getLatestSnArr(params)
if (res.code === 200) {
return res.data
}
return []
},
mounted() {
EventBus.$on("dialogSubPackageSubmit", (data) => {
this.onSubPackageSubmit(data)
})
EventBus.$on("subPackageDialogPrintTag", (data) => {
this.onPrintTag(data)
})
async getLatestSn(params) {
const defaultParams = {
count: 1,
type: 1,
pre: ''
}
const finalParams = { ...defaultParams, ...params }
const res = await getLatestSn(finalParams)
if (res.code === 200) {
return res.data
}
return []
},
destroyed() {
EventBus.$off("dialogSubPackageSubmit")
EventBus.$off("subPackageDialogPrintTag")
// 打印标签
onPrintTag(data) {
this.$emit('printTag')
},
onSubPackageSubmit(data) {
if (data.uuid === this.uuid) {
console.log(data, 'ddd')
this.fzInfo = data
//通知后端保存数据
const params = {
type: 'fieldChanged',
newRecord: null,
resourceList: null
}
EventBus.$emit('onModifyRecord', params)
}
},
// 点击按钮
onHandleClickButton(e, item, key) {
const {
buttonName = '',
myCodeFields = [],
maxVolumeField = '',
maxVolumeUnitField = ''
} = e
methods: {
//获取最新的多个编号
async getLatestSnArr(params) {
const res = await getLatestSnArr(params)
if (res.code === 200) {
return res.data
}
return []
},
async getLatestSn(params) {
const defaultParams = {
count: 1,
type:1,
pre: '',
}
const finalParams = {...defaultParams, ...params}
const res = await getLatestSn(finalParams)
if (res.code === 200) {
return res.data
}
return []
},
// 打印标签
onPrintTag(data) {
this.$emit("printTag")
},
onSubPackageSubmit(data) {
if (data.uuid === this.uuid) {
console.log(data, "ddd")
this.fzInfo = data;
//通知后端保存数据
const params = {
type: "fieldChanged",
newRecord: null,
resourceList: null,
}
EventBus.$emit('onModifyRecord', params);
}
},
// 点击按钮
onHandleClickButton(e, item, key) {
const { buttonName = "", myCodeFields = [], maxVolumeField = "", maxVolumeUnitField = "" } = e;
if (buttonName === '分装') {
const fields = [];
const stepFormData = this.getFilledFormData();
if (!myCodeFields.length || !maxVolumeField || !maxVolumeUnitField) {
console.warn("请配置分装参数")
return
}
const maxVolume = stepFormData[maxVolumeField];
const maxVolumeUnit = stepFormData[maxVolumeUnitField];
myCodeFields.forEach((key) => {
fields.push(stepFormData[key])
});
if (buttonName === '分装') {
const fields = []
const stepFormData = this.getFilledFormData()
if (!myCodeFields.length || !maxVolumeField || !maxVolumeUnitField) {
console.warn('请配制分装参数')
return
}
const maxVolume = stepFormData[maxVolumeField]
const maxVolumeUnit = stepFormData[maxVolumeUnitField]
myCodeFields.forEach((key) => {
fields.push(stepFormData[key])
})
EventBus.$emit("showSubPackageDialog", { mybh: fields.join(""), maxVolume, maxVolumeUnit, uuid: this.uuid, fzType: "step" })
}
},
EventBus.$emit('showSubPackageDialog', {
mybh: fields.join(''),
maxVolume,
maxVolumeUnit,
uuid: this.uuid,
fzType: 'step'
})
}
},
async getFormData() {
return await this.$refs.stepFormPackageRef.getFormData();
},
getFilledFormData() {
return this.$refs.stepFormPackageRef?.getFilledFormData();
},
getSjResource() {
return this.$refs.stepFormPackageRef?.getSjResource();
},
//试验配制条件options
getDictOptions(dictType) {
return this.dict.type[dictType] || []
},
resetRecord() {
this.$refs.stepFormPackageRef.resetRecord();
},
//更新温层数据
updateWcData(key, value) {
const options = this.getDictOptions("business_ccwz");
const selectedOption = options.find(item => item.value === value);
if (selectedOption) {
this.$refs.stepFormPackageRef.updateFormData(key, [selectedOption.raw.remark]);
}
}
async getFormData() {
return await this.$refs.stepFormPackageRef.getFormData()
},
getFilledFormData() {
return this.$refs.stepFormPackageRef?.getFilledFormData()
},
getSjResource() {
return this.$refs.stepFormPackageRef?.getSjResource()
},
//试验配制条件options
getDictOptions(dictType) {
return this.dict.type[dictType] || []
},
resetRecord() {
this.$refs.stepFormPackageRef.resetRecord()
},
//更新温层数据
updateWcData(key, value) {
const options = this.getDictOptions('business_ccwz')
const selectedOption = options.find((item) => item.value === value)
if (selectedOption) {
this.$refs.stepFormPackageRef.updateFormData(key, [
selectedOption.raw.remark
])
}
}
}
}

+ 3
- 3
src/components/Template/operation/TableOpertaion.vue View File

@ -105,11 +105,11 @@ export default {
});
return o;
},
//
//
onStartConfig() {
this.$emit("startConfig", { rowData: this.innerRow, rowIndex: this.rowIndex, headerSelectFields: this.columns.headerSelectFields })
},
//
//
onConfigComplete() {
const actConfig = this.getColumnConfig();
const cloneRow = JSON.parse(JSON.stringify(this.innerRow));
@ -149,7 +149,7 @@ export default {
const { myCodeFields, maxVolumeField, maxVolumeFieldUnit } = col;
const fields = [], cols = [], units = [];
if(!myCodeFields || myCodeFields.length === 0){
console.warn("请先配myCodeFields字段")
console.warn("请先配myCodeFields字段")
return
}
myCodeFields.forEach((key) => {

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

@ -13,7 +13,7 @@ import user from './en/system/user'
import template from './en/system/template'
// 字典管理
import dict from './en/system/dict'
// 公共模板语言配
// 公共模板语言配
import commonTemplate from './en/template/commonTemplate'
//色谱模板
import sp from './en/template/sp'

+ 1
- 1
src/lang/en/business/study/studyEnter.js View File

@ -16,7 +16,7 @@ export default {
czfzr: 'Leader',
xzfzr: 'Choose',
pzfflb: '配方法列表',
pzfflb: '配方法列表',
sjlb: '试剂列表',
gsplb: '供试品列表',

+ 22
- 22
src/lang/en/template/gsp.js View File

@ -47,29 +47,29 @@ export default {
xzry: '新增溶液',
zl: '质量',
ry: '溶液',
jspz:'结束配置',
kspz:'开始配置',
pzkssj:'配置开始时间',
pzjssj:'配置结束时间',
sywzbhph:'试验物质编号/批号',
yrybhph:'源溶液编号/批号',
yrymc:'源溶液名称',
yryyjtj:'源溶液预计体积',
yrysjtj:'源溶液实际体积',
yryyjnd:'源溶液预计浓度',
yrysjnd:'源溶液实际浓度',
yryxs:'源溶液系数',
sywzmc:'试验物资名称',
sywzzsxs:'试验物资折射系数',
sywzyjclz:'试验物质预计称量值',
sywzsjclz:'试验物质实际称量值',
rjbhph:'溶剂编号/批号',
rjmc:'溶剂名称',
rjyjtj:'溶剂预计体积',
rjsjtj:'溶剂实际体积',
jspz: '结束配制',
kspz: '开始配制',
pzkssj: '配制开始时间',
pzjssj: '配制结束时间',
sywzbhph: '试验物质编号/批号',
yrybhph: '源溶液编号/批号',
yrymc: '源溶液名称',
yryyjtj: '源溶液预计体积',
yrysjtj: '源溶液实际体积',
yryyjnd: '源溶液预计浓度',
yrysjnd: '源溶液实际浓度',
yryxs: '源溶液系数',
sywzmc: '试验物资名称',
sywzzsxs: '试验物资折射系数',
sywzyjclz: '试验物质预计称量值',
sywzsjclz: '试验物质实际称量值',
rjbhph: '溶剂编号/批号',
rjmc: '溶剂名称',
rjyjtj: '溶剂预计体积',
rjsjtj: '溶剂实际体积'
},
gsp007:{
bzqx:'标准曲线',
gsp007: {
bzqx: '标准曲线'
},
gsp009: {
xtsyx: '系统适应性',

+ 2
- 2
src/lang/zh.js View File

@ -13,7 +13,7 @@ import user from './zh/system/user'
import template from './zh/system/template'
// 字典管理
import dict from './zh/system/dict'
// 公共模板语言配
// 公共模板语言配
import commonTemplate from './zh/template/commonTemplate'
//色谱模板
import sp from './zh/template/sp'
@ -153,7 +153,7 @@ export default {
closeAll: '关闭所有'
},
settings: {
title: '系统布局配',
title: '系统布局配',
theme: '主题色',
tagsView: '开启 Tags-View',
fixedHeader: '固定 Header',

+ 7
- 8
src/lang/zh/business/study/studyEnter.js View File

@ -16,13 +16,12 @@ export default {
czfzr: '学科/操作负责人',
xzfzr: '选择负责人',
pzfflb: '配方法列表',
pzfflb: '配方法列表',
sjlb:'试剂列表',
gsplb:'供试品列表',
gyzjlb:'给药制剂列表',
mjylb:'麻精药列表',
xblb:'细胞列表',
xjlb:'细菌列表',
sjlb: '试剂列表',
gsplb: '供试品列表',
gyzjlb: '给药制剂列表',
mjylb: '麻精药列表',
xblb: '细胞列表',
xjlb: '细菌列表'
}

+ 2
- 2
src/lang/zh/business/study/studyFormPlan.js View File

@ -20,7 +20,7 @@ export default {
bzyy: '备注原因',
jcgj: '稽查轨迹',
cjjl: '创建记录',
xzpzjhb: '新增配计划表',
xzpzjhb: '新增配计划表',
yes: '是',
shryId: '复核人员',
no: '否',
@ -49,7 +49,7 @@ export default {
cjsj: '创建时间',
sdsy: '锁定试验',
syjj: '试验简介',
xz: '新增配计划表',
xz: '新增配计划表',
syxkxx: '试验学科信息',
ysy: '已审阅'
}

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

@ -6,7 +6,7 @@ export default {
statusEnable: '启用',
statusDisable: '禁用',
bj: '编辑',
bdpz: '表单配',
bdpz: '表单配',
select: '选择',
selectTemplate: '选择表单模板',
detail: '详情'

+ 23
- 23
src/lang/zh/template/gsp.js View File

@ -7,7 +7,7 @@ export default {
lqsj: '领取时间',
fxsj: '分析时间',
sywz: '试验物质',
pzpl: '配频率',
pzpl: '配频率',
gyzjhzb: '给药剂量或组别',
pznd: '配制浓度',
pztj: '配制体积'
@ -47,29 +47,29 @@ export default {
xzry: '新增溶液',
zl: '质量',
ry: '溶液',
jspz:'结束配置',
kspz:'开始配置',
pzkssj:'配置开始时间',
pzjssj:'配置结束时间',
sywzbhph:'试验物质编号/批号',
yrybhph:'源溶液编号/批号',
yrymc:'源溶液名称',
yryyjtj:'源溶液预计体积',
yrysjtj:'源溶液实际体积',
yryyjnd:'源溶液预计浓度',
yrysjnd:'源溶液实际浓度',
yryxs:'源溶液系数',
sywzmc:'试验物资名称',
sywzzsxs:'试验物资折射系数',
sywzyjclz:'试验物质预计称量值',
sywzsjclz:'试验物质实际称量值',
rjbhph:'溶剂编号/批号',
rjmc:'溶剂名称',
rjyjtj:'溶剂预计体积',
rjsjtj:'溶剂实际体积',
jspz: '结束配制',
kspz: '开始配制',
pzkssj: '配制开始时间',
pzjssj: '配制结束时间',
sywzbhph: '试验物质编号/批号',
yrybhph: '源溶液编号/批号',
yrymc: '源溶液名称',
yryyjtj: '源溶液预计体积',
yrysjtj: '源溶液实际体积',
yryyjnd: '源溶液预计浓度',
yrysjnd: '源溶液实际浓度',
yryxs: '源溶液系数',
sywzmc: '试验物资名称',
sywzzsxs: '试验物资折射系数',
sywzyjclz: '试验物质预计称量值',
sywzsjclz: '试验物质实际称量值',
rjbhph: '溶剂编号/批号',
rjmc: '溶剂名称',
rjyjtj: '溶剂预计体积',
rjsjtj: '溶剂实际体积'
},
gsp007:{
bzqx:'标准曲线',
gsp007: {
bzqx: '标准曲线'
},
gsp009: {
xtsyx: '系统适应性',

+ 3
- 3
src/layout/components/Settings/index.vue View File

@ -37,7 +37,7 @@
<el-divider/>
<h3 class="drawer-title">系统布局配</h3>
<h3 class="drawer-title">系统布局配</h3>
<div class="drawer-item">
<span>开启 TopNav</span>
@ -76,8 +76,8 @@
<el-divider/>
<el-button type="primary" plain icon="el-icon-document-add" @click="saveSetting">保存配</el-button>
<el-button plain icon="el-icon-refresh" @click="resetSetting">重置配</el-button>
<el-button type="primary" plain icon="el-icon-document-add" @click="saveSetting">保存配</el-button>
<el-button plain icon="el-icon-refresh" @click="resetSetting">重置配</el-button>
</div>
</div>
</el-drawer>

+ 2
- 2
src/router/index.js View File

@ -7,7 +7,7 @@ Vue.use(Router)
import Layout from '@/layout'
/**
* Note: 路由配
* Note: 路由配
*
* hidden: true // 当设置 true 的时候该路由不会再侧边栏出现 如401,login等页面,或者如一些编辑页面/edit/1
* alwaysShow: true // 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面
@ -164,7 +164,7 @@ export const dynamicRoutes = [
path: 'index/:tableId(\\d+)',
component: () => import('@/views/tool/gen/editTable'),
name: 'GenEdit',
meta: { title: '修改生成配', activeMenu: '/tool/gen' }
meta: { title: '修改生成配', activeMenu: '/tool/gen' }
}
]
},

+ 2
- 2
src/settings.js View File

@ -10,7 +10,7 @@ module.exports = {
sideTheme: 'theme-dark',
/**
* 系统布局配
* 系统布局配
*/
showSettings: true,
@ -23,7 +23,7 @@ module.exports = {
* 是否显示 tagsView
*/
tagsView: true,
/**
* 显示页签图标
*/

+ 1
- 1
src/utils/request.js View File

@ -15,7 +15,7 @@ export let isRelogin = { show: false }
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 创建axios实例
const service = axios.create({
// axios中请求配有baseURL选项,表示请求URL公共部分
// axios中请求配有baseURL选项,表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API,
// 超时
timeout: 90000

+ 2
- 2
src/views/business/comps/template/comps/bl/BL001.vue View File

@ -121,7 +121,7 @@ export default {
}
},
computed: {
//
//
remarkConig() {
return [
{
@ -140,7 +140,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

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

@ -102,7 +102,7 @@ export default {
}
},
computed: {
//
//
smyRemarkConig() {
return [
{
@ -121,7 +121,7 @@ export default {
}
]
},
//
//
ztblxjRemarkConig() {
return [
{
@ -140,7 +140,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

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

@ -93,7 +93,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -112,7 +112,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -133,7 +133,7 @@ export default {
]
},
//
//
operateConfig() {
return [
{
@ -149,7 +149,7 @@ export default {
]
},
//
//
fhfwCheckBoxConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dj/DJ002.vue View File

@ -121,7 +121,7 @@ export default {
}
},
computed: {
//
//
remarkConig() {
return [
{
@ -140,7 +140,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dj/DJ003.vue View File

@ -97,7 +97,7 @@ export default {
}
},
computed: {
//
//
remarkConig() {
return [
{
@ -116,7 +116,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL003.vue View File

@ -91,7 +91,7 @@ export default {
}
},
computed: {
//
//
remarkConig() {
return [
{
@ -117,7 +117,7 @@ export default {
// }
// const re = convertConcentration.convert('100mg/mL',"ng/mL")
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL004.vue View File

@ -99,7 +99,7 @@ export default {
}
},
computed: {
//
//
remarkConig() {
return [
{
@ -125,7 +125,7 @@ export default {
// }
// const re = convertConcentration.convert('100mg/mL',"ng/mL")
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL005.vue View File

@ -79,7 +79,7 @@ export default {
}
},
computed: {
//
//
remarkConig() {
return [
{
@ -105,7 +105,7 @@ export default {
// }
// const re = convertConcentration.convert('100mg/mL',"ng/mL")
},
//
//
baseInfoFormConfig() {
return [
{

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

@ -156,7 +156,7 @@ export default {
this.rawCzxxColumns = newColumns;
}
},
//
//
remarkConig() {
return [
{
@ -176,7 +176,7 @@ export default {
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -584,7 +584,7 @@ export default {
onCzChange(e) {
const { sftjs9 , key } = e;
if(key == 'sftjs9'){
//
//
const configMap = {
1: {
s9hhybh: {
@ -622,7 +622,7 @@ export default {
}
};
//
//
let addConfig, removeKeys;
if (sftjs9 === 1) {
addConfig = configMap[1];
@ -648,11 +648,11 @@ export default {
//
const lastConfig = lastKey ? { [lastKey]: newConfig[lastKey] } : {};
// 3.
// 3.
newConfig = {
...frontConfig, //
...addConfig, //
...lastConfig //
...frontConfig, //
...addConfig, //
...lastConfig //
};
// 4. item.config
@ -664,7 +664,7 @@ export default {
clickFinish() {
//
const { jzs, jlzsl, pxms, qsbh, stepTableFormData = [] } = this.getFilledFormData();
//
//
let columns = [];
// 1.
@ -734,9 +734,9 @@ export default {
bodyFillType: 'actFill', // bodyTypeFillType
});
// 1
// 1
this.rawCzxxColumns = [...columns]; //
this.$nextTick(() => { //
this.$nextTick(() => { //
const doseGroupCount = Number(stepTableFormData.length) || 0;
const parallelDishCount = Number(pxms) || 0;
if (doseGroupCount <= 0 || parallelDishCount <= 0) {

+ 2
- 2
src/views/business/comps/template/comps/dl/DL007.vue View File

@ -97,7 +97,7 @@ export default {
}
},
computed: {
//
//
remarkConfig() {
return [
{
@ -116,7 +116,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

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

@ -124,7 +124,7 @@ export default {
headerSelectFields: {}
}
},
//
//
remarkConfig() {
return [
{
@ -163,7 +163,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -212,9 +212,9 @@ export default {
}
]
},
// -checkbox
// -checkbox
cxqkColumns() {
//
//
return this.dynamicCxqkColumns
},
// 使
@ -275,7 +275,7 @@ export default {
return {
formData: {},
refConf,
dynamicCxqkColumns: [], //
dynamicCxqkColumns: [], //
isDataLoaded: false //
}
},
@ -327,7 +327,7 @@ export default {
return
}
// Label
// Label
const dynamicColumns = [
{
label: 'template.dl.dl008.jlzb',
@ -367,11 +367,11 @@ export default {
})
})
//
//
this.dynamicCxqkColumns = dynamicColumns
this.isDataLoaded = true
//
//
this.$nextTick(() => {
if (this.$refs[refConf.cxqk]) {
this.$refs[refConf.cxqk].updateDataSource(stepTableFormData_1)
@ -486,7 +486,7 @@ export default {
return
}
// 1.
// 1.
const dynamicColumns = this.generateDynamicColumns(headerFields)
if (!dynamicColumns) {
this.clearCxqkTable()
@ -511,7 +511,7 @@ export default {
}
},
//
//
generateDynamicColumns(headerFields) {
// _1 key
const columnKeys = Object.keys(headerFields)
@ -592,7 +592,7 @@ export default {
//
updateCxqkTable(columns, tableData, headerFields) {
//
//
this.dynamicCxqkColumns = columns
// headerFields formData

+ 16
- 16
src/views/business/comps/template/comps/dl/DL009.vue View File

@ -137,7 +137,7 @@ export default {
headerSelectFields: {}
}
},
//
//
remarkConfig() {
return [
{
@ -156,7 +156,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -176,7 +176,7 @@ export default {
}
]
},
//
//
cltjFormConfig() {
return [
{
@ -259,7 +259,7 @@ export default {
}
]
},
//
//
jgxxQxbdFormConfig() {
return [
{
@ -278,7 +278,7 @@ export default {
},
//
jgxxColumns() {
//
//
return this.dynamicJgxxColumns
}
},
@ -286,7 +286,7 @@ export default {
return {
formData: {},
refConf,
dynamicJgxxColumns: [], //
dynamicJgxxColumns: [], //
isDataLoaded: false //
}
},
@ -317,11 +317,11 @@ export default {
deep: true,
immediate: true
},
//
//
'dict.type.business_dl_amescdqk': {
handler(newVal) {
if (newVal && newVal.length > 0 && this.dynamicJgxxColumns.length > 0) {
// bodyOptions
// bodyOptions
this.updateDynamicColumnsOptions()
}
},
@ -362,7 +362,7 @@ export default {
return
}
// jzbh
// jzbh
const dynamicColumns = [
{
label: 'template.dl.dl009.jlzb',
@ -422,7 +422,7 @@ export default {
})
})
//
//
this.dynamicJgxxColumns = dynamicColumns
// headerSelectFields formData.headerSelectFields
@ -439,7 +439,7 @@ export default {
this.isDataLoaded = true
//
//
this.$nextTick(() => {
const tableRef = this.$refs[refConf.jgxx]
if (tableRef) {
@ -606,7 +606,7 @@ export default {
return
}
// 1.
// 1.
const dynamicColumns = this.generateDynamicJgxxColumns(headerFields)
if (!dynamicColumns) {
this.clearJgxxTable()
@ -635,7 +635,7 @@ export default {
const formData = this.getStepResource()
},
//
//
generateDynamicJgxxColumns(headerFields) {
// _1 key
const columnKeys = Object.keys(headerFields)
@ -736,7 +736,7 @@ export default {
//
updateJgxxTable(columns, tableData, headerFields, savedYqsyData) {
//
//
this.dynamicJgxxColumns = columns
// headerFields formData
@ -792,13 +792,13 @@ export default {
this.$refs[refConf.jgxx]?.updateDataSource([])
})
},
//
//
updateDynamicColumnsOptions() {
if (this.dynamicJgxxColumns.length === 0) {
return
}
// select bodyOptions
// select bodyOptions
this.dynamicJgxxColumns.forEach((col) => {
if (col.bodyType === 'select') {
if (col.prop.startsWith('czqk')) {

+ 2
- 2
src/views/business/comps/template/comps/dl/DL010.vue View File

@ -127,7 +127,7 @@ export default {
}
},
computed: {
//
//
remarkConfig() {
return [
{
@ -146,7 +146,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL011.vue View File

@ -114,7 +114,7 @@ export default {
}
},
computed: {
//
//
remarkConfig() {
return [
{
@ -133,7 +133,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

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

@ -79,7 +79,7 @@ export default {
}
},
computed: {
//
//
remarkConfig() {
return [
{
@ -98,7 +98,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -147,7 +147,7 @@ export default {
}
]
},
//
//
pyxxConfig() {
return [
{
@ -176,7 +176,7 @@ export default {
}
]
},
// - formData zbhxbbh_
// - formData zbhxbbh_
xbxxConfig() {
const config = {
xbmc: {
@ -298,7 +298,7 @@ export default {
}
}
// formFields
// formFields
if (Object.keys(updateData).length > 0) {
this.$nextTick(() => {
this.$refs[refConf.xbxx].batchUpdateFormData(updateData)

+ 7
- 7
src/views/business/comps/template/comps/dl/DL013.vue View File

@ -141,7 +141,7 @@ export default {
}
},
computed: {
//
//
remarkConfig() {
return [
{
@ -160,7 +160,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -317,7 +317,7 @@ export default {
}
},
methods: {
//
//
getCdxxTimeConfig(index) {
return [
{
@ -421,7 +421,7 @@ export default {
return 0
}
},
//
//
handleCdxxDelete(cdxxItem) {
const configIndex = this.formData.cdxxConfigs.findIndex(
(config) => config.id === cdxxItem.id
@ -467,12 +467,12 @@ export default {
this.$set(this.formData, 'yqsyTableheaderFields', currentYqsyData.headerFields || {})
}
//
//
if (!this.formData.cdxxConfigs) {
this.$set(this.formData, 'cdxxConfigs', [])
}
//
//
const newCdxxItem = {
id: getuuid(),
xsbs: null,
@ -483,7 +483,7 @@ export default {
yxg: null
}
//
//
this.formData.cdxxConfigs.push(newCdxxItem)
//

+ 7
- 7
src/views/business/comps/template/comps/dl/DL014.vue View File

@ -124,7 +124,7 @@ export default {
headerSelectFields: this.formData.jlzHeaderSelectFields || {}
}
},
//
//
remarkConfig() {
return [
{
@ -143,7 +143,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -227,7 +227,7 @@ export default {
}
]
},
//
//
xbInfoFormConfig() {
return [
{
@ -253,7 +253,7 @@ export default {
}
]
},
//
//
jlzInfoFormConfig() {
const firstStepConfig = {
pxpb: {
@ -306,7 +306,7 @@ export default {
}
]
},
//
//
jlzmcTableColumns() {
return [
{
@ -318,7 +318,7 @@ export default {
}
]
},
//
//
pyyFormConfig() {
return [
{
@ -337,7 +337,7 @@ export default {
}
]
},
//
//
jlzTableColumns() {
const columns = [
{

+ 4
- 4
src/views/business/comps/template/comps/dl/DL015.vue View File

@ -115,7 +115,7 @@ export default {
headerSelectFields: this.formData.headerSelectFields || {}
}
},
//
//
remarkConfig() {
return [
{
@ -134,7 +134,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -184,7 +184,7 @@ export default {
}
]
},
//
//
xbInfoFormConfig() {
return [
{
@ -209,7 +209,7 @@ export default {
}
]
},
//
//
hyqkColumns() {
return [
{

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

@ -68,7 +68,7 @@ export default {
headerSelectFields: {}
}
},
//
//
remarkConig() {
return [
{
@ -87,7 +87,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL017.vue View File

@ -69,7 +69,7 @@ export default {
headerSelectFields: {}
}
},
//
//
remarkConig() {
return [
{
@ -88,7 +88,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

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

@ -72,7 +72,7 @@ export default {
headerSelectFields: {}
}
},
//
//
remarkConig() {
return [
{
@ -91,7 +91,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

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

@ -75,7 +75,7 @@ export default {
headerSelectFields: {}
}
},
//
//
remarkConig() {
return [
{
@ -94,7 +94,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL020.vue View File

@ -45,7 +45,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -64,7 +64,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL021.vue View File

@ -70,7 +70,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -89,7 +89,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL022.vue View File

@ -74,7 +74,7 @@ export default {
headerSelectFields: {}
}
},
//
//
remarkConig() {
return [
{
@ -93,7 +93,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/dl/DL023.vue View File

@ -58,7 +58,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -77,7 +77,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

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

@ -75,7 +75,7 @@ export default {
headerSelectFields: {}
}
},
//
//
remarkConig() {
return [
{
@ -94,7 +94,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 4
- 4
src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue View File

@ -72,7 +72,7 @@ export default {
},
},
computed: {
//
//
storageFormConfig() {
return [
{
@ -90,7 +90,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -109,7 +109,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -180,7 +180,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{

+ 4
- 4
src/views/business/comps/template/comps/gsp/GSP001.vue View File

@ -71,7 +71,7 @@ export default {
},
},
computed: {
//
//
storageFormConfig() {
return [
{
@ -89,7 +89,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -108,7 +108,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -179,7 +179,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{

+ 6
- 6
src/views/business/comps/template/comps/gsp/GSP002.vue View File

@ -105,7 +105,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -124,7 +124,7 @@ export default {
}
];
},
//
//
baseInfoFormConfig() {
return [
{
@ -546,7 +546,7 @@ export default {
"存储条件": stepStorageCondition || paralleStepStorageCondition,
"配制日期": moment(startDate).format("YYYY-MM-DD"),
"有效期至": moment(targetSolutionExpirationDate || expireDate).format("YYYY-MM-DD HH:mm"),
"配者": lang === "zh_CN" ? nickName : name,
"配者": lang === "zh_CN" ? nickName : name,
//type==="subPackage"
//type==="row"
"编号": type === "subPackage" ? printCode : (row.targetSolutionCode + row.subTargetSolutionCode),
@ -613,18 +613,18 @@ export default {
},
//
handleAddParalle() {
//
//
if (!this.formData.paralleConfigs) {
this.$set(this.formData, 'paralleConfigs', []);
}
//
//
this.formData.paralleConfigs.push({
paralleStepData: [],
paralleTableFormData: [],
showParalleConfig: true
});
},
//
//
deleteParalleConfig(index) {
this.formData.paralleConfigs.splice(index, 1);
},

+ 4
- 4
src/views/business/comps/template/comps/gsp/GSP003.vue View File

@ -94,7 +94,7 @@ export default {
}
];
},
//
//
storageFormConfig() {
return [
{
@ -112,7 +112,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -131,7 +131,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -202,7 +202,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{

+ 6
- 6
src/views/business/comps/template/comps/gsp/GSP004.vue View File

@ -101,7 +101,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -137,7 +137,7 @@ export default {
}
];
},
//
//
baseInfoFormConfig() {
return [
{
@ -569,7 +569,7 @@ export default {
"存储条件": stepStorageCondition || paralleStepStorageCondition,
"配制日期": moment(startDate).format("YYYY-MM-DD"),
"有效期至": moment(targetSolutionExpirationDate || expireDate).format("YYYY-MM-DD HH:mm"),
"配者": lang === "zh_CN" ? nickName : name,
"配者": lang === "zh_CN" ? nickName : name,
//type==="subPackage"
//type==="row"
"编号": type === "subPackage" ? printCode : (row.targetSolutionCode + row.subTargetSolutionCode),
@ -636,18 +636,18 @@ export default {
},
//
handleAddParalle() {
//
//
if (!this.formData.paralleConfigs) {
this.$set(this.formData, 'paralleConfigs', []);
}
//
//
this.formData.paralleConfigs.push({
paralleStepData: [],
paralleTableFormData: [],
showParalleConfig: true
});
},
//
//
deleteParalleConfig(index) {
this.formData.paralleConfigs.splice(index, 1);
},

+ 6
- 6
src/views/business/comps/template/comps/gsp/GSP005.vue View File

@ -114,7 +114,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -133,7 +133,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -634,7 +634,7 @@ export default {
onClickButtonZl(zlIndex, data){
alert('todo')
},
//
//
ryKspz(zlIndex) {
this.$refs[`formRyConfigFormPackageRef_${zlIndex}`][0].updateFormData('pzkssj', moment().format("YYYY-MM-DD HH:mm:ss"))
const rowData = this.$refs[`formRyConfigFormPackageRef_${zlIndex}`][0].getFilledFormData()
@ -646,7 +646,7 @@ export default {
}
this.startConfigRequest(postData);
},
//
//
ryJspz(zlIndex) {
this.$refs[`formRyConfigFormPackageRef_${zlIndex}`][0].updateFormData('pzjssj', moment().format("YYYY-MM-DD HH:mm:ss"))
const rowData = this.$refs[`formRyConfigFormPackageRef_${zlIndex}`][0].getFilledFormData()
@ -663,7 +663,7 @@ export default {
}
this.configCompleteRequest(postData);
},
//
//
zlKspz(zlIndex) {
this.$refs[`formZlConfigFormPackageRef_${zlIndex}`][0].updateFormData('pzkssj', moment().format("YYYY-MM-DD HH:mm:ss"))
const rowData = this.$refs[`formZlConfigFormPackageRef_${zlIndex}`][0].getFilledFormData()
@ -675,7 +675,7 @@ export default {
}
this.startConfigRequest(postData);
},
//
//
zlJspz(zlIndex) {
this.$refs[`formZlConfigFormPackageRef_${zlIndex}`][0].updateFormData('pzjssj', moment().format("YYYY-MM-DD HH:mm:ss"))
const rowData = this.$refs[`formZlConfigFormPackageRef_${zlIndex}`][0].getFilledFormData()

+ 6
- 6
src/views/business/comps/template/comps/gsp/GSP009.vue View File

@ -75,7 +75,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -94,7 +94,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -259,7 +259,7 @@ export default {
//resource
let tmpResource = []
if (this.fillType === "actFill") {
//
//
if (content.paralleConfigs && content.paralleConfigs.length > 0) {
for (let i = 0; i < content.paralleConfigs.length; i++) {
let paralleConfigs = content.paralleConfigs[i]
@ -309,18 +309,18 @@ export default {
isAdd = true
}
if(isAdd){
//
//
if (!this.formData.paralleConfigs) {
this.$set(this.formData, 'paralleConfigs', []);
}
//
//
this.formData.paralleConfigs.push({
showParalleConfig: true
});
}
//todo:
},
//
//
deleteParalleConfig(index) {
if(this.formData.paralleConfigs.length===1){
this.$message.error("至少需要1个");

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

@ -68,7 +68,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -87,7 +87,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -158,7 +158,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{

+ 5
- 5
src/views/business/comps/template/comps/gsp/GSP015.vue View File

@ -141,11 +141,11 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return getRemarkFormConfig(this)
},
//
//
baseInfoFormConfig() {
return getBaseInfoFormConfig(this)
},
@ -161,7 +161,7 @@ export default {
yjColumns() {
return getJyTableColumns(this)
},
//
//
ecFormConfig() {
return getEcFormConfig(this)
},
@ -307,7 +307,7 @@ export default {
id: getuuid(),
}
this.formData = { ...this.formData, ...this.getFilledFormData() };
//
//
this.formData[type].push(defaultInfo);
this.justUpdateFilledFormData();
},
@ -391,7 +391,7 @@ export default {
//resource
let tmpResource = []
if (this.fillType === "actFill") {
//
//
tmpResource.push({
mc: content.targetName,
bh: content.targetCode + content.targetCodeSn,

+ 2
- 2
src/views/business/comps/template/comps/gsp/MJYLQSQD.vue View File

@ -63,7 +63,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -82,7 +82,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 4
- 4
src/views/business/comps/template/comps/gsp/SYWZPZJHB.vue View File

@ -62,7 +62,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -81,7 +81,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -102,7 +102,7 @@ export default {
},
]
},
//
//
stepFormConfig() {
return [
{
@ -132,7 +132,7 @@ export default {
}
]
},
//
//
stepColumns() {
return [
{

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

@ -61,7 +61,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -80,7 +80,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -151,7 +151,7 @@ export default {
}
]
},
//
//
tableStepColumns() {
return [{
label: 'template.lba.lba002.jcbmc',

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

@ -46,7 +46,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -65,7 +65,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -135,7 +135,7 @@ export default {
}
]
},
//
//
getFjFormConfig() {
return [
{

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

@ -105,7 +105,7 @@ export default {
},
},
computed: {
//
//
jcbColumns() {
return [{
label: 'template.lba.lba002.jcbmc',
@ -122,7 +122,7 @@ export default {
width: 280
}]
},
//
//
remarkConig() {
return [
{
@ -141,7 +141,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -211,7 +211,7 @@ export default {
}
]
},
//
//
getFjFormConfig() {
return [
{
@ -385,7 +385,7 @@ export default {
//resource
let tmpResource = []
if (this.fillType === "actFill") {
//
//
if (content.paralleConfigs && content.paralleConfigs.length > 0) {
for (let i = 0; i < content.paralleConfigs.length; i++) {
let paralleConfigs = content.paralleConfigs[i]
@ -449,11 +449,11 @@ export default {
isAdd = true
}
if(isAdd){
//
//
if (!this.formData.paralleConfigs) {
this.$set(this.formData, 'paralleConfigs', []);
}
//
//
this.formData.paralleConfigs.push({
paralleStepData: [],
paralleTableFormData: [],
@ -461,7 +461,7 @@ export default {
});
}
},
//
//
deleteParalleConfig(index) {
if(this.formData.paralleConfigs.length===1){
this.$message.error("至少需要1个");

+ 5
- 5
src/views/business/comps/template/comps/lba/LBA006.vue View File

@ -67,7 +67,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -86,7 +86,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -257,18 +257,18 @@ export default {
isAdd = true
}
if(isAdd){
//
//
if (!this.formData.paralleConfigs) {
this.$set(this.formData, 'paralleConfigs', []);
}
//
//
this.formData.paralleConfigs.push({
showParalleConfig: true,
uuid:getuuid()
});
}
},
//
//
deleteParalleConfig(index) {
if(this.formData.paralleConfigs.length===1){
this.$message.error("至少需要1个");

+ 5
- 5
src/views/business/comps/template/comps/lba/LBA008.vue View File

@ -76,7 +76,7 @@ export default {
tableStepColumns() {
return getLBA008Config(this);
},
//
//
getFjFormConfig() {
return [
{
@ -91,7 +91,7 @@ export default {
}
]
},
//
//
storageFormConfig() {
return [
{
@ -109,7 +109,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -128,7 +128,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -185,7 +185,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{

+ 6
- 6
src/views/business/comps/template/comps/pcr/PCR005.vue View File

@ -80,7 +80,7 @@ export default {
tableStepColumns() {
return getPCR005Config(this);
},
//
//
getFjFormConfig() {
return [
{
@ -95,7 +95,7 @@ export default {
}
]
},
//
//
storageFormConfig() {
return [
{
@ -113,7 +113,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -132,7 +132,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -201,7 +201,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{
@ -328,7 +328,7 @@ export default {
let tableList = content.stepTableFormData
if (tableList && tableList.length > 0) {
for (let i = 0; i < tableList.length; i++) {
//
//
let item = tableList[i]
console.log('表格item:' + JSON.stringify(item))

+ 5
- 5
src/views/business/comps/template/comps/pcr/PCR007.vue View File

@ -77,7 +77,7 @@ export default {
tableStepColumns() {
return getPCR007Config(this);
},
//
//
getFjFormConfig() {
return [
{
@ -92,7 +92,7 @@ export default {
}
]
},
//
//
storageFormConfig() {
return [
{
@ -110,7 +110,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -129,7 +129,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -163,7 +163,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{

+ 4
- 4
src/views/business/comps/template/comps/pcr/PCR008.vue View File

@ -74,7 +74,7 @@ export default {
tableStepColumns() {
return getPCR008Config(this);
},
//
//
storageFormConfig() {
return [
{
@ -92,7 +92,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -111,7 +111,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -168,7 +168,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{

+ 6
- 6
src/views/business/comps/template/comps/pcr/PCR009.vue View File

@ -76,7 +76,7 @@ export default {
tableStepColumns() {
return getPCR009Config(this);
},
//
//
getFjFormConfig() {
return [
{
@ -91,7 +91,7 @@ export default {
}
]
},
//
//
storageFormConfig() {
return [
{
@ -109,7 +109,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -128,7 +128,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -185,7 +185,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{
@ -307,7 +307,7 @@ export default {
let tableList = content.stepTableFormData
if (tableList && tableList.length > 0) {
for (let i = 0; i < tableList.length; i++) {
//
//
let item = tableList[i]
console.log('表格item:' + JSON.stringify(item))

+ 5
- 5
src/views/business/comps/template/comps/pcr/PCR010.vue View File

@ -76,7 +76,7 @@ export default {
tableStepColumns() {
return getPCR010Config(this);
},
//
//
storageFormConfig() {
return [
{
@ -94,7 +94,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -113,7 +113,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -170,7 +170,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{
@ -282,7 +282,7 @@ export default {
let tableList = content.stepTableFormData
if (tableList && tableList.length > 0) {
for (let i = 0; i < tableList.length; i++) {
//
//
let item = tableList[i]
console.log('表格item:' + JSON.stringify(item))

+ 5
- 5
src/views/business/comps/template/comps/pcr/PCR011.vue View File

@ -76,7 +76,7 @@ export default {
tableStepColumns() {
return getPCR010Config(this);
},
//
//
storageFormConfig() {
return [
{
@ -94,7 +94,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -113,7 +113,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -170,7 +170,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{
@ -282,7 +282,7 @@ export default {
let tableList = content.stepTableFormData
if (tableList && tableList.length > 0) {
for (let i = 0; i < tableList.length; i++) {
//
//
let item = tableList[i]
console.log('表格item:' + JSON.stringify(item))

+ 7
- 7
src/views/business/comps/template/comps/pcr/PCR012.vue View File

@ -62,7 +62,7 @@ export default {
tableStepColumns() {
return getPCR010Config(this);
},
//
//
storageFormConfig() {
return [
{
@ -80,7 +80,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -99,7 +99,7 @@ export default {
}
]
},
//
//
getFjFormConfig() {
return [
{
@ -114,7 +114,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -171,7 +171,7 @@ export default {
}
]
},
//
//
dataFormConfig() {
return [
@ -193,7 +193,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{
@ -256,7 +256,7 @@ export default {
let tableList = content.stepTableFormData
if (tableList && tableList.length > 0) {
for (let i = 0; i < tableList.length; i++) {
//
//
let item = tableList[i]
console.log('表格item:' + JSON.stringify(item))

+ 1
- 1
src/views/business/comps/template/comps/sp/Demo.vue View File

@ -193,7 +193,7 @@ export default {
},
{
type:"cellItem",
label:"配时间",
label:"配时间",
config:{
startDate:{
label:"开始时间",

+ 5
- 5
src/views/business/comps/template/comps/sp/SP001.vue View File

@ -57,7 +57,7 @@ export default {
},
},
computed: {
//
//
storageFormConfig() {
return [
{
@ -75,7 +75,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -94,7 +94,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
//002
let baseConfig = this.sn=='DL002'?
@ -180,7 +180,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{
@ -309,7 +309,7 @@ export default {
//resource
let tmpResource = []
if (this.fillType === "actFill") {
//
//
tmpResource.push({
mc: content.targetName,
bh: content.targetCode + content.targetCodeSn,

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

@ -83,11 +83,11 @@ export default {
yqInfoColumns() {
return getYqColumns(this);
},
//
//
storageFormConfig() {
return getStorageFormConfig(this);
},
//
//
remarkConig() {
return [
{
@ -106,7 +106,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return getBaseInfoFormConfig(this);
},

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

@ -81,12 +81,12 @@ export default {
synrFormConfig(){
return getSynrFormConfig(this);
},
//
//
baseInfoFormConfig() {
return getBaseInfoFormConfig('sp0020');
},
//
//
remarkConig() {
return [
{

+ 5
- 5
src/views/business/comps/template/comps/sp/SP0021.vue View File

@ -88,15 +88,15 @@ export default {
},
},
computed: {
//
//
storageFormConfig() {
return getStorageFormConfig(this)
},
//
//
remarkConig() {
return getRemarkFormConfig(this)
},
//
//
baseInfoFormConfig() {
return getBaseInfoFormConfig(this)
},
@ -155,7 +155,7 @@ export default {
defaultInfo.stepData = ybsmDataList[0]?.stepData || []
}
this.formData = { ...this.formData, ...this.getFilledFormData() };
//
//
this.formData.ybsmDataList.push(defaultInfo);
},
onLoadExcelData(excelData) {
@ -229,7 +229,7 @@ export default {
//resource
let tmpResource = []
if (this.fillType === "actFill") {
//
//
tmpResource.push({
mc: content.targetName,
bh: content.targetCode + content.targetCodeSn,

+ 5
- 5
src/views/business/comps/template/comps/sp/SP003.vue View File

@ -69,7 +69,7 @@ export default {
},
computed: {
//
//
storageFormConfig() {
return [
{
@ -88,7 +88,7 @@ export default {
}
];
},
//
//
remarkConig() {
return [
{
@ -107,7 +107,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -191,7 +191,7 @@ export default {
}
]
},
//
//
stepFormConfig() {
return [
{
@ -267,7 +267,7 @@ export default {
}
]
},
//
//
stepColumns() {
return [
{

+ 10
- 10
src/views/business/comps/template/comps/sp/SP00456.vue View File

@ -176,15 +176,15 @@ export default {
jcbColumns() {
return getJcbColumnsConfig(this);
},
//
//
storageFormConfig() {
return getStorageConditionFormConfig(this);
},
//
//
remarkConig() {
return getRemarkFormConfig();
},
//
//
baseInfoFormConfig() {
return getBaseInfoFormConfig(this);
},
@ -194,7 +194,7 @@ export default {
paralleStepFormConfig1() {
return getParalleStepFormConfig(this);
},
//
//
ladderStepFormConfig() {
return getLadderFormConfig(this);
},
@ -204,7 +204,7 @@ export default {
paralleStepColumns1() {
return getParallelColumnsConfig(this);
},
//
//
ladderStepColumns() {
return getLadderColumnsConfig(this);
},
@ -236,7 +236,7 @@ export default {
this.handleUpdateCode(formData);
}, 0);
}
// PCR234
// PCR234
if(this.isPcr234 &&!this.formData.ladderConfigs){
this.handleAddConfig("ladderConfigs");
}
@ -327,14 +327,14 @@ export default {
},
//
handleAddConfig(configType) {
//
//
if (!this.formData[configType]) {
// formdatabug
// formdatabug
this.$set(this.formData, configType, []);
// this.formData[configType] = [];
}
this.formData = { ...this.formData, ...this.getFilledFormData() };
//
//
this.formData[configType].push({
id: getuuid(),
stepData: [],
@ -342,7 +342,7 @@ export default {
});
justUpdateFilledFormData();
},
//
//
deleteConfig(type, con) {
const configIndex = this.formData[type].findIndex(config => config.id === con.id);
if (configIndex !== -1) {

+ 4
- 4
src/views/business/comps/template/comps/sp/SP007.vue View File

@ -54,11 +54,11 @@ export default {
},
},
computed: {
//
//
storageFormConfig() {
return getStorageFormConfig(this);
},
//
//
remarkConig() {
return getRemarkFormConfig();
},
@ -66,11 +66,11 @@ export default {
ybFormConfig() {
return getYbFormConfig();
},
//
//
baseInfoFormConfig() {
return getBaseInfoFormConfig(this);
},
//
//
getFjFormConfig() {
return getfjFormConfig(this);
},

+ 4
- 4
src/views/business/comps/template/comps/sp/SP008.vue View File

@ -321,7 +321,7 @@ export default {
let tableList = content.stepTableFormData
if(tableList && tableList.length>0){
for(let i=0;i<tableList.length;i++){
//
//
let item = tableList[i]
console.log('表格item:'+JSON.stringify(item))
@ -459,14 +459,14 @@ export default {
}
},
startConfig(val){
console.log("开始配数据:"+JSON.stringify(val))
console.log("开始配数据:"+JSON.stringify(val))
let postData = {
bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId,
studyFormId:this.formData.id,
studySubjectId: this.formData.studySubjectId,
}
console.log("开始配提交数据:"+JSON.stringify(postData))
console.log("开始配提交数据:"+JSON.stringify(postData))
this.startConfigRequest(postData);
},
configComplete(val){
@ -474,7 +474,7 @@ export default {
this.$message.error("表格内容未填完")
return
}
console.log("完成配数据:"+JSON.stringify(val))
console.log("完成配数据:"+JSON.stringify(val))
const { total, unit } = addTj([val.rowData.sjjzxql, val.rowData.sjryxql], [val.headerSelectFields.sjjzxqlUnit, val.headerSelectFields.sjryxqlUnit])
let postData = {
mc:null,

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

@ -361,7 +361,7 @@ export default {
let tableList = content.stepTableFormData
if(tableList && tableList.length>0){
for(let i=0;i<tableList.length;i++){
//
//
let item = tableList[i]
console.log('表格item:'+JSON.stringify(item))
@ -456,7 +456,7 @@ export default {
tableList = content.stepTableFormData_1
if(tableList && tableList.length>0){
for(let i=0;i<tableList.length;i++){
//
//
let item = tableList[i]
console.log('表格item:'+JSON.stringify(item))
@ -614,18 +614,18 @@ export default {
}
},
startConfig(val){
console.log("开始配数据:"+JSON.stringify(val))
console.log("开始配数据:"+JSON.stringify(val))
let postData = {
bh:val.rowData.bh+val.rowData.bhCode,
studyId:this.formData.studyId,
studyFormId:this.formData.id,
studySubjectId: this.formData.studySubjectId,
}
console.log("开始配提交数据:"+JSON.stringify(postData))
console.log("开始配提交数据:"+JSON.stringify(postData))
this.startConfigRequest(postData);
},
configComplete(val){
console.log("完成配数据:"+JSON.stringify(val))
console.log("完成配数据:"+JSON.stringify(val))
let amount = {
total:0,
unit:''

+ 7
- 7
src/views/business/comps/template/comps/sp/comps/LadderConfig.vue View File

@ -4,7 +4,7 @@
<div>
<span v-if = "showHeaderLabel">{{ $t(fieldItemLabel) }}</span>
</div>
<el-popconfirm title="确认删除当前配?" @confirm="deleteConfig">
<el-popconfirm title="确认删除当前配?" @confirm="deleteConfig">
<el-button slot="reference" v-if="fillType === 'preFill'" type="text" icon="el-icon-delete" >{{
$t('template.common.deleteBtn')
}}</el-button>
@ -268,11 +268,11 @@ export default {
}
},
bodySelectChange(data) {
if(this.configType === "paralle"){//
if(this.configType === "paralle"){//
this.paralleUpdateTargetStartSolutionVolume(data.item, data.headerSelectFields, data.dataSource);
}
},
//
//
paralleUpdateTargetStartSolutionVolume(item, headerSelectFields, dataSource) {
const volumne = item.targetStartSolutionConcentration;
const subTargetStartSolution = item.targetStartSolutionConcentrationPrecision;
@ -329,7 +329,7 @@ export default {
"存储条件": stepStorageCondition || paralleStepStorageCondition,
"配制日期": moment(startDate).format("YYYY-MM-DD"),
"有效期至": moment(targetSolutionExpirationDate || expireDate).format("YYYY-MM-DD HH:mm"),
"配者": lang === "zh_CN" ? nickName : name,
"配者": lang === "zh_CN" ? nickName : name,
//type==="subPackage"
//type==="row"
"编号": type === "subPackage" ? printCode : (row.targetSolutionCode + row.subTargetSolutionCode),
@ -337,7 +337,7 @@ export default {
console.log(printConfig, "printConfig")
EventBus.$emit('showTagPrintDialog', { printConfig })
},
//
//
startConfig(val) {
const { rowData } = val;
let postData = {
@ -348,7 +348,7 @@ export default {
}
this.startConfigRequest(postData);
},
//
//
configComplete(val) {
const { rowData, headerSelectFields } = val;
//(+)
@ -402,7 +402,7 @@ export default {
callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。');
}
},
// table
// table
onTableRegentSubmit(data) {
const { selectInfo, rowIndex, key, rowData } = data;
const { row, selectedId } = selectInfo;

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

@ -144,7 +144,7 @@ export default {
}
]
},
//
//
remarkConig() {
return [
{
@ -163,7 +163,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{
@ -197,7 +197,7 @@ export default {
}
]
},
//
//
getFjFormConfig() {
return [
{
@ -212,7 +212,7 @@ export default {
}
]
},
//
//
tableFirstColumns() {
return [{
label: 'template.xb.xb001.fpc',
@ -241,7 +241,7 @@ export default {
otherCode: "preOther2",
}]
},
//
//
tableSecondColumns() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/yp/YP002.vue View File

@ -44,7 +44,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -63,7 +63,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/yp/YP003.vue View File

@ -77,7 +77,7 @@ export default {
}
]
},
//
//
remarkConig() {
return [
{
@ -96,7 +96,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/yp/YP004.vue View File

@ -61,7 +61,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -80,7 +80,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 2
- 2
src/views/business/comps/template/comps/yp/YP005.vue View File

@ -66,7 +66,7 @@ export default {
},
},
computed: {
//
//
remarkConig() {
return [
{
@ -85,7 +85,7 @@ export default {
}
]
},
//
//
baseInfoFormConfig() {
return [
{

+ 4
- 4
src/views/business/comps/template/formConfig/PCRTableConfig.js View File

@ -1,4 +1,4 @@
// 阶梯配置表格列配置
// 阶梯配制表格列配制
export const getLadderColumnsConfig = ($this, selectKey) => {
return [
{
@ -153,7 +153,7 @@ export const getLadderColumnsConfig = ($this, selectKey) => {
}
]
}
// 平行配置表格列配置
// 平行配制表格列配制
export const getParallelColumnsConfig = ($this) => {
const sn = $this.sn
let o = {
@ -362,7 +362,7 @@ export const getParallelColumnsConfig = ($this) => {
]
}
//阶梯配
//阶梯配
export const getLadderFormConfig = ($this) => {
return [
{
@ -553,7 +553,7 @@ export const getStorageConditionFormConfig = ($this) => {
]
}
//并行步骤配
//并行步骤配
export const getParalleStepFormConfig = ($this) => {
return [
{

+ 1
- 1
src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js View File

@ -1,4 +1,4 @@
// 生物样品分析方法学样品制备表-表格配
// 生物样品分析方法学样品制备表-表格配
// selectKey:编号选择的数据源key
// isXsy是否时稀释液:稀释液的名称不一样
// showKbjz 是否显示空白机制的列:生物样品分析方法学样品制备表(Matrix effect)-生物样品分析方法学样品制备表(基质效应)

+ 65
- 66
src/views/business/comps/template/formConfig/paralleAndLadderConfig.js View File

@ -37,24 +37,24 @@ const explainConfig = {
//编号对应的数据字典code
const optionsCode = {
SP004: 'business_sp_nbgzy',
SP005: 'business_sp_zkgzy',
SP006: 'business_sp_bzqxzkypzbb',
PCR002: 'business_pcr_gzy',
PCR003: 'business_pcr_fxbzqxzbb',
PCR004: 'business_pcr_fxzkypzbb',
GSP007:"",//GSP007是输入框
PCR013:"business_pcr_fxffypzbb",
LBA005:"business_lba_ptjhbzqx_zkpx",
LBA007:"business_lba_ptjhfxyp",
ADA005:"business_ada_kyktzkyp",
ADA007:"business_ada_kyktffxyp",
}
SP004: 'business_sp_nbgzy',
SP005: 'business_sp_zkgzy',
SP006: 'business_sp_bzqxzkypzbb',
PCR002: 'business_pcr_gzy',
PCR003: 'business_pcr_fxbzqxzbb',
PCR004: 'business_pcr_fxzkypzbb',
GSP007: '', //GSP007是输入框
PCR013: 'business_pcr_fxffypzbb',
LBA005: 'business_lba_ptjhbzqx_zkpx',
LBA007: 'business_lba_ptjhfxyp',
ADA005: 'business_ada_kyktzkyp',
ADA007: 'business_ada_kyktffxyp'
}
// 阶梯配置表格列配置
// 阶梯配制表格列配制
export const getLadderColumnsConfig = ($this) => {
const dic = optionsCode[$this.sn] || 'business_sp_nbgzy';
const mbryType = $this.sn === "GSP007"?"input":"select"
const dic = optionsCode[$this.sn] || 'business_sp_nbgzy'
const mbryType = $this.sn === 'GSP007' ? 'input' : 'select'
return [
{
label: 'template.sp.sp00456.mbrybh',
@ -223,11 +223,11 @@ export const getLadderColumnsConfig = ($this) => {
}
]
}
// 平行配置表格列配置
export const getParallelColumnsConfig = ($this,sn) => {
let dic = optionsCode[$this.sn] || 'business_sp_nbgzy';
if(sn === "LBA005"){
dic = "business_lba_bqpx";
// 平行配制表格列配制
export const getParallelColumnsConfig = ($this, sn) => {
let dic = optionsCode[$this.sn] || 'business_sp_nbgzy'
if (sn === 'LBA005') {
dic = 'business_lba_bqpx'
}
return [
{
@ -457,7 +457,7 @@ export const getParallelColumnsConfig = ($this,sn) => {
]
}
//阶梯配
//阶梯配
export const getLadderFormConfig = ($this) => {
const sn = $this.sn
const defaultConfig = [
@ -536,51 +536,50 @@ export const getLadderFormConfig = ($this) => {
//试验基本信息
export const getBaseInfoFormConfig = ($this) => {
const sn = $this.sn
const labArr = ['LBA005', 'LBA007','ADA005','ADA007']
const labArr = ['LBA005', 'LBA007', 'ADA005', 'ADA007']
const isLba = labArr.includes(sn)
const isSp = sn.startsWith('SP')//是否是色谱
const isSp = sn.startsWith('SP') //是否是色谱
return [
{
type: 'cardItem',
config: isSp?
{
studyMc: {
label: 'template.common.testName',
type: 'input',
disabled: true
},
studySn: {
label: 'template.common.testNumber',
type: 'input',
disabled: true
},
methodCode: {
label: 'template.common.methodCode',
type: 'input',
fillType: 'preFill',
maxlength: 50
},
versionNum: {
label: 'template.common.versionNumber',
type: 'inputNumber',
fillType: 'preFill',
prepend: 'V',
maxlength: 50
}
}
:
{
studyMc: {
label: 'template.common.testName',
type: 'input',
disabled: true
},
studySn: {
label: 'template.common.testNumber',
type: 'input',
disabled: true
},
}
config: isSp
? {
studyMc: {
label: 'template.common.testName',
type: 'input',
disabled: true
},
studySn: {
label: 'template.common.testNumber',
type: 'input',
disabled: true
},
methodCode: {
label: 'template.common.methodCode',
type: 'input',
fillType: 'preFill',
maxlength: 50
},
versionNum: {
label: 'template.common.versionNumber',
type: 'inputNumber',
fillType: 'preFill',
prepend: 'V',
maxlength: 50
}
}
: {
studyMc: {
label: 'template.common.testName',
type: 'input',
disabled: true
},
studySn: {
label: 'template.common.testNumber',
type: 'input',
disabled: true
}
}
},
{
type: 'conditionItem',
@ -608,7 +607,7 @@ export const getBaseInfoFormConfig = ($this) => {
}
},
isSp
?{
? {
type: 'conditionItem',
label: 'template.sp.sp00456.rqcz',
config: {
@ -622,7 +621,7 @@ export const getBaseInfoFormConfig = ($this) => {
}
}
}
:{} ,
: {},
{
type: 'cellItem',
label: isLba
@ -681,7 +680,7 @@ export const getStorageConditionFormConfig = ($this) => {
]
}
//平行步骤配
//平行步骤配
export const getParalleStepFormConfig = ($this) => {
const defaultConfig = [
{

+ 139
- 140
src/views/business/comps/template/formConfig/sp/SP0019.js View File

@ -1,156 +1,155 @@
export const getBaseInfoFormConfig = (formType) => {
return [
{
type: 'cardItem',
config: {
studyMc: {
label: 'template.common.testName',
type: 'input',
disabled: true
},
studySn: {
label: 'template.common.testNumber',
type: 'input',
disabled: true
},
methodCode: {
label: 'template.common.methodCode',
type: 'input',
fillType: formType === 'sp0020' ? 'actFill' : 'preFill',
maxlength: 50
},
versionNum: {
label: 'template.common.versionNumber',
type: 'inputNumber',
fillType: formType === 'sp0020' ? 'actFill' : 'preFill',
prepend: 'V',
maxlength: 50
},
clpbh: {
label: '处理批编号',
type: 'input',
fillType: 'actFill',
maxlength: 50
},
fxpbh: {
label: '分析批编号',
type: 'input',
fillType: 'actFill',
maxlength: 50
},
}
return [
{
type: 'cardItem',
config: {
studyMc: {
label: 'template.common.testName',
type: 'input',
disabled: true
},
]
studySn: {
label: 'template.common.testNumber',
type: 'input',
disabled: true
},
methodCode: {
label: 'template.common.methodCode',
type: 'input',
fillType: formType === 'sp0020' ? 'actFill' : 'preFill',
maxlength: 50
},
versionNum: {
label: 'template.common.versionNumber',
type: 'inputNumber',
fillType: formType === 'sp0020' ? 'actFill' : 'preFill',
prepend: 'V',
maxlength: 50
},
clpbh: {
label: '处理批编号',
type: 'input',
fillType: 'actFill',
maxlength: 50
},
fxpbh: {
label: '分析批编号',
type: 'input',
fillType: 'actFill',
maxlength: 50
}
}
}
]
}
export const getStorageFormConfig = ($this)=>{
return[
{
type: 'step',
config: {
spzxh: {
label: '色谱柱型号',
type: 'select',
fillType: 'actFill',
options: $this.spzxhOptions,
filledCodes:['mc','bh'],
selectRemote: true,
},
}
},
]
export const getStorageFormConfig = ($this) => {
return [
{
type: 'step',
config: {
spzxh: {
label: '色谱柱型号',
type: 'select',
fillType: 'actFill',
options: $this.spzxhOptions,
filledCodes: ['mc', 'bh'],
selectRemote: true
}
}
}
]
}
//仪器信息
export const getYqColumns = ($this) => {
return [
{
label: 'template.common.instrumentCode',
prop: "bh",
bodyType: "yq",
bodyFillType: 'actFill',
},//仪器编号
{
label: 'template.common.instrumentName',
prop: "mc",
bodyType: "input",
bodyType: "input",
bodyDisabled: true,
bodyFillType: 'actFill',
},//仪器名称
{
label: 'template.common.instrumentModel',
prop: "xh",
bodyType: "input",
bodyDisabled: true,
bodyFillType: 'actFill',
},//仪器型号
{
label: 'template.common.nextTestDate',
prop: "jzrq",
bodyType: "input",
bodyDisabled: true,
bodyFillType: 'actFill',
},//下次测试/校准/检定日期
]
return [
{
label: 'template.common.instrumentCode',
prop: 'bh',
bodyType: 'yq',
bodyFillType: 'actFill'
}, //仪器编号
{
label: 'template.common.instrumentName',
prop: 'mc',
bodyType: 'input',
bodyType: 'input',
bodyDisabled: true,
bodyFillType: 'actFill'
}, //仪器名称
{
label: 'template.common.instrumentModel',
prop: 'xh',
bodyType: 'input',
bodyDisabled: true,
bodyFillType: 'actFill'
}, //仪器型号
{
label: 'template.common.nextTestDate',
prop: 'jzrq',
bodyType: 'input',
bodyDisabled: true,
bodyFillType: 'actFill'
} //下次测试/校准/检定日期
]
}
//溶液
export const getRyColumns = ($this) => {
return [
{
label: '溶液类型',
prop: "rylx",
bodyType: "select",
otherCode:'rylxOther',
width:380,
bodyOptions: $this.getDictOptions('business_rylx'),
bodyFillType: 'preFill',
},
{
label: '溶液名称(编号)',
prop: "rymc",
bodyType: "sj",
bodyFillType: 'actFill',
filledCodes:['mc','bh'],
},
{
label: '配日期',
prop: "pzrq",
bodyType: "input",
bodyDisabled: true,
bodyFillType: 'actFill',
},
{
label: '失效日',
prop: "sxr",
bodyType: "input",
bodyDisabled: true,
bodyFillType: 'actFill',
},
]
return [
{
label: '溶液类型',
prop: 'rylx',
bodyType: 'select',
otherCode: 'rylxOther',
width: 380,
bodyOptions: $this.getDictOptions('business_rylx'),
bodyFillType: 'preFill'
},
{
label: '溶液名称(编号)',
prop: 'rymc',
bodyType: 'sj',
bodyFillType: 'actFill',
filledCodes: ['mc', 'bh']
},
{
label: '配日期',
prop: 'pzrq',
bodyType: 'input',
bodyDisabled: true,
bodyFillType: 'actFill'
},
{
label: '失效日',
prop: 'sxr',
bodyType: 'input',
bodyDisabled: true,
bodyFillType: 'actFill'
}
]
}
//仪器平衡
export const getYqphFormConfig = () => {
return [
{
type: 'checkboxList',
config: {
yqph: {
label: '仪器平衡',
type: 'checkboxTree',
fillType: 'actFill',
span:1,
options: [
{ label: '流动相平衡', value: '流动相平衡' },
{ label: '样品平衡', value: '样品平衡' },
{ label: '样品', value: '样品'},
{ label: '未平衡', value: '未平衡' }
]
},
}
return [
{
type: 'checkboxList',
config: {
yqph: {
label: '仪器平衡',
type: 'checkboxTree',
fillType: 'actFill',
span: 1,
options: [
{ label: '流动相平衡', value: '流动相平衡' },
{ label: '样品平衡', value: '样品平衡' },
{ label: '样品', value: '样品' },
{ label: '未平衡', value: '未平衡' }
]
}
]
}
}
}
]
}

+ 135
- 141
src/views/business/comps/template/formConfig/sp/SP0020.js View File

@ -1,161 +1,155 @@
// checkboxTree 类型的配
// checkboxTree 类型的配
const getOptions = (sn) => {
let children = [
{ label: '储备液比对', value: '储备液比对' },
{ label: '标准曲线线性范围', value: '标准曲线线性范围' },
{ label: '准确度与精密度&灵敏度', value: '准确度与精密度&灵敏度' },
{ label: '残留', value: '残留' },
{ label: '选择性与特异性', value: '选择性与特异性' },
{ label: '基质效应', value: '基质效应' },
{ label: '提取回收率', value: '提取回收率' },
{ label: '溶血基质效应', value: '溶血基质效应' },
{ label: '批最大样本数', value: '批最大样本数' },
{ label: '基质样品', value: '基质样品' },
{ label: '基质样品长期冻存稳定性', value: '基质样品长期冻存稳定性' },
{ label: '反复冻融稳定性', value: '反复冻融稳定性' },
{ label: '稀释可靠性', value: '稀释可靠性' },
{ label: '处理后样品稳定性', value: '处理后样品稳定性' },
{ label: '进样重现性', value: '进样重现性' },
{ label: '全血稳定性', value: '全血稳定性' },
{ label: '储备液短期稳定性', value: '储备液短期稳定性' },
{ label: '储备液长期稳定性', value: '储备液长期稳定性' },
{ label: '工作液短期稳定性', value: '工作液短期稳定性' },
{ label: '工作液长期稳定性', value: '工作液长期稳定性' }
];
if (sn === 'PCR006') {
children = [
{ label: '基质效应', value: '基质效应' },
{ label: '选择性', value: '选择性' },
{ label: '特异性', value: '特异性' },
{ label: '方法耐用性', value: '方法耐用性' },
{ label: '精密度与准确性', value: '精密度与准确性' },
{ label: '检测限', value: '检测限' },
{ label: '提取精密度', value: '提取精密度' },
{ label: '提取前样品稳定性', value: '提取前样品稳定性' },
{ label: '提取后样品稳定性', value: '提取后样品稳定性' },
{ label: 'cDNA样品稳定性', value: 'cDNA样品稳定性' },
{ label: '方法适用性', value: '方法适用性' },
{ label: '基因组DNA残留测定', value: '基因组DNA残留测定' },
{ label: '稀释线性', value: '稀释线性' },
{ label: '反复动态稳定性', value: '反复动态稳定性' },
{ label: '标准工作液稳定性', value: '标准工作液稳定性' }
]
}
return [
{
label: '方法学验证',
value: '方法学验证',
children
},
{
label: '样品分析',
value: '样品分析',
children: [
{ label: '样品信息', value: '样品信息' }
]
},
{
label: '其他',
value: '其他',
children: []
}
let children = [
{ label: '储备液比对', value: '储备液比对' },
{ label: '标准曲线线性范围', value: '标准曲线线性范围' },
{ label: '准确度与精密度&灵敏度', value: '准确度与精密度&灵敏度' },
{ label: '残留', value: '残留' },
{ label: '选择性与特异性', value: '选择性与特异性' },
{ label: '基质效应', value: '基质效应' },
{ label: '提取回收率', value: '提取回收率' },
{ label: '溶血基质效应', value: '溶血基质效应' },
{ label: '批最大样本数', value: '批最大样本数' },
{ label: '基质样品', value: '基质样品' },
{ label: '基质样品长期冻存稳定性', value: '基质样品长期冻存稳定性' },
{ label: '反复冻融稳定性', value: '反复冻融稳定性' },
{ label: '稀释可靠性', value: '稀释可靠性' },
{ label: '处理后样品稳定性', value: '处理后样品稳定性' },
{ label: '进样重现性', value: '进样重现性' },
{ label: '全血稳定性', value: '全血稳定性' },
{ label: '储备液短期稳定性', value: '储备液短期稳定性' },
{ label: '储备液长期稳定性', value: '储备液长期稳定性' },
{ label: '工作液短期稳定性', value: '工作液短期稳定性' },
{ label: '工作液长期稳定性', value: '工作液长期稳定性' }
]
if (sn === 'PCR006') {
children = [
{ label: '基质效应', value: '基质效应' },
{ label: '选择性', value: '选择性' },
{ label: '特异性', value: '特异性' },
{ label: '方法耐用性', value: '方法耐用性' },
{ label: '精密度与准确性', value: '精密度与准确性' },
{ label: '检测限', value: '检测限' },
{ label: '提取精密度', value: '提取精密度' },
{ label: '提取前样品稳定性', value: '提取前样品稳定性' },
{ label: '提取后样品稳定性', value: '提取后样品稳定性' },
{ label: 'cDNA样品稳定性', value: 'cDNA样品稳定性' },
{ label: '方法适用性', value: '方法适用性' },
{ label: '基因组DNA残留测定', value: '基因组DNA残留测定' },
{ label: '稀释线性', value: '稀释线性' },
{ label: '反复动态稳定性', value: '反复动态稳定性' },
{ label: '标准工作液稳定性', value: '标准工作液稳定性' }
]
}
}
return [
{
label: '方法学验证',
value: '方法学验证',
children
},
{
label: '样品分析',
value: '样品分析',
children: [{ label: '样品信息', value: '样品信息' }]
},
{
label: '其他',
value: '其他',
children: []
}
]
}
//试验内容
export const getSynrFormConfig = ($this) => {
return [
{
type: 'checkboxList',
config: {
ffxyz: {
type: 'checkboxTree',
label: '方法学验证',
options: getOptions($this.sn),
span: 1,
fillType: "actFill"
},
}
},
]
return [
{
type: 'checkboxList',
config: {
ffxyz: {
type: 'checkboxTree',
label: '方法学验证',
options: getOptions($this.sn),
span: 1,
fillType: 'actFill'
}
}
}
]
}
//仪器结果
export const getYqjgFormConfig = () => {
return [
{
type: 'checkboxList',
config: {
jg: {
type: 'checkboxTree',
label: '结果',
options: [
{ label: '分析批接受', value: '分析批接受' },
{ label: '分析批拒绝', value: '分析批拒绝' },
{ label: '部分接受', value: '部分接受' },
],
span: 1,
fillType: "actFill"
},
yzkcjg: {
type: 'textarea',
label: '验证考察结果',
span: 1,
fillType: "actFill",
maxlength: 1000,
rows: 5
},
}
return [
{
type: 'checkboxList',
config: {
jg: {
type: 'checkboxTree',
label: '结果',
options: [
{ label: '分析批接受', value: '分析批接受' },
{ label: '分析批拒绝', value: '分析批拒绝' },
{ label: '部分接受', value: '部分接受' }
],
span: 1,
fillType: 'actFill'
},
]
yzkcjg: {
type: 'textarea',
label: '验证考察结果',
span: 1,
fillType: 'actFill',
maxlength: 1000,
rows: 5
}
}
}
]
}
//分析批数据文件
export const getFxpsjwjFormConfig = () => {
return [
{
type: 'checkboxList',
config: {
fxpsjwjm: {
type: 'input',
label: '分析批数据文件名',
span: 1,
fillType: "actFill",
maxlength: 100,
},
fxpsjlj: {
type: 'input',
label: '分析批数据路径',
span: 1,
fillType: "actFill",
maxlength: 150,
},
}
return [
{
type: 'checkboxList',
config: {
fxpsjwjm: {
type: 'input',
label: '分析批数据文件名',
span: 1,
fillType: 'actFill',
maxlength: 100
},
]
fxpsjlj: {
type: 'input',
label: '分析批数据路径',
span: 1,
fillType: 'actFill',
maxlength: 150
}
}
}
]
}
//采集日期
export const getCjrqFormConfig = () => {
return [
{
type: 'cellItem',
config: {
cjksrq: {
type: 'datePicker',
label: '采集开始日期',
fillType: "actFill"
},
cjjsrq: {
type: 'datePicker',
label: '采集结束日期',
fillType: "actFill"
},
}
return [
{
type: 'cellItem',
config: {
cjksrq: {
type: 'datePicker',
label: '采集开始日期',
fillType: 'actFill'
},
]
}
cjjsrq: {
type: 'datePicker',
label: '采集结束日期',
fillType: 'actFill'
}
}
}
]
}

+ 353
- 343
src/views/business/comps/template/formConfig/xb/xb001.js View File

@ -1,361 +1,371 @@
//操作第二步配
//操作第二步配
export const getStepSecond = ($this) => {
return [{
config:{
text1:{
label:"待测样品于",
type:"text",
},
dcyb:{
type:"input",
fillType:"preFill",
},
text2:{
label:"解冻完成后,分别使用移液器",
type:"text",
},
yyqfirst:{
type:"yq",
fillType:"actFill",
},
text3:{
label:"取待测血清预计",
type:"text",
},
dcxqyj:{
type:"inputNumber",
fillType:"preFill",
},
dcxqyjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"preFill",
},
text4:{
label:"实际",
type:"text",
},
dcxqsj:{
type:"inputNumber",
fillType:"actFill",
compareTo:"dcxqyj",
copyFrom:"dcxqyj"
},
dcxqsjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"actFill",
compareTo:"dcxqyjdw",
copyFrom:"dcxqyjdw"
},
text5:{
label:"加入稀释深孔板,再分别使用移液器",
type:"text",
},
yyqsecond:{
type:"yq",
fillType:"actFill",
},
text6:{
label:"取BBS",
type:"text",
},
bbs:{
type:"sj",
fillType:"actFill",
},
text7:{
label:"预计",
type:"text",
},
bbsyj:{
type:"inputNumber",
fillType:"preFill",
},
bbsyjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"preFill",
},
text8:{
label:"实际",
type:"text",
},
bbssj:{
type:"inputNumber",
fillType:"actFill",
compareTo:"bbsyj",
copyFrom:"bbsyj"
},
bbssjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"actFill",
compareTo:"bbsyjdw",
copyFrom:"bbsyjdw"
},
text9:{
label:"加入稀释深孔板,放在摇床上",
type:"text",
},
yc:{
type:"yq",
fillType:"actFill",
},
text10:{
label:"充分摇匀。",
type:"text",
},
return [
{
config: {
text1: {
label: '待测样品于',
type: 'text'
},
dcyb: {
type: 'input',
fillType: 'preFill'
},
text2: {
label: '解冻完成后,分别使用移液器',
type: 'text'
},
yyqfirst: {
type: 'yq',
fillType: 'actFill'
},
text3: {
label: '取待测血清预计',
type: 'text'
},
dcxqyj: {
type: 'inputNumber',
fillType: 'preFill'
},
dcxqyjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'preFill'
},
text4: {
label: '实际',
type: 'text'
},
dcxqsj: {
type: 'inputNumber',
fillType: 'actFill',
compareTo: 'dcxqyj',
copyFrom: 'dcxqyj'
},
dcxqsjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'actFill',
compareTo: 'dcxqyjdw',
copyFrom: 'dcxqyjdw'
},
text5: {
label: '加入稀释深孔板,再分别使用移液器',
type: 'text'
},
yyqsecond: {
type: 'yq',
fillType: 'actFill'
},
text6: {
label: '取BBS',
type: 'text'
},
bbs: {
type: 'sj',
fillType: 'actFill'
},
text7: {
label: '预计',
type: 'text'
},
bbsyj: {
type: 'inputNumber',
fillType: 'preFill'
},
bbsyjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'preFill'
},
text8: {
label: '实际',
type: 'text'
},
bbssj: {
type: 'inputNumber',
fillType: 'actFill',
compareTo: 'bbsyj',
copyFrom: 'bbsyj'
},
bbssjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'actFill',
compareTo: 'bbsyjdw',
copyFrom: 'bbsyjdw'
},
text9: {
label: '加入稀释深孔板,放在摇床上',
type: 'text'
},
yc: {
type: 'yq',
fillType: 'actFill'
},
text10: {
label: '充分摇匀。',
type: 'text'
}
}]
}
}
]
}
//操作第三步配
//操作第三步配
export const getStepThird = ($this) => {
return [{
config:{
text1:{
label:"分别使用移液器",
type:"text",
},
yyqfirst:{
type:"yq",
fillType:"actFill",
},
text2:{
label:"取BBS",
type:"text",
},
bbs:{
type:"sj",
fillType:"actFill",
},
text3:{
label:"预计",
type:"text",
},
bbsyj:{
type:"inputNumber",
fillType:"preFill",
},
bbsyjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"preFill",
},
text4:{
label:"实际",
type:"text",
},
bbssj:{
type:"inputNumber",
fillType:"actFill",
compareTo:"bbsyj",
copyFrom:"bbsyj"
},
bbssjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"actFill",
compareTo:"bbsyjdw",
copyFrom:"bbsyjdw"
},
text5:{
label:"加入对照管中,再分别使用移液器",
type:"text",
},
yyqsecond:{
type:"yq",
fillType:"actFill",
},
text6:{
label:"取PEG-NaF",
type:"text",
},
pegnaf:{
type:"sj",
fillType:"actFill",
},
text7:{
label:"预计",
type:"text",
},
pegnafyj:{
type:"inputNumber",
fillType:"preFill",
},
pegnafyjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"preFill",
},
text8:{
label:"实际",
type:"text",
},
pegnafsj:{
type:"inputNumber",
fillType:"actFill",
compareTo:"pegnafyj",
copyFrom:"pegnafyj"
},
pegnafsjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"actFill",
compareTo:"pegnafyjdw",
copyFrom:"pegnafyjdw"
},
text9:{
label:"加入测试管中。",
type:"text",
},
return [
{
config: {
text1: {
label: '分别使用移液器',
type: 'text'
},
yyqfirst: {
type: 'yq',
fillType: 'actFill'
},
text2: {
label: '取BBS',
type: 'text'
},
bbs: {
type: 'sj',
fillType: 'actFill'
},
text3: {
label: '预计',
type: 'text'
},
bbsyj: {
type: 'inputNumber',
fillType: 'preFill'
},
bbsyjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'preFill'
},
text4: {
label: '实际',
type: 'text'
},
bbssj: {
type: 'inputNumber',
fillType: 'actFill',
compareTo: 'bbsyj',
copyFrom: 'bbsyj'
},
bbssjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'actFill',
compareTo: 'bbsyjdw',
copyFrom: 'bbsyjdw'
},
text5: {
label: '加入对照管中,再分别使用移液器',
type: 'text'
},
yyqsecond: {
type: 'yq',
fillType: 'actFill'
},
text6: {
label: '取PEG-NaF',
type: 'text'
},
pegnaf: {
type: 'sj',
fillType: 'actFill'
},
text7: {
label: '预计',
type: 'text'
},
pegnafyj: {
type: 'inputNumber',
fillType: 'preFill'
},
pegnafyjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'preFill'
},
text8: {
label: '实际',
type: 'text'
},
pegnafsj: {
type: 'inputNumber',
fillType: 'actFill',
compareTo: 'pegnafyj',
copyFrom: 'pegnafyj'
},
pegnafsjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'actFill',
compareTo: 'pegnafyjdw',
copyFrom: 'pegnafyjdw'
},
text9: {
label: '加入测试管中。',
type: 'text'
}
}]
}
}
]
}
//操作第四步配
//操作第四步配
export const getStepFourth = ($this) => {
return [{
config:{
text1:{
label:"使用移液器",
type:"text",
},
yyq:{
type:"yq",
fillType:"actFill",
},
text2:{
label:"分别往对照管和测试管中各加入已稀释的待测血清预计",
type:"text",
},
dcxqyj:{
type:"inputNumber",
fillType:"preFill",
},
dcxqyjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"preFill",
},
text3:{
label:"实际",
type:"text",
},
dcxqsj:{
type:"inputNumber",
fillType:"actFill",
compareTo:"dcxqyj",
copyFrom:"dcxqyj"
},
dcxqsjdw:{
type:"select",
options:$this.getDictOptions("business_tjdw"),
fillType:"actFill",
compareTo:"dcxqyjdw",
copyFrom:"dcxqyjdw"
}
return [
{
config: {
text1: {
label: '使用移液器',
type: 'text'
},
yyq: {
type: 'yq',
fillType: 'actFill'
},
text2: {
label: '分别往对照管和测试管中各加入已稀释的待测血清预计',
type: 'text'
},
dcxqyj: {
type: 'inputNumber',
fillType: 'preFill'
},
dcxqyjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'preFill'
},
text3: {
label: '实际',
type: 'text'
},
dcxqsj: {
type: 'inputNumber',
fillType: 'actFill',
compareTo: 'dcxqyj',
copyFrom: 'dcxqyj'
},
dcxqsjdw: {
type: 'select',
options: $this.getDictOptions('business_tjdw'),
fillType: 'actFill',
compareTo: 'dcxqyjdw',
copyFrom: 'dcxqyjdw'
}
}]
}
}
]
}
//操作第五步配
//操作第五步配
export const getStepFivth = ($this) => {
return [{
config:{
text1:{
label:"将以上缓冲液与血清放在摇床",
type:"text",
},
yc:{
type:"yq",
fillType:"actFill",
},
text2:{
label:"上充分混匀,置于孵育箱",
type:"text",
},
fyx:{
type:"yq",
fillType:"actFill",
},
text3:{
label:"中,设置预计温度",
type:"text",
},
yjwd:{
type:"inputNumber",
fillType:"preFill",
},
text4:{
label:"℃,实际温度",
type:"text",
},
sjwd:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjwd",
copyFrom:"yjwd"
},
text5:{
label:"℃,孵育",
type:"text",
},
fysj:{
type:"inputNumber",
fillType:"preFill",
},
text6:{
label:"小时。",
type:"text",
},
return [
{
config: {
text1: {
label: '将以上缓冲液与血清放在摇床',
type: 'text'
},
yc: {
type: 'yq',
fillType: 'actFill'
},
text2: {
label: '上充分混匀,置于孵育箱',
type: 'text'
},
fyx: {
type: 'yq',
fillType: 'actFill'
},
text3: {
label: '中,设置预计温度',
type: 'text'
},
yjwd: {
type: 'inputNumber',
fillType: 'preFill'
},
text4: {
label: '℃,实际温度',
type: 'text'
},
sjwd: {
type: 'inputNumber',
fillType: 'actFill',
compareTo: 'yjwd',
copyFrom: 'yjwd'
},
text5: {
label: '℃,孵育',
type: 'text'
},
fysj: {
type: 'inputNumber',
fillType: 'preFill'
},
text6: {
label: '小时。',
type: 'text'
}
}]
}
}
]
}
//操作第六步配
//操作第六步配
export const getStepSixth = ($this) => {
return [{
config:{
text1:{
label:"孵育完成后,使用移液器",
type:"text",
},
yyq:{
type:"yq",
fillType:"actFill",
},
text2:{
label:"将对照管和测试管的溶液转移至对应的比色皿,用紫外分光光度计",
type:"text",
},
zwfggdj:{
type:"yq",
fillType:"actFill",
},
text3:{
label:",设置预计波长",
type:"text",
},
yjbc:{
type:"inputNumber",
fillType:"preFill",
},
text4:{
label:"nm,实际波长",
type:"text",
},
sjbc:{
type:"inputNumber",
fillType:"actFill",
compareTo:"yjbc",
copyFrom:"yjbc"
},
text5:{
label:"nm,测定其OD值。",
type:"text",
},
return [
{
config: {
text1: {
label: '孵育完成后,使用移液器',
type: 'text'
},
yyq: {
type: 'yq',
fillType: 'actFill'
},
text2: {
label: '将对照管和测试管的溶液转移至对应的比色皿,用紫外分光光度计',
type: 'text'
},
zwfggdj: {
type: 'yq',
fillType: 'actFill'
},
text3: {
label: ',设置预计波长',
type: 'text'
},
yjbc: {
type: 'inputNumber',
fillType: 'preFill'
},
text4: {
label: 'nm,实际波长',
type: 'text'
},
sjbc: {
type: 'inputNumber',
fillType: 'actFill',
compareTo: 'yjbc',
copyFrom: 'yjbc'
},
text5: {
label: 'nm,测定其OD值。',
type: 'text'
}
}]
}
}
}
]
}

+ 783
- 707
src/views/business/comps/template/mixins/templateMixin.js
File diff suppressed because it is too large
View File


+ 1
- 1
src/views/business/study/comp/tbbd/Xq.vue View File

@ -362,7 +362,7 @@ export default {
this.$modal.loading()
// 1. 使 html2pdf PDF jsPDF
const pdf = await html2pdf()
.set(options) //
.set(options) //
.from(pdfContent) // PDF
.toPdf() // PDF
.get('pdf'); // jsPDF

+ 2
- 2
src/views/business/template/list.vue View File

@ -163,7 +163,7 @@
:placeholder="$t('form.placeholderSelect')" style="width:100%">
<el-option label="预填表单" value="1" />
<el-option label="填报表单" value="5" />
<el-option label="配计划表" value="10" />
<el-option label="配计划表" value="10" />
<el-option label="领取申请单" value="15" />
</el-select>
</el-form-item>
@ -332,7 +332,7 @@ export default {
bdpz(row) {
this.saveSimpleLog({ name: row.name + '(' + row.showSn + ')', nameEn: row.name + '(' + row.showSn + ')', jcmc: '模板详情', jcmcEn: 'Function Detail' })
this.tableDialog.title = '表单配'
this.tableDialog.title = '表单配'
this.tableDialog.sn = row.sn
this.tableDialog.templateData.bdmc =this.$i18n.locale === 'zh_CN'? row.name:row.nameEn
this.tableDialog.templateData.templateId = row.id

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save