columns.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. import { ref } from 'vue';
  2. //数据录入
  3. export const dayColumns = ref([
  4. {field: 'platformNumber', title: '平台编号', align: 'center'},
  5. {field: 'platformName', title: '平台名称', align: 'center'},
  6. {field: 'country', title: '国家', align: 'center'},
  7. {field: 'brandName', title: '品牌', align: 'center'},
  8. {field: 'user_name', title: '运营', align: 'center'},
  9. {field: 'currencyCode', title: '回款币种', align: 'center'},
  10. {
  11. title: '销售额', align: 'center', children: [
  12. {field: 'sales', title: '销售额',},
  13. {
  14. field: 'sales_original',
  15. title: '销售额(本币)',
  16. editRender: {},
  17. slots: {edit: 'sales_original_edit'},
  18. width: 123,
  19. align: 'center'
  20. },
  21. ]
  22. },
  23. {
  24. title: '广告销售额', align: 'center', children: [
  25. {field: 'ad_sales', title: '广告销售额', align: 'center'},
  26. {
  27. field: 'ad_sales_original',
  28. title: '广告销售额(本币)',
  29. editRender: {},
  30. slots: {edit: 'ad_sales_original_edit'},
  31. width: 151,
  32. align: 'center'
  33. },
  34. ]
  35. },
  36. //{field: 'sales', title: '销售额', editRender: {}, slots: {edit: 'sales_edit', default: 'sales_default',header: 'sales_header'}},
  37. {
  38. title: '广告花费', align: 'center', children: [
  39. {field: 'ad_cost', title: '广告花费', align: 'center'},
  40. {
  41. field: 'ad_cost_original',
  42. title: '广告花费(本币)',
  43. editRender: {},
  44. slots: {edit: 'ad_cost_original_edit'},
  45. width: 138,
  46. align: 'center'
  47. },
  48. ]
  49. },
  50. {title: '操作', width: 120, slots: {default: 'operate'}, align: 'center'},
  51. ]);
  52. export const weekColumns = ref([
  53. {field: 'platformNumber', title: '平台编号', fixed: 'left', width: 81,align: 'center'},
  54. {field: 'platformName', title: '平台名称', fixed: 'left', width: 142,align: 'center'},
  55. {field: 'country', title: '国家', fixed: 'left', width: 80,align: 'center'},
  56. {field: 'brandName', title: '品牌', fixed: 'left', width: 60},
  57. {field: 'user_name', title: '运营', fixed: 'left', width: 80,align: 'center'},
  58. {field: 'currencyCode', title: '回款币种', fixed: 'left', width: 80,align: 'center'},
  59. {
  60. title: '销售额', align: 'center', children: [
  61. {field: 'sales', title: '销售额', width: 120},
  62. {
  63. field: 'sales_original',
  64. title: '销售额(本币)',
  65. editRender: {},
  66. slots: {edit: 'sales_original_edit'},
  67. width: 123,
  68. },
  69. ]
  70. },
  71. {
  72. title: '广告销售额', align: 'center', children: [
  73. {field: 'ad_sales', title: '广告销售额', width: 120},
  74. {
  75. field: 'ad_sales_original',
  76. title: '广告销售额(本币)',
  77. editRender: {},
  78. slots: {edit: 'ad_sales_original_edit'},
  79. width: 151,
  80. },
  81. ]
  82. },
  83. {
  84. title: '广告花费', align: 'center', children: [
  85. {field: 'ad_cost', title: '广告花费', width: 120},
  86. {
  87. field: 'ad_cost_original',
  88. title: '广告花费(本币)',
  89. editRender: {},
  90. slots: {edit: 'ad_cost_original_edit'},
  91. width: 138,
  92. },
  93. ]
  94. },
  95. {
  96. title: '当月累计销售额', align: 'center', children: [
  97. {field: 'total_sales_current_monthly', title: '当月累计销售额', width: 120},
  98. {
  99. field: 'total_sales_current_monthly_original',
  100. title: '当月累计销售额(本币)',
  101. editRender: {},
  102. slots: {edit: 'total_sales_current_monthly_edit'},
  103. width: 180,
  104. },
  105. ]
  106. },
  107. {field: 'impression', title: '广告曝光', editRender: {}, slots: {edit: 'impression_edit'}, width: 120},
  108. {field: 'ad_click', title: '广告点击', editRender: {}, slots: {edit: 'ad_click_edit'}, width: 120},
  109. {field: 'ad_order', title: '广告订单', editRender: {}, slots: {edit: 'ad_order_edit'}, width: 120},
  110. {
  111. field: 'money_by_amazon',
  112. title: 'Amazon回款金额',
  113. editRender: {},
  114. slots: {edit: 'money_by_amazon_edit'},
  115. width: 134
  116. },
  117. {field: 'currencyCodePlatform', title: '回款/余额币种', width: 115},
  118. {field: 'money_by_other', title: 'Other回款金额', editRender: {}, slots: {edit: 'money_by_other_edit'}, width: 134},
  119. {field: 'session', title: '流量', editRender: {}, slots: {edit: 'session_edit'}, width: 120},
  120. {field: 'order', title: '订单', editRender: {}, slots: {edit: 'order_edit'}, width: 120},
  121. {
  122. field: 'availableSalesDay',
  123. title: '当前存货可售天',
  124. editRender: {},
  125. slots: {edit: 'availableSalesDay_edit'},
  126. width: 120
  127. },
  128. {
  129. field: 'intransitInventory',
  130. title: '当前在途库存',
  131. editRender: {},
  132. slots: {edit: 'intransitInventory_edit'},
  133. width: 120
  134. },
  135. {
  136. field: 'overseasStorage',
  137. title: '当前海外仓库存',
  138. editRender: {},
  139. slots: {edit: 'overseasStorage_edit'},
  140. width: 120
  141. },
  142. {field: 'refundRate', title: '最近90天平台退货率', editRender: {}, slots: {edit: 'refundRate_edit'}, width: 120},
  143. {title: '操作', width: 120, slots: {default: 'operate'}, fixed: 'right'},
  144. ]);
  145. export const monthColumns = ref([
  146. {field: 'platformNumber', title: '平台编号', width: 90},
  147. {field: 'platformName', title: '平台名称', width: 90},
  148. {field: 'country', title: '国家', width: 90},
  149. {field: 'brandName', title: '品牌', width: 90},
  150. {field: 'user_name', title: '运营', width: 90},
  151. {field: 'currencyCode', title: '回款币种', width: 111},
  152. {
  153. title: '销售额', align: 'center', children: [
  154. {field: 'sales', title: '销售额', width: 120},
  155. {
  156. field: 'sales_original',
  157. title: '销售额(本币)',
  158. editRender: {},
  159. slots: {edit: 'sales_original_edit'},
  160. width: 123,
  161. },
  162. ]
  163. },
  164. {
  165. title: '广告销售额', align: 'center', children: [
  166. {field: 'ad_sales', title: '广告销售额', width: 120},
  167. {
  168. field: 'ad_sales_original',
  169. title: '广告销售额(本币)',
  170. editRender: {},
  171. slots: {edit: 'ad_sales_original_edit'},
  172. width: 151,
  173. },
  174. ]
  175. },
  176. {
  177. title: '广告花费', align: 'center', children: [
  178. {field: 'ad_cost', title: '广告花费', width: 120},
  179. {
  180. field: 'ad_cost_original',
  181. title: '广告花费(本币)',
  182. editRender: {},
  183. slots: {edit: 'ad_cost_original_edit'},
  184. width: 138,
  185. },
  186. ]
  187. },
  188. {field: 'impression', title: '广告曝光', editRender: {}, slots: {edit: 'impression_edit'}, width: 120},
  189. {field: 'ad_click', title: '广告点击', editRender: {}, slots: {edit: 'ad_click_edit'}, width: 120},
  190. {field: 'ad_order', title: '广告订单', editRender: {}, slots: {edit: 'ad_order_edit'}, width: 120},
  191. {title: '操作', width: 120, slots: {default: 'operate'}, fixed: 'right'},
  192. ]);
  193. export const universal = [
  194. {field: 'platformNumber', title: '平台编号', fixed: 'left',align: 'center', minWidth: 75, slots: {default: 'platformNumber_default'}},
  195. {
  196. field: 'platformName',
  197. title: '平台名称',
  198. fixed: 'left',
  199. minWidth: 93,
  200. slots: {default: 'platformName_default'},
  201. align: 'center',
  202. titlePrefix: {icon: 'vxe-icon-goods-fill'},
  203. },
  204. {
  205. field: 'user_name',
  206. title: '运营',
  207. fixed: 'left',
  208. minWidth: 75,
  209. align: 'center',
  210. titlePrefix: {icon: 'vxe-icon-user'}
  211. },
  212. {
  213. field: 'country',
  214. title: '国家',
  215. fixed: 'left',
  216. minWidth: 75,
  217. titlePrefix: {icon: 'vxe-icon-location'},
  218. align: 'center'
  219. },
  220. {
  221. field: 'brandName',
  222. title: '品牌',
  223. fixed: 'left',
  224. minWidth: 75,
  225. align: 'center',
  226. titlePrefix: {icon: 'vxe-icon-brand'},
  227. },
  228. {
  229. field: 'currencyCode',
  230. title: '回款币种',
  231. fixed: 'left',
  232. minWidth: 75,
  233. align: 'center',
  234. slots: {default: 'currencyCode_default'}
  235. },
  236. ];
  237. // 表格展示
  238. export const dayDataColumns = ref([
  239. ...universal
  240. //{field: 'currencyCodePlatform', title: '回款/余额币种', fixed: 'left', minWidth: 112},
  241. //{field: 'sales_original', title: '销售额(本币)', width: 104,},
  242. //{field: 'ad_sales_original', title: '广告销售额(本币)', width: 132,},
  243. //{field: 'ad_cost_original', title: '广告花费(本币)', width: 116,},
  244. // {field: 'sales', title: '销售额'},
  245. // {field: 'sales_year_on_year', title: '期末同比变化'},
  246. // {field: 'sales_monthly_year_on_year', title: '期末环比变化'},
  247. // {field: 'ad_cost', title: '广告花费'},
  248. // {field: 'ad_sales', title: '广告销售额'},
  249. // {field: 'roi', title: '广告ROI'},
  250. // {field: 'acos', title: '广告ACOS'},
  251. // {field: 'roas', title: '广告ROAS'},
  252. ]);
  253. export const weekDataColumns = ref([
  254. ...universal
  255. //{field: 'sales_original', title: '销售额(本币)', width: 104,},
  256. //{field: 'ad_sales_original', title: '广告销售额(本币)', width: 132,},
  257. //{field: 'ad_cost_original', title: '广告花费(本币)', width: 116,},
  258. //{
  259. // field: 'money_by_amazon_original',
  260. // title: 'Amazon回款金额(本币)',
  261. // width: 120
  262. //},
  263. //{
  264. // field: 'money_by_other_original',
  265. // title: 'Other回款金额(本币)',
  266. // width: 120
  267. //},
  268. //{field: 'sales', title: '销售额', width: 120},
  269. //{field: 'ad_cost', title: '广告花费', width: 120},
  270. //{field: 'ad_sales', title: '广告销售额', width: 120},
  271. //{field: 'roi', title: '广告ROI', width: 120},
  272. //{field: 'acos', title: '广告ACOS', width: 120},
  273. //{field: 'roas', title: '广告ROAS', width: 120},
  274. //{field: 'impression', title: '广告曝光', width: 120},
  275. //{field: 'ad_click', title: '广告点击', width: 120},
  276. //{field: 'ad_order', title: '广告订单', width: 120},
  277. //{field: 'ad_conversion_rate', title: '广告转化率', width: 120},
  278. //{field: 'money_by_amazon', title: 'Amazon回款金额', width: 120},
  279. //{field: 'money_by_other', title: 'Ebay及其他平台可用余额', width: 120},
  280. //{field: 'currencyCode', title: '回款币种', width: 120},
  281. //{field: 'total_sales_current_monthly', title: '销售额完成情况', width: 120},
  282. //{field: 'sales_weekly_year_on_year', title: '环比上周增长率', width: 120},
  283. //{field: 'sales_monthly_year_on_year', title: '环比上月周增长率', width: 120},
  284. //{field: 'sales_year_on_year', title: '环比上年周增长率', width: 120},
  285. //{field: 'session', title: '流量', width: 120},
  286. //{field: 'ad_order', title: '广告订单', width: 120},
  287. //{field: 'order', title: '订单', width: 120},
  288. //{field: 'availableSalesDay', title: '当前存货可售天', width: 120},
  289. //{field: 'intransitInventory', title: '当前在途库存', width: 120},
  290. //{field: 'overseasStorage', title: '当前海外仓库存', width: 120},
  291. //{field: 'refundRate', title: '最近90天平台退货率', width: 120},
  292. ]);
  293. export const monthDataColumns = ref([
  294. ...universal
  295. //{field: 'currencyCodePlatform', title: '回款/余额币种', fixed: 'left', minWidth: 112},
  296. //{field: 'sales', title: '销售额'},
  297. //{field: 'ad_cost', title: '广告花费'},
  298. //{field: 'ad_sales', title: '广告销售额'},
  299. //{field: 'roi', title: '广告ROI'},
  300. //{field: 'acos', title: '广告ACOS'},
  301. //{field: 'roas', title: '广告ROAS'},
  302. //{field: 'impression', title: '广告曝光',},
  303. //{field: 'ad_click', title: '广告点击',},
  304. //{field: 'ad_order', title: '广告订单',},
  305. //{field: 'ad_conversion_rate', title: '广告转化率',},
  306. //{field: 'total_sales_current_monthly', title: '销售额完成情况',},
  307. ]);
  308. // export const mainColumns = ref([
  309. // {field: 'platformNumber', title: '平台编号',fixed:"left",width: 90},
  310. // {field: 'platformName', title: '平台名称',fixed:"left",width: 90},
  311. // {field: 'country', title: '国家',fixed:"left",width: 90},
  312. // {field: 'user_name', title: '运营'},
  313. // {field: 'brandName', title: '品牌',fixed:"left",width: 90},
  314. // //需增加日销售额
  315. // {field: 'sales_monthly_year_on_year_day', title: '销售额期末月同比'},
  316. // {field: 'sales_year_on_year_day', title: '销售额期末年同比'},
  317. //
  318. // {field: 'ad_cost_day', title: '日广告花费'},
  319. // {field: 'ad_sales_day', title: '日广告销售额'},
  320. // {field: 'roi_day', title: '日广告ROI'},
  321. //
  322. // {field: 'total_sales_current_monthly', title: '月份销售额完成情况'},
  323. // {field: 'sales_weekly_year_on_year', title: '环比上周增长率'},
  324. // {field: 'sales_monthly_year_on_year_week', title: '环比上月周增长率'},
  325. // {field: 'sales_year_on_year', title: '同比上年周增长率'},
  326. // {field: 'money_by_amazon', title: 'Amazon平台已回款金额'},
  327. // {field: 'currencyCode', title: '回款币种'},
  328. // {field: 'money_by_other', title: 'Ebay及其他平台可用余额'},
  329. // // // { field: 'session', title: '周流量'},
  330. // // {field: 'ad_order', title: '订单'},
  331. // {field: 'availableSalesDay', title: '当前存货可售天'},
  332. // {field: 'intransitInventory', title: '当前在途库存'},
  333. // {field: 'overseasStorage', title: '当前海外仓库存'},
  334. // {field: 'refundRate', title: '最近90天平台退货率'},
  335. // //需增加周广告花费,销售额等
  336. // {field: 'ad_cost_week', title: '周广告花费'},
  337. // {field: 'ad_sales_week', title: '周广告销售额'},
  338. // {field: 'acos_week', title: '周广告ACOS'},
  339. // {field: 'roas_week', title: '周广告ROAS'},
  340. // {field: 'roi_week', title: '周广告ROI'},
  341. // {field: 'impression_week', title: '周广告曝光'},
  342. // {field: 'ad_order_week', title: '周广告订单'},
  343. // {field: 'ad_click_week', title: '周广告点击'},
  344. // {field: 'ad_click_rate_week', title: '周广告转化率'},
  345. // {field: 'ad_cost', title: '月广告费用'},
  346. // {field: 'ad_sales', title: '月广告销售额'},
  347. // {field: 'acos', title: '月ACOS'},
  348. // {field: 'roas', title: '月ROAS'},
  349. // {field: 'roi', title: '月广告ROI'},
  350. // {field: 'impression_month', title: '月广告曝光'},
  351. // {field: '', title: '月广告订单'},
  352. // {field: 'ad_click_month', title: '月广告点击'},
  353. // {field: 'ad_conversion_rate_month', title: '月广告转化率'},
  354. // ])