|
@@ -1,26 +1,53 @@
|
|
|
import { ref } from 'vue';
|
|
|
//数据录入
|
|
|
export const dayColumns = ref([
|
|
|
- {field: 'platformNumber', title: '平台编号',align: 'center'},
|
|
|
- {field: 'platformName', title: '平台名称',align: 'center'},
|
|
|
- {field: 'country', title: '国家',align: 'center'},
|
|
|
- {field: 'brandName', title: '品牌',align: 'center'},
|
|
|
- {field: 'user_name', title: '运营',align: 'center'},
|
|
|
- {field: 'currencyCode', title: '回款币种',align: 'center'},
|
|
|
- {title: '销售额',align: 'center',children: [
|
|
|
+ {field: 'platformNumber', title: '平台编号', align: 'center'},
|
|
|
+ {field: 'platformName', title: '平台名称', align: 'center'},
|
|
|
+ {field: 'country', title: '国家', align: 'center'},
|
|
|
+ {field: 'brandName', title: '品牌', align: 'center'},
|
|
|
+ {field: 'user_name', title: '运营', align: 'center'},
|
|
|
+ {field: 'currencyCode', title: '回款币种', align: 'center'},
|
|
|
+ {
|
|
|
+ title: '销售额', align: 'center', children: [
|
|
|
{field: 'sales', title: '销售额',},
|
|
|
- {field: 'sales_original', title: '销售额(本币)', editRender: {}, slots: {edit: 'sales_original_edit'}, width: 122,align: 'center'},
|
|
|
- ]},
|
|
|
- {title:'广告销售额',align: 'center',children: [
|
|
|
- {field: 'ad_sales', title: '广告销售额',align: 'center'},
|
|
|
- {field: 'ad_sales_original', title: '广告销售额(本币)', editRender: {}, slots: {edit: 'ad_sales_original_edit'}, width: 151, align: 'center'},
|
|
|
- ]},
|
|
|
+ {
|
|
|
+ field: 'sales_original',
|
|
|
+ title: '销售额(本币)',
|
|
|
+ editRender: {},
|
|
|
+ slots: {edit: 'sales_original_edit'},
|
|
|
+ width: 122,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '广告销售额', align: 'center', children: [
|
|
|
+ {field: 'ad_sales', title: '广告销售额', align: 'center'},
|
|
|
+ {
|
|
|
+ field: 'ad_sales_original',
|
|
|
+ title: '广告销售额(本币)',
|
|
|
+ editRender: {},
|
|
|
+ slots: {edit: 'ad_sales_original_edit'},
|
|
|
+ width: 151,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
//{field: 'sales', title: '销售额', editRender: {}, slots: {edit: 'sales_edit', default: 'sales_default',header: 'sales_header'}},
|
|
|
- {title: '广告花费',align: 'center',children: [
|
|
|
- {field: 'ad_cost', title: '广告花费',align: 'center'},
|
|
|
- {field: 'ad_cost_original', title: '广告花费(本币)', editRender: {}, slots: {edit: 'ad_cost_original_edit'}, width: 138, align: 'center'},
|
|
|
- ]},
|
|
|
- {title: '操作', width: 120, slots: {default: 'operate'},align: 'center'},
|
|
|
+ {
|
|
|
+ title: '广告花费', align: 'center', children: [
|
|
|
+ {field: 'ad_cost', title: '广告花费', align: 'center'},
|
|
|
+ {
|
|
|
+ field: 'ad_cost_original',
|
|
|
+ title: '广告花费(本币)',
|
|
|
+ editRender: {},
|
|
|
+ slots: {edit: 'ad_cost_original_edit'},
|
|
|
+ width: 138,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {title: '操作', width: 120, slots: {default: 'operate'}, align: 'center'},
|
|
|
]);
|
|
|
|
|
|
export const weekColumns = ref([
|
|
@@ -31,11 +58,20 @@ export const weekColumns = ref([
|
|
|
{field: 'user_name', title: '运营', fixed: 'left', width: 90},
|
|
|
{field: 'currencyCode', title: '回款币种', fixed: 'left', width: 111},
|
|
|
|
|
|
- {title: '销售额',align: 'center',children: [
|
|
|
+ {
|
|
|
+ title: '销售额', align: 'center', children: [
|
|
|
{field: 'sales', title: '销售额', width: 120},
|
|
|
- {field: 'sales_original', title: '销售额(本币)', editRender: {}, slots: {edit: 'sales_original_edit'}, width: 122,},
|
|
|
- ]},
|
|
|
- {title: '广告销售额',align: 'center',children: [
|
|
|
+ {
|
|
|
+ field: 'sales_original',
|
|
|
+ title: '销售额(本币)',
|
|
|
+ editRender: {},
|
|
|
+ slots: {edit: 'sales_original_edit'},
|
|
|
+ width: 122,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '广告销售额', align: 'center', children: [
|
|
|
{field: 'ad_sales', title: '广告销售额', width: 120},
|
|
|
{
|
|
|
field: 'ad_sales_original',
|
|
@@ -44,8 +80,10 @@ export const weekColumns = ref([
|
|
|
slots: {edit: 'ad_sales_original_edit'},
|
|
|
width: 151,
|
|
|
},
|
|
|
- ]},
|
|
|
- {title: '广告花费',align: 'center',children: [
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '广告花费', align: 'center', children: [
|
|
|
{field: 'ad_cost', title: '广告花费', width: 120},
|
|
|
{
|
|
|
field: 'ad_cost_original',
|
|
@@ -54,8 +92,10 @@ export const weekColumns = ref([
|
|
|
slots: {edit: 'ad_cost_original_edit'},
|
|
|
width: 138,
|
|
|
},
|
|
|
- ]},
|
|
|
- {title: '当月累计销售额',align: 'center',children:[
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '当月累计销售额', align: 'center', children: [
|
|
|
{field: 'total_sales_current_monthly', title: '当月累计销售额', width: 120},
|
|
|
{
|
|
|
field: 'total_sales_current_monthly_original',
|
|
@@ -64,14 +104,21 @@ export const weekColumns = ref([
|
|
|
slots: {edit: 'total_sales_current_monthly_edit'},
|
|
|
width: 180,
|
|
|
},
|
|
|
- ]},
|
|
|
+ ]
|
|
|
+ },
|
|
|
|
|
|
{field: 'impression', title: '广告曝光', editRender: {}, slots: {edit: 'impression_edit'}, width: 120},
|
|
|
{field: 'ad_click', title: '广告点击', editRender: {}, slots: {edit: 'ad_click_edit'}, width: 120},
|
|
|
{field: 'ad_order', title: '广告订单', editRender: {}, slots: {edit: 'ad_order_edit'}, width: 120},
|
|
|
- {field: 'money_by_amazon', title: 'Amazon回款金额', editRender: {}, slots: {edit: 'money_by_amazon_edit'},width: 134},
|
|
|
- {field: 'currencyCodePlatform', title: '回款/余额币种',width: 115},
|
|
|
- {field: 'money_by_other', title: 'Other回款金额',editRender: {}, slots: {edit: 'money_by_other_edit'}, width: 134},
|
|
|
+ {
|
|
|
+ field: 'money_by_amazon',
|
|
|
+ title: 'Amazon回款金额',
|
|
|
+ editRender: {},
|
|
|
+ slots: {edit: 'money_by_amazon_edit'},
|
|
|
+ width: 134
|
|
|
+ },
|
|
|
+ {field: 'currencyCodePlatform', title: '回款/余额币种', width: 115},
|
|
|
+ {field: 'money_by_other', title: 'Other回款金额', editRender: {}, slots: {edit: 'money_by_other_edit'}, width: 134},
|
|
|
{field: 'session', title: '流量', editRender: {}, slots: {edit: 'session_edit'}, width: 120},
|
|
|
{field: 'order', title: '订单', editRender: {}, slots: {edit: 'order_edit'}, width: 120},
|
|
|
{
|
|
@@ -100,18 +147,27 @@ export const weekColumns = ref([
|
|
|
]);
|
|
|
|
|
|
export const monthColumns = ref([
|
|
|
- {field: 'platformNumber', title: '平台编号',width: 90},
|
|
|
- {field: 'platformName', title: '平台名称',width: 90},
|
|
|
- {field: 'country', title: '国家',width: 90},
|
|
|
- {field: 'brandName', title: '品牌',width: 90},
|
|
|
- {field: 'user_name', title: '运营',width: 90},
|
|
|
- {field: 'currencyCode', title: '回款币种',width: 111},
|
|
|
+ {field: 'platformNumber', title: '平台编号', width: 90},
|
|
|
+ {field: 'platformName', title: '平台名称', width: 90},
|
|
|
+ {field: 'country', title: '国家', width: 90},
|
|
|
+ {field: 'brandName', title: '品牌', width: 90},
|
|
|
+ {field: 'user_name', title: '运营', width: 90},
|
|
|
+ {field: 'currencyCode', title: '回款币种', width: 111},
|
|
|
|
|
|
- {title: '销售额',align: 'center',children: [
|
|
|
+ {
|
|
|
+ title: '销售额', align: 'center', children: [
|
|
|
{field: 'sales', title: '销售额', width: 120},
|
|
|
- {field: 'sales_original', title: '销售额(本币)', editRender: {}, slots: {edit: 'sales_original_edit'}, width: 122,},
|
|
|
- ]},
|
|
|
- {title: '广告销售额',align: 'center',children: [
|
|
|
+ {
|
|
|
+ field: 'sales_original',
|
|
|
+ title: '销售额(本币)',
|
|
|
+ editRender: {},
|
|
|
+ slots: {edit: 'sales_original_edit'},
|
|
|
+ width: 122,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '广告销售额', align: 'center', children: [
|
|
|
{field: 'ad_sales', title: '广告销售额', width: 120},
|
|
|
{
|
|
|
field: 'ad_sales_original',
|
|
@@ -120,8 +176,10 @@ export const monthColumns = ref([
|
|
|
slots: {edit: 'ad_sales_original_edit'},
|
|
|
width: 151,
|
|
|
},
|
|
|
- ]},
|
|
|
- {title: '广告花费',align: 'center',children: [
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '广告花费', align: 'center', children: [
|
|
|
{field: 'ad_cost', title: '广告花费', width: 120},
|
|
|
{
|
|
|
field: 'ad_cost_original',
|
|
@@ -130,7 +188,8 @@ export const monthColumns = ref([
|
|
|
slots: {edit: 'ad_cost_original_edit'},
|
|
|
width: 138,
|
|
|
},
|
|
|
- ]},
|
|
|
+ ]
|
|
|
+ },
|
|
|
|
|
|
{field: 'impression', title: '广告曝光', editRender: {}, slots: {edit: 'impression_edit'}, width: 120},
|
|
|
{field: 'ad_click', title: '广告点击', editRender: {}, slots: {edit: 'ad_click_edit'}, width: 120},
|
|
@@ -138,18 +197,54 @@ export const monthColumns = ref([
|
|
|
{title: '操作', width: 120, slots: {default: 'operate'}, fixed: 'right'},
|
|
|
]);
|
|
|
|
|
|
-const universal = [
|
|
|
- {field: 'platformNumber', title: '平台编号', fixed: 'left',minWidth: 90},
|
|
|
- {field: 'platformName', title: '平台名称', fixed: 'left', minWidth: 160,slots: {default: 'platformName_default'},align: 'center',titlePrefix: {icon: 'vxe-icon-goods-fill'},},
|
|
|
- {field: 'user_name', title: '运营', fixed: 'left', minWidth: 90,align: 'center',titlePrefix: {icon: 'vxe-icon-user' }},
|
|
|
- {field: 'country', title: '国家', fixed: 'left', minWidth: 90,titlePrefix: {icon: 'vxe-icon-location' },align: 'center'},
|
|
|
- {field: 'brandName', title: '品牌', fixed: 'left', minWidth: 90,align: 'center',titlePrefix: {icon: 'vxe-icon-brand'},},
|
|
|
- {field: 'currencyCode', title: '回款币种', fixed: 'left', minWidth: 90,align: 'center'},
|
|
|
-]
|
|
|
+export const universal = [
|
|
|
+ {field: 'platformNumber', title: '平台编号', fixed: 'left',align: 'center', minWidth: 75, slots: {default: 'platformNumber_default'}},
|
|
|
+ {
|
|
|
+ field: 'platformName',
|
|
|
+ title: '平台名称',
|
|
|
+ fixed: 'left',
|
|
|
+ minWidth: 93,
|
|
|
+ slots: {default: 'platformName_default'},
|
|
|
+ align: 'center',
|
|
|
+ titlePrefix: {icon: 'vxe-icon-goods-fill'},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'user_name',
|
|
|
+ title: '运营',
|
|
|
+ fixed: 'left',
|
|
|
+ minWidth: 75,
|
|
|
+ align: 'center',
|
|
|
+ titlePrefix: {icon: 'vxe-icon-user'}
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'country',
|
|
|
+ title: '国家',
|
|
|
+ fixed: 'left',
|
|
|
+ minWidth: 75,
|
|
|
+ titlePrefix: {icon: 'vxe-icon-location'},
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'brandName',
|
|
|
+ title: '品牌',
|
|
|
+ fixed: 'left',
|
|
|
+ minWidth: 75,
|
|
|
+ align: 'center',
|
|
|
+ titlePrefix: {icon: 'vxe-icon-brand'},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'currencyCode',
|
|
|
+ title: '回款币种',
|
|
|
+ fixed: 'left',
|
|
|
+ minWidth: 75,
|
|
|
+ align: 'center',
|
|
|
+ slots: {default: 'currencyCode_default'}
|
|
|
+ },
|
|
|
+];
|
|
|
|
|
|
// 表格展示
|
|
|
export const dayDataColumns = ref([
|
|
|
- ...universal
|
|
|
+ ...universal
|
|
|
//{field: 'currencyCodePlatform', title: '回款/余额币种', fixed: 'left', minWidth: 112},
|
|
|
//{field: 'sales_original', title: '销售额(本币)', width: 104,},
|
|
|
//{field: 'ad_sales_original', title: '广告销售额(本币)', width: 132,},
|