demand.vue 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <template>
  2. <div >
  3. <a-form-model ref="formRef">
  4. <a-table
  5. ref="table"
  6. size="middle"
  7. bordered
  8. id='sonList'
  9. :columns="columns"
  10. rowKey="rowNo"
  11. :dataSource="dataSource"
  12. :pagination="false"
  13. :scroll="{ x: 5500, y: 300 }"
  14. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  15. @change="handleTableChange"
  16. >
  17. </a-table>
  18. </a-form-model>
  19. </div>
  20. </template>
  21. <script>
  22. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  23. import JEllipsis from '@/components/jeecg/JEllipsis'
  24. import moment from 'moment'
  25. export default {
  26. name: 'demand', // Tabs 详情
  27. mixins: [JeecgListMixin],
  28. components: {
  29. JEllipsis,
  30. moment,
  31. },
  32. data() {
  33. return {
  34. selectedRowKeys:[],
  35. selectedRows:[],
  36. dataSource:[],
  37. columns: [
  38. {
  39. title: '#',
  40. dataIndex: '',
  41. key: 'rowIndex',
  42. width: 60,
  43. align: "center",
  44. customRender:function (t, r, index) {
  45. return parseInt(index)+1;
  46. }
  47. },
  48. {
  49. title: '需求类型',
  50. align:"center",
  51. dataIndex: 'demandType',
  52. ellipsis: true,
  53. },
  54. {
  55. title: '需求日期',
  56. align:"center",
  57. dataIndex: 'demandTime',
  58. ellipsis: true,
  59. },
  60. {
  61. title: '批次',
  62. align:"center",
  63. dataIndex: 'batch',
  64. ellipsis: true,
  65. },
  66. {
  67. title: '项目编码',
  68. align:"center",
  69. dataIndex: 'projectCode',
  70. ellipsis: true,
  71. },
  72. {
  73. title: '项目名称',
  74. align:"center",
  75. dataIndex: 'projectName',
  76. ellipsis: true,
  77. },
  78. {
  79. title: '料品编码',
  80. align:"center",
  81. dataIndex: 'inventoryCode',
  82. ellipsis: true,
  83. },
  84. {
  85. title: '料品名称',
  86. align:"center",
  87. dataIndex: 'inventoryName',
  88. ellipsis: true,
  89. },
  90. {
  91. title: '仓库',
  92. align:"center",
  93. dataIndex: 'warehouse',
  94. ellipsis: true,
  95. },
  96. {
  97. title: '计量单位',
  98. align:"center",
  99. dataIndex: 'unit',
  100. ellipsis: true,
  101. },
  102. {
  103. title: '辅助计量单位',
  104. align:"center",
  105. dataIndex: 'auxiliaryUnit',
  106. ellipsis: true,
  107. },
  108. {
  109. title: '主数量',
  110. align:"center",
  111. dataIndex: 'quantity',
  112. ellipsis: true,
  113. },
  114. {
  115. title: '辅数量',
  116. align:"center",
  117. dataIndex: 'unQuantity',
  118. ellipsis: true,
  119. },
  120. {
  121. title: '换算率',
  122. align:"center",
  123. dataIndex: 'rate',
  124. ellipsis: true,
  125. },
  126. {
  127. title: '规格',
  128. align:"center",
  129. dataIndex: 'specs',
  130. ellipsis: true,
  131. },
  132. {
  133. title: '型号',
  134. align:"center",
  135. dataIndex: 'model',
  136. ellipsis: true,
  137. },
  138. {
  139. title: '颜色',
  140. align:"center",
  141. dataIndex: 'color',
  142. ellipsis: true,
  143. },
  144. {
  145. title: '支数',
  146. align:"center",
  147. dataIndex: 'fixedNum',
  148. ellipsis: true,
  149. },
  150. {
  151. title: '定尺',
  152. align:"center",
  153. dataIndex: 'fixedLength',
  154. ellipsis: true,
  155. },
  156. {
  157. title: '宽/高',
  158. align:"center",
  159. dataIndex: 'widthHeight',
  160. ellipsis: true,
  161. },
  162. {
  163. title: '片数',
  164. align:"center",
  165. dataIndex: 'pieces',
  166. ellipsis: true,
  167. },
  168. {
  169. title: '米重',
  170. align:"center",
  171. dataIndex: 'meterWeight',
  172. ellipsis: true,
  173. },
  174. {
  175. title: '装饰面周长',
  176. align:"center",
  177. dataIndex: 'decorationLength',
  178. ellipsis: true,
  179. },
  180. {
  181. title: '窗号',
  182. align:"center",
  183. dataIndex: 'windowNo',
  184. ellipsis: true,
  185. },
  186. {
  187. title: '专用区',
  188. align:"center",
  189. dataIndex: 'exclusiveZone',
  190. ellipsis: true,
  191. },
  192. {
  193. title: '樘数(数量)',
  194. align:"center",
  195. dataIndex: 'framesTang',
  196. ellipsis: true,
  197. },
  198. {
  199. title: '框统计',
  200. align:"center",
  201. dataIndex: 'framesCount',
  202. ellipsis: true,
  203. },
  204. {
  205. title: '扇统计',
  206. align:"center",
  207. dataIndex: 'leafCount',
  208. ellipsis: true,
  209. },
  210. {
  211. title: '半成品分类',
  212. align:"center",
  213. dataIndex: 'semiClass',
  214. ellipsis: true,
  215. },
  216. {
  217. title: '面积',
  218. align:"center",
  219. dataIndex: 'area',
  220. ellipsis: true,
  221. },
  222. {
  223. title: '切割长度',
  224. align:"center",
  225. dataIndex: 'cuttingLength',
  226. ellipsis: true,
  227. },
  228. {
  229. title: '切割角度左下',
  230. align:"center",
  231. dataIndex: 'cuttingLeftDown',
  232. ellipsis: true,
  233. },
  234. {
  235. title: '切割角度右上',
  236. align:"center",
  237. dataIndex: 'cuttingRightTop',
  238. ellipsis: true,
  239. },
  240. {
  241. title: '系列',
  242. align:"center",
  243. dataIndex: 'series',
  244. ellipsis: true,
  245. },
  246. {
  247. title: '玻璃编号',
  248. align:"center",
  249. dataIndex: 'glassNumber',
  250. ellipsis: true,
  251. },
  252. ],
  253. }
  254. },
  255. props: {
  256. },
  257. created() {},
  258. methods: {
  259. onSelectChange(selectedRowKeys, selectionRows) {
  260. this.selectedRowKeys = selectedRowKeys;
  261. this.selectedRows = selectionRows;
  262. },
  263. handleTableChange(){
  264. }
  265. },
  266. computed: {
  267. // 合计数据
  268. // sumInfoSource() {}
  269. }
  270. }
  271. </script>
  272. <style lang="less" scoped>
  273. /* @import '~@assets/less/common.less' */
  274. /deep/.ant-input{
  275. height:29px;
  276. }
  277. /deep/.ant-select-selection--single {
  278. height: 29px;
  279. }
  280. /deep/.ant-select{
  281. font-size: 12px;
  282. }
  283. /deep/.ant-form label{
  284. font-size: 12px;
  285. }
  286. /deep/.table-page-search-wrapper .ant-form-inline .ant-form-item{
  287. margin-bottom:9px
  288. }
  289. /deep/.moddle>.ant-card-body{
  290. padding-bottom:0px;
  291. padding-top: 12px;
  292. }
  293. /deep/.top>.ant-card-body{
  294. padding-bottom:0px;
  295. padding-top: 12px;
  296. }
  297. /deep/.ant-btn{
  298. height:28px
  299. }
  300. /deep/.ant-modal-body{
  301. padding-bottom: 0px;
  302. padding-top: 0px;
  303. }
  304. // /deep/.ant-modal-body{
  305. // background: #f0f2f5;
  306. // }
  307. /deep/.ant-modal-content{
  308. background: #f0f2f5;
  309. }
  310. /deep/.ant-card-body .table-operator {
  311. margin-bottom: 0px;
  312. }
  313. /deep/.three>.ant-card-body{
  314. padding-bottom:12px;
  315. padding-top: 12px;
  316. }
  317. /deep/.bottom>.ant-card-body{
  318. padding-bottom:0px;
  319. padding-top: 12px;
  320. }
  321. /deep/.ant-calendar-picker{
  322. min-width: 0px !important;
  323. }
  324. /deep/.sonItem {
  325. margin-bottom:0px !important
  326. }
  327. // /deep/#sonList>.ant-spin-nested-loading>.ant-spin-container>.ant-table>.ant-table-content>.ant-table-scroll>.ant-table-body>.ant-table-fixed>.ant-table-tbody > tr > td {
  328. // padding: 0px 8px !important;
  329. // }
  330. </style>