columns.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. import { filterMultiDictText } from '@/components/dict/JDictSelectUtil'
  2. import vueBus from './vueBus'
  3. let dictOptions = [];
  4. let type = "";
  5. // 统计页字段
  6. const tjColunms = [
  7. {
  8. title: '#',
  9. dataIndex: '',
  10. key: 'rowIndex',
  11. width: 60,
  12. align: "center",
  13. customRender: function (t, r, index) {
  14. return parseInt(index) + 1;
  15. }
  16. },
  17. {
  18. title: '单位名称',
  19. align: "center",
  20. dataIndex: 'sysOrgCode_dictText'
  21. },
  22. {
  23. title: '地块名称',
  24. align: "center",
  25. dataIndex: 'dk'
  26. },
  27. {
  28. title: '证书/合同/文件编号',
  29. align: "center",
  30. dataIndex: 'wjbh'
  31. },
  32. {
  33. title: '土地使用权人',
  34. align: "center",
  35. dataIndex: 'tdsyqr'
  36. },
  37. {
  38. title: '使用权使用方式',
  39. align: "center",
  40. dataIndex: 'syqsyfs'
  41. },
  42. {
  43. title: '实际用途',
  44. align: "center",
  45. dataIndex: 'sjyt',
  46. // dataIndex: 'sjyt_dictText',
  47. customRender: (text) => (text ? filterMultiDictText(dictOptions['sjyt'], text) : '')
  48. },
  49. {
  50. title: '操作',
  51. dataIndex: 'action',
  52. align: "center",
  53. fixed: "right",
  54. width: 147,
  55. scopedSlots: {customRender: 'action'}
  56. }
  57. ];
  58. // 省属企业审核字段
  59. const CompanyauditColumns = [
  60. {
  61. title: '#',
  62. dataIndex: '',
  63. key:'rowIndex',
  64. width:60,
  65. align:"center",
  66. customRender:function (t,r,index) {
  67. return parseInt(index)+1;
  68. }
  69. },
  70. {
  71. title:'单位名称',
  72. align:"center",
  73. dataIndex: 'sysOrgCode_dictText'
  74. },
  75. {
  76. title:'地块名称',
  77. align:"center",
  78. dataIndex: 'dk'
  79. },
  80. {
  81. title:'文件类型',
  82. align:"center",
  83. dataIndex: 'wjlx_dictText'
  84. },
  85. {
  86. title:'证书/合同/文件编号',
  87. align:"center",
  88. dataIndex: 'wjbh'
  89. },
  90. {
  91. title:'土地使用权人',
  92. align:"center",
  93. dataIndex: 'tdsyqr'
  94. },
  95. {
  96. title:'使用权使用方式',
  97. align:"center",
  98. dataIndex: 'syqsyfs'
  99. },
  100. {
  101. title:'实际用途',
  102. align:"center",
  103. dataIndex: 'sjyt',
  104. customRender:
  105. (text) => (text ? filterMultiDictText(dictOptions['sjyt'], text) : '')
  106. },
  107. {
  108. title:'是否上报',
  109. align:"center",
  110. dataIndex: 'sfsb_dictText'
  111. },
  112. {
  113. title: '操作',
  114. dataIndex: 'action',
  115. align:"center",
  116. fixed:"right",
  117. width:147,
  118. scopedSlots: { customRender: 'action' }
  119. }
  120. ];
  121. // 省直单位审核字段
  122. const departAuditColumns = [
  123. {
  124. title: '#',
  125. dataIndex: '',
  126. key:'rowIndex',
  127. width:60,
  128. align:"center",
  129. customRender:function (t,r,index) {
  130. return parseInt(index)+1;
  131. }
  132. },
  133. {
  134. title:'单位名称',
  135. align:"center",
  136. dataIndex: 'sysOrgCode_dictText'
  137. },
  138. {
  139. title:'地块名称',
  140. align:"center",
  141. dataIndex: 'dk'
  142. },
  143. {
  144. title:'证书类型',
  145. align:"center",
  146. dataIndex: 'zslx'
  147. },
  148. {
  149. title:'证书/合同/文件编号',
  150. align:"center",
  151. dataIndex: 'wjbh'
  152. },
  153. {
  154. title:'土地使用权人',
  155. align:"center",
  156. dataIndex: 'tdsyqr'
  157. },
  158. {
  159. title:'使用权使用方式',
  160. align:"center",
  161. dataIndex: 'syqsyfs'
  162. },
  163. {
  164. title:'实际用途',
  165. align:"center",
  166. dataIndex: 'sjyt',
  167. customRender:
  168. (text) => (text ? filterMultiDictText(dictOptions['sjyt'], text) : '')
  169. },
  170. {
  171. title:'是否上报',
  172. align:"center",
  173. dataIndex: 'sfsb_dictText'
  174. },
  175. {
  176. title: '操作',
  177. dataIndex: 'action',
  178. align:"center",
  179. fixed:"right",
  180. width:147,
  181. scopedSlots: { customRender: 'action' }
  182. }
  183. ];
  184. // 获取实际用途类型
  185. export function getDictOption(data) {
  186. console.log("columns...data", data)
  187. dictOptions = data;
  188. }
  189. // 获取传参页面
  190. export function getViewType(data) {
  191. type = data;
  192. let num = (tjColunms[3].title ==='证书类型' || tjColunms[3].title ==='文件类型') ? 1 : 0;
  193. if (data === 'ss') {
  194. console.log("tjColunms[3].title", tjColunms[3].title);
  195. tjColunms.splice(3, num,
  196. {
  197. title: '文件类型',
  198. align: "center",
  199. dataIndex: 'wjlx_dictText'
  200. },);
  201. } else {
  202. tjColunms.splice(3, num, {
  203. title: '证书类型',
  204. align: "center",
  205. dataIndex: 'zslx_dictText'
  206. },);
  207. }
  208. }
  209. export { tjColunms, CompanyauditColumns, departAuditColumns };