allList.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <a-table :columns="columns" :data-source="data" bordered :scroll="{ x: 4750 }" :pagination="ipagination" rowKey="id">
  3. </a-table>
  4. </template>
  5. <script>
  6. const columns = [
  7. {
  8. title:'任务号',
  9. fixed:"left",
  10. dataIndex: 'taskno',
  11. },
  12. {
  13. title:'任务名称',
  14. align:"center",
  15. fixed:"left",
  16. dataIndex: 'taskname'
  17. },
  18. {
  19. title:'型号',
  20. align:"center",
  21. dataIndex: 'xhname'
  22. },
  23. {
  24. title:'计划完成时间',
  25. align:"center",
  26. dataIndex: 'jhwcsj',
  27. },
  28. {
  29. title:'阶段',
  30. align:"center",
  31. dataIndex: 'yzjdname'
  32. },
  33. {
  34. title:'项目进度',
  35. align:"center",
  36. dataIndex: 'processpercent'
  37. },
  38. {
  39. title:'成本进度',
  40. align:"center",
  41. dataIndex: 'costPercent'
  42. },
  43. {
  44. title:'研制数量',
  45. align:"center",
  46. dataIndex: 'yzsl'
  47. },
  48. {
  49. title:'单台收入',
  50. align:"center",
  51. dataIndex: 'oneIncome'
  52. },
  53. {
  54. title:'单台成本',
  55. align:"center",
  56. dataIndex: 'oneCost'
  57. },
  58. {
  59. title:'单台利润',
  60. align:"center",
  61. dataIndex: 'oneProfit'
  62. },
  63. {
  64. title:'利润额',
  65. align:"center",
  66. dataIndex: 'lre'
  67. },
  68. {
  69. title:'利润率',
  70. align:"center",
  71. dataIndex: 'lrl'
  72. },
  73. {
  74. title:'预估价',
  75. align:"center",
  76. dataIndex: 'estimationcoat'
  77. },
  78. {
  79. title:'合同额',
  80. align:"center",
  81. dataIndex: 'contractfpe',
  82. },
  83. {
  84. title:'已收款',
  85. align:"center",
  86. dataIndex: 'taskmoney',
  87. },
  88. {
  89. title:'总成本',
  90. align:"center",
  91. dataIndex: 'zcb'
  92. },
  93. {
  94. title:'材料费',
  95. align:"center",
  96. dataIndex: 'clf',
  97. },
  98. {
  99. title:'专用费',
  100. align:"center",
  101. dataIndex: 'zyf',
  102. },
  103. {
  104. title:'事务费',
  105. align:"center",
  106. dataIndex: 'swf',
  107. },
  108. {
  109. title:'外协费',
  110. align:"center",
  111. dataIndex: 'wxf',
  112. },
  113. {
  114. title:'燃料动力费',
  115. align:"center",
  116. dataIndex: 'rldlf'
  117. },
  118. {
  119. title:'固定资产折旧',
  120. align:"center",
  121. dataIndex: 'gdzczj'
  122. },
  123. {
  124. title:'工资及劳务费',
  125. align:"center",
  126. dataIndex: 'gzjlwf'
  127. },
  128. {
  129. title:'管理费',
  130. align:"center",
  131. dataIndex: 'glf'
  132. },
  133. {
  134. title:'装机成本',
  135. align:"center",
  136. dataIndex: 'zjcb',
  137. },
  138. {
  139. title:'内部试验',
  140. align:"center",
  141. dataIndex: 'lbsy'
  142. },
  143. {
  144. title:'工时(h)',
  145. align:"center",
  146. dataIndex: 'workhour'
  147. },
  148. {
  149. title:'责任部门',
  150. align:"center",
  151. dataIndex: 'zrbm'
  152. },
  153. {
  154. title:'下达部门',
  155. align:"center",
  156. dataIndex: 'jycs'
  157. },
  158. {
  159. title:'横向纵向',
  160. align:"center",
  161. dataIndex: 'hxzxname'
  162. },
  163. {
  164. title:'任务类型',
  165. align:"center",
  166. dataIndex: 'tasktype'
  167. },
  168. {
  169. title:'审计审价',
  170. align:"center",
  171. dataIndex: 'auditprice'
  172. },
  173. {
  174. title:'任务状态',
  175. align:"center",
  176. dataIndex: 'iflag'
  177. },
  178. {
  179. title:'提出单位简称',
  180. align:"center",
  181. dataIndex: 'brief'
  182. },
  183. {
  184. title:'父级任务',
  185. align:"center",
  186. dataIndex: 'reftaskno'
  187. },
  188. {
  189. title:'批产任务号',
  190. align:"center",
  191. dataIndex: 'pccode'
  192. },
  193. {
  194. title:'备产任务号',
  195. align:"center",
  196. dataIndex: 'bccode'
  197. },
  198. {
  199. title:'备料任务号',
  200. align:"center",
  201. dataIndex: 'blcode'
  202. },
  203. {
  204. title:'业务员',
  205. align:"center",
  206. dataIndex: 'businessman'
  207. },
  208. {
  209. title:'设计工时',
  210. align:"center",
  211. dataIndex: 'sjgs'
  212. },
  213. {
  214. title:'生产工时',
  215. align:"center",
  216. dataIndex: 'scgs'
  217. },
  218. ];
  219. const data = [];
  220. export default {
  221. props: {
  222. // 对比表格数据
  223. duibiList: {
  224. type: Array,
  225. default: ()=>{},
  226. required: false
  227. }
  228. },
  229. data() {
  230. return {
  231. data,
  232. columns,
  233. /* 分页参数 */
  234. ipagination:{
  235. current: 1,
  236. pageSize: 10,
  237. pageSizeOptions: ['10', '20', '30'],
  238. showTotal: (total, range) => {
  239. return range[0] + "-" + range[1] + " 共" + total + "条"
  240. },
  241. showQuickJumper: true,
  242. showSizeChanger: true,
  243. total: 0
  244. },
  245. };
  246. },
  247. created(){
  248. console.log(this.duibiList)
  249. this.data = this.duibiList
  250. }
  251. };
  252. </script>