feat(dashboard): 从专业财富观角度重构升级后台收益与分成统计仪表盘

这个提交包含在:
chen
2026-09-17 08:22:23 +08:00
父节点 64a9563779
当前提交 b6287bf2e0
共有 40 个文件被更改,包括 5145 次插入 和 1015 次删除

查看文件

@@ -89,6 +89,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
})
const ext = reactive({ visible: false, text: '' })
const reissue = reactive({ visible: false, form: { user_id: '', reward_type: 'push3', amount: '', order_id: '', memo: '' } })
const orderTreeDialog = reactive({ visible: false, loading: false, data: {} })
function getData() {
let tempSearch = JSON.parse(JSON.stringify(state.filter.data));
@@ -180,6 +181,26 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
getData()
})
}
function onOrderTree(row) {
const orderId = row.order_id || (row.order && row.order.id);
if (!orderId || orderId <= 0) {
ElementPlus.ElMessage.warning('非业务订单流水,无整单透视数据');
return;
}
orderTreeDialog.loading = true;
orderTreeDialog.visible = true;
Fast.api.ajax({
url: 'shopro/partner/reward/orderTree',
type: 'GET',
data: { order_id: orderId },
}, function (ret, res) {
orderTreeDialog.loading = false;
orderTreeDialog.data = res.data || {};
return false;
}, function () {
orderTreeDialog.loading = false;
});
}
onMounted(() => {
const params = new URLSearchParams(location.search)
if (params.get('user_id')) {
@@ -194,7 +215,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
getData()
})
return { state, getData, onOpenFilter, onChangeFilter, pagination, exportLoading, onExport, ext, onViewExt, onBack, onBackOrder, reissue, onReissue }
return { state, getData, onOpenFilter, onChangeFilter, pagination, exportLoading, onExport, ext, onViewExt, onBack, onBackOrder, reissue, onReissue, orderTreeDialog, onOrderTree }
}
}
createApp('index', index);