materialDetail.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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: 6500, y: 300 }"
  14. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  15. >
  16. </a-table>
  17. </a-form-model>
  18. </div>
  19. </template>
  20. <script>
  21. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  22. import JEllipsis from '@/components/jeecg/JEllipsis'
  23. import moment from 'moment'
  24. export default {
  25. name: 'materialDetai', // Tabs 详情
  26. mixins: [JeecgListMixin],
  27. components: {
  28. JEllipsis,
  29. moment,
  30. },
  31. data() {
  32. return {
  33. selectedRowKeys:[],
  34. disableMixinCreated:'1',
  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: 'rate',
  112. ellipsis: true,
  113. },
  114. {
  115. title: '已执行辅数量',
  116. align:"center",
  117. dataIndex: 'unQuantityExecute',
  118. ellipsis: true,
  119. },
  120. {
  121. title: '已执行主数量',
  122. align:"center",
  123. dataIndex: 'quantityExecute',
  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: 'remarks',
  172. ellipsis: true,
  173. },
  174. {
  175. title: '米重',
  176. align:"center",
  177. dataIndex: 'meterWeight',
  178. ellipsis: true,
  179. },
  180. {
  181. title: '装饰面周长',
  182. align:"center",
  183. dataIndex: 'decorationLength',
  184. ellipsis: true,
  185. },
  186. {
  187. title: '窗号',
  188. align:"center",
  189. dataIndex: 'windowNo',
  190. ellipsis: true,
  191. },
  192. {
  193. title: '专用区',
  194. align:"center",
  195. dataIndex: 'exclusiveZone',
  196. ellipsis: true,
  197. },
  198. {
  199. title: '宽度/长度',
  200. align:"center",
  201. dataIndex: 'widthLength',
  202. ellipsis: true,
  203. },
  204. {
  205. title: '高度',
  206. align:"center",
  207. dataIndex: 'height',
  208. ellipsis: true,
  209. },
  210. {
  211. title: '楼层楼号',
  212. align:"center",
  213. dataIndex: 'buildingNumber',
  214. ellipsis: true,
  215. },
  216. {
  217. title: '樘数(数量)',
  218. align:"center",
  219. dataIndex: 'framesTang',
  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: 'syncInfo',
  274. ellipsis: true,
  275. width:460,
  276. },
  277. ],
  278. }
  279. },
  280. props: {
  281. },
  282. created() {},
  283. methods: {
  284. onSelectChange(selectedRowKeys, selectionRows) {
  285. this.selectedRowKeys = selectedRowKeys;
  286. this.selectedRows = selectionRows;
  287. },
  288. },
  289. computed: {
  290. // 合计数据
  291. // sumInfoSource() {}
  292. }
  293. }
  294. </script>
  295. <style lang="less" scoped>
  296. /* @import '~@assets/less/common.less' */
  297. /deep/.ant-input{
  298. height:29px;
  299. }
  300. /deep/.ant-select-selection--single {
  301. height: 29px;
  302. }
  303. /deep/.ant-select{
  304. font-size: 12px;
  305. }
  306. /deep/.ant-form label{
  307. font-size: 12px;
  308. }
  309. /deep/.table-page-search-wrapper .ant-form-inline .ant-form-item{
  310. margin-bottom:9px
  311. }
  312. /deep/.moddle>.ant-card-body{
  313. padding-bottom:0px;
  314. padding-top: 12px;
  315. }
  316. /deep/.top>.ant-card-body{
  317. padding-bottom:0px;
  318. padding-top: 12px;
  319. }
  320. /deep/.ant-btn{
  321. height:28px
  322. }
  323. /deep/.ant-modal-body{
  324. padding-bottom: 0px;
  325. padding-top: 0px;
  326. }
  327. // /deep/.ant-modal-body{
  328. // background: #f0f2f5;
  329. // }
  330. /deep/.ant-modal-content{
  331. background: #f0f2f5;
  332. }
  333. /deep/.ant-card-body .table-operator {
  334. margin-bottom: 0px;
  335. }
  336. /deep/.three>.ant-card-body{
  337. padding-bottom:12px;
  338. padding-top: 12px;
  339. }
  340. /deep/.bottom>.ant-card-body{
  341. padding-bottom:0px;
  342. padding-top: 12px;
  343. }
  344. /deep/.ant-calendar-picker{
  345. min-width: 0px !important;
  346. }
  347. /deep/.sonItem {
  348. margin-bottom:0px !important
  349. }
  350. // /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 {
  351. // padding: 0px 8px !important;
  352. // }
  353. </style>