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

140 lines
4.7 KiB

  1. <!-- 恒温混匀 -->
  2. <template>
  3. <StepFormPackage :fieldItemLabel = "fieldItemLabel" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'ry_hwhy'" @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: 'hwhy',
  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. yq1: {
  29. type: "yq",
  30. fillType: "actFill",
  31. },
  32. text2: {
  33. label: "仪器,设置预计温度为",
  34. type: "text",
  35. },
  36. yjzs: {
  37. type: "input",
  38. fillType: "preFill",
  39. },
  40. text3: {
  41. label: "°C,设置实际温度为",
  42. type: "text",
  43. },
  44. sjwd: {
  45. type: "input",
  46. fillType: "actFill",
  47. compareTo: "yjzs",
  48. copyFrom: "yjzs"
  49. },
  50. text4: {
  51. label: "°C,设置预计转速为",
  52. type: "text",
  53. },
  54. yjzs2: {
  55. type: "inputNumber",
  56. fillType: "preFill",
  57. },
  58. yjzsdw: {
  59. type: "select",
  60. options: this.getDictOptions("business_zsdw"),
  61. selectTo: "sjzsdw",
  62. fillType: "preFill",
  63. },
  64. text8: {
  65. label: "实际设置转速为",
  66. type: "text",
  67. },
  68. sjzs: {
  69. type: "inputNumber",
  70. fillType: "actFill",
  71. compareTo: "yjzs2",
  72. copyFrom: "yjzs2"
  73. },
  74. sjzsdw: {
  75. type: "select",
  76. options: this.getDictOptions("business_zsdw"),
  77. fillType: "preFill",
  78. },
  79. text7: {
  80. label: ",设置预计时长为",
  81. type: "text",
  82. },
  83. yjsc: {
  84. type: "inputNumber",
  85. fillType: "preFill",
  86. },
  87. yjscdw: {
  88. type: "select",
  89. options: this.getDictOptions("business_yqscdw"),
  90. selectTo: "sjscdw",
  91. fillType: "preFill",
  92. },
  93. text5: {
  94. label: ",实际设置时长为",
  95. type: "text",
  96. },
  97. sjsc: {
  98. type: "inputNumber",
  99. fillType: "actFill",
  100. compareTo: "yjsc",
  101. copyFrom: "yjsc"
  102. },
  103. sjscdw: {
  104. type: "select",
  105. options: this.getDictOptions("business_yqscdw"),
  106. fillType: "preFill",
  107. },
  108. text6: {
  109. label: this.sn==='hwph'?",进行恒温平衡,平衡": ",进行恒温混匀,混匀",
  110. type: "text",
  111. },
  112. startDate: {
  113. type: "input",
  114. fillType: "actFill",
  115. disabled: true,
  116. },
  117. button1: {
  118. type: "button",
  119. buttonName: "开始"
  120. },
  121. text9: {
  122. type: "text",
  123. label: "。",
  124. },
  125. }
  126. }]
  127. if(this.sn==='hwhy_b'){
  128. config[0].config.remark = {
  129. type: "input",
  130. fillType: "actFill",
  131. }
  132. }
  133. return config
  134. }
  135. },
  136. }
  137. </script>
  138. <style lang="scss" scoped></style>