bindConfig.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. import { useDictionaryStore } from "@/store";
  2. const { dicts } = useDictionaryStore();
  3. const switchOp = [
  4. {
  5. label: "否",
  6. value: 0,
  7. },
  8. {
  9. label: "是",
  10. value: 1,
  11. },
  12. ];
  13. export const formOption = {
  14. submitBtn: false,
  15. emptyBtn: false,
  16. column: [
  17. {
  18. label: "工序类型",
  19. prop: "operationType",
  20. type: "select",
  21. search: true,
  22. dicData: dicts.process_type,
  23. props: {
  24. label: "dictLabel",
  25. value: "dictValue",
  26. },
  27. span: 24,
  28. rules: [
  29. {
  30. required: true,
  31. message: "请选择工序类型",
  32. trigger: "change",
  33. },
  34. ],
  35. },
  36. {
  37. label: "技能要求",
  38. prop: "skillAsk",
  39. span: 24,
  40. type: "select",
  41. search: true,
  42. filterable: true,
  43. dicData: dicts.skill_requirements,
  44. props: {
  45. label: "dictLabel",
  46. value: "dictValue",
  47. },
  48. rules: [
  49. {
  50. required: true,
  51. message: "请选择技能要求",
  52. trigger: "change",
  53. },
  54. ],
  55. },
  56. {
  57. label: "工位类型",
  58. prop: "stanType",
  59. search: true,
  60. type: "select",
  61. dicData: dicts.station_type,
  62. props: {
  63. label: "dictLabel",
  64. value: "dictValue",
  65. },
  66. span: 24,
  67. row: true,
  68. rules: [
  69. {
  70. required: true,
  71. message: "请选择工位类型",
  72. trigger: "blur",
  73. },
  74. ],
  75. },
  76. {
  77. label: "标准工时",
  78. prop: "standardWorktime",
  79. span: 24,
  80. value: 0,
  81. append: "分钟",
  82. rules: [
  83. {
  84. required: true,
  85. message: "标准工时不能为空",
  86. trigger: "blur",
  87. },
  88. ],
  89. },
  90. /* {
  91. label: "标准机时",
  92. prop: "timeingNum",
  93. span: 24,
  94. value: 0,
  95. append: "分钟",
  96. // rules: [
  97. // {
  98. // required: true,
  99. // message: "标准机时不能为空",
  100. // trigger: "blur",
  101. // },
  102. // ],
  103. },*/
  104. {
  105. label: "前置时间",
  106. prop: "forceTime",
  107. span: 24,
  108. value: 0,
  109. append: "分钟",
  110. rules: [
  111. {
  112. required: true,
  113. message: "前置时间不能为空",
  114. trigger: "blur",
  115. },
  116. ],
  117. // slot:true, // 自定义列
  118. },
  119. {
  120. label: "是否外协",
  121. prop: "outsourcing",
  122. span: 24,
  123. type: "switch",
  124. dicData: switchOp,
  125. value: 0,
  126. },
  127. /*{
  128. label: "是否首检",
  129. prop: "firstCheck",
  130. span: 24,
  131. type: "switch",
  132. dicData: switchOp,
  133. value: 0,
  134. },*/
  135. {
  136. label: "是否巡检",
  137. prop: "inspection",
  138. span: 24,
  139. type: "switch",
  140. dicData: switchOp,
  141. value: 0,
  142. },
  143. {
  144. label: "是否自检",
  145. prop: "selfCheck",
  146. span: 24,
  147. type: "switch",
  148. dicData: switchOp,
  149. value: 0,
  150. },
  151. {
  152. label: "批量报工",
  153. prop: "batchReport",
  154. span: 24,
  155. type: "switch",
  156. dicData: switchOp,
  157. value: 0,
  158. },
  159. {
  160. label: "是否可跳过",
  161. prop: "skipped",
  162. span: 24,
  163. type: "switch",
  164. dicData: switchOp,
  165. value: 0,
  166. },
  167. {
  168. label: "工艺条件",
  169. prop: "processAsk",
  170. span: 24,
  171. },
  172. {
  173. label: "工序描述",
  174. prop: "operationDesc",
  175. span: 24,
  176. type: "textarea",
  177. },
  178. /*{
  179. label: "tbom文件",
  180. prop: "tbomUrl",
  181. span: 24,
  182. },*/
  183. ],
  184. };