华西海圻ELN前端工程
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
3.7 KiB

  1. <!-- 核酸样品分装 -->
  2. <template>
  3. <StepFormPackage @clickButton="onHandleClickButton" ref="stepFormPackageRef" :prefixKey="stepIndex + '_' + 'pcr_hsypfz'"
  4. @resetRecord="resetRecord" :form-config="formConfig" :formData="formData" />
  5. </template>
  6. <script>
  7. import StepFormPackage from '@/components/Template/StepFormPackage.vue';
  8. import stepMixins from '@/components/Template/mixins/stepMixins.js';
  9. export default {
  10. mixins: [stepMixins],
  11. props: {
  12. sn: {
  13. type: String,
  14. default: 'hsypfz',
  15. },
  16. },
  17. components: {
  18. StepFormPackage
  19. },
  20. mounted() {
  21. this.handleBackfillCode("lbbh","lbbhCode");
  22. },
  23. methods: {
  24. },
  25. computed: {
  26. formConfig() {
  27. return [{
  28. config: {
  29. text1: {
  30. label: "使用移液器",
  31. type: "text",
  32. },
  33. yq: {
  34. fillType: "actFill",
  35. type: "yq",
  36. },
  37. text2: {
  38. label: "将提取的",
  39. type: "text",
  40. },
  41. rymc: {
  42. fillType: "preFill",
  43. type: "input",
  44. },
  45. text3: {
  46. label: "吸取到离心管中,其体积预计为",
  47. type: "text",
  48. },
  49. yjtj: {
  50. fillType: "preFill",
  51. type: "inputNumber",
  52. },
  53. yjtjdw: {
  54. fillType: "preFill",
  55. type: "select",
  56. selectTo: "sjtjdw",
  57. options: this.getDictOptions('business_tjdw'),
  58. },
  59. text4: {
  60. label: "实际体积为",
  61. type: "text",
  62. },
  63. sjtj: {
  64. fillType: "actFill",
  65. type: "inputNumber",
  66. compareTo: "yjtj",
  67. copyFrom: "yjtj"
  68. },
  69. sjtjdw: {
  70. fillType: "preFill",
  71. type: "select",
  72. options: this.getDictOptions('business_tjdw'),
  73. },
  74. text5: {
  75. label: "其编号为",
  76. type: "text",
  77. },
  78. lbbh: {
  79. fillType: "preFill",
  80. type: "input",
  81. },
  82. text6: {
  83. label: "-",
  84. type: "text",
  85. },
  86. //todo :自动生成
  87. lbbhCode: {
  88. fillType: "actFill",
  89. type: "input",
  90. disabled: true,
  91. },
  92. text7: {
  93. label: ",进行分装",
  94. type: "text",
  95. },
  96. //todo :有没有什么分装逻辑
  97. fzbutton: {
  98. type: "button",
  99. fillType: "actFill",
  100. fzType: "step",
  101. buttonName: "分装",
  102. maxVolumeField: "sjtj",
  103. maxVolumeUnitField: "sjtjdw",
  104. myCodeFields: ["lbbh", "lbbhCode"],
  105. },
  106. }
  107. }]
  108. }
  109. },
  110. }
  111. </script>
  112. <style lang="scss" scoped></style>