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

142 lines
4.7 KiB

  1. <!-- 离心 -->
  2. <template>
  3. <StepFormPackage ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'ry_lx'" @resetRecord = "resetRecord" :form-config="formConfig" :formData="formData" />
  4. </template>
  5. <script>
  6. import StepFormPackage from '@/components/Template/StepFormPackage.vue';
  7. import stepMixins from '@/components/Template/mixins/stepMixins.js';
  8. export default {
  9. mixins: [stepMixins],
  10. props: {
  11. sn: {
  12. type: String,
  13. default: 'lx',
  14. },
  15. },
  16. components: {
  17. StepFormPackage
  18. },
  19. computed: {
  20. formConfig() {
  21. let config = [{
  22. config: {
  23. text1: {
  24. label: this.sn==='ysfy'?"使用恒温混匀仪":"使用离心机",
  25. type: "text",
  26. },
  27. yq: {
  28. type: "yq",
  29. fillType: "actFill",
  30. },
  31. text2: {
  32. label: "仪器,设置预计温度为",
  33. type: "text",
  34. },
  35. rm: {
  36. type: "inputNumber",
  37. fillType: "preFill",
  38. },
  39. text3: {
  40. label: "°C,实际温度为",
  41. type: "text",
  42. },
  43. rxry: {
  44. type: "inputNumber",
  45. fillType: "actFill",
  46. compareTo:"rm",
  47. copyFrom:"rm"
  48. },
  49. text4: {
  50. label: "°C,设置预计转速为",
  51. type: "text",
  52. },
  53. sjjrl: {
  54. type: "inputNumber",
  55. fillType: "preFill",
  56. },
  57. sjjrldw: {
  58. type: "select",
  59. options: this.getDictOptions("business_zsdw"),
  60. selectTo: "sjzsdw",
  61. fillType: "preFill",
  62. },
  63. text5: {
  64. label: "°C,实际转速为",
  65. type: "text",
  66. },
  67. jxry: {
  68. type: "inputNumber",
  69. fillType: "actFill",
  70. compareTo:"sjjrl",
  71. copyFrom:"sjjrl"
  72. },
  73. sjzsdw: {
  74. type: "select",
  75. options: this.getDictOptions("business_zsdw"),
  76. fillType: "preFill",
  77. },
  78. text6: {
  79. label: ",设置预计时长为",
  80. type: "text",
  81. },
  82. sjjrl1: {
  83. type: "inputNumber",
  84. fillType: "preFill",
  85. },
  86. yqsc: {
  87. type: "select",
  88. options: this.getDictOptions("business_yqscdw"),
  89. selectTo: "sjscdw",
  90. fillType: "preFill",
  91. },
  92. text7: {
  93. label: ",实际时长为",
  94. type: "text",
  95. },
  96. sjsc: {
  97. type: "inputNumber",
  98. fillType: "actFill",
  99. compareTo:"sjjrl1",
  100. copyFrom:"sjjrl1"
  101. },
  102. sjscdw: {
  103. type: "select",
  104. options: this.getDictOptions("business_yqscdw"),
  105. fillType: "preFill",
  106. },
  107. text8: {
  108. label: this.sn==='ysfy'?",进行衍生反应,反应":",进行离心。离心",
  109. type: "text",
  110. },
  111. startDate: {
  112. type: "input",
  113. fillType: "actFill",
  114. disabled: true,
  115. },
  116. button1: {
  117. type: "button",
  118. buttonName: "开始",
  119. },
  120. }
  121. }]
  122. if(this.sn==='lx_b'){
  123. config[0].config.remark = {
  124. type: "input",
  125. fillType: "actFill",
  126. }
  127. }
  128. config[0].config.text9 = {
  129. type: "text",
  130. label: "。",
  131. }
  132. return config
  133. }
  134. },
  135. }
  136. </script>
  137. <style lang="scss" scoped></style>