华西海圻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.

104 lines
3.1 KiB

  1. <!-- 孵育 -->
  2. <template>
  3. <StepFormPackage ref="stepFormPackageRef" prefixKey="ry_fy" @resetRecord="resetRecord" :form-config="formConfig"
  4. :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: 'fy',
  15. },
  16. },
  17. components: {
  18. StepFormPackage
  19. },
  20. computed: {
  21. formConfig() {
  22. let config = [{
  23. config: {
  24. text1: {
  25. label: "使用",
  26. type: "text",
  27. },
  28. yq: {
  29. type: "yq",
  30. fillType: "actFill",
  31. },
  32. text2: {
  33. label: "仪器,设置预计条件为",
  34. type: "text",
  35. },
  36. yjtj: {
  37. type: "input",
  38. fillType: "preFill",
  39. },
  40. text3: {
  41. label: "实际设置条件为",
  42. type: "text",
  43. },
  44. sjtj: {
  45. type: "input",
  46. fillType: "actFill",
  47. compareTo:"yjtj",
  48. copyFrom:"yjtj",
  49. },
  50. text4: {
  51. label: ",进行孵育",
  52. type: "text",
  53. },
  54. fysr: {
  55. type: "input",
  56. fillType: "preFill",
  57. },
  58. text6: {
  59. label: ",孵育",
  60. type: "text",
  61. },
  62. startDate: {
  63. type: "input",
  64. fillType: "actFill",
  65. disabled: true,
  66. },
  67. button1: {
  68. type: "button",
  69. buttonName: "开始",
  70. },
  71. text8: {
  72. type: "text",
  73. label: ",孵育",
  74. },
  75. endDate: {
  76. type: "input",
  77. fillType: "actFill",
  78. disabled: true,
  79. },
  80. button2: {
  81. type: "button",
  82. buttonName: "结束",
  83. },
  84. text9: {
  85. type: "text",
  86. label: "。",
  87. },
  88. }
  89. }]
  90. if(this.sn==='fy_b'){
  91. config[0].config.remark = {
  92. type: "input",
  93. fillType: "actFill",
  94. }
  95. }
  96. return config
  97. }
  98. },
  99. }
  100. </script>
  101. <style lang="scss" scoped></style>