|
@@ -1,7 +1,6 @@
|
|
|
import APP from '@/services';
|
|
import APP from '@/services';
|
|
|
import timerUtil from '@/utils/timer/timerUtil'
|
|
import timerUtil from '@/utils/timer/timerUtil'
|
|
|
import { isAllEnum } from '@/services/bus/allEnum';
|
|
import { isAllEnum } from '@/services/bus/allEnum';
|
|
|
-import { TradeMode } from '@/common/constants/enumCommon';
|
|
|
|
|
import { checkTokenAction } from '@/services/bus/token';
|
|
import { checkTokenAction } from '@/services/bus/token';
|
|
|
import { getAllEnums, GetPCMenus, getServerTime, queryErrorInfos, QueryTableDefine } from '@/services/go/commonService/index';
|
|
import { getAllEnums, GetPCMenus, getServerTime, queryErrorInfos, QueryTableDefine } from '@/services/go/commonService/index';
|
|
|
import { GetErmcpGoods, QueryDeliveryGoodsDetail } from '@/services/go/ermcp/goodsInfo';
|
|
import { GetErmcpGoods, QueryDeliveryGoodsDetail } from '@/services/go/ermcp/goodsInfo';
|
|
@@ -13,7 +12,6 @@ import { queryWrMarketTradeConfig } from '../go/wrtrade';
|
|
|
import { logoutResponse } from '../socket/login';
|
|
import { logoutResponse } from '../socket/login';
|
|
|
import { loginAction } from '../socket/login/index';
|
|
import { loginAction } from '../socket/login/index';
|
|
|
import { LoginResponse } from '../socket/login/interface/index';
|
|
import { LoginResponse } from '../socket/login/interface/index';
|
|
|
-import { getMarketByTradeMode } from './market';
|
|
|
|
|
import Router from '@/router';
|
|
import Router from '@/router';
|
|
|
|
|
|
|
|
export const logout = (): void => {
|
|
export const logout = (): void => {
|
|
@@ -33,11 +31,7 @@ export const login = async (logidCode: string, password: string, byteArr: Uint8A
|
|
|
const loginData = await loginAction(account, password, byteArr, isEncryt);
|
|
const loginData = await loginAction(account, password, byteArr, isEncryt);
|
|
|
// localstorage 缓存登录信息,处理页面刷新
|
|
// localstorage 缓存登录信息,处理页面刷新
|
|
|
setLoginData(loginData);
|
|
setLoginData(loginData);
|
|
|
- await Promise.all([GetErmcpGoods(), GetPCMenus(), QueryTableDefine(), getServerTime(), LoginQuery(), QueryDeliveryGoodsDetail(), getTaAccount(), queryMarketRun(), QueryMarketsByLoginID()])
|
|
|
|
|
- const marketInfo = getMarketByTradeMode(TradeMode.WarehouseReceiptTrade);
|
|
|
|
|
- if (marketInfo) {
|
|
|
|
|
- await queryWrMarketTradeConfig({ marketid: marketInfo.marketid })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ await Promise.all([GetErmcpGoods(), GetPCMenus(), QueryTableDefine(), getServerTime(), LoginQuery(), QueryDeliveryGoodsDetail(), getTaAccount(), queryMarketRun(), QueryMarketsByLoginID(), queryWrMarketTradeConfig()])
|
|
|
|
|
|
|
|
// await GetPCMenus();
|
|
// await GetPCMenus();
|
|
|
// await QueryTableDefine();
|
|
// await QueryTableDefine();
|