Commit 4e3604e2740565bbbe508f4e55780e50c609da3c

Authored by PurelzMgnead
1 parent db1ae137

feat: 分期账单审核功能

src/access.ts
... ... @@ -5,7 +5,7 @@ export default (initialState: API.UserInfo) => {
5 5  
6 6 const canReadAdmin = roleSmallVO?.code === 'admin';
7 7 const canReadProcure =
8   - roleSmallVO?.code === 'procure' || roles.includes('PROCURE_MANAGER');
  8 + roleSmallVO?.code === 'procure' || roles?.includes('PROCURE_MANAGER');
9 9 const canReadFinance = roleSmallVO?.code === 'finance';
10 10 const canReadWarehouseKeeper = roleSmallVO?.code === 'warehouseKeeper';
11 11 const canReadSales =
... ...
src/pages/Instalment/components/title/titletest.tsx
... ... @@ -731,7 +731,7 @@ export default () => {
731 731 item.annex = orderStagesWithList[ind].annex;
732 732 item.remark = orderStagesWithList[ind].remark;
733 733 if (orderStagesWithList[ind].paths) {
734   - if (orderStagesList[ind].opt?.includes('READ')) {
  734 + if (orderStagesList[ind]?.opt?.includes('READ')) {
735 735 item.opt = ['ONLYREAD'];
736 736 }
737 737 }
... ...