Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
a27f4ca7
Commit
a27f4ca7
authored
Oct 30, 2023
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
aef5c1bc
58dce010
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
355 additions
and
275 deletions
+355
-275
Login2019.vue
src/components/Login2019.vue
+1
-0
groupTourOrder.vue
src/components/SalesModule/groupTourOrder.vue
+36
-8
groupTourOrderByTuan.vue
src/components/SalesModule/groupTourOrderByTuan.vue
+29
-2
saleRnk.vue
src/components/SalesModule/saleRnk.vue
+230
-177
automaticLogin.vue
src/components/automaticLogin.vue
+19
-27
clientProtocol.vue
src/components/clientProtocol.vue
+5
-22
index.js
src/plug/index.js
+21
-24
config.js
src/router/config.js
+13
-12
index.js
src/store/actions/index.js
+0
-1
initNimSDK.js
src/store/actions/initNimSDK.js
+1
-2
No files found.
src/components/Login2019.vue
View file @
a27f4ca7
...
@@ -488,6 +488,7 @@
...
@@ -488,6 +488,7 @@
this
.
getGroup
()
this
.
getGroup
()
},
},
created
()
{
created
()
{
let
autoLogin
=
localStorage
.
autoLogin
?
JSON
.
parse
(
localStorage
.
autoLogin
)
:
null
let
autoLogin
=
localStorage
.
autoLogin
?
JSON
.
parse
(
localStorage
.
autoLogin
)
:
null
this
.
userInfo
.
name
=
autoLogin
?
autoLogin
.
acc
:
''
this
.
userInfo
.
name
=
autoLogin
?
autoLogin
.
acc
:
''
this
.
userInfo
.
password
=
autoLogin
?
autoLogin
.
pwd
:
''
this
.
userInfo
.
password
=
autoLogin
?
autoLogin
.
pwd
:
''
...
...
src/components/SalesModule/groupTourOrder.vue
View file @
a27f4ca7
...
@@ -1060,7 +1060,6 @@
...
@@ -1060,7 +1060,6 @@
<el-form-item
:label=
"$t('Operation.Op_zafei')"
>
<el-form-item
:label=
"$t('Operation.Op_zafei')"
>
<el-input
v-model=
"addMsg_form.OtherPrice"
:disabled=
"true"
></el-input>
<el-input
v-model=
"addMsg_form.OtherPrice"
:disabled=
"true"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('Operation.Op_oldmanSurcharge')"
>
<el-form-item
:label=
"$t('Operation.Op_oldmanSurcharge')"
>
<el-input
v-model=
"addMsg_form.OldManChargePrice"
:disabled=
"true"
></el-input>
<el-input
v-model=
"addMsg_form.OldManChargePrice"
:disabled=
"true"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -1070,7 +1069,6 @@
...
@@ -1070,7 +1069,6 @@
<el-form-item
:label=
"$t('Operation.Op_singleRoomcha')"
>
<el-form-item
:label=
"$t('Operation.Op_singleRoomcha')"
>
<el-input
v-model=
"addMsg_form.SingleRoomPrice"
:disabled=
"true"
></el-input>
<el-input
v-model=
"addMsg_form.SingleRoomPrice"
:disabled=
"true"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('salesModule.ETZCZS')"
>
<el-form-item
:label=
"$t('salesModule.ETZCZS')"
>
<el-input
v-model=
"addMsg_form.ChildNeedPrice"
:disabled=
"true"
></el-input>
<el-input
v-model=
"addMsg_form.ChildNeedPrice"
:disabled=
"true"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -1080,14 +1078,12 @@
...
@@ -1080,14 +1078,12 @@
<el-form-item
:label=
"$t('salesModule.SSJE')"
>
<el-form-item
:label=
"$t('salesModule.SSJE')"
>
<el-input
v-model=
"addMsg_form.OpSetLossMoney"
:disabled=
"true"
></el-input>
<el-input
v-model=
"addMsg_form.OpSetLossMoney"
:disabled=
"true"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('salesModule.SingleJ')"
>
<el-form-item
:label=
"$t('salesModule.SingleJ')"
>
<el-input
v-model=
"addMsg_form.SingleDMCPrice"
:disabled=
"true"
></el-input>
<el-input
v-model=
"addMsg_form.SingleDMCPrice"
:disabled=
"true"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('salesModule.BabyPrice')"
>
<el-form-item
:label=
"$t('salesModule.BabyPrice')"
>
<el-input
v-model=
"addMsg_form.BabyPrice"
:disabled=
"true"
></el-input>
<el-input
v-model=
"addMsg_form.BabyPrice"
:disabled=
"true"
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
</el-col>
</el-col>
...
@@ -1701,12 +1697,13 @@
...
@@ -1701,12 +1697,13 @@
{{
$t
(
"hotel.hotel_StartTeam"
)
}}
:
{{
item
.
startDate
}}
{{
$t
(
"hotel.hotel_StartTeam"
)
}}
:
{{
item
.
startDate
}}
</p>
</p>
<p>
{{
$t
(
"restaurant.res_oderTime"
)
}}
:
{{
item
.
createDate
}}
</p>
<p>
{{
$t
(
"restaurant.res_oderTime"
)
}}
:
{{
item
.
createDate
}}
</p>
<p
v-if=
"item.teamType==1||item.teamType==2"
>
{{
item
.
status
==
1
?
"未结团"
:(
item
.
status
==
2
?
"已结团 "
:(
item
.
status
==
5
?
"待结团审核"
:
""
))
}}{{
item
.
status
==
2
?
item
.
outGroupAuditDate
:
""
}}
</p>
<p
v-if=
"item.teamType==1||item.teamType==2"
>
{{
item
.
status
==
1
?
"未结团"
:(
item
.
status
==
2
?
"已结团 "
:(
item
.
status
==
5
?
"待结团审核"
:
""
))
}}{{
item
.
status
==
2
?
item
.
outGroupAuditDate
:
""
}}
</p>
<p
v-if=
"item.tradeWay == 1"
>
{{
item
.
platformOrder
}}
</p>
<p
v-if=
"item.tradeWay == 1"
>
{{
item
.
platformOrder
}}
</p>
<p
v-if=
"item.commissionMoney"
style=
"color: red;cursor: pointer;"
>
<p
v-if=
"item.commissionMoney"
style=
"color: red;cursor: pointer;"
>
<span
style=
"float: left;"
>
{{
$t
(
"salesModule.Commission"
)
}}
:
</span>
<span
style=
"float: left;"
>
{{
$t
(
"salesModule.Commission"
)
}}
:
</span>
<commissionDialog
:type=
"pagesTitle"
:objNew=
"item"
></commissionDialog>
{{
item
.
commissionCurrency
}}
<commissionDialog
:type=
"pagesTitle"
:objNew=
"item"
></commissionDialog>
{{
item
.
commissionCurrency
}}
<!--
{{
item
.
commissionMoney
}}
{{
item
.
commissionCurrency
}}
-->
</p>
</p>
<p
v-else-if=
"item.latestCommissionMoney"
style=
"color: red"
>
<p
v-else-if=
"item.latestCommissionMoney"
style=
"color: red"
>
{{
$t
(
"salesModule.Commission"
)
}}
:
{{
{{
$t
(
"salesModule.Commission"
)
}}
:
{{
...
@@ -2146,14 +2143,17 @@
...
@@ -2146,14 +2143,17 @@
<span
style=
"color:#f56c6c"
>
{{childItem.visaType==1?'(个签)':''}}
</span>
<span
style=
"color:#f56c6c"
>
{{childItem.visaType==1?'(个签)':''}}
</span>
<span
style=
"color:#f56c6c"
>
{{childItem.ticketOutTypeStr}}
</span>
<span
style=
"color:#f56c6c"
>
{{childItem.ticketOutTypeStr}}
</span>
<span
v-if=
"childItem.isApplyPhoto == 1"
style=
"color: red"
>
({{ $t("salesModule.Zhao") }})
</span>
<span
v-if=
"childItem.isApplyPhoto == 1"
style=
"color: red"
>
({{ $t("salesModule.Zhao") }})
</span>
</span>
<span
style=
"cursor:pointer;"
@
click=
"goProtocol(item,childItem)"
>
{{childItem.protocolId>0?"查看保密协议":"签订保密协议"}}
</span>
</span>
<span
v-if=
"item.photoNum > 0"
>
({{ $t("salesModule.NoPhoto") }} {{ item.photoNum
<span
v-if=
"item.photoNum > 0"
>
({{ $t("salesModule.NoPhoto") }} {{ item.photoNum
}}{{ $t("salesModule.Fen") }})
</span>
}}{{ $t("salesModule.Fen") }})
</span>
</span>
</span>
<p
v-if=
"item.cancelGuestList.length > 0"
>
<p
v-if=
"item.cancelGuestList.length > 0"
>
<span
class=
""
>
{{ $t("salesModule.CancelOrder") }}:
</span>
<span
class=
""
>
{{ $t("salesModule.CancelOrder") }}:
</span>
<span
class=
"RL-redType RL-remarkCon"
>
<span
class=
"RL-redType RL-remarkCon"
>
<span
style=
"color: red"
v-for=
"childItem in item.cancelGuestList"
>
{{ childItem.userName }}
<span
style=
"color:#f56c6c"
>
{{childItem.visaType==1?'(个签)':''}}
</span>
<span
style=
"color: red"
v-for=
"childItem in item.cancelGuestList"
>
{{ childItem.userName }}
<span
style=
"color:#f56c6c"
>
{{childItem.visaType==1?'(个签)':''}}
</span>
</span>
</span>
</span>
</span>
</p>
</p>
...
@@ -2177,7 +2177,9 @@
...
@@ -2177,7 +2177,9 @@
<div
v-if=
"item.otherContractList&&(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)"
>
<div
v-if=
"item.otherContractList&&(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)"
>
<span
class=
"GO_Contract"
<span
class=
"GO_Contract"
@
click=
"goSingleContract(item)"
>
{{item.otherContractList.length==0?"单项合同":"查看单项合同"}}
</span>
@
click=
"goSingleContract(item)"
>
{{item.otherContractList.length==0?"单项合同":"查看单项合同"}}
</span>
</div>
</div>
<div
v-if=
"
<div
v-if=
"
item.contractNum.length == 0 &&
item.contractNum.length == 0 &&
(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)
(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)
...
@@ -2951,6 +2953,32 @@
...
@@ -2951,6 +2953,32 @@
}
}
this
.
OpenNewPage
(
'/ContractManage'
,
query
)
this
.
OpenNewPage
(
'/ContractManage'
,
query
)
},
},
//跳转到保密协议
goProtocol
(
item
,
sItem
)
{
let
ProtocolId
=
0
;
let
guestId
=
0
;
var
path
=
"discountProtocol"
;
if
(
sItem
)
{
if
(
sItem
.
protocolId
)
{
ProtocolId
=
sItem
.
protocolId
;
}
if
(
sItem
.
guestId
)
{
guestId
=
sItem
.
guestId
;
}
}
var
pMsg
=
{
TCID
:
item
.
tcid
,
GuestId
:
guestId
,
OrderId
:
item
.
orderId
,
ProtocolId
:
ProtocolId
,
blank
:
"y"
,
}
let
routeData
=
this
.
$router
.
resolve
({
name
:
path
,
query
:
pMsg
,
});
window
.
open
(
routeData
.
href
,
"_blank"
);
},
//跳转至领取合同
//跳转至领取合同
goContract
(
item
,
sItem
)
{
goContract
(
item
,
sItem
)
{
let
cid
=
0
;
let
cid
=
0
;
...
...
src/components/SalesModule/groupTourOrderByTuan.vue
View file @
a27f4ca7
...
@@ -2340,8 +2340,9 @@
...
@@ -2340,8 +2340,9 @@
{{childItem.userName}}
{{childItem.userName}}
<span
style=
"color:#f56c6c"
>
{{childItem.visaType==1?'(个签)':''}}
</span>
<span
style=
"color:#f56c6c"
>
{{childItem.visaType==1?'(个签)':''}}
</span>
<span
style=
"color:#f56c6c"
>
{{childItem.ticketOutTypeStr}}
</span>
<span
style=
"color:#f56c6c"
>
{{childItem.ticketOutTypeStr}}
</span>
<span
<span
style=
"cursor:pointer;"
v-if=
"childItem.isApplyPhoto == 1"
style=
"color: red"
>
(照)
</span>
</span>
@
click=
"goProtocol(item,childItem)"
>
{{childItem.protocolId>0?"查看保密协议":"签订保密协议"}}
</span>
<span
v-if=
"childItem.isApplyPhoto == 1"
style=
"color: red"
>
(照)
</span>
</span>
<span
v-if=
"item.photoNum > 0"
>
(照片一人 {{ item.photoNum }}份)
</span>
<span
v-if=
"item.photoNum > 0"
>
(照片一人 {{ item.photoNum }}份)
</span>
</span>
</span>
<p
v-if=
"item.cancelGuestList && item.cancelGuestList.length > 0"
>
<p
v-if=
"item.cancelGuestList && item.cancelGuestList.length > 0"
>
...
@@ -3651,6 +3652,32 @@
...
@@ -3651,6 +3652,32 @@
},
},
},
},
methods
:
{
methods
:
{
//跳转到保密协议
goProtocol
(
item
,
sItem
)
{
let
ProtocolId
=
0
;
let
guestId
=
0
;
var
path
=
"discountProtocol"
;
if
(
sItem
)
{
if
(
sItem
.
protocolId
)
{
ProtocolId
=
sItem
.
protocolId
;
}
if
(
sItem
.
guestId
)
{
guestId
=
sItem
.
guestId
;
}
}
var
pMsg
=
{
TCID
:
item
.
tcid
,
GuestId
:
guestId
,
OrderId
:
item
.
orderId
,
ProtocolId
:
ProtocolId
,
blank
:
"y"
,
}
let
routeData
=
this
.
$router
.
resolve
({
name
:
path
,
query
:
pMsg
,
});
window
.
open
(
routeData
.
href
,
"_blank"
);
},
//关闭弹窗
//关闭弹窗
closeDialog
()
{
closeDialog
()
{
this
.
isShowLayerRemarks
=
false
;
this
.
isShowLayerRemarks
=
false
;
...
...
src/components/SalesModule/saleRnk.vue
View file @
a27f4ca7
This diff is collapsed.
Click to expand it.
src/components/automaticLogin.vue
View file @
a27f4ca7
<
style
>
<
style
>
@import
"../assets/css/login2019.css"
;
@import
"../assets/css/login2019.css"
;
.Autologin
{
.Autologin
{
position
:
fixed
;
position
:
fixed
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
/* transform: translate(-50%,-50%); */
background
:
url('../assets/img/login/load.gif')
no-repeat
center
;
background
:
url('../assets/img/login/load.gif')
no-repeat
center
;
background-size
:
350px
auto
;
background-size
:
350px
auto
;
}
}
...
@@ -15,7 +14,6 @@
...
@@ -15,7 +14,6 @@
<div>
<div>
<div
class=
"Autologin"
>
<div
class=
"Autologin"
>
<div
class=
"gifContent"
>
<div
class=
"gifContent"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -25,38 +23,38 @@
...
@@ -25,38 +23,38 @@
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
msg
:{},
msg
:
{},
userInfo
:
{
userInfo
:
{
name
:
""
,
name
:
""
,
password
:
""
,
password
:
""
,
Domain
:
""
Domain
:
""
},
},
crmOrderObj
:{},
crmOrderObj
:
{},
obj
:{}
obj
:
{}
}
}
},
},
components
:
{
components
:
{
},
},
mounted
()
{
mounted
()
{
},
},
created
()
{
created
()
{
if
(
this
.
$route
.
query
)
{
if
(
this
.
$route
.
query
)
{
let
param
=
JSON
.
parse
(
this
.
$route
.
query
.
data
)
;
let
param
=
JSON
.
parse
(
this
.
$route
.
query
.
data
);
this
.
obj
.
token
=
this
.
$route
.
query
.
token
;
this
.
obj
.
token
=
this
.
$route
.
query
.
token
;
if
(
param
)
{
if
(
param
)
{
this
.
obj
.
parameter
=
param
[
0
]
this
.
obj
.
parameter
=
param
[
0
]
localStorage
.
crmuserInfo
=
JSON
.
stringify
(
this
.
obj
);
localStorage
.
crmuserInfo
=
JSON
.
stringify
(
this
.
obj
);
}
}
}
}
if
(
!
this
.
getLocalStorage
())
{
if
(
!
this
.
getLocalStorage
())
{
this
.
autoLogin
()
this
.
autoLogin
()
}
else
{
}
else
{
var
data
=
JSON
.
parse
(
localStorage
.
crmuserInfo
)
var
data
=
JSON
.
parse
(
localStorage
.
crmuserInfo
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
data
.
parameter
.
path
,
path
:
data
.
parameter
.
path
,
query
:{
query
:
{
crmOrderObj
:
JSON
.
stringify
(
data
.
parameter
),
crmOrderObj
:
JSON
.
stringify
(
data
.
parameter
),
Type
:
data
.
parameter
.
type
Type
:
data
.
parameter
.
type
}
}
...
@@ -64,7 +62,7 @@
...
@@ -64,7 +62,7 @@
}
}
},
},
methods
:
{
methods
:
{
autoLogin
(){
autoLogin
()
{
this
.
apipostLogin
(
this
.
apipostLogin
(
"admin_get_GetErpAutoLoginInfo"
,
"admin_get_GetErpAutoLoginInfo"
,
this
.
msg
,
this
.
msg
,
...
@@ -78,30 +76,26 @@
...
@@ -78,30 +76,26 @@
localStorage
.
userInfo
=
userJson
;
localStorage
.
userInfo
=
userJson
;
let
firstTire
=
[]
let
firstTire
=
[]
userData
.
UserMenu
.
forEach
(
x
=>
{
userData
.
UserMenu
.
forEach
(
x
=>
{
if
(
x
.
MenuUrl
!=
'/'
&&
x
.
MenuUrl
!=
''
)
{
if
(
x
.
MenuUrl
!=
'/'
&&
x
.
MenuUrl
!=
''
)
{
firstTire
.
push
(
x
.
MenuName
)
firstTire
.
push
(
x
.
MenuName
)
}
else
{
}
else
{
x
.
MenuUrl
=
''
;
x
.
MenuUrl
=
''
;
firstTire
.
push
(
x
.
MenuName
);
firstTire
.
push
(
x
.
MenuName
);
}
}
})
})
//UserMenu
// this.$cookie.set("account", this.userInfo.name);
this
.
$cookie
.
set
(
"EmployeeId"
,
userData
.
EmployeeId
);
this
.
$cookie
.
set
(
"EmployeeId"
,
userData
.
EmployeeId
);
this
.
$cookie
.
set
(
"RB_Branch_id"
,
userData
.
RB_Branch_id
);
this
.
$cookie
.
set
(
"RB_Branch_id"
,
userData
.
RB_Branch_id
);
this
.
$cookie
.
set
(
"RB_Group_id"
,
userData
.
RB_Group_id
);
this
.
$cookie
.
set
(
"RB_Group_id"
,
userData
.
RB_Group_id
);
localStorage
.
menu
=
JSON
.
stringify
(
firstTire
)
localStorage
.
menu
=
JSON
.
stringify
(
firstTire
)
this
.
loginState
=
0
;
this
.
loginState
=
0
;
var
data
=
JSON
.
parse
(
localStorage
.
crmuserInfo
)
var
data
=
JSON
.
parse
(
localStorage
.
crmuserInfo
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
data
.
parameter
.
path
,
path
:
data
.
parameter
.
path
,
query
:{
query
:
{
crmOrderObj
:
JSON
.
stringify
(
data
.
parameter
),
crmOrderObj
:
JSON
.
stringify
(
data
.
parameter
),
Type
:
data
.
parameter
.
type
Type
:
data
.
parameter
.
type
}
}
});
});
}
else
{
}
else
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
"提示"
,
title
:
"提示"
,
...
@@ -116,7 +110,5 @@
...
@@ -116,7 +110,5 @@
);
);
}
}
},
},
}
}
</
script
>
</
script
>
\ No newline at end of file
src/components/clientProtocol.vue
View file @
a27f4ca7
...
@@ -247,19 +247,6 @@
...
@@ -247,19 +247,6 @@
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.CliSignDiv
{
position
:
fixed
;
border
:
1px
solid
#d1d1d1
;
width
:
100%
;
background-color
:
#fff
;
z-index
:
999
;
margin
:
auto
;
display
:
block
;
z-index
:
-999
;
}
.TopFixed
{
.TopFixed
{
z-index
:
100
;
z-index
:
100
;
}
}
...
@@ -711,15 +698,11 @@
...
@@ -711,15 +698,11 @@
},
},
mounted
()
{
mounted
()
{
this
.
msg
.
TCID
=
this
.
$route
.
query
.
TCID
;
// this.msg.TCID = this.$route.query.TCID;
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
// this.msg.OrderId = this.$route.query.OrderId;
this
.
msg
.
GuestId
=
this
.
$route
.
query
.
GuestId
;
// this.msg.GuestId = this.$route.query.GuestId;
this
.
msg
.
ProtocolId
=
this
.
$route
.
query
.
ProtocolId
;
// this.msg.ProtocolId = this.$route.query.ProtocolId;
try
{
// this.getList();
var
cHeight
=
document
.
getElementsByClassName
(
"CliSignDiv"
)[
0
];
cHeight
.
style
.
height
=
900
+
'px'
;
}
catch
(
error
)
{}
this
.
getList
();
}
}
};
};
...
...
src/plug/index.js
View file @
a27f4ca7
...
@@ -119,7 +119,7 @@ export default {
...
@@ -119,7 +119,7 @@ export default {
let
lxymallUrl
=
''
;
//国内游api
let
lxymallUrl
=
''
;
//国内游api
let
crmUrl
=
""
;
//crm API
let
crmUrl
=
""
;
//crm API
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
let
isOnline
=
0
;
//0-本地测试,1-线上
let
isOnline
=
0
;
//0-本地测试,1-线上
let
ocrUrl
=
"http://192.168.10.68:8888"
;
let
ocrUrl
=
"http://192.168.10.68:8888"
;
// domainUrl = "http://192.168.10.238:8083"; // 刘东电脑
// domainUrl = "http://192.168.10.238:8083"; // 刘东电脑
// domainUrl = "http://192.168.10.226"; //春姐
// domainUrl = "http://192.168.10.226"; //春姐
...
@@ -139,17 +139,17 @@ export default {
...
@@ -139,17 +139,17 @@ export default {
lxymallUrl
=
"https://erpmallapi.oytour.com"
;
lxymallUrl
=
"https://erpmallapi.oytour.com"
;
crmUrl
=
"http://testcrm.oytour.com"
;
crmUrl
=
"http://testcrm.oytour.com"
;
ocrUrl
=
"http://ocr.oytour.com"
;
ocrUrl
=
"http://ocr.oytour.com"
;
isOnline
=
1
;
isOnline
=
1
;
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"http://reborn.oytour.com"
;
domainUrl
=
"http://reborn.oytour.com"
;
mallUrl
=
"https://mallapi.oytour.com"
;
mallUrl
=
"https://mallapi.oytour.com"
;
lxymallUrl
=
"https://erpmallapi.oytour.com"
;
lxymallUrl
=
"https://erpmallapi.oytour.com"
;
crmUrl
=
"http://crm.oytour.com"
;
crmUrl
=
"http://crm.oytour.com"
;
ocrUrl
=
"http://ocr.oytour.com"
;
ocrUrl
=
"http://ocr.oytour.com"
;
isOnline
=
1
;
isOnline
=
1
;
}
}
var
obj
=
{
var
obj
=
{
IsOnline
:
isOnline
,
//0-本地,1-线上
IsOnline
:
isOnline
,
//0-本地,1-线上
//主地址
//主地址
DomainUrl
:
domainUrl
,
DomainUrl
:
domainUrl
,
ocrUrl
:
ocrUrl
,
//行程下载地址
ocrUrl
:
ocrUrl
,
//行程下载地址
...
@@ -261,9 +261,8 @@ export default {
...
@@ -261,9 +261,8 @@ export default {
if
(
this
.
$route
.
name
.
indexOf
(
'login'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'clientConfirm'
)
===
-
1
&&
if
(
this
.
$route
.
name
.
indexOf
(
'login'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'clientConfirm'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'confirmationOrderDownLoadNew'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'PrintPage'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'confirmationOrderDownLoadNew'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'PrintPage'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'TravelContractConfirm'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'ViittoContractConfirm'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'TravelContractConfirm'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'ViittoContractConfirm'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'OrderProfitLossList'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'clientProtocol'
)
===
-
1
this
.
$route
.
name
.
indexOf
(
'OrderProfitLossList'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'clientProtocol'
)
===
-
1
)
{
)
{
let
previousPathInfo
=
{
let
previousPathInfo
=
{
path
:
this
.
$route
.
name
,
path
:
this
.
$route
.
name
,
query
:
this
.
$route
.
query
query
:
this
.
$route
.
query
...
@@ -280,6 +279,7 @@ export default {
...
@@ -280,6 +279,7 @@ export default {
}
}
var
timestamp
=
(
new
Date
()).
valueOf
();
var
timestamp
=
(
new
Date
()).
valueOf
();
this
.
apiurl
=
apiurl
;
this
.
apiurl
=
apiurl
;
if
(
this
.
$route
.
path
.
toLowerCase
()
==
"/signature"
)
{
if
(
this
.
$route
.
path
.
toLowerCase
()
==
"/signature"
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/signature'
path
:
'/signature'
...
@@ -301,6 +301,20 @@ export default {
...
@@ -301,6 +301,20 @@ export default {
guestId
:
guestId
,
guestId
:
guestId
,
}
}
})
})
}
else
if
(
this
.
$route
.
path
==
"/clientProtocol"
)
{
let
TCID
=
this
.
$route
.
query
.
TCID
;
let
OrderId
=
this
.
$route
.
query
.
OrderId
;
let
GuestId
=
this
.
$route
.
query
.
GuestId
;
let
ProtocolId
=
this
.
$route
.
query
.
ProtocolId
;
this
.
$router
.
push
({
name
:
"clientProtocol"
,
query
:
{
TCID
:
TCID
,
OrderId
:
OrderId
,
GuestId
:
GuestId
,
ProtocolId
:
ProtocolId
,
}
})
}
else
if
(
this
.
$route
.
path
==
"/clientConfirmRB"
)
{
}
else
if
(
this
.
$route
.
path
==
"/clientConfirmRB"
)
{
let
TCID
=
this
.
$route
.
query
.
TCID
;
let
TCID
=
this
.
$route
.
query
.
TCID
;
let
orderID
=
this
.
$route
.
query
.
orderID
;
let
orderID
=
this
.
$route
.
query
.
orderID
;
...
@@ -329,21 +343,7 @@ export default {
...
@@ -329,21 +343,7 @@ export default {
Id
:
Id
Id
:
Id
}
}
})
})
}
}
else
{
else
if
(
this
.
$route
.
path
==
"/clientProtocol"
)
{
let
TCID
=
this
.
$route
.
query
.
TCID
;
let
OrderId
=
this
.
$route
.
query
.
OrderId
;
let
GuestId
=
this
.
$route
.
query
.
GuestId
;
this
.
$router
.
push
({
name
:
"clientProtocol"
,
query
:
{
TCID
:
TCID
,
OrderId
:
OrderId
,
GuestId
:
GuestId
,
}
})
}
else
{
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
this
.
goToLogin
(
1
);
this
.
goToLogin
(
1
);
}
}
...
@@ -407,9 +407,6 @@ export default {
...
@@ -407,9 +407,6 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
//Token 10000 过期 10001 不合法
//Token 10000 过期 10001 不合法
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
// if (this.getLocalStorage()) {
// this.goToLogin(2);
// }
this
.
goToLogin
(
2
);
this
.
goToLogin
(
2
);
}
else
if
(
res
.
resultCode
==
10005
)
{
}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
...
...
src/router/config.js
View file @
a27f4ca7
...
@@ -3,10 +3,14 @@ import login from '../components/Login2019'
...
@@ -3,10 +3,14 @@ import login from '../components/Login2019'
import
index
from
'../components/index'
import
index
from
'../components/index'
import
clientConfirm
from
'../components/clientConfirm'
import
clientConfirm
from
'../components/clientConfirm'
import
clientConfirmRB
from
'../components/clientConfirmRB'
import
clientConfirmRB
from
'../components/clientConfirmRB'
import
clientProtocol
from
'../components/clientProtocol'
import
SignName
from
'../components/SignName'
import
SignName
from
'../components/SignName'
import
supplierLogin
from
'../components/SupplierLogin'
import
supplierLogin
from
'../components/SupplierLogin'
import
supplierIndex
from
'../components/SupplierIndex'
import
supplierIndex
from
'../components/SupplierIndex'
import
automaticLogin
from
'../components/automaticLogin'
import
automaticLogin
from
'../components/automaticLogin'
import
{
fromByteArray
}
from
'ipaddr.js'
export
default
{
export
default
{
routes
:
[{
routes
:
[{
path
:
'/'
,
path
:
'/'
,
...
@@ -2751,21 +2755,21 @@ export default {
...
@@ -2751,21 +2755,21 @@ export default {
},
},
},
},
{
{
path
:
'/Returnratio'
,
// 销售=>返佣比例管理
path
:
'/Returnratio'
,
// 销售=>返佣比例管理
name
:
'Returnratio'
,
name
:
'Returnratio'
,
component
:
resolve
=>
require
([
'@/components/SalesModule/Returnratio'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/SalesModule/Returnratio'
],
resolve
),
meta
:
{
meta
:
{
title
:
'返佣比例管理'
title
:
'返佣比例管理'
},
},
},
{
},
{
path
:
'/demandStatistics'
,
// 销售=> 统计
path
:
'/demandStatistics'
,
// 销售=> 统计
name
:
'demandStatistics'
,
name
:
'demandStatistics'
,
component
:
resolve
=>
require
([
'@/components/SalesModule/demandStatistics'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/SalesModule/demandStatistics'
],
resolve
),
meta
:
{
meta
:
{
title
:
'销售统计'
title
:
'销售统计'
},
},
},
{
},
{
path
:
'/quoTation'
,
//团控=>报价单
path
:
'/quoTation'
,
//团控=>报价单
name
:
'quoTation'
,
name
:
'quoTation'
,
component
:
resolve
=>
require
([
'@/components/TravelManager/TravelQuotationCenter/quoTation'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/TravelManager/TravelQuotationCenter/quoTation'
],
resolve
),
meta
:
{
meta
:
{
...
@@ -3834,7 +3838,7 @@ export default {
...
@@ -3834,7 +3838,7 @@ export default {
meta
:
{
meta
:
{
title
:
'平台账户'
title
:
'平台账户'
},
},
},{
//财务 审核平台账户
},
{
//财务 审核平台账户
path
:
'/PlatformAccountExamine'
,
path
:
'/PlatformAccountExamine'
,
name
:
'PlatformAccountExamine'
,
name
:
'PlatformAccountExamine'
,
component
:
resolve
=>
require
([
'@/components/FinancialModule/PlatformAccountExamine'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/FinancialModule/PlatformAccountExamine'
],
resolve
),
...
@@ -5865,6 +5869,11 @@ export default {
...
@@ -5865,6 +5869,11 @@ export default {
name
:
'clientConfirmRB'
,
name
:
'clientConfirmRB'
,
component
:
clientConfirmRB
component
:
clientConfirmRB
},
},
{
path
:
'/clientProtocol'
,
//价格保密协议签订
name
:
'clientProtocol'
,
component
:
clientProtocol
,
},
{
{
path
:
'/SignName'
,
path
:
'/SignName'
,
name
:
'SignName'
,
name
:
'SignName'
,
...
@@ -5902,14 +5911,6 @@ export default {
...
@@ -5902,14 +5911,6 @@ export default {
title
:
'价格保密协议'
title
:
'价格保密协议'
}
}
},
},
{
path
:
'/clientProtocol'
,
//价格保密协议签订
name
:
'clientProtocol'
,
component
:
resolve
=>
require
([
'@/components/clientProtocol'
],
resolve
),
meta
:
{
title
:
'价格保密协议签订'
}
},
{
{
path
:
'/SingleContract'
,
//单项合同
path
:
'/SingleContract'
,
//单项合同
name
:
'SingleContract'
,
name
:
'SingleContract'
,
...
...
src/store/actions/index.js
View file @
a27f4ca7
...
@@ -93,7 +93,6 @@ export default {
...
@@ -93,7 +93,6 @@ export default {
if
(
state
.
nim
)
{
if
(
state
.
nim
)
{
state
.
nim
.
disconnect
()
state
.
nim
.
disconnect
()
}
}
//pageUtil.turnPage('', 'login')
},
},
// 初始化 重新连接SDK
// 初始化 重新连接SDK
...
...
src/store/actions/initNimSDK.js
View file @
a27f4ca7
...
@@ -41,8 +41,7 @@ export function initNimSDK ({ state, commit, dispatch }, loginInfo) {
...
@@ -41,8 +41,7 @@ export function initNimSDK ({ state, commit, dispatch }, loginInfo) {
}
}
},
},
onerror
:
function
onError
(
event
)
{
onerror
:
function
onError
(
event
)
{
// alert(JSON.stringify(event))
//location.href = config.loginUrl
},
},
onwillreconnect
:
function
onWillReconnect
()
{
onwillreconnect
:
function
onWillReconnect
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment