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
ddfc1c3c
Commit
ddfc1c3c
authored
Oct 11, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
1b38111c
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
966 additions
and
715 deletions
+966
-715
investigationDetail.vue
src/components/SalesModule/investigationDetail.vue
+61
-59
investigationList.vue
src/components/SalesModule/investigationList.vue
+83
-91
LianMengManagement.vue
src/components/administrative/LianMengManagement.vue
+276
-257
Survey.vue
src/components/administrative/Survey.vue
+2
-1
VoucherInquiry.vue
src/components/administrative/VoucherInquiry.vue
+296
-299
guestSign.vue
src/components/guestSign.vue
+123
-0
guestlogin.vue
src/components/guestlogin.vue
+75
-0
YearLimit.vue
src/components/public/YearLimit.vue
+0
-1
index.js
src/plug/index.js
+26
-7
config.js
src/router/config.js
+24
-0
No files found.
src/components/SalesModule/investigationDetail.vue
View file @
ddfc1c3c
<
style
>
<
style
>
.investigationDetail
.item
{
.investigationDetail
.item
{
padding
:
20px
0
10px
20px
;
padding
:
20px
0
10px
20px
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<el-form
class=
"investigationDetail"
>
<el-form
class=
"investigationDetail"
>
<div
v-for=
"(item, index) in details"
:key=
"index"
>
<div
v-for=
"(item, index) in details"
:key=
"index"
>
<p>
{{
index
+
1
}}
、
{{
item
.
Title
}}
</p>
<p>
{{
index
+
1
}}
、
{{
item
.
Title
}}
</p>
<div
class=
"item"
>
<div
class=
"item"
>
<el-rate
<el-rate
disabled=
"disabled"
v-if=
"item.SurveyType === 1"
v-model=
"item.ScoreNum"
:texts=
"texts"
show-text
>
disabled=
"disabled"
v-if=
"item.SurveyType === 1"
v-model=
"item.ScoreNum"
:texts=
"texts"
show-text
>
</el-rate>
</el-rate>
<template
v-else-if=
"item.SurveyType === 2"
>
<template
v-else-if=
"item.SurveyType === 2"
>
<template
v-for=
"(r, i) in item.SurveyOptionsList"
v-if=
"r.IsCheck!=='0'"
>
<template
v-for=
"(r, i) in item.SurveyOptionsList"
v-if=
"r.IsCheck!=='0'"
>
<span>
{{
r
.
OptionsName
}}
</span>
<span>
{{
r
.
OptionsName
}}
</span>
</
template
>
</
template
>
</template>
</template>
<
template
v-else-if=
"item.SurveyType === 3"
>
<
template
v-else-if=
"item.SurveyType === 3"
>
<template
v-for=
"(r, i) in item.SurveyOptionsList"
v-if=
"r.IsCheck!=='0'"
>
<template
v-for=
"(r, i) in item.SurveyOptionsList"
v-if=
"r.IsCheck!=='0'"
>
<span>
{{
r
.
OptionsName
}}
</span>
<span>
{{
r
.
OptionsName
}}
</span>
</
template
>
</
template
>
</template>
</template>
<
template
v-else-if=
"item.SurveyType === 4"
>
<
template
v-else-if=
"item.SurveyType === 4"
>
<span>
{{
item
.
TextContent
}}
</span>
<span>
{{
item
.
TextContent
}}
</span>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
</el-form>
</el-form>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
props
:[
'ID'
],
props
:
[
'ID'
],
data
(){
data
()
{
return
{
return
{
details
:
[],
details
:
[],
texts
:
[
'非常不满意'
,
'不满意'
,
'感觉一般'
,
'满意'
,
'非常满意'
]
texts
:
[
'非常不满意'
,
'不满意'
,
'感觉一般'
,
'满意'
,
'非常满意'
]
}
}
},
watch
:
{
},
ID
:
{
watch
:
{
handler
:
function
(
val
,
oldVal
)
{
ID
:
{
if
(
val
!==
oldVal
){
handler
:
function
(
val
,
oldVal
)
{
this
.
getDetails
()
if
(
val
!==
oldVal
)
{
}
this
.
getDetails
()
},
}
deep
:
true
},
}
deep
:
true
},
mounted
()
{
}
this
.
getDetails
()
},
},
methods
:
{
mounted
()
{
getDetails
:
function
()
{
this
.
getDetails
()
this
.
apipost
(
'survey_post_GetGuestSurvey'
,
{
SurveyID
:
this
.
ID
},
res
=>
{
},
if
(
res
.
data
.
resultCode
===
1
)
{
methods
:
{
let
data
=
res
.
data
.
data
getDetails
:
function
()
{
data
.
map
(
x
=>
{
this
.
apipost
(
'survey_post_GetGuestSurvey'
,
{
if
(
x
.
SurveyType
===
2
)
{
SurveyID
:
this
.
ID
x
.
SurveyOptionsList
.
map
(
y
=>
{
},
res
=>
{
if
(
y
.
IsCheck
===
'1'
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
x
.
lable
=
y
.
ID
let
data
=
res
.
data
.
data
}
data
.
map
(
x
=>
{
})
if
(
x
.
SurveyType
===
2
)
{
}
x
.
SurveyOptionsList
.
map
(
y
=>
{
if
(
x
.
SurveyType
===
3
)
{
if
(
y
.
IsCheck
===
'1'
)
{
let
ckeckList
=
[]
x
.
lable
=
y
.
ID
x
.
SurveyOptionsList
.
map
(
y
=>
{
}
if
(
y
.
IsCheck
===
'1'
)
{
})
ckeckList
.
push
(
y
.
ID
)
}
}
if
(
x
.
SurveyType
===
3
)
{
})
let
ckeckList
=
[]
x
.
ckeckList
=
ckeckList
x
.
SurveyOptionsList
.
map
(
y
=>
{
}
if
(
y
.
IsCheck
===
'1'
)
{
})
ckeckList
.
push
(
y
.
ID
)
this
.
details
=
data
}
}
})
},
null
)
x
.
ckeckList
=
ckeckList
}
})
this
.
details
=
data
}
},
null
)
}
}
}
}
}
}
</
script
>
</
script
>
src/components/SalesModule/investigationList.vue
View file @
ddfc1c3c
<
style
>
<
style
>
.investigationList
td
button
{
.investigationList
td
button
{
width
:
30px
;
width
:
30px
;
height
:
30px
;
height
:
30px
;
display
:
inline-block
;
display
:
inline-block
;
color
:
white
!important
;
color
:
white
!important
;
border-radius
:
50%
;
border-radius
:
50%
;
text-align
:
center
;
text-align
:
center
;
line-height
:
30px
;
line-height
:
30px
;
margin-right
:
10px
;
margin-right
:
10px
;
cursor
:
pointer
;
cursor
:
pointer
;
outline
:
none
;
outline
:
none
;
padding
:
0
;
padding
:
0
;
}
}
.investigationList
.el-button.is-circle
{
padding
:
0
;
.investigationList
.el-button.is-circle
{
}
padding
:
0
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"investigationList"
>
<div
class=
"investigationList"
>
...
@@ -27,95 +29,85 @@
...
@@ -27,95 +29,85 @@
<th>
分数
</th>
<th>
分数
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
</tr>
<tr
v-for=
"item in dataList"
>
<tr
v-for=
"(item,index) in dataList"
:key=
"index"
>
<td>
{{
item
.
OrderID
}}
</td>
<td>
{{
item
.
OrderID
}}
</td>
<td>
{{
item
.
GuestName
}}
</td>
<td>
{{
item
.
GuestName
}}
</td>
<td>
{{
item
.
EnterName
}}
</td>
<td>
{{
item
.
EnterName
}}
</td>
<td>
{{
item
.
CustomerName
}}
</td>
<td>
{{
item
.
CustomerName
}}
</td>
<td>
{{
item
.
ScoreNum
}}
</td>
<td>
{{
item
.
ScoreNum
}}
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看问券"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看问券"
placement=
"top"
>
<el-button
<el-button
type=
"primary"
icon=
"iconfont icon-sousuo"
circle
type=
"primary"
@
click=
"dialogTitle = '游客问券',DiaoChaShow=true, openPage(item)"
>
icon=
"iconfont icon-sousuo"
</el-button>
circle
</el-tooltip>
@
click=
"dialogTitle = '游客问券', openPage(item)"
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看游记"
placement=
"top"
>
></el-button>
<el-button
v-if=
"item.NotesId > 0"
type=
"primary"
icon=
"iconfont icon-youji"
circle
<!-- showID = item.ID, DiaoChaShow = true -->
@
click=
"dialogTitle = '游记', showID = item.NotesId, YouJiShow = true"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看游记"
placement=
"top"
>
</td>
<el-button
v-if=
"item.NotesId > 0"
type=
"primary"
icon=
"iconfont icon-youji"
circle
@
click=
"dialogTitle = '游记', showID = item.NotesId, YouJiShow = true"
></el-button>
</el-tooltip>
</td>
</tr>
</tr>
</table>
</table>
<div
class=
"noDataNotice"
v-if=
"dataList.length
<1
"
>
<div
class=
"noDataNotice"
v-if=
"dataList.length
<1
"
>
<i
class=
"iconfont icon-kong"
></i>
<i
class=
"iconfont icon-kong"
></i>
<p>
{{
$t
(
"active.ld_noData"
)
}}
</p>
<p>
{{
$t
(
"active.ld_noData"
)
}}
</p>
</div>
</div>
<el-dialog
<el-dialog
custom-class=
"w400"
:title=
"dialogTitle"
:visible
.
sync=
"DiaoChaShow"
center
:before-close=
"closeDialog"
>
custom-class=
"w400"
<DiaoCha
:ID=
"showID"
/>
:title=
"dialogTitle"
:visible
.
sync=
"DiaoChaShow"
center
:before-close=
"closeDialog"
>
<DiaoCha
:ID=
"showID"
/>
</el-dialog>
</el-dialog>
<el-dialog
<el-dialog
custom-class=
"w500"
:title=
"dialogTitle"
:visible
.
sync=
"YouJiShow"
center
:before-close=
"closeDialog"
>
custom-class=
"w500"
<YouJi
:ID=
"showID"
/>
:title=
"dialogTitle"
:visible
.
sync=
"YouJiShow"
center
:before-close=
"closeDialog"
>
<YouJi
:ID=
"showID"
/>
</el-dialog>
</el-dialog>
<a
href=
""
id=
"blankLink"
target=
"_blank"
style=
"display:none"
>
1
</a>
<a
href=
""
id=
"blankLink"
target=
"_blank"
style=
"display:none"
>
1
</a>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
DiaoCha
from
'./investigationDetail'
;
import
DiaoCha
from
'./investigationDetail'
;
import
YouJi
from
'./investigationYouDetail'
;
import
YouJi
from
'./investigationYouDetail'
;
export
default
{
export
default
{
components
:{
components
:
{
DiaoCha
:
DiaoCha
,
DiaoCha
:
DiaoCha
,
YouJi
:
YouJi
,
YouJi
:
YouJi
,
},
},
data
(){
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
dataList
:
[],
dataList
:
[],
DiaoChaShow
:
false
,
DiaoChaShow
:
false
,
YouJiShow
:
false
,
YouJiShow
:
false
,
showID
:
0
,
showID
:
0
,
dialogTitle
:
''
,
dialogTitle
:
''
,
}
}
},
mounted
()
{
let
TCID
=
this
.
$route
.
query
.
TCID
,
OrderID
=
this
.
$route
.
query
.
OrderId
;
this
.
getList
(
TCID
,
OrderID
);
},
methods
:
{
openPage
:
function
(
obj
){
let
dom
=
document
.
querySelector
(
"#blankLink"
);
dom
.
href
=
"http://activity.oytour.com/html/invesDetails2.html"
+
'?ID='
+
obj
.
ID
+
'&name='
+
encodeURI
(
obj
.
GuestName
)
+
'&MobilePhone='
+
obj
.
CustomerPhone
dom
.
click
();
},
},
closeDialog
:
function
()
{
mounted
()
{
this
.
DiaoChaShow
=
false
;
let
TCID
=
this
.
$route
.
query
.
TCID
;
this
.
YouJiShow
=
false
;
let
OrderID
=
this
.
$route
.
query
.
OrderId
;
this
.
getList
(
TCID
,
OrderID
);
},
},
getList
:
function
(
TCID
,
OrderID
)
{
methods
:
{
this
.
apipost
(
'survey_post_GetTotalList'
,
{
TCID
:
TCID
,
OrderID
:
OrderID
},
res
=>
{
openPage
:
function
(
obj
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
showID
=
obj
.
ID
;
this
.
dataList
=
res
.
data
.
data
;
// let dom = document.querySelector("#blankLink");
}
// dom.href = "http://activity.oytour.com/html/invesDetails2.html" + '?ID=' + obj.ID + '&name=' + encodeURI(obj
},
null
)
// .GuestName) + '&MobilePhone=' + obj.CustomerPhone
// dom.click();
},
closeDialog
:
function
()
{
this
.
DiaoChaShow
=
false
;
this
.
YouJiShow
=
false
;
},
getList
:
function
(
TCID
,
OrderID
)
{
this
.
apipost
(
'survey_post_GetTotalList'
,
{
TCID
:
TCID
,
OrderID
:
OrderID
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
;
console
.
log
(
"this.dataList"
,
this
.
dataList
);
}
},
null
)
}
}
}
}
}
}
</
script
>
</
script
>
src/components/administrative/LianMengManagement.vue
View file @
ddfc1c3c
<
style
>
<
style
>
.heightauto
.el-input
{
.heightauto
.el-input
{
height
:
auto
!important
;
height
:
auto
!important
;
}
}
.LianMengManagement
._icon_btn
i
{
width
:
30px
;
height
:
30px
;
display
:
inline-block
;
color
:
white
!important
;
border-radius
:
50%
;
text-align
:
center
;
line-height
:
30px
;
margin-right
:
10px
;
cursor
:
pointer
;
outline
:
none
;}
.LianMengManagement
._icon_btn
i
.el-icon-edit
{
background-color
:
#47BF8C
;}
.LianMengManagement
._icon_btn
i
{
.LianMengManagement
._icon_btn
i
.el-icon-check
{
background-color
:
#E95252
;}
width
:
30px
;
.LianMengManagement
._icon_btn
i
.el-icon-search
{
background-color
:
#E6A23C
;}
height
:
30px
;
display
:
inline-block
;
color
:
white
!important
;
border-radius
:
50%
;
text-align
:
center
;
line-height
:
30px
;
margin-right
:
10px
;
cursor
:
pointer
;
outline
:
none
;
}
.LianMengManagement
._icon_btn
i
.el-icon-edit
{
background-color
:
#47BF8C
;
}
.LianMengManagement
._icon_btn
i
.el-icon-check
{
background-color
:
#E95252
;
}
.LianMengManagement
._icon_btn
i
.el-icon-search
{
background-color
:
#E6A23C
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"LianMengManagement"
>
<div
class=
"LianMengManagement"
>
...
@@ -18,8 +40,9 @@
...
@@ -18,8 +40,9 @@
</span>
</span>
</li>
</li>
<li>
<li>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
@
click=
"dialogFormVisible = true,addType = 1, iniTAddMsg"
/>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getList()"
/>
@
click=
"dialogFormVisible = true,addType = 1, iniTAddMsg"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getList()"
/>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -33,273 +56,269 @@
...
@@ -33,273 +56,269 @@
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
</tr>
<tr
v-for=
"item in dataList"
>
<tr
v-for=
"item in dataList"
>
<td>
{{
item
.
AllianceName
}}
</td>
<td>
{{
item
.
AllianceName
}}
</td>
<td><span
class=
"cursorpointer text-decoration"
@
click=
"goCustomerList(item.ID)"
>
{{
item
.
CustomerCount
}}
</span></td>
<td><span
class=
"cursorpointer text-decoration"
@
click=
"goCustomerList(item.ID)"
>
{{
item
.
CustomerCount
}}
</span>
<td>
{{
item
.
StartYear
}}
-
{{
item
.
EndYear
}}
</td>
</td>
<td>
{{
moneyFormat
(
item
.
TradeMoney
)
}}
</td>
<td>
{{
item
.
StartYear
}}
-
{{
item
.
EndYear
}}
</td>
<td><span
class=
"cursorpointer text-decoration"
@
click=
"jiesuan(item.ID, 'happyMoneyDetails')"
>
{{
item
.
TotalGuestNum
}}
</span></td>
<td>
{{
moneyFormat
(
item
.
TradeMoney
)
}}
</td>
<td
class=
"_icon_btn"
>
<td><span
class=
"cursorpointer text-decoration"
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增客户"
placement=
"top"
>
@
click=
"jiesuan(item.ID, 'happyMoneyDetails')"
>
{{
item
.
TotalGuestNum
}}
</span></td>
<i
class=
"edit el-icon-edit"
@
click=
"addCustorm(item)"
></i>
<td
class=
"_icon_btn"
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"新增客户"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"结算"
placement=
"top"
>
<i
class=
"edit el-icon-edit"
@
click=
"addCustorm(item)"
></i>
<i
class=
"edit el-icon-check"
v-if=
"item.IsClearing == 1"
@
click=
"jiesuan(item.ID, 'happyMoney')"
></i>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"结算"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"详情"
placement=
"top"
>
<i
class=
"edit el-icon-check"
v-if=
"item.IsClearing == 1"
@
click=
"jiesuan(item.ID, 'happyMoney')"
></i>
<i
class=
"edit el-icon-search"
v-if=
"item.IsClearing == 2"
@
click=
"jiesuan(item.ID, 'happyMoneyDetails')"
></i>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"详情"
placement=
"top"
>
</td>
<i
class=
"edit el-icon-search"
v-if=
"item.IsClearing == 2"
@
click=
"jiesuan(item.ID, 'happyMoneyDetails')"
></i>
</el-tooltip>
</td>
</tr>
</tr>
</table>
</table>
<el-dialog
:title=
"addType == 1 ? '新增联盟' : '新增客户'"
width=
"600px"
:visible
.
sync=
"dialogFormVisible"
center
:before-close=
"closeChangeMachie"
>
<el-dialog
:title=
"addType == 1 ? '新增联盟' : '新增客户'"
width=
"600px"
:visible
.
sync=
"dialogFormVisible"
center
:before-close=
"closeChangeMachie"
>
<el-form
label-width=
"110px"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
class=
"demo-ruleForm"
>
<el-form
label-width=
"110px"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
class=
"demo-ruleForm"
>
<div
v-if=
"addType == 1"
>
<div
v-if=
"addType == 1"
>
<el-form-item
label=
"联盟名称"
prop=
"AllianceName"
>
<el-form-item
label=
"联盟名称"
prop=
"AllianceName"
>
<el-input
type=
"text"
v-model=
"addMsg.AllianceName"
class=
""
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.AllianceName"
class=
""
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"开始时间"
prop=
"StartYear"
>
<el-form-item
label=
"开始时间"
prop=
"StartYear"
>
<el-date-picker
class=
"h34 "
<el-date-picker
class=
"h34 "
v-model=
"addMsg.StartYear"
@
change=
"EndYearChange"
type=
"year"
v-model=
"addMsg.StartYear"
value-format=
"yyyy"
:range-separator=
"$t('restaurant.res_To')"
>
@
change=
"EndYearChange"
</el-date-picker>
type=
"year"
</el-form-item>
value-format=
"yyyy"
<el-form-item
label=
"结束时间"
prop=
"EndYear"
>
:range-separator=
"$t('restaurant.res_To')"
>
<el-date-picker
class=
"h34"
@
change=
"EndYearChange"
v-model=
"addMsg.EndYear"
type=
"year"
value-format=
"yyyy"
</el-date-picker>
:range-separator=
"$t('restaurant.res_To')"
>
</el-form-item>
</el-date-picker>
<el-form-item
label=
"结束时间"
prop=
"EndYear"
>
</el-form-item>
<el-date-picker
class=
"h34"
<el-form-item
label=
"销售"
prop=
"Contact"
>
@
change=
"EndYearChange"
<el-select
filterable
v-model=
'addMsg.Contact'
class=
""
>
v-model=
"addMsg.EndYear"
<el-option
v-for=
'item in EmployeeList'
:label=
'item.EmName'
:value=
'item.EmployeeId'
type=
"year"
:key=
'item.EmployeeId'
>
value-format=
"yyyy"
</el-option>
:range-separator=
"$t('restaurant.res_To')"
>
</el-select>
</el-date-picker>
</el-form-item>
</el-form-item>
</div>
<el-form-item
label=
"销售"
prop=
"Contact"
>
<el-form-item
label=
"客户"
prop=
"CustomerIDs"
>
<el-select
filterable
v-model=
'addMsg.Contact'
class=
""
>
<el-select
v-model=
"addMsg.CustomerIDs"
multiple
filterable
remote
reserve-keyword
<el-option
v-for=
'item in EmployeeList'
:placeholder=
"$t('pub.PleaseKeyWords')"
:remote-method=
"getAllListBy"
class=
"heightauto "
>
:label=
'item.EmName'
<el-option
v-for=
"item in AllListBy"
:key=
"item.CustomerId"
:label=
"item.CustomerName"
:value=
'item.EmployeeId'
:value=
"item.CustomerId"
>
:key=
'item.EmployeeId'
>
<span
style=
"float: left"
>
{{
item
.
CustomerName
}}
</span>
</el-option>
<span
style=
"float: right; color: #8492a6; font-size: 13px"
>
{{
item
.
Contact
+
item
.
ContactNumber
}}
</span>
</el-select>
</el-option>
</el-form-item>
</el-select>
</div>
</el-form-item>
<el-form-item
label=
"客户"
prop=
"CustomerIDs"
>
<el-select
v-model=
"addMsg.CustomerIDs"
multiple
filterable
remote
reserve-keyword
:placeholder=
"$t('pub.PleaseKeyWords')"
:remote-method=
"getAllListBy"
class=
"heightauto "
>
<el-option
v-for=
"item in AllListBy"
:key=
"item.CustomerId"
:label=
"item.CustomerName"
:value=
"item.CustomerId"
>
<span
style=
"float: left"
>
{{
item
.
CustomerName
}}
</span>
<span
style=
"float: right; color: #8492a6; font-size: 13px"
>
{{
item
.
Contact
+
item
.
ContactNumber
}}
</span>
</el-option>
</el-select>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"dialogFormVisible=false, iniTAddMsg"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"dialogFormVisible=false, iniTAddMsg"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"UpdateDate('addMsg')"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"UpdateDate('addMsg')"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-pagination
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
background
layout=
"total,prev, pager, next, jumper"
:page-size=
'msg.pageSize'
:total=
'total'
>
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
'msg.pageSize'
:total=
'total'
>
</el-pagination>
</el-pagination>
<div
class=
"noDataNotice"
v-if=
"dataList.length
<1
"
>
<div
class=
"noDataNotice"
v-if=
"dataList.length
<1
"
>
<i
class=
"iconfont icon-kong"
></i>
<i
class=
"iconfont icon-kong"
></i>
<p>
{{
$t
(
"active.ld_noData"
)
}}
</p>
<p>
{{
$t
(
"active.ld_noData"
)
}}
</p>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
dataList
:
[],
dataList
:
[],
DiaoChaShow
:
false
,
DiaoChaShow
:
false
,
YouJiShow
:
false
,
YouJiShow
:
false
,
showID
:
0
,
showID
:
0
,
addType
:
1
,
addType
:
1
,
dialogTitle
:
''
,
dialogTitle
:
''
,
dialogFormVisible
:
false
,
dialogFormVisible
:
false
,
optionloading
:
false
,
optionloading
:
false
,
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
10
,
pageSize
:
10
,
AllianceName
:
''
,
AllianceName
:
''
,
Contact
:
''
,
Contact
:
''
,
},
},
addMsg
:
{
addMsg
:
{
StartYear
:
''
,
StartYear
:
''
,
EndYear
:
''
,
EndYear
:
''
,
AllianceName
:
''
,
AllianceName
:
''
,
Contact
:
''
,
Contact
:
''
,
CustomerIDs
:
[],
CustomerIDs
:
[],
ID
:
0
,
ID
:
0
,
},
},
currentPage
:
1
,
currentPage
:
1
,
total
:
0
,
total
:
0
,
AllListBy
:
[],
AllListBy
:
[],
employeeMsg
:
{
employeeMsg
:
{
GroupId
:
''
,
GroupId
:
''
,
BranchId
:
-
1
,
BranchId
:
-
1
,
DepartmentId
:
0
,
DepartmentId
:
0
,
PostId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
IsLeave
:
0
,
},
},
EmployeeList
:
[],
EmployeeList
:
[],
rules
:
{
rules
:
{
AllianceName
:
[
AllianceName
:
[{
{
required
:
true
,
message
:
'请输入联盟名称'
,
trigger
:
'blur'
},
required
:
true
,
],
message
:
'请输入联盟名称'
,
StartYear
:
[
trigger
:
'blur'
{
required
:
true
,
message
:
'请选择开始年份'
,
trigger
:
'change'
},
},
],
],
StartYear
:
[{
EndYear
:
[
required
:
true
,
{
required
:
true
,
message
:
'请选择结束年份'
,
trigger
:
'change'
},
message
:
'请选择开始年份'
,
],
trigger
:
'change'
Contact
:
[
},
],
{
required
:
true
,
message
:
'请选择销售'
,
trigger
:
'change'
},
EndYear
:
[{
],
required
:
true
,
CustomerIDs
:
[
message
:
'请选择结束年份'
,
{
type
:
'array'
,
required
:
true
,
message
:
'请至少选择一个客户'
,
trigger
:
'change'
},
trigger
:
'change'
],
},
],
}
Contact
:
[{
}
required
:
true
,
},
mounted
()
{
message
:
'请选择销售'
,
this
.
getList
();
trigger
:
'change'
let
userInfo
=
this
.
getLocalStorage
();
},
],
this
.
employeeMsg
.
GroupId
=
userInfo
.
RB_Group_id
;
//集团ID
CustomerIDs
:
[{
this
.
getEmployee
()
type
:
'array'
,
},
methods
:
{
required
:
true
,
jiesuan
:
function
(
ID
,
path
,
t
){
message
:
'请至少选择一个客户'
,
this
.
$router
.
push
({
trigger
:
'change'
name
:
path
,
},
],
query
:
{
id
:
ID
,
blank
:
"y"
,
tab
:
'大红包结算'
,
type
:
t
}
}
});
},
goCustomerList
:
function
(
ID
)
{
this
.
$router
.
push
({
name
:
'LianMengManagementList'
,
query
:
{
id
:
ID
,
blank
:
"y"
,
tab
:
'客户列表'
}
});
},
EndYearChange
:
function
()
{
let
Eyear
=
this
.
addMsg
.
EndYear
?
parseInt
(
this
.
addMsg
.
EndYear
)
:
0
let
Syear
=
this
.
addMsg
.
StartYear
?
parseInt
(
this
.
addMsg
.
StartYear
)
:
0
if
(
Eyear
<
Syear
)
{
this
.
addMsg
.
EndYear
=
''
this
.
$message
.
error
(
'结束时间必须大于开始时间!'
);
}
}
},
},
getList
:
function
()
{
mounted
()
{
this
.
loading
=
true
this
.
getList
();
this
.
apipost
(
'app_customer_GetAlliancePageList'
,
this
.
msg
,
res
=>
{
let
userInfo
=
this
.
getLocalStorage
();
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
employeeMsg
.
GroupId
=
userInfo
.
RB_Group_id
;
//集团ID
this
.
loading
=
false
;
this
.
getEmployee
()
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
},
null
)
},
addCustorm
:
function
(
obj
)
{
this
.
addMsg
.
StartYear
=
obj
.
StartYear
;
this
.
addMsg
.
EndYear
=
obj
.
EndYear
;
this
.
addMsg
.
AllianceName
=
obj
.
AllianceName
;
this
.
addMsg
.
Contact
=
obj
.
Contact
;
this
.
addMsg
.
ID
=
obj
.
ID
;
this
.
addType
=
2
;
this
.
dialogFormVisible
=
true
;
},
},
// 保存
methods
:
{
UpdateDate
:
function
(
formName
){
jiesuan
:
function
(
ID
,
path
,
t
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$router
.
push
({
if
(
valid
)
{
name
:
path
,
this
.
apipost
(
'app_customer_SetAlliance'
,
this
.
addMsg
,
res
=>
{
query
:
{
if
(
res
.
data
.
resultCode
===
1
)
{
id
:
ID
,
this
.
dialogFormVisible
=
false
;
blank
:
"y"
,
this
.
iniTAddMsg
();
tab
:
'大红包结算'
,
this
.
getList
();
type
:
t
this
.
$message
.
success
(
res
.
data
.
message
);
}
}
else
{
});
this
.
$message
.
error
(
res
.
data
.
message
);
},
}
goCustomerList
:
function
(
ID
)
{
},
null
)
this
.
$router
.
push
({
}
else
{
name
:
'LianMengManagementList'
,
return
false
;
query
:
{
id
:
ID
,
blank
:
"y"
,
tab
:
'客户列表'
}
});
},
EndYearChange
:
function
()
{
let
Eyear
=
this
.
addMsg
.
EndYear
?
parseInt
(
this
.
addMsg
.
EndYear
)
:
0
let
Syear
=
this
.
addMsg
.
StartYear
?
parseInt
(
this
.
addMsg
.
StartYear
)
:
0
if
(
Eyear
<
Syear
)
{
this
.
addMsg
.
EndYear
=
''
this
.
$message
.
error
(
'结束时间必须大于开始时间!'
);
}
}
});
},
},
getList
:
function
()
{
getAllListBy
:
function
(
query
)
{
this
.
loading
=
true
if
(
query
==
''
){
this
.
apipost
(
'app_customer_GetAlliancePageList'
,
this
.
msg
,
res
=>
{
this
.
AllListBy
=
[];
if
(
res
.
data
.
resultCode
===
1
)
{
return
this
.
loading
=
false
;
}
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
optionloading
=
true
this
.
total
=
res
.
data
.
data
.
count
;
this
.
apipost
(
'app_customer_GetAllListByGroupId'
,
{
CustomerName
:
query
},
res
=>
{
}
if
(
res
.
data
.
resultCode
===
1
)
{
},
null
)
this
.
optionloading
=
false
},
this
.
AllListBy
=
res
.
data
.
data
addCustorm
:
function
(
obj
)
{
this
.
addMsg
.
StartYear
=
obj
.
StartYear
;
this
.
addMsg
.
EndYear
=
obj
.
EndYear
;
this
.
addMsg
.
AllianceName
=
obj
.
AllianceName
;
this
.
addMsg
.
Contact
=
obj
.
Contact
;
this
.
addMsg
.
ID
=
obj
.
ID
;
this
.
addType
=
2
;
this
.
dialogFormVisible
=
true
;
},
// 保存
UpdateDate
:
function
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
apipost
(
'app_customer_SetAlliance'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dialogFormVisible
=
false
;
this
.
iniTAddMsg
();
this
.
getList
();
this
.
$message
.
success
(
res
.
data
.
message
);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
null
)
}
else
{
return
false
;
}
});
},
getAllListBy
:
function
(
query
)
{
if
(
query
==
''
)
{
this
.
AllListBy
=
[];
return
}
}
},
null
)
this
.
optionloading
=
true
},
this
.
apipost
(
'app_customer_GetAllListByGroupId'
,
{
iniTAddMsg
:
function
()
{
CustomerName
:
query
this
.
addMsg
=
{
},
res
=>
{
StartYear
:
''
,
if
(
res
.
data
.
resultCode
===
1
)
{
EndYear
:
''
,
this
.
optionloading
=
false
AllianceName
:
''
,
this
.
AllListBy
=
res
.
data
.
data
Contact
:
''
,
CustomerIDs
:
[],
ID
:
0
,
};
this
.
CustomerIDs
=
[];
this
.
resetForm
(
'addMsg'
);
},
handleCurrentChange
(
val
)
{
//翻页
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
resetPageIndex
(){
// 重置页码
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
},
closeChangeMachie
(
done
)
{
// 转交窗口关闭
done
();
this
.
iniTAddMsg
()
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
},
getEmployee
()
{
//员工
this
.
apipost
(
'admin_get_EmployeeGetList'
,
this
.
employeeMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
}
},
err
=>
{})
},
null
)
},
},
iniTAddMsg
:
function
()
{
this
.
addMsg
=
{
StartYear
:
''
,
EndYear
:
''
,
AllianceName
:
''
,
Contact
:
''
,
CustomerIDs
:
[],
ID
:
0
,
};
this
.
CustomerIDs
=
[];
this
.
resetForm
(
'addMsg'
);
},
handleCurrentChange
(
val
)
{
//翻页
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
resetPageIndex
()
{
// 重置页码
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
},
closeChangeMachie
(
done
)
{
// 转交窗口关闭
done
();
this
.
iniTAddMsg
()
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
},
getEmployee
()
{
//员工
this
.
apipost
(
'admin_get_EmployeeGetList'
,
this
.
employeeMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
}
}
}
}
</
script
>
</
script
>
src/components/administrative/Survey.vue
View file @
ddfc1c3c
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
<em>
发团时间
</em>
<em>
发团时间
</em>
</span>
</span>
<el-date-picker
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerDisabled"
size=
"small"
v-model=
"dateList"
<el-date-picker
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerDisabled"
size=
"small"
v-model=
"dateList"
type=
"daterange"
:range-separator=
"$t('OrderList.zhi')"
:start-placeholder=
"$t('OrderList.star')"
:end-placeholder=
"$t('OrderList.end')"
>
type=
"daterange"
:range-separator=
"$t('OrderList.zhi')"
:start-placeholder=
"$t('OrderList.star')"
:end-placeholder=
"$t('OrderList.end')"
>
</el-date-picker>
</el-date-picker>
</li>
</li>
<li>
<li>
...
...
src/components/administrative/VoucherInquiry.vue
View file @
ddfc1c3c
<
style
>
<
style
>
.height_auto.el-select
.el-input
{
.height_auto.el-select
.el-input
{
height
:
auto
;
height
:
auto
;
}
}
.CommodityType
._addUpload_box
{
display
:
block
;
.CommodityType
._addUpload_box
{
margin
:
10px
0
0
;
display
:
block
;
}
margin
:
10px
0
0
;
.CommodityType
._addUpload_box
img
{
}
height
:
15px
;
display
:
block
;
.CommodityType
._addUpload_box
img
{
margin-right
:
25px
;
height
:
15px
;
}
display
:
block
;
.CommodityType
._addUpload_box
>
div
.el-upload
{
margin-right
:
25px
;
float
:
left
;
}
width
:
138px
;
height
:
92px
;
.CommodityType
._addUpload_box
>
div
.el-upload
{
border
:
1px
dashed
rgba
(
210
,
210
,
210
,
1
);
float
:
left
;
border-radius
:
2px
;
width
:
138px
;
cursor
:
pointer
;
height
:
92px
;
margin-bottom
:
10px
;
border
:
1px
dashed
rgba
(
210
,
210
,
210
,
1
);
padding
:
5px
;
border-radius
:
2px
;
margin-right
:
10px
;
cursor
:
pointer
;
position
:
relative
;
margin-bottom
:
10px
;
}
padding
:
5px
;
.CommodityType
._addUpload_box
.icon-guanbi1
{
margin-right
:
10px
;
font-size
:
12px
;
position
:
relative
;
color
:
white
;
}
display
:
inline-block
;
margin-left
:
15px
;
.CommodityType
._addUpload_box
.icon-guanbi1
{
position
:
absolute
;
font-size
:
12px
;
left
:
9px
;
color
:
white
;
top
:
-5px
;
display
:
inline-block
;
background-color
:
#f56c6c
;
margin-left
:
15px
;
border-radius
:
50%
;
position
:
absolute
;
height
:
15px
;
left
:
9px
;
width
:
15px
;
top
:
-5px
;
text-align
:
center
;
background-color
:
#f56c6c
;
line-height
:
15px
;
border-radius
:
50%
;
}
height
:
15px
;
.CommodityType
._addUpload_box
>
div
:hover
{
width
:
15px
;
background-color
:
#f5f5f5
;
text-align
:
center
;
}
line-height
:
15px
;
.CommodityType
.el-upload-dragger
{
}
font-size
:
28px
;
color
:
#8c939d
;
.CommodityType
._addUpload_box
>
div
:hover
{
width
:
126px
;
background-color
:
#f5f5f5
;
height
:
80px
;
}
line-height
:
41px
;
text-align
:
center
;
.CommodityType
.el-upload-dragger
{
}
font-size
:
28px
;
.CommodityType
.bg_color_delete
{
color
:
#8c939d
;
background-color
:
#ee4454
;
width
:
126px
;
border-color
:
#ee4454
;
height
:
80px
;
}
line-height
:
41px
;
.comType_Img
{
text-align
:
center
;
max-height
:
50px
;
}
}
.CommodityType
.bg_color_delete
{
background-color
:
#ee4454
;
border-color
:
#ee4454
;
}
.comType_Img
{
max-height
:
50px
;
}
</
style
>
</
style
>
<
template
>
<
template
>
...
@@ -89,12 +98,8 @@
...
@@ -89,12 +98,8 @@
</li>
</li>
<li>
<li>
<input
type=
"button"
@
click=
"getList"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
>
<input
type=
"button"
@
click=
"getList"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
>
<input
<input
type=
"button"
@
click=
"outerVisible = true,dialogTitle='新增', addMsg.reqType = 'add',resetInfo()"
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
>
@
click=
"outerVisible = true,dialogTitle='新增', addMsg.reqType = 'add',resetInfo()"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -103,36 +108,30 @@
...
@@ -103,36 +108,30 @@
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<tr>
<th
width=
"600px"
>
问题名称
</th>
<th
width=
"600px"
>
问题名称
</th>
<th
width=
"600px"
>
所属问卷
</th>
<th>
类型
</th>
<th>
类型
</th>
<th>
排序
</th>
<th>
排序
</th>
<th>
是否显示
</th>
<th>
是否显示
</th>
<th
width=
"120px"
>
{{
$t
(
'hotel.table_operat'
)
}}
</th>
<th
width=
"120px"
>
{{
$t
(
'hotel.table_operat'
)
}}
</th>
</tr>
</tr>
<tr
v-for=
"
item in dataList
"
>
<tr
v-for=
"
(item,index) in dataList"
:key=
"index
"
>
<td>
{{
item
.
Title
}}
</td>
<td>
{{
item
.
Title
}}
</td>
<td>
{{
item
.
MainTitle
}}
</td>
<td>
{{
getTypeName
(
item
.
SurveyType
)
}}
</td>
<td>
{{
getTypeName
(
item
.
SurveyType
)
}}
</td>
<td>
<td>
{{
item
.
Sort
}}
{{
item
.
Sort
}}
</td>
</td>
<td>
<td>
{{
item
.
IsShow
===
1
?
'显示'
:
'不显示'
}}
{{
item
.
IsShow
===
1
?
'显示'
:
'不显示'
}}
</td>
</td>
<td>
<td>
<el-tooltip
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('active.ld_editInfo')"
placement=
"top"
>
class=
"item"
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
effect=
"dark"
@
click=
"outerVisible=true,dialogTitle='修改',updateData(item)"
></el-button>
:content=
"$t('active.ld_editInfo')"
placement=
"top"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"outerVisible=true,dialogTitle='修改',updateData(item)"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top"
>
<el-button
type=
"primary"
class=
"bg_color_delete"
icon=
"el-icon-delete"
circle
@
click=
"Delete(item)"
></el-button>
<el-button
type=
"primary"
class=
"bg_color_delete"
icon=
"el-icon-delete"
circle
@
click=
"Delete(item)"
>
</el-button>
</el-tooltip>
</el-tooltip>
</td>
</td>
</tr>
</tr>
...
@@ -141,18 +140,14 @@
...
@@ -141,18 +140,14 @@
<i
class=
"iconfont icon-kong"
></i>
<i
class=
"iconfont icon-kong"
></i>
<p>
{{
$t
(
"active.ld_noData"
)
}}
</p>
<p>
{{
$t
(
"active.ld_noData"
)
}}
</p>
</div>
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
</el-pagination>
:page-size=
"msg.pageSize"
:total=
"total"
>
<el-dialog
</el-pagination>
custom-class=
"w400"
<el-dialog
custom-class=
"w400"
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
:title=
"dialogTitle"
:before-close=
"closeChangeMachie"
>
:visible
.
sync=
"outerVisible"
center
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"130px"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"130px"
>
<el-form-item
label=
"问题名称"
prop=
"Title"
>
<el-form-item
label=
"问题名称"
prop=
"Title"
>
<el-input
v-model=
"addMsg.Title"
class=
"w217"
/>
<el-input
v-model=
"addMsg.Title"
class=
"w217"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"问题类型"
prop=
"SurveyType"
>
<el-form-item
label=
"问题类型"
prop=
"SurveyType"
>
<el-select
filterable
v-model=
"addMsg.SurveyType"
@
change=
"changeType(addMsg.SurveyType)"
>
<el-select
filterable
v-model=
"addMsg.SurveyType"
@
change=
"changeType(addMsg.SurveyType)"
>
...
@@ -163,248 +158,250 @@
...
@@ -163,248 +158,250 @@
<el-radio
v-model=
"addMsg.IsShow"
:label=
"1"
>
显示
</el-radio>
<el-radio
v-model=
"addMsg.IsShow"
:label=
"1"
>
显示
</el-radio>
<el-radio
v-model=
"addMsg.IsShow"
:label=
"0"
>
不显示
</el-radio>
<el-radio
v-model=
"addMsg.IsShow"
:label=
"0"
>
不显示
</el-radio>
</el-form-item>
</el-form-item>
<el-form-item
label=
"排序"
prop=
"Sort"
>
<el-form-item
label=
"
题目
排序"
prop=
"Sort"
>
<el-input
v-model=
"addMsg.Sort"
class=
"w217"
/>
<el-input
v-model=
"addMsg.Sort"
class=
"w217"
/>
</el-form-item>
</el-form-item>
<template>
<template>
<div
v-if=
"addMsg.SurveyType === '2' || addMsg.SurveyType === '3'"
>
<div
v-if=
"addMsg.SurveyType === '2' || addMsg.SurveyType === '3'"
>
<template
v-for=
"(item, index) in addMsg.SurveyOptionsList"
>
<template
v-for=
"(item, index) in addMsg.SurveyOptionsList"
>
<el-form-item
:label=
"`选项$
{index+1}`" >
<el-form-item
:label=
"`选项$
{index+1}`"
:key="`x_`+index"
>
<el-input
v-model=
"item.OptionsName"
class=
"w217"
>
<el-input
v-model=
"item.OptionsName"
class=
"w217"
>
<el-button
@
click=
"deleItem(index)"
slot=
"append"
icon=
"el-icon-delete"
></el-button>
<el-button
@
click=
"deleItem(index)"
slot=
"append"
icon=
"el-icon-delete"
></el-button>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
排序"
>
<el-form-item
label=
"
选项排序"
:key=
"`p_`+index"
>
<el-input
v-model=
"item.Sort"
class=
"w217"
/>
<el-input
v-model=
"item.Sort"
class=
"w217"
/>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<span
@
click=
"addList()"
>
增加
</span>
<span
@
click=
"addList()"
style=
"color:blue;cursor:pointer;"
>
增加
</span>
</el-form-item>
</el-form-item>
</div>
</div>
</template>
</template>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
<button
class=
"hollowFixedBtn"
class=
"hollowFixedBtn"
@
click=
"outerVisible = false, resetForm('addMsg')"
>
{{$t('pub.cancelBtn')}}
</button>
@
click=
"outerVisible = false, resetForm('addMsg')"
>
{{$t('pub.cancelBtn')}}
</button>
<button
class=
"normalBtn"
@
click=
"submitForm('addMsg')"
>
{{$t('pub.saveBtn')}}
</button>
<button
class=
"normalBtn"
@
click=
"submitForm('addMsg')"
>
{{$t('pub.saveBtn')}}
</button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
//请求
//请求
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
15
,
pageSize
:
15
,
IsShow
:
-
1
,
IsShow
:
-
1
,
SurveyType
:
-
1
,
SurveyType
:
-
1
,
Title
:
''
Title
:
''
,
},
MainId
:
0
,
addMsg
:
{
},
Title
:
""
,
addMsg
:
{
SurveyType
:
'1'
,
MainId
:
0
,
IsShow
:
1
,
Title
:
""
,
Sort
:
0
,
SurveyType
:
'1'
,
SurveyOptionsList
:
[
IsShow
:
1
,
{
Sort
:
0
,
SurveyOptionsList
:
[{
OptionsName
:
''
,
OptionsName
:
''
,
Sort
:
0
,
Sort
:
0
,
ID
:
0
,
ID
:
0
,
}
}]
]
},
},
total
:
0
,
total
:
0
,
rules
:
{
rules
:
{
Title
:
[{
Title
:
[
required
:
true
,
{
required
:
true
,
message
:
"请输入名称"
,
trigger
:
"blur"
}
message
:
"请输入名称"
,
],
trigger
:
"blur"
Sort
:
[
}],
{
required
:
true
,
message
:
"请输入排序"
,
trigger
:
"blur"
}
Sort
:
[{
]
required
:
true
,
},
message
:
"请输入排序"
,
loading
:
false
,
trigger
:
"blur"
outerVisible
:
false
,
}]
dialogTitle
:
""
,
},
dataList
:
[],
loading
:
false
,
TypeList
:
[],
outerVisible
:
false
,
};
dialogTitle
:
""
,
},
dataList
:
[],
mounted
()
{
TypeList
:
[],
this
.
getList
();
};
this
.
getTypeList
();
},
},
created
()
{
filters
:
{},
if
(
this
.
$route
.
query
.
MainId
&&
this
.
$route
.
query
.
MainId
>
0
)
{
this
.
msg
.
MainId
=
this
.
$route
.
query
.
MainId
;
methods
:
{
this
.
addMsg
.
MainId
=
this
.
$route
.
query
.
MainId
;
// 获取类型名称
getTypeName
:
function
(
type
)
{
if
(
type
===
1
)
{
return
'打分'
}
else
if
(
type
===
2
)
{
return
'单选'
}
else
if
(
type
===
3
)
{
return
'多选'
}
else
if
(
type
===
4
)
{
return
'输入'
}
}
},
},
// 切换类型
mounted
()
{
changeType
:
function
(
i
)
{
this
.
getList
();
if
(
i
===
'1'
||
i
===
'4'
)
{
this
.
getTypeList
();
this
.
addMsg
.
SurveyOptionsList
=
[
},
{
filters
:
{},
methods
:
{
// 获取类型名称
getTypeName
:
function
(
type
)
{
if
(
type
===
1
)
{
return
'打分'
}
else
if
(
type
===
2
)
{
return
'单选'
}
else
if
(
type
===
3
)
{
return
'多选'
}
else
if
(
type
===
4
)
{
return
'输入'
}
},
// 切换类型
changeType
:
function
(
i
)
{
if
(
i
===
'1'
||
i
===
'4'
)
{
this
.
addMsg
.
SurveyOptionsList
=
[{
OptionsName
:
''
,
OptionsName
:
''
,
Sort
:
0
,
Sort
:
0
,
ID
:
0
,
ID
:
0
,
}
}]
]
}
},
// 删除选项
deleItem
:
function
(
i
)
{
if
(
this
.
addMsg
.
SurveyOptionsList
.
length
)
{
this
.
addMsg
.
SurveyOptionsList
.
splice
(
i
,
1
)
}
},
// 新增选项
addList
:
function
()
{
this
.
addMsg
.
SurveyOptionsList
.
push
({
OptionsName
:
''
,
ID
:
0
,
})
},
getTypeList
:
function
()
{
this
.
apipost
(
'survey_post_GetSurveyTypeEnumList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
TypeList
=
res
.
data
.
data
}
}
},
null
)
},
},
// 删除选项
// 删除
deleItem
:
function
(
i
)
{
Delete
(
item
)
{
if
(
this
.
addMsg
.
SurveyOptionsList
.
length
)
{
this
.
$confirm
(
"是否删除? 删除后不可恢复"
,
this
.
$t
(
'tips.tips'
),
{
this
.
addMsg
.
SurveyOptionsList
.
splice
(
i
,
1
)
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
type
:
"warning"
})
.
then
(()
=>
{
this
.
apipost
(
"survey_post_DelSurvey"
,
{
SurveyID
:
item
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
})
.
catch
(()
=>
{});
},
//获取数据
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"survey_post_GetPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
//提交
submitForm
(
addMsg
)
{
//提交创建、修改表单
this
.
$refs
[
addMsg
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
addAward
();
}
else
{
return
false
;
}
}
});
},
},
// 新增选项
//提交添加
addList
:
function
()
{
addAward
()
{
this
.
addMsg
.
SurveyOptionsList
.
push
({
this
.
apipost
(
OptionsName
:
''
,
"survey_post_SetSurvey"
,
ID
:
0
,
this
.
addMsg
,
})
res
=>
{
},
getTypeList
:
function
()
{
this
.
apipost
(
'survey_post_GetSurveyTypeEnumList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
TypeList
=
res
.
data
.
data
this
.
outerVisible
=
false
;
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
}
},
},
null
)
null
},
);
// 删除
},
Delete
(
item
)
{
//修改信息
this
.
$confirm
(
"是否删除? 删除后不可恢复"
,
this
.
$t
(
'tips.tips'
),
{
updateData
(
item
)
{
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
this
.
outerVisible
=
true
;
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
this
.
apipost
(
type
:
"warning"
"survey_post_GetSurvey"
,
})
{
SurveyID
:
item
.
ID
},
.
then
(()
=>
{
res
=>
{
this
.
apipost
(
if
(
res
.
data
.
resultCode
===
1
)
{
"survey_post_DelSurvey"
,
{
let
data
=
res
.
data
.
data
SurveyID
:
item
.
ID
data
.
SurveyType
=
''
+
data
.
SurveyType
},
this
.
addMsg
=
data
res
=>
{
this
.
getList
();
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
})
.
catch
(()
=>
{});
},
//获取数据
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"survey_post_GetPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
//提交
submitForm
(
addMsg
)
{
//提交创建、修改表单
this
.
$refs
[
addMsg
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
addAward
();
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
)
;
return
false
;
}
}
},
});
null
},
);
//提交添加
},
addAward
()
{
//重置信息
this
.
apipost
(
resetInfo
()
{
"survey_post_SetSurvey"
,
var
newMsg
=
{
this
.
addMsg
,
Title
:
""
,
res
=>
{
SurveyType
:
"1"
,
if
(
res
.
data
.
resultCode
===
1
)
{
IsShow
:
1
,
this
.
Success
(
res
.
data
.
message
);
Sort
:
0
,
this
.
outerVisible
=
false
;
SurveyOptionsList
:
[
this
.
getList
();
{
}
else
{
OptionsName
:
''
,
this
.
Error
(
res
.
data
.
message
);
Sort
:
0
,
}
ID
:
0
,
},
}
null
]
);
};
},
this
.
addMsg
=
newMsg
;
//修改信息
},
updateData
(
item
)
{
closeChangeMachie
(
done
)
{
this
.
outerVisible
=
true
;
//弹出框关闭初始化弹框内表单
this
.
apipost
(
done
();
"survey_post_GetSurvey"
,
{
this
.
resetForm
(
"addMsg"
);
SurveyID
:
item
.
ID
},
},
resetForm
(
formName
)
{
res
=>
{
this
.
$refs
[
formName
].
resetFields
();
if
(
res
.
data
.
resultCode
===
1
)
{
},
let
data
=
res
.
data
.
data
handleCurrentChange
(
val
){
data
.
SurveyType
=
''
+
data
.
SurveyType
this
.
msg
.
pageIndex
=
val
;
this
.
addMsg
=
data
this
.
getList
();
this
.
getList
();
},
}
else
{
}
this
.
Error
(
res
.
data
.
message
);
};
}
</
script
>
},
\ No newline at end of file
null
);
},
//重置信息
resetInfo
()
{
this
.
addMsg
.
Title
=
""
;
this
.
addMsg
.
SurveyType
=
""
;
this
.
addMsg
.
IsShow
=
1
;
this
.
addMsg
.
Sort
=
0
;
this
.
addMsg
.
SurveyOptionsList
=
[{
OptionsName
:
''
,
Sort
:
0
,
ID
:
0
,
}];
},
closeChangeMachie
(
done
)
{
//弹出框关闭初始化弹框内表单
done
();
this
.
resetForm
(
"addMsg"
);
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
}
};
</
script
>
src/components/guestSign.vue
0 → 100644
View file @
ddfc1c3c
<
style
scoped
>
.guestSign
{
font-size
:
40px
;
margin-top
:
10px
;
margin-bottom
:
10px
;
}
/* 自定义评分组件的样式 */
.guestSign
.custom-rate
.el-rate__item
{
font-size
:
38px
;
/* 调整星星的大小 */
}
/
deep
/
.guestSign
.custom-rate
.el-rate__icon
{
font-size
:
60px
;
}
/
deep
/
.guestSign
.custom-rate
.el-rate__text
{
font-size
:
60px
;
}
</
style
>
<
template
>
<div
class=
"guestSign"
>
<span>
感谢
{{
qMsg
.
SurName
}}
{{
qMsg
.
Sex
==
1
?
"先生"
:
"女士"
}}
参与意见调查
</span>
<span>
领队:王 ,导游:张
</span>
<span>
团期:2022.01.01-2024.08.01
</span>
<template
v-for=
"(item,index) in dataList "
>
<span
:key=
"`t_`+index"
>
{{
index
+
1
}}
、
{{
item
.
Title
}}
</span>
<template
v-if=
"item.SurveyType === 1"
>
<el-rate
:key=
"`s_`+index"
v-model=
"item.ScoreNum"
show-text
:texts=
"texts"
class=
"custom-rate"
>
</el-rate>
</
template
>
<
template
v-if=
"item.SurveyType === 2"
>
<el-radio-group
v-model=
"item.ScoreNum"
:key=
"`ss_`+index"
>
<el-radio
v-for=
"(radio, rIndex) in item.SurveyOptionsList"
:label=
"radio.ID"
:key=
"rIndex"
>
{{
radio
.
OptionsName
}}
</el-radio>
</el-radio-group>
</
template
>
<
template
v-if=
"item.SurveyType === 3"
>
<el-checkbox-group
v-model=
"item.SurveyOptionsList"
:key=
"`sss_`+index"
>
<el-checkbox
v-for=
"(radio, rIndex) in item.SurveyOptionsList"
:label=
"radio.ID"
:key=
"rIndex"
>
{{
radio
.
OptionsName
}}
</el-checkbox>
</el-checkbox-group>
</
template
>
<
template
v-if=
"item.SurveyType === 4"
>
<el-input
:key=
"`ssss_`+index"
type=
"textarea"
:rows=
"2"
:placeholder=
"$t('fnc.qsrneirong')"
v-model=
"item.TextContent"
>
</el-input>
</
template
>
</template>
<el-button
type=
"primary"
>
提交
</el-button>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
qMsg
:
{
TCID
:
21633
,
GuestId
:
0
,
SurName
:
""
,
//中文姓
Sex
:
0
,
//性别 1-男 2-女
},
dataList
:
[],
};
},
created
()
{
if
(
this
.
$route
.
query
.
TCID
)
{
this
.
qMsg
.
TCID
=
this
.
$route
.
query
.
TCID
;
}
if
(
this
.
$route
.
query
.
GuestId
)
{
this
.
qMsg
.
GuestId
=
this
.
$route
.
query
.
GuestId
;
}
if
(
this
.
$route
.
query
.
SurName
)
{
this
.
qMsg
.
SurName
=
this
.
$route
.
query
.
SurName
;
}
if
(
this
.
$route
.
query
.
Sex
)
{
this
.
qMsg
.
Sex
=
this
.
$route
.
query
.
Sex
;
}
},
mounted
()
{
this
.
GetSurveyShowList
();
},
methods
:
{
GetSurveyShowList
:
function
()
{
let
data
=
{
IsShow
:
1
,
SurveyType
:
-
1
}
this
.
apipost
(
'survey_post_GetSurveyShowList'
,
data
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
data
=
res
.
data
.
data
data
.
map
(
item
=>
{
if
(
item
.
SurveyType
===
2
)
{
item
.
SurveyOptionsList
.
map
((
cItem
,
cIndex
)
=>
{
cItem
.
IsCheckS
=
false
})
}
if
(
item
.
SurveyType
===
3
)
{
item
.
SurveyOptionsList
.
map
((
cItem
,
cIndex
)
=>
{
cItem
.
IsCheckS
=
false
})
}
if
(
item
.
SurveyType
===
1
)
{
item
.
ScoreNum
=
5
;
}
})
this
.
dataList
=
data
;
}
},
null
)
},
}
}
</
script
>
src/components/guestlogin.vue
0 → 100644
View file @
ddfc1c3c
<
style
>
</
style
>
<
template
>
<div>
<input
type=
"button"
value=
"手机号验证"
style=
"width:95%;height:200px;"
@
click=
"changeLoginType(1)"
/>
<br
/>
<input
type=
"button"
value=
"护照号验证"
style=
"width:95%;height:200px;"
@
click=
"changeLoginType(2)"
/>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
activeName
:
'first'
,
postMsg
:
{
type
:
1
,
//1-手机号码验证登录,2-护照号码验证登录
//E75385750 13970261014
guestMobile
:
"13970261014"
,
//1-为手机号码,2-护照号码
TCID
:
21633
},
qMsg
:
{
TCID
:
21633
,
GuestId
:
0
,
SurName
:
""
,
//中文姓
Sex
:
0
,
//性别 1-男 2-女
}
};
},
created
()
{
if
(
this
.
$route
.
query
.
TCID
)
{
this
.
postMsg
.
TCID
=
this
.
$route
.
query
.
TCID
;
this
.
qMsg
.
TCID
=
this
.
$route
.
query
.
TCID
;
}
},
mounted
()
{
this
.
guestLogin
();
},
methods
:
{
changeLoginType
(
type
)
{
this
.
postMsg
.
type
=
type
;
},
guestLogin
()
{
this
.
apipost
(
"miniProgram_price_GetGuestByPhone_V2"
,
this
.
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
.
data
;
console
.
log
(
tempData
);
this
.
qMsg
.
GuestId
=
tempData
[
0
].
Id
;
this
.
qMsg
.
SurName
=
tempData
[
0
].
SurName
;
this
.
qMsg
.
Sex
=
tempData
[
0
].
Sex
;
this
.
$router
.
push
({
name
:
"guestSign"
,
query
:
{
TCID
:
this
.
qMsg
.
TCID
,
GuestId
:
this
.
qMsg
.
GuestId
,
SurName
:
this
.
qMsg
.
SurName
,
Sex
:
this
.
qMsg
.
Sex
,
}
})
}
},
err
=>
{}
);
}
}
}
</
script
>
src/components/public/YearLimit.vue
View file @
ddfc1c3c
...
@@ -57,7 +57,6 @@
...
@@ -57,7 +57,6 @@
this
.
isQueryHistoryData
=
true
;
this
.
isQueryHistoryData
=
true
;
}
}
});
});
},
},
}
}
}
}
...
...
src/plug/index.js
View file @
ddfc1c3c
...
@@ -123,7 +123,7 @@ export default {
...
@@ -123,7 +123,7 @@ export default {
let
isOnline
=
0
;
//0-本地测试,1-线上
let
isOnline
=
0
;
//0-本地测试,1-线上
let
ocrUrl
=
"http://192.168.5.46:8888"
;
let
ocrUrl
=
"http://192.168.5.46:8888"
;
domainUrl
=
"http://192.168.5.46"
;
domainUrl
=
"http://192.168.5.46"
;
domainUrl
=
"http://192.168.5.39:8083"
;
//
domainUrl = "http://192.168.5.39:8083";
let
crmLocalFileStreamDownLoadUrl
=
""
;
let
crmLocalFileStreamDownLoadUrl
=
""
;
crmLocalFileStreamDownLoadUrl
=
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://crm.oytour.com"
:
"http://testcrm.oytour.com"
;
crmLocalFileStreamDownLoadUrl
=
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://crm.oytour.com"
:
"http://testcrm.oytour.com"
;
let
javaUrldo
=
""
;
let
javaUrldo
=
""
;
...
@@ -291,7 +291,7 @@ export default {
...
@@ -291,7 +291,7 @@ export default {
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
&&
this
.
$route
.
name
.
indexOf
(
'clientDisclaimerProtocol'
)
===
-
1
this
.
$route
.
name
.
indexOf
(
'clientDisclaimerProtocol'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'guestLogin'
)
===
-
1
)
{
)
{
let
previousPathInfo
=
{
let
previousPathInfo
=
{
path
:
this
.
$route
.
name
,
path
:
this
.
$route
.
name
,
...
@@ -374,6 +374,14 @@ export default {
...
@@ -374,6 +374,14 @@ export default {
Id
:
Id
Id
:
Id
}
}
})
})
}
else
if
(
this
.
$route
.
path
==
"/guestLogin"
)
{
let
TCID
=
this
.
$route
.
query
.
TCID
;
this
.
$router
.
push
({
name
:
"guestLogin"
,
query
:
{
TCID
:
TCID
}
})
}
else
{
}
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
);
...
@@ -672,9 +680,20 @@ export default {
...
@@ -672,9 +680,20 @@ export default {
}
}
successCall
(
res
);
successCall
(
res
);
}
else
{
}
else
{
this
.
apipost
(
"userauth_get_GetCheckUserAuthService"
,
{
if
(
authCode
!=
this
.
$AuthCode
.
isQueryHistoryData
)
{
actionMenuCode
:
authCode
this
.
apipost
(
"userauth_get_GetCheckUserAuthService"
,
{
},
successCall
,
faildCall
);
actionMenuCode
:
authCode
},
successCall
,
faildCall
);
}
else
{
var
data
=
{
resultCode
:
1
,
data
:
0
,
};
var
res
=
{
data
:
data
}
successCall
(
res
);
}
}
}
},
},
//供应商版请求接口方法
//供应商版请求接口方法
...
@@ -1931,8 +1950,8 @@ export default {
...
@@ -1931,8 +1950,8 @@ export default {
}
}
Vue
.
prototype
.
TourDateRestrictions
=
function
(
date1
,
date2
)
{
Vue
.
prototype
.
TourDateRestrictions
=
function
(
date1
,
date2
)
{
var
endDate
=
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
var
endDate
=
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
var
data_1
=
Date
.
parse
(
date1
?
date1
:
'2021-12-31'
);
var
data_1
=
Date
.
parse
(
date1
?
date1
:
'2021-12-31'
);
var
data_2
=
Date
.
parse
(
date2
?
date2
:
endDate
);
var
data_2
=
Date
.
parse
(
date2
?
date2
:
endDate
);
var
dateNum
=
Math
.
abs
(
data_2
-
data_1
);
var
dateNum
=
Math
.
abs
(
data_2
-
data_1
);
var
days
=
Math
.
floor
(
dateNum
/
(
24
*
3600
*
1000
));
var
days
=
Math
.
floor
(
dateNum
/
(
24
*
3600
*
1000
));
let
endTime
=
new
Date
(
this
.
getBeforeDate
(
days
,
new
Date
().
Format
(
"yyyy-MM-dd"
)));
let
endTime
=
new
Date
(
this
.
getBeforeDate
(
days
,
new
Date
().
Format
(
"yyyy-MM-dd"
)));
...
...
src/router/config.js
View file @
ddfc1c3c
...
@@ -508,6 +508,14 @@ export default {
...
@@ -508,6 +508,14 @@ export default {
title
:
'公告管理'
title
:
'公告管理'
},
},
},
},
{
path
:
'/SurveyManager'
,
//问卷管理
name
:
'SurveyManager'
,
component
:
resolve
=>
require
([
'@/components/administrative/SurveyManager'
],
resolve
),
meta
:
{
title
:
'问券调查'
},
},
{
{
path
:
'/VoucherInquiry'
,
//问券调查
path
:
'/VoucherInquiry'
,
//问券调查
name
:
'VoucherInquiry'
,
name
:
'VoucherInquiry'
,
...
@@ -6410,5 +6418,21 @@ export default {
...
@@ -6410,5 +6418,21 @@ export default {
title
:
'财务批量打印页面'
title
:
'财务批量打印页面'
},
},
},
},
{
path
:
'/guestlogin'
,
//意见调查表登录
name
:
'guestlogin'
,
component
:
resolve
=>
require
([
'@/components/guestlogin'
],
resolve
),
meta
:
{
title
:
'意见调查表登录'
},
},
{
path
:
'/guestSign'
,
//意见调查表填写
name
:
'guestSign'
,
component
:
resolve
=>
require
([
'@/components/guestSign'
],
resolve
),
meta
:
{
title
:
'意见调查表填写'
},
},
]
]
}
}
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