|
@@ -3,11 +3,13 @@ import complateIcon from '@assets/complate.svg';
|
|
|
import orderIcon from '@assets/order.svg';
|
|
import orderIcon from '@assets/order.svg';
|
|
|
import anomalyIcon from '@assets/anomaly.svg';
|
|
import anomalyIcon from '@assets/anomaly.svg';
|
|
|
import customerIcon from '@assets/customer.svg';
|
|
import customerIcon from '@assets/customer.svg';
|
|
|
|
|
+import calendarIcon from '@assets/calendar.svg';
|
|
|
import {
|
|
import {
|
|
|
CUSTOMER_PATH,
|
|
CUSTOMER_PATH,
|
|
|
DELIVER_GOODS_PATH,
|
|
DELIVER_GOODS_PATH,
|
|
|
ORDER_PATH,
|
|
ORDER_PATH,
|
|
|
RECEIVE_GOODS_PATH,
|
|
RECEIVE_GOODS_PATH,
|
|
|
|
|
+ RECEIVE_LOG_PATH,
|
|
|
} from '@routes';
|
|
} from '@routes';
|
|
|
import {useStore} from 'zustand';
|
|
import {useStore} from 'zustand';
|
|
|
import {userStore} from '@stores';
|
|
import {userStore} from '@stores';
|
|
@@ -38,7 +40,8 @@ export function useBtnList() {
|
|
|
const powerContext = Number(power),
|
|
const powerContext = Number(power),
|
|
|
sendContext = /** */ 0x000001,
|
|
sendContext = /** */ 0x000001,
|
|
|
anomalyContext = /** */ 0x000010,
|
|
anomalyContext = /** */ 0x000010,
|
|
|
- customerContext = /** */ 0x000100;
|
|
|
|
|
|
|
+ customerContext = /** */ 0x000100,
|
|
|
|
|
+ calendarContext = /** */ 0x001000;
|
|
|
|
|
|
|
|
setBtnList(function () {
|
|
setBtnList(function () {
|
|
|
const next = klona(defaultBtnList);
|
|
const next = klona(defaultBtnList);
|
|
@@ -64,6 +67,13 @@ export function useBtnList() {
|
|
|
url: CUSTOMER_PATH,
|
|
url: CUSTOMER_PATH,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ powerContext & calendarContext &&
|
|
|
|
|
+ next[1].children.push({
|
|
|
|
|
+ title: '发货日历',
|
|
|
|
|
+ icon: calendarIcon,
|
|
|
|
|
+ url: RECEIVE_LOG_PATH,
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
return next;
|
|
return next;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|