pickingDetail.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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: 90,
  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: 'xmId',
  48. type: 'select',
  49. span: 24,
  50. minWidth: 160,
  51. showOverflowTooltip: true,
  52. rules: [
  53. {
  54. required: true,
  55. message: '请选择研发项目名称',
  56. trigger: 'blur',
  57. },
  58. ],
  59. hide: true,
  60. },
  61. {
  62. label: '研发项目编号',
  63. prop: 'xmbh',
  64. type: 'input',
  65. span: 24,
  66. search: true,
  67. width: 100,
  68. align: 'center',
  69. showOverflowTooltip: true,
  70. display: false,
  71. },
  72. {
  73. label: '研发项目名称',
  74. prop: 'xmmc',
  75. type: 'input',
  76. span: 24,
  77. minWidth: 160,
  78. search: true,
  79. showOverflowTooltip: true,
  80. display: false
  81. },
  82. {
  83. label: '类型',
  84. prop: 'type',
  85. type: 'select',
  86. span: 24,
  87. width: 60,
  88. align: 'center',
  89. search: true,
  90. dicUrl: '/api/kd-system/dict-biz/dictionary?code=wuzi_lx',
  91. props: {
  92. label: 'dictValue',
  93. value: 'dictKey',
  94. },
  95. showOverflowTooltip: true,
  96. rules: [
  97. {
  98. required: true,
  99. message: '请选择类型',
  100. trigger: 'blur',
  101. },
  102. ],
  103. },
  104. {
  105. label: '物资编号',
  106. prop: 'code',
  107. type: 'input',
  108. span: 24,
  109. search: true,
  110. width: 100,
  111. align: 'center',
  112. showOverflowTooltip: true,
  113. // rules: [
  114. // {
  115. // required: true,
  116. // message: '请输入物资编号',
  117. // trigger: 'blur',
  118. // },
  119. // ],
  120. },
  121. {
  122. label: '物资名称',
  123. prop: 'name',
  124. type: 'input',
  125. span: 24,
  126. search: true,
  127. minWidth: 160,
  128. showOverflowTooltip: true,
  129. rules: [
  130. {
  131. required: true,
  132. message: '请输入物资名称',
  133. trigger: 'blur',
  134. },
  135. ],
  136. },
  137. {
  138. label: '型号规格',
  139. prop: 'model',
  140. type: 'input',
  141. span: 24,
  142. search: true,
  143. minWidth: 100,
  144. align: 'center',
  145. showOverflowTooltip: true,
  146. },
  147. {
  148. label: '单位',
  149. prop: 'unit',
  150. type: 'input',
  151. span: 24,
  152. width: 80,
  153. align: 'center',
  154. showOverflowTooltip: true,
  155. },
  156. {
  157. label: '单价(元)',
  158. prop: 'unitPrice',
  159. type: 'number',
  160. span: 24,
  161. width: 100,
  162. align: 'center',
  163. min: 0,
  164. precision: 2,
  165. showOverflowTooltip: true,
  166. },
  167. {
  168. label: '领取数量',
  169. prop: 'useQuantity',
  170. type: 'number',
  171. span: 24,
  172. width: 80,
  173. align: 'center',
  174. min: 0,
  175. precision: 0,
  176. showOverflowTooltip: true,
  177. },
  178. {
  179. label: '金额(元)',
  180. prop: 'amount',
  181. type: 'number',
  182. span: 24,
  183. width: 100,
  184. align: 'center',
  185. min: 0,
  186. precision: 2,
  187. showOverflowTooltip: true,
  188. display: false
  189. },
  190. ],
  191. };