columns.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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. {title: '销售额',align: 'center',children: [
  11. {field: 'sales', title: '销售额',},
  12. {field: 'sales_original', title: '销售额(本币)', editRender: {}, slots: {edit: 'sales_original_edit'}, width: 122,align: 'center'},
  13. ]},
  14. {title:'广告销售额',align: 'center',children: [
  15. {field: 'ad_sales', title: '广告销售额',align: 'center'},
  16. {field: 'ad_sales_original', title: '广告销售额(本币)', editRender: {}, slots: {edit: 'ad_sales_original_edit'}, width: 151, align: 'center'},
  17. ]},
  18. //{field: 'sales', title: '销售额', editRender: {}, slots: {edit: 'sales_edit', default: 'sales_default',header: 'sales_header'}},
  19. {title: '广告花费',align: 'center',children: [
  20. {field: 'ad_cost', title: '广告花费',align: 'center'},
  21. {field: 'ad_cost_original', title: '广告花费(本币)', editRender: {}, slots: {edit: 'ad_cost_original_edit'}, width: 138, align: 'center'},
  22. ]},
  23. {title: '操作', width: 120, slots: {default: 'operate'},align: 'center'},
  24. ]);
  25. export const weekColumns = ref([
  26. {field: 'platformNumber', title: '平台编号', fixed: 'left', width: 90},
  27. {field: 'platformName', title: '平台名称', fixed: 'left', width: 90},
  28. {field: 'country', title: '国家', fixed: 'left', width: 90},
  29. {field: 'brandName', title: '品牌', fixed: 'left', width: 90},
  30. {field: 'user_name', title: '运营', fixed: 'left', width: 90},
  31. {field: 'currencyCode', title: '回款币种', fixed: 'left', width: 111},
  32. {title: '销售额',align: 'center',children: [
  33. {field: 'sales', title: '销售额', width: 120},
  34. {field: 'sales_original', title: '销售额(本币)', editRender: {}, slots: {edit: 'sales_original_edit'}, width: 122,},
  35. ]},
  36. {title: '广告销售额',align: 'center',children: [
  37. {field: 'ad_sales', title: '广告销售额', width: 120},
  38. {
  39. field: 'ad_sales_original',
  40. title: '广告销售额(本币)',
  41. editRender: {},
  42. slots: {edit: 'ad_sales_original_edit'},
  43. width: 151,
  44. },
  45. ]},
  46. {title: '广告花费',align: 'center',children: [
  47. {field: 'ad_cost', title: '广告花费', width: 120},
  48. {
  49. field: 'ad_cost_original',
  50. title: '广告花费(本币)',
  51. editRender: {},
  52. slots: {edit: 'ad_cost_original_edit'},
  53. width: 138,
  54. },
  55. ]},
  56. {title: '当月累计销售额',align: 'center',children:[
  57. {field: 'total_sales_current_monthly', title: '当月累计销售额', width: 120},
  58. {
  59. field: 'total_sales_current_monthly_original',
  60. title: '当月累计销售额(本币)',
  61. editRender: {},
  62. slots: {edit: 'total_sales_current_monthly_edit'},
  63. width: 180,
  64. },
  65. ]},
  66. {field: 'impression', title: '广告曝光', editRender: {}, slots: {edit: 'impression_edit'}, width: 120},
  67. {field: 'ad_click', title: '广告点击', editRender: {}, slots: {edit: 'ad_click_edit'}, width: 120},
  68. {field: 'ad_order', title: '广告订单', editRender: {}, slots: {edit: 'ad_order_edit'}, width: 120},
  69. {field: 'money_by_amazon', title: 'Amazon回款金额', editRender: {}, slots: {edit: 'money_by_amazon_edit'},width: 134},
  70. {field: 'currencyCodePlatform', title: '回款/余额币种',width: 115},
  71. {field: 'money_by_other', title: 'Other回款金额',editRender: {}, slots: {edit: 'money_by_other_edit'}, width: 134},
  72. {field: 'session', title: '流量', editRender: {}, slots: {edit: 'session_edit'}, width: 120},
  73. {field: 'order', title: '订单', editRender: {}, slots: {edit: 'order_edit'}, width: 120},
  74. {
  75. field: 'availableSalesDay',
  76. title: '当前存货可售天',
  77. editRender: {},
  78. slots: {edit: 'availableSalesDay_edit'},
  79. width: 120
  80. },
  81. {
  82. field: 'intransitInventory',
  83. title: '当前在途库存',
  84. editRender: {},
  85. slots: {edit: 'intransitInventory_edit'},
  86. width: 120
  87. },
  88. {
  89. field: 'overseasStorage',
  90. title: '当前海外仓库存',
  91. editRender: {},
  92. slots: {edit: 'overseasStorage_edit'},
  93. width: 120
  94. },
  95. {field: 'refundRate', title: '最近90天平台退货率', editRender: {}, slots: {edit: 'refundRate_edit'}, width: 120},
  96. {title: '操作', width: 120, slots: {default: 'operate'}, fixed: 'right'},
  97. ]);
  98. export const monthColumns = ref([
  99. {field: 'platformNumber', title: '平台编号',width: 90},
  100. {field: 'platformName', title: '平台名称',width: 90},
  101. {field: 'country', title: '国家',width: 90},
  102. {field: 'brandName', title: '品牌',width: 90},
  103. {field: 'user_name', title: '运营',width: 90},
  104. {field: 'currencyCode', title: '回款币种',width: 111},
  105. {title: '销售额',align: 'center',children: [
  106. {field: 'sales', title: '销售额', width: 120},
  107. {field: 'sales_original', title: '销售额(本币)', editRender: {}, slots: {edit: 'sales_original_edit'}, width: 122,},
  108. ]},
  109. {title: '广告销售额',align: 'center',children: [
  110. {field: 'ad_sales', title: '广告销售额', width: 120},
  111. {
  112. field: 'ad_sales_original',
  113. title: '广告销售额(本币)',
  114. editRender: {},
  115. slots: {edit: 'ad_sales_original_edit'},
  116. width: 151,
  117. },
  118. ]},
  119. {title: '广告花费',align: 'center',children: [
  120. {field: 'ad_cost', title: '广告花费', width: 120},
  121. {
  122. field: 'ad_cost_original',
  123. title: '广告花费(本币)',
  124. editRender: {},
  125. slots: {edit: 'ad_cost_original_edit'},
  126. width: 138,
  127. },
  128. ]},
  129. {field: 'impression', title: '广告曝光', editRender: {}, slots: {edit: 'impression_edit'}, width: 120},
  130. {field: 'ad_click', title: '广告点击', editRender: {}, slots: {edit: 'ad_click_edit'}, width: 120},
  131. {field: 'ad_order', title: '广告订单', editRender: {}, slots: {edit: 'ad_order_edit'}, width: 120},
  132. {title: '操作', width: 120, slots: {default: 'operate'}, fixed: 'right'},
  133. ]);
  134. // 表格展示
  135. export const dayDataColumns = ref([
  136. {field: '平台编号', title: '平台编号', fixed: 'left',minWidth: 90},
  137. {field: '平台名称', title: '平台名称', fixed: 'left', minWidth: 90},
  138. {field: '运营', title: '运营', fixed: 'left', minWidth: 90},
  139. {field: '国家', title: '国家', fixed: 'left', minWidth: 90},
  140. {field: '品牌名称', title: '品牌', fixed: 'left', minWidth: 90},
  141. {field: '回款币种', title: '回款币种', fixed: 'left', minWidth: 90},
  142. //{field: 'currencyCodePlatform', title: '回款/余额币种', fixed: 'left', minWidth: 112},
  143. //{field: 'sales_original', title: '销售额(本币)', width: 104,},
  144. //{field: 'ad_sales_original', title: '广告销售额(本币)', width: 132,},
  145. //{field: 'ad_cost_original', title: '广告花费(本币)', width: 116,},
  146. // {field: 'sales', title: '销售额'},
  147. // {field: 'sales_year_on_year', title: '期末同比变化'},
  148. // {field: 'sales_monthly_year_on_year', title: '期末环比变化'},
  149. // {field: 'ad_cost', title: '广告花费'},
  150. // {field: 'ad_sales', title: '广告销售额'},
  151. // {field: 'roi', title: '广告ROI'},
  152. // {field: 'acos', title: '广告ACOS'},
  153. // {field: 'roas', title: '广告ROAS'},
  154. ]);
  155. export const weekDataColumns = ref([
  156. {field: 'platformNumber', title: '平台编号', fixed: 'left', minWidth: 90},
  157. {field: 'platformName', title: '平台名称', fixed: 'left', minWidth: 90},
  158. {field: 'user_name', title: '运营', fixed: 'left', minWidth: 90},
  159. {field: 'country', title: '国家', fixed: 'left', minWidth: 90},
  160. {field: 'brandName', title: '品牌', fixed: 'left', minWidth: 90},
  161. {field: 'currencyCode', title: '回款币种', fixed: 'left', minWidth: 90},
  162. //{field: 'sales_original', title: '销售额(本币)', width: 104,},
  163. //{field: 'ad_sales_original', title: '广告销售额(本币)', width: 132,},
  164. //{field: 'ad_cost_original', title: '广告花费(本币)', width: 116,},
  165. //{
  166. // field: 'money_by_amazon_original',
  167. // title: 'Amazon回款金额(本币)',
  168. // width: 120
  169. //},
  170. //{
  171. // field: 'money_by_other_original',
  172. // title: 'Other回款金额(本币)',
  173. // width: 120
  174. //},
  175. //{field: 'sales', title: '销售额', width: 120},
  176. //{field: 'ad_cost', title: '广告花费', width: 120},
  177. //{field: 'ad_sales', title: '广告销售额', width: 120},
  178. //{field: 'roi', title: '广告ROI', width: 120},
  179. //{field: 'acos', title: '广告ACOS', width: 120},
  180. //{field: 'roas', title: '广告ROAS', width: 120},
  181. //{field: 'impression', title: '广告曝光', width: 120},
  182. //{field: 'ad_click', title: '广告点击', width: 120},
  183. //{field: 'ad_order', title: '广告订单', width: 120},
  184. //{field: 'ad_conversion_rate', title: '广告转化率', width: 120},
  185. //{field: 'money_by_amazon', title: 'Amazon回款金额', width: 120},
  186. //{field: 'money_by_other', title: 'Ebay及其他平台可用余额', width: 120},
  187. //{field: 'currencyCode', title: '回款币种', width: 120},
  188. //{field: 'total_sales_current_monthly', title: '销售额完成情况', width: 120},
  189. //{field: 'sales_weekly_year_on_year', title: '环比上周增长率', width: 120},
  190. //{field: 'sales_monthly_year_on_year', title: '环比上月周增长率', width: 120},
  191. //{field: 'sales_year_on_year', title: '环比上年周增长率', width: 120},
  192. //{field: 'session', title: '流量', width: 120},
  193. //{field: 'ad_order', title: '广告订单', width: 120},
  194. //{field: 'order', title: '订单', width: 120},
  195. //{field: 'availableSalesDay', title: '当前存货可售天', width: 120},
  196. //{field: 'intransitInventory', title: '当前在途库存', width: 120},
  197. //{field: 'overseasStorage', title: '当前海外仓库存', width: 120},
  198. //{field: 'refundRate', title: '最近90天平台退货率', width: 120},
  199. ]);
  200. export const monthDataColumns = ref([
  201. {field: 'platformNumber', title: '平台编号', fixed: 'left', minWidth: 90},
  202. {field: 'platformName', title: '平台名称', fixed: 'left', minWidth: 90},
  203. {field: 'user_name', title: '运营', fixed: 'left', minWidth: 90},
  204. {field: 'country', title: '国家', fixed: 'left', minWidth: 90},
  205. {field: 'brandName', title: '品牌', fixed: 'left', minWidth: 90},
  206. {field: 'currencyCode', title: '回款币种', fixed: 'left', minWidth: 90},
  207. //{field: 'currencyCodePlatform', title: '回款/余额币种', fixed: 'left', minWidth: 112},
  208. //{field: 'sales', title: '销售额'},
  209. //{field: 'ad_cost', title: '广告花费'},
  210. //{field: 'ad_sales', title: '广告销售额'},
  211. //{field: 'roi', title: '广告ROI'},
  212. //{field: 'acos', title: '广告ACOS'},
  213. //{field: 'roas', title: '广告ROAS'},
  214. //{field: 'impression', title: '广告曝光',},
  215. //{field: 'ad_click', title: '广告点击',},
  216. //{field: 'ad_order', title: '广告订单',},
  217. //{field: 'ad_conversion_rate', title: '广告转化率',},
  218. //{field: 'total_sales_current_monthly', title: '销售额完成情况',},
  219. ]);
  220. // export const mainColumns = ref([
  221. // {field: 'platformNumber', title: '平台编号',fixed:"left",width: 90},
  222. // {field: 'platformName', title: '平台名称',fixed:"left",width: 90},
  223. // {field: 'country', title: '国家',fixed:"left",width: 90},
  224. // {field: 'user_name', title: '运营'},
  225. // {field: 'brandName', title: '品牌',fixed:"left",width: 90},
  226. // //需增加日销售额
  227. // {field: 'sales_monthly_year_on_year_day', title: '销售额期末月同比'},
  228. // {field: 'sales_year_on_year_day', title: '销售额期末年同比'},
  229. //
  230. // {field: 'ad_cost_day', title: '日广告花费'},
  231. // {field: 'ad_sales_day', title: '日广告销售额'},
  232. // {field: 'roi_day', title: '日广告ROI'},
  233. //
  234. // {field: 'total_sales_current_monthly', title: '月份销售额完成情况'},
  235. // {field: 'sales_weekly_year_on_year', title: '环比上周增长率'},
  236. // {field: 'sales_monthly_year_on_year_week', title: '环比上月周增长率'},
  237. // {field: 'sales_year_on_year', title: '同比上年周增长率'},
  238. // {field: 'money_by_amazon', title: 'Amazon平台已回款金额'},
  239. // {field: 'currencyCode', title: '回款币种'},
  240. // {field: 'money_by_other', title: 'Ebay及其他平台可用余额'},
  241. // // // { field: 'session', title: '周流量'},
  242. // // {field: 'ad_order', title: '订单'},
  243. // {field: 'availableSalesDay', title: '当前存货可售天'},
  244. // {field: 'intransitInventory', title: '当前在途库存'},
  245. // {field: 'overseasStorage', title: '当前海外仓库存'},
  246. // {field: 'refundRate', title: '最近90天平台退货率'},
  247. // //需增加周广告花费,销售额等
  248. // {field: 'ad_cost_week', title: '周广告花费'},
  249. // {field: 'ad_sales_week', title: '周广告销售额'},
  250. // {field: 'acos_week', title: '周广告ACOS'},
  251. // {field: 'roas_week', title: '周广告ROAS'},
  252. // {field: 'roi_week', title: '周广告ROI'},
  253. // {field: 'impression_week', title: '周广告曝光'},
  254. // {field: 'ad_order_week', title: '周广告订单'},
  255. // {field: 'ad_click_week', title: '周广告点击'},
  256. // {field: 'ad_click_rate_week', title: '周广告转化率'},
  257. // {field: 'ad_cost', title: '月广告费用'},
  258. // {field: 'ad_sales', title: '月广告销售额'},
  259. // {field: 'acos', title: '月ACOS'},
  260. // {field: 'roas', title: '月ROAS'},
  261. // {field: 'roi', title: '月广告ROI'},
  262. // {field: 'impression_month', title: '月广告曝光'},
  263. // {field: '', title: '月广告订单'},
  264. // {field: 'ad_click_month', title: '月广告点击'},
  265. // {field: 'ad_conversion_rate_month', title: '月广告转化率'},
  266. // ])