pickingDetail.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. export default {
  2. height: 'auto',
  3. calcHeight: 30,
  4. tip: false,
  5. searchShow: true,
  6. searchMenuSpan: 6,
  7. border: true,
  8. index: true,
  9. selection: true,
  10. searchLabelWidth: 140,
  11. labelWidth: 100,
  12. menuWidth: 140,
  13. dialogClickModal: false,
  14. dialogWidth: 500,
  15. dialogType: "drawer",
  16. showSummary: true,
  17. sumColumnList: [
  18. {
  19. name: 'useQuantity',
  20. type: 'sum',
  21. },
  22. {
  23. name: 'amount',
  24. type: 'sum'
  25. }
  26. ],
  27. column: [
  28. {
  29. label: '日期',
  30. prop: 'useDate',
  31. type: 'date',
  32. valueFormat: 'yyyy-MM-dd',
  33. span: 24,
  34. width: 100,
  35. align: 'center',
  36. showOverflowTooltip: true,
  37. rules: [
  38. {
  39. required: true,
  40. message: '请选择日期',
  41. trigger: 'blur',
  42. },
  43. ],
  44. },
  45. {
  46. label: '研发项目编号',
  47. prop: 'xmbh',
  48. type: 'input',
  49. span: 24,
  50. search: true,
  51. width: 100,
  52. align: 'center',
  53. showOverflowTooltip: true,
  54. display: false,
  55. },
  56. {
  57. label: '研发项目名称',
  58. prop: 'xmId',
  59. type: 'select',
  60. span: 24,
  61. minWidth: 160,
  62. search: true,
  63. showOverflowTooltip: true,
  64. rules: [
  65. {
  66. required: true,
  67. message: '请选择研发项目名称',
  68. trigger: 'blur',
  69. },
  70. ],
  71. },
  72. {
  73. label: '类型',
  74. prop: 'type',
  75. type: 'select',
  76. span: 24,
  77. width: 60,
  78. align: 'center',
  79. search: true,
  80. dicUrl: '/api/kd-system/dict-biz/dictionary?code=wuzi_lx',
  81. props: {
  82. label: 'dictValue',
  83. value: 'dictKey',
  84. },
  85. showOverflowTooltip: true,
  86. rules: [
  87. {
  88. required: true,
  89. message: '请选择类型',
  90. trigger: 'blur',
  91. },
  92. ],
  93. },
  94. {
  95. label: '物资编号',
  96. prop: 'code',
  97. type: 'input',
  98. span: 24,
  99. search: true,
  100. width: 100,
  101. align: 'center',
  102. showOverflowTooltip: true,
  103. rules: [
  104. {
  105. required: true,
  106. message: '请输入物资编号',
  107. trigger: 'blur',
  108. },
  109. ],
  110. },
  111. {
  112. label: '物资名称',
  113. prop: 'name',
  114. type: 'input',
  115. span: 24,
  116. search: true,
  117. minWidth: 160,
  118. showOverflowTooltip: true,
  119. rules: [
  120. {
  121. required: true,
  122. message: '请输入物资名称',
  123. trigger: 'blur',
  124. },
  125. ],
  126. },
  127. {
  128. label: '型号规格',
  129. prop: 'model',
  130. type: 'input',
  131. span: 24,
  132. search: true,
  133. minWidth: 100,
  134. align: 'center',
  135. showOverflowTooltip: true,
  136. },
  137. {
  138. label: '单位',
  139. prop: 'unit',
  140. type: 'input',
  141. span: 24,
  142. width: 80,
  143. align: 'center',
  144. showOverflowTooltip: true,
  145. },
  146. {
  147. label: '单价(元)',
  148. prop: 'unitPrice',
  149. type: 'number',
  150. span: 24,
  151. width: 100,
  152. align: 'center',
  153. min: 0,
  154. precision: 2,
  155. showOverflowTooltip: true,
  156. },
  157. {
  158. label: '领取数量',
  159. prop: 'useQuantity',
  160. type: 'number',
  161. span: 24,
  162. width: 80,
  163. align: 'center',
  164. min: 0,
  165. precision: 0,
  166. showOverflowTooltip: true,
  167. },
  168. {
  169. label: '金额(元)',
  170. prop: 'amount',
  171. type: 'number',
  172. span: 24,
  173. width: 100,
  174. align: 'center',
  175. min: 0,
  176. precision: 2,
  177. showOverflowTooltip: true,
  178. display: false
  179. },
  180. ],
  181. };