SurplusMaterialsDetail.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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: 'SurplusMaterialsDetail', // 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: 'projectCode',
  52. ellipsis: true,
  53. },
  54. {
  55. title: '项目名称',
  56. align:"center",
  57. dataIndex: 'projectName',
  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: 'inventoryCode',
  70. ellipsis: true,
  71. },
  72. {
  73. title: '料品名称',
  74. align:"center",
  75. dataIndex: 'inventoryName',
  76. ellipsis: true,
  77. },
  78. {
  79. title: '料品属性',
  80. align:"center",
  81. dataIndex: 'attribute',
  82. ellipsis: true,
  83. },
  84. {
  85. title: '计量单位',
  86. align:"center",
  87. dataIndex: 'unit',
  88. ellipsis: true,
  89. },
  90. {
  91. title: '辅计量单位',
  92. align:"center",
  93. dataIndex: 'auxiliaryUnit',
  94. ellipsis: true,
  95. },
  96. {
  97. title: '主数量',
  98. align:"center",
  99. dataIndex: 'quantity',
  100. ellipsis: true,
  101. },
  102. {
  103. title: '辅数量',
  104. align:"center",
  105. dataIndex: 'unQuantity',
  106. ellipsis: true,
  107. },
  108. {
  109. title: '规格',
  110. align:"center",
  111. dataIndex: 'specs',
  112. ellipsis: true,
  113. },
  114. {
  115. title: '型号',
  116. align:"center",
  117. dataIndex: 'model',
  118. ellipsis: true,
  119. },
  120. {
  121. title: '颜色',
  122. align:"center",
  123. dataIndex: 'color',
  124. ellipsis: true,
  125. },
  126. {
  127. title: '支数',
  128. align:"center",
  129. dataIndex: 'fixedNum',
  130. ellipsis: true,
  131. },
  132. {
  133. title: '定尺',
  134. align:"center",
  135. dataIndex: 'fixedLength',
  136. ellipsis: true,
  137. },
  138. {
  139. title: '宽/高',
  140. align:"center",
  141. dataIndex: 'widthHeight',
  142. ellipsis: true,
  143. },
  144. {
  145. title: '片数',
  146. align:"center",
  147. dataIndex: 'pieces',
  148. ellipsis: true,
  149. },
  150. {
  151. title: '备注',
  152. align:"center",
  153. dataIndex: 'remarks',
  154. ellipsis: true,
  155. },
  156. {
  157. title: '换算率',
  158. align:"center",
  159. dataIndex: 'rate',
  160. ellipsis: true,
  161. },
  162. {
  163. title: '米重',
  164. align:"center",
  165. dataIndex: 'meterWeight',
  166. ellipsis: true,
  167. },
  168. {
  169. title: '装饰面周长',
  170. align:"center",
  171. dataIndex: 'decorationLength',
  172. ellipsis: true,
  173. },
  174. {
  175. title: '窗号',
  176. align:"center",
  177. dataIndex: 'windowNo',
  178. ellipsis: true,
  179. },
  180. {
  181. title: '专用区',
  182. align:"center",
  183. dataIndex: 'exclusiveZone',
  184. ellipsis: true,
  185. },
  186. {
  187. title: '宽度/长度',
  188. align:"center",
  189. dataIndex: 'widthLength',
  190. ellipsis: true,
  191. },
  192. {
  193. title: '高度',
  194. align:"center",
  195. dataIndex: 'height',
  196. ellipsis: true,
  197. },
  198. {
  199. title: '楼层楼号',
  200. align:"center",
  201. dataIndex: 'buildingNumber',
  202. ellipsis: true,
  203. },
  204. {
  205. title: '樘数(数量)',
  206. align:"center",
  207. dataIndex: 'framesTang',
  208. ellipsis: true,
  209. },
  210. {
  211. title: '框统计',
  212. align:"center",
  213. dataIndex: 'framesCount',
  214. ellipsis: true,
  215. },
  216. {
  217. title: '扇统计',
  218. align:"center",
  219. dataIndex: 'leafCount',
  220. ellipsis: true,
  221. },
  222. {
  223. title: '半成品分类',
  224. align:"center",
  225. dataIndex: 'semiClass',
  226. ellipsis: true,
  227. },
  228. {
  229. title: '面积',
  230. align:"center",
  231. dataIndex: 'area',
  232. ellipsis: true,
  233. },
  234. {
  235. title: '切割长度',
  236. align:"center",
  237. dataIndex: 'cuttingLength',
  238. ellipsis: true,
  239. },
  240. {
  241. title: '切割角度左下',
  242. align:"center",
  243. dataIndex: 'cuttingLeftDown',
  244. ellipsis: true,
  245. },
  246. {
  247. title: '切割角度右上',
  248. align:"center",
  249. dataIndex: 'cuttingRightTop',
  250. ellipsis: true,
  251. },
  252. {
  253. title: '系列',
  254. align:"center",
  255. dataIndex: 'series',
  256. ellipsis: true,
  257. },
  258. {
  259. title: '玻璃编号',
  260. align:"center",
  261. dataIndex: 'glassNumber',
  262. ellipsis: true,
  263. },
  264. {
  265. title: '杂收同步',
  266. align:"center",
  267. dataIndex: 'sync',
  268. ellipsis: true,
  269. },
  270. {
  271. title: '杂发同步',
  272. align:"center",
  273. dataIndex: 'sync1',
  274. ellipsis: true,
  275. },
  276. ],
  277. }
  278. },
  279. props: {
  280. },
  281. created() {},
  282. methods: {
  283. onSelectChange(selectedRowKeys, selectionRows) {
  284. this.selectedRowKeys = selectedRowKeys;
  285. this.selectedRows = selectionRows;
  286. },
  287. },
  288. computed: {
  289. // 合计数据
  290. // sumInfoSource() {}
  291. }
  292. }
  293. </script>
  294. <style lang="less" scoped>
  295. /* @import '~@assets/less/common.less' */
  296. /deep/.ant-input{
  297. height:29px;
  298. }
  299. /deep/.ant-select-selection--single {
  300. height: 29px;
  301. }
  302. /deep/.ant-select{
  303. font-size: 12px;
  304. }
  305. /deep/.ant-form label{
  306. font-size: 12px;
  307. }
  308. /deep/.table-page-search-wrapper .ant-form-inline .ant-form-item{
  309. margin-bottom:9px
  310. }
  311. /deep/.moddle>.ant-card-body{
  312. padding-bottom:0px;
  313. padding-top: 12px;
  314. }
  315. /deep/.top>.ant-card-body{
  316. padding-bottom:0px;
  317. padding-top: 12px;
  318. }
  319. /deep/.ant-btn{
  320. height:28px
  321. }
  322. /deep/.ant-modal-body{
  323. padding-bottom: 0px;
  324. padding-top: 0px;
  325. }
  326. // /deep/.ant-modal-body{
  327. // background: #f0f2f5;
  328. // }
  329. /deep/.ant-modal-content{
  330. background: #f0f2f5;
  331. }
  332. /deep/.ant-card-body .table-operator {
  333. margin-bottom: 0px;
  334. }
  335. /deep/.three>.ant-card-body{
  336. padding-bottom:12px;
  337. padding-top: 12px;
  338. }
  339. /deep/.bottom>.ant-card-body{
  340. padding-bottom:0px;
  341. padding-top: 12px;
  342. }
  343. /deep/.ant-calendar-picker{
  344. min-width: 0px !important;
  345. }
  346. /deep/.sonItem {
  347. margin-bottom:0px !important
  348. }
  349. // /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 {
  350. // padding: 0px 8px !important;
  351. // }
  352. </style>