问题描述:
解决方法:
*请按照这个帖子先去修复admin端: 修复多店的平台端门店账单详情数据异常
store端:
下载 附件1 解压替换 src/pages/capital/bill/index.vue 路径文件。
下载 附件2 解压替换 src/pages/capital/components/commissionDetails.vue 路径文件。
修改完成后需要重新打包,打包教程: https://doc.crmeb.com/pro/crmebprov3_2/21562
后端文件:
修改文件:app/controller/store/finance/StoreFinanceFlow.php
修改方法:fundRecordInfo()
public function fundRecordInfo()
{
$where = $this->request->getMore([
['timeType', 'day'],
['day', ''],
['staff_id', 0]
]);
$where['keyword'] = $this->request->param('keyword', '');
$where['is_del'] = 0;
$where['store_id'] = $this->storeId;
$where['no_type'] = [1,15];
$where['trade_type'] = 1;
return app('json')->success($this->services->getList($where));
}
Copy
修改文件:app/controller/store/export/ExportExcel.php
修改方法:financeRecord()
public function financeRecord(StoreFinanceFlowServices $services)
{
$where = $this->request->getMore([
['timeType', 'day'],
['day', ''],
]);
$where['trade_type'] = 1;
$where['is_del'] = 0;
$where['store_id'] = $this->storeId;
$where['no_type'] = [1,15];
$data = $services->getList($where);
return $this->success($this->service->financeRecord($data['list'] ?? []));
}
Copy