columns.ts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. import { ref } from 'vue';
  2. // 任务管理表格列
  3. export const taskColumns = ref([
  4. { type: 'checkbox', width: 50 ,fixed: 'left',align: 'center' },
  5. {
  6. field: 'company',
  7. title: '注册公司',
  8. fixed: 'left',
  9. editRender: {},
  10. slots: { edit: 'company_edit' },
  11. align: 'center',
  12. minWidth: 184
  13. },
  14. {
  15. field: 'platformNumber',
  16. title: '平台编号',
  17. fixed: 'left',
  18. editRender: { autofocus: '.vxe-input--inner' },
  19. slots: { edit: 'number_edit' },
  20. minWidth: 70
  21. },
  22. {
  23. field: 'platformName',
  24. title: '平台名称',
  25. fixed: 'left',
  26. editRender: { autofocus: '.vxe-input--inner' },
  27. slots: { edit: 'name_edit' },
  28. align: 'center',
  29. minWidth: 95, isEditing: false
  30. },
  31. {
  32. field: 'country',
  33. title: '国家',
  34. fixed: 'left',
  35. editRender: { autofocus: '.vxe-input--inner' },
  36. slots: { edit: 'country_edit' },
  37. minWidth: 80,
  38. align: 'center'
  39. },
  40. {
  41. field: 'brandName',
  42. title: '品牌',
  43. fixed: 'left',
  44. editRender: {},
  45. slots: { edit: 'brand_edit' },
  46. align: 'center',
  47. minWidth: 70,
  48. },
  49. {
  50. field: 'department',
  51. title: '部门',
  52. fixed: 'left',
  53. editRender: {},
  54. slots: {
  55. edit: 'department_edit',
  56. },
  57. align: 'center',
  58. minWidth: 104
  59. },
  60. {
  61. field: 'user_name',
  62. title: '填写人',
  63. fixed: 'left',
  64. editRender: {},
  65. slots: {
  66. edit: 'operation_edit',
  67. //default: 'operation_default'
  68. },
  69. align: 'center',
  70. minWidth: 104
  71. },
  72. {
  73. field: 'operater',
  74. title: '运营',
  75. fixed: 'left',
  76. editRender: {},
  77. slots: { edit: 'operater_name_edit' },
  78. align: 'center',
  79. minWidth: 97
  80. },
  81. {
  82. field: 'currencyCode',
  83. title: '平台币种',
  84. editRender: {},
  85. slots: { edit: 'currency_edit' },
  86. align: 'center',
  87. minWidth: 74
  88. },
  89. {
  90. field: 'currencyCodePlatform',
  91. title: '回款/余额币种',
  92. editRender: {},
  93. slots: { edit: 'currencyCodePlatform_edit' },
  94. minWidth: 100,
  95. align: 'center'
  96. },
  97. {
  98. field: 'platform',
  99. title: '平台',
  100. editRender: {},
  101. slots: { edit: 'platform_edit' },
  102. align: 'center',
  103. minWidth: 82
  104. },
  105. { field: 'line', title: '线路', editRender: {}, slots: { edit: 'line_edit' }, align: 'center', minWidth: 72 },
  106. { field: 'ipaddress', title: 'IP地址', editRender: {}, slots: { edit: 'ipaddress_edit' }, minWidth: 135 },
  107. {
  108. field: 'companyEnglishName',
  109. title: '公司英文名称',
  110. editRender: {},
  111. slots: { edit: 'companyEnglishName_edit' },
  112. align: 'center',
  113. minWidth: 126
  114. },
  115. // {
  116. // field: 'address',
  117. // title: '公司地址',
  118. // editRender: {},
  119. // slots: { edit: 'address_edit' },
  120. // align: 'center',
  121. // minWidth: 262
  122. // },
  123. {
  124. field: 'juridicalPerson',
  125. title: '公司法人',
  126. editRender: {},
  127. slots: { edit: 'juridicalPerson_edit' },
  128. align: 'center',
  129. minWidth: 95
  130. },
  131. // {
  132. // field: 'juridicalPersonCreditCard',
  133. // title: '法人信用卡',
  134. // editRender: {},
  135. // slots: { edit: 'juridicalPersonCreditCard_edit' },
  136. // align: 'center',
  137. // minWidth: 105
  138. // },
  139. // {
  140. // field: 'juridicalPersonCreditCardAddress',
  141. // title: '信用卡地址',
  142. // editRender: {},
  143. // slots: { edit: 'juridicalPersonCreditCardAddress_edit' },
  144. // align: 'center',
  145. // minWidth: 262
  146. // },
  147. // {
  148. // field: 'receivablesAccount',
  149. // title: '收款账号',
  150. // editRender: {},
  151. // slots: { edit: 'receivablesAccount_edit' },
  152. // align: 'center',
  153. // minWidth: 156
  154. // },
  155. // {
  156. // field: 'receivablesAccountCompany',
  157. // title: '收款账号公司',
  158. // editRender: {},
  159. // slots: { edit: 'receivablesAccountCompany_edit' },
  160. // align: 'center',
  161. // minWidth: 115
  162. // },
  163. // {
  164. // field: 'vatNumber',
  165. // title: 'VAT税号',
  166. // editRender: {},
  167. // slots: { edit: 'vatNumber_edit' },
  168. // align: 'center',
  169. // minWidth: 245
  170. // },
  171. // {
  172. // field: 'vatCompany',
  173. // title: 'VAT税号公司名称',
  174. // editRender: {},
  175. // slots: { edit: 'vatCompany_edit' },
  176. // align: 'center',
  177. // minWidth: 135
  178. // },
  179. { field: 'status', title: '状态', slots: { default: 'status_default' }, align: 'center', minWidth: 89 },
  180. { title: '操作', minWidth: 108, slots: { default: 'operate' }, fixed: 'right' },
  181. ]);
  182. export const shopInfoColumns = ref([
  183. {
  184. field: 'platformNumber',
  185. title: '平台编号',
  186. minWidth: 87
  187. },
  188. {
  189. field: 'platformName',
  190. title: '平台名称',
  191. align: 'center',
  192. minWidth: 138, isEditing: false
  193. },
  194. {
  195. field: 'country',
  196. title: '国家',
  197. minWidth: 85,
  198. align: 'center'
  199. },
  200. {
  201. field: 'brandName',
  202. title: '品牌',
  203. align: 'center',
  204. minWidth: 89,
  205. },
  206. {
  207. field: 'user_name',
  208. title: '填写人',
  209. align: 'center',
  210. minWidth: 104
  211. },
  212. {
  213. field: 'operater',
  214. title: '运营',
  215. align: 'center',
  216. minWidth: 104
  217. },
  218. {
  219. field: 'currencyCode',
  220. title: '平台币种',
  221. align: 'center',
  222. minWidth: 90
  223. },
  224. {
  225. field: 'currencyCodePlatform',
  226. title: '回款/余额币种',
  227. minWidth: 120,
  228. align: 'center'
  229. },
  230. {
  231. field: 'platform',
  232. title: '平台',
  233. align: 'center',
  234. minWidth: 89
  235. },
  236. { field: 'line', title: '线路', align: 'center', minWidth: 89 },
  237. { field: 'ipaddress', title: 'IP地址', minWidth: 135 },
  238. {
  239. field: 'company',
  240. title: '注册公司',
  241. align: 'center',
  242. minWidth: 184
  243. },
  244. {
  245. field: 'companyEnglishName',
  246. title: '公司英文名称',
  247. align: 'center',
  248. minWidth: 120
  249. },
  250. {
  251. field: 'address',
  252. title: '公司地址',
  253. align: 'center',
  254. minWidth: 262
  255. },
  256. {
  257. field: 'juridicalPerson',
  258. title: '公司法人',
  259. align: 'center',
  260. minWidth: 95
  261. },
  262. {
  263. field: 'juridicalPersonCreditCard',
  264. title: '法人信用卡',
  265. align: 'center',
  266. minWidth: 105
  267. },
  268. {
  269. field: 'juridicalPersonCreditCardAddress',
  270. title: '信用卡地址',
  271. align: 'center',
  272. minWidth: 262
  273. },
  274. {
  275. field: 'receivablesAccount',
  276. title: '收款账号',
  277. align: 'center',
  278. minWidth: 156
  279. },
  280. {
  281. field: 'receivablesAccountCompany',
  282. title: '收款账号公司',
  283. align: 'center',
  284. minWidth: 115
  285. },
  286. { field: 'vatNumber', title: 'VAT税号', align: 'center', minWidth: 95 },
  287. { field: 'vatCompany', title: 'VAT税号公司名称', align: 'center', minWidth: 135 },
  288. { field: 'status', title: '状态', slots: { default: 'status_default' }, align: 'center', minWidth: 89 },
  289. ]);
  290. // export const planColumns = ref([
  291. // { type: 'seq', width: 70 },
  292. // { field: 'platformNumber', title: '平台编号', align: 'center', width: 90 ,},
  293. // { field: 'platformName', title: '平台名称', align: 'center', width: 142 },
  294. // { field: 'country', title: '国家', align: 'center', width: 90 },
  295. // { field: 'brandName', title: '品牌', align: 'center', width: 90 },
  296. // { field: 'operater', title: '运营', align: 'center', width: 100 },
  297. // ]);
  298. //
  299. // export const operateColumns = ref([
  300. // { title: '操作', width: 120, slots: { default: 'operate' }, align: 'center' , fixed: 'right'},
  301. // ])
  302. export const planColumns = ref([
  303. { field: 'platformNumber', title: '平台编号', fixed: 'left', width: 81, align: 'center' },
  304. { field: 'platformName', title: '平台名称', fixed: 'left', width: 142, align: 'center' },
  305. { field: 'country', title: '国家', fixed: 'left', width: 80, align: 'center' },
  306. { field: 'brandName', title: '品牌', fixed: 'left', width: 90 ,align: 'center'},
  307. { field: 'operater', title: '运营', fixed: 'left', width: 80, align: 'center' },
  308. // { field: 'status', title: '状态', width: 80, formatter: ({ cellValue }) => cellValue === 1 ? '启用' : '禁用' },
  309. // { field: 'line', title: '线', width: 80 },
  310. // { field: 'ipaddress', title: 'IP 地址', width: 150 },
  311. // { field: 'company', title: '公司', width: 200 },
  312. // { field: 'platform', title: '平台', width: 100 },
  313. { field: '1月', title: '1月计划销售额', width: 125,editRender: {}, slots: { edit: 'january' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--' },
  314. { field: '2月', title: '2月计划销售额', width: 125, editRender: {}, slots: { edit: 'february' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  315. { field: '3月', title: '3月计划销售额', width: 125, editRender: {}, slots: { edit: 'march' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  316. { field: '4月', title: '4月计划销售额', width: 125, editRender: {}, slots: { edit: 'april' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  317. { field: '5月', title: '5月计划销售额', width: 125, editRender: {}, slots: { edit: 'may' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  318. { field: '6月', title: '6月计划销售额', width: 125, editRender: {}, slots: { edit: 'june' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  319. { field: '7月', title: '7月计划销售额', width: 125, editRender: {}, slots: { edit: 'july' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  320. { field: '8月', title: '8月计划销售额', width: 125, editRender: {}, slots: { edit: 'august' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  321. { field: '9月', title: '9月计划销售额', width: 125, editRender: {}, slots: { edit: 'september' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  322. { field: '10月', title: '10月计划销售额', width: 133, editRender: {}, slots: { edit: 'october' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  323. { field: '11月', title: '11月计划销售额', width: 133, editRender: {}, slots: { edit: 'november' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  324. { field: '12月', title: '12月计划销售额', width: 133, editRender: {}, slots: { edit: 'december' }, align: 'center' ,formatter: ({ cellValue }) => cellValue?.planSales || '--'},
  325. { title: '操作', width: 120, slots: { default: 'operate' }, align: 'center' , fixed: 'right'},
  326. ])