問題描述:
解決方法:
*請按照這個帖子先去修復(fù)admin端: 修復(fù)多店的平臺端門店賬單詳情數(shù)據(jù)異常
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