bindConfig.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. filterable: true,
  62. multiple: true,
  63. dicData: dicts.station_type,
  64. props: {
  65. label: "dictLabel",
  66. value: "dictValue",
  67. },
  68. span: 24,
  69. row: true,
  70. rules: [
  71. {
  72. required: true,
  73. message: "请选择工位类型",
  74. trigger: "blur",
  75. },
  76. ],
  77. },
  78. {
  79. label: "标准工时",
  80. prop: "standardWorktime",
  81. span: 24,
  82. value: 0,
  83. append: "分钟",
  84. rules: [
  85. {
  86. required: true,
  87. message: "标准工时不能为空",
  88. trigger: "blur",
  89. },
  90. ],
  91. },
  92. /*{
  93. label: "标准机时",
  94. prop: "timeingNum",
  95. span: 24,
  96. value: 0,
  97. append: "分钟",
  98. // rules: [
  99. // {
  100. // required: true,
  101. // message: "标准机时不能为空",
  102. // trigger: "blur",
  103. // },
  104. // ],
  105. },*/
  106. {
  107. label: "后置时间",
  108. prop: "forceTime",
  109. span: 24,
  110. value: 0,
  111. append: "分钟",
  112. rules: [
  113. {
  114. required: true,
  115. message: "后置时间不能为空",
  116. trigger: "blur",
  117. },
  118. ],
  119. // slot:true, // 自定义列
  120. },
  121. {
  122. label: "是否委外",
  123. prop: "outsourcing",
  124. span: 24,
  125. type: "switch",
  126. dicData: switchOp,
  127. value: 0,
  128. },
  129. /*{
  130. label: "是否首检",
  131. prop: "firstCheck",
  132. span: 24,
  133. type: "switch",
  134. dicData: switchOp,
  135. value: 0,
  136. },
  137. {
  138. label: "是否互检",
  139. prop: "mutualInspection",
  140. span: 24,
  141. type: "switch",
  142. dicData: switchOp,
  143. value: 0,
  144. },
  145. {
  146. label: "是否专检",
  147. prop: "specialInspection",
  148. span: 24,
  149. type: "switch",
  150. dicData: switchOp,
  151. value: 0,
  152. },
  153. {
  154. label: "是否巡检",
  155. prop: "inspection",
  156. span: 24,
  157. type: "switch",
  158. dicData: switchOp,
  159. value: 0,
  160. },
  161. {
  162. label: "是否自检",
  163. prop: "selfCheck",
  164. span: 24,
  165. type: "switch",
  166. dicData: switchOp,
  167. value: 0,
  168. },*/
  169. {
  170. label: "前置完工",
  171. prop: "skipped",
  172. span: 24,
  173. type: "switch",
  174. dicData: switchOp,
  175. value: 0,
  176. },
  177. {
  178. label: "批量报工",
  179. prop: "batchReport",
  180. span: 24,
  181. type: "switch",
  182. dicData: switchOp,
  183. value: 0,
  184. },
  185. {
  186. label: "工序描述",
  187. prop: "operationDesc",
  188. span: 24,
  189. type: "textarea",
  190. },
  191. /* {
  192. label: "tbom文件",
  193. prop: "tbomUrl",
  194. span: 24,
  195. },*/
  196. ],
  197. };