增加默认参数: wu_id

feature/price_manager
Lei OT 2 years ago
parent a7c87170a0
commit a61ef8882b

@ -9,13 +9,13 @@ import { useTranslation } from 'react-i18next';
3 飞机票务
4 游船
5 快巴
6 旅行社(综费)
7 景点
8 特殊项目
6 旅行社(综费) -
7 景点 -
8 特殊项目 -
9 其他
A 酒店
B 超公里
C 餐费
B 超公里 -
C 餐费 -
D 包价包
X
*/
@ -33,7 +33,7 @@ export const useProductsTypes = () => {
{ label: t('products:type.Attractions'), value: '7', key: '7' },
{ label: t('products:type.Meals'), value: 'C', key: 'C' },
{ label: t('products:type.Extras'), value: '8', key: '8' },
{ label: t('products:type.Special'), value: 'Special', key: 'Special' },
// { label: t('products:type.Special'), value: 'Special', key: 'Special' },
];
setTypes(newData);
}, [i18n.language]);
@ -51,7 +51,7 @@ export const useProductsAuditStates = () => {
{ key: '-1', value: '-1', label: t('products:auditState.New') },
{ key: '0', value: '0', label: t('products:auditState.Pending') },
{ key: '2', value: '2', label: t('products:auditState.Approved') },
// { key: '3', value: '3', label: t('products:auditState.Rejected') },
{ key: '3', value: '3', label: t('products:auditState.Rejected') },
{ key: '1', value: '1', label: t('products:auditState.Published') },
];
setTypes(newData);

@ -88,6 +88,7 @@ const useAuthStore = create((set, get) => ({
setStorage(KEY_TRAVEL_AGENCY_ID, userDetail.LMI_VEI_SN)
setStorage(KEY_USER_DETAIL, {username: userDetail.LoginName, travelAgencyName: userDetail.VName})
appendRequestParams('token', loginToken)
appendRequestParams('wu_id', userDetail.LMI_SN)
// loadPageSpy(`${json.Result.VName}-${json.Result.LoginName}`)
startTokenInterval()
},

@ -28,7 +28,7 @@ function App() {
const [validateUserPassword, tokenTimeout] = useAuthStore(
(state) => [state.validateUserPassword, state.tokenTimeout])
const { loginToken, userDetail } = usingStorage()
const { loginToken, userDetail, userId } = usingStorage()
const noticeUnRead = useNoticeStore((state) => state.noticeUnRead)
const href = useHref()
@ -40,6 +40,7 @@ function App() {
if (!needToLogin) {
appendRequestParams('token', loginToken)
appendRequestParams('wu_id', userId)
}
useEffect(() => {

@ -96,12 +96,12 @@ const PriceTable = ({dataSource, loading}) => {
{
title: '',
key: 'action',
render: (_, r) => (
render: (_, r) => r.audit_state_id <= 0 ?(
<Space>
<Button onClick={() => handleAuditPriceItem('2', r)}></Button>
<Button onClick={() => handleAuditPriceItem('0', r)}></Button>
</Space>
),
) : null,
},
];
return <Table pagination={false} columns={columns} dataSource={dataSource} rowKey={(r) => r.id} />;

Loading…
Cancel
Save