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

106 lines
3.6 KiB

  1. <!-- 全血静置 -->
  2. <template>
  3. <StepFormPackage :fieldItemLabel = "fieldItemLabel" ref="stepFormPackageRef" :prefixKey="stepIndex+'_'+'qxwdx_qxjz'" @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: 'qxjz',
  15. },
  16. },
  17. components: {
  18. StepFormPackage
  19. },
  20. computed: {
  21. formConfig() {
  22. let config = [{
  23. config: {
  24. text1: {
  25. label: this.sn==='qxqy'?"将离心完成后的第":"将样品分装后的第",
  26. type: "text",
  27. },
  28. sort: {
  29. type: "inputNumber",
  30. fillType: "preFill",
  31. },
  32. text2: {
  33. label: this.sn==='qxqy'?"份,取上层血浆放置于":"份,立即放置于",
  34. type: "text",
  35. },
  36. yjwd: {
  37. type: "select",
  38. options: this.getDictOptions("business_wddw"),
  39. fillType: "preFill",
  40. otherCode: "yjwdOther",
  41. },
  42. yjhj: {
  43. type: "select",
  44. options: this.getDictOptions("business_hjxx"),
  45. fillType: "preFill",
  46. otherCode: "yjhjOther",
  47. },
  48. text5: {
  49. label: ",实际放置于",
  50. type: "text",
  51. },
  52. sjwd: {
  53. type: "select",
  54. options: this.getDictOptions("business_wddw"),
  55. fillType: "actFill",
  56. otherCode: "sjwdOther",
  57. compareTo: "yjwd",
  58. },
  59. sjhj: {
  60. type: "select",
  61. options: this.getDictOptions("business_hjxx"),
  62. fillType: "actFill",
  63. otherCode: "sjhjOther",
  64. compareTo: "yjhj",
  65. },
  66. text6: {
  67. label: this.sn==='qxqy'?"条件下暂存,作为":"条件下静置,即稳定性",
  68. type: "text",
  69. },
  70. }
  71. }]
  72. if(this.sn==='qxjz'){
  73. config[0].config.startDate = {
  74. type: "input",
  75. fillType: "actFill",
  76. disabled: true,
  77. }
  78. config[0].config.button1 = {
  79. type:"button",
  80. buttonName:"开始",
  81. }
  82. config[0].config.text9 = {
  83. type: "text",
  84. label: "。",
  85. }
  86. }
  87. if(this.sn==='qxqy'){
  88. config[0].config.ccwz = {
  89. type: "select",
  90. options: this.getDictOptions("business_ccwz"),
  91. fillType: "actFill",
  92. otherCode: "ccwzOther",
  93. }
  94. config[0].config.text9 = {
  95. type: "text",
  96. label: "样品。",
  97. }
  98. }
  99. return config
  100. }
  101. },
  102. }
  103. </script>
  104. <style lang="scss" scoped></style>