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
c4c6afb5
Commit
c4c6afb5
authored
Oct 12, 2024
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
销售日期
parents
a2016478
98d4e700
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
207 additions
and
117 deletions
+207
-117
investigationList.vue
src/components/SalesModule/investigationList.vue
+0
-1
guestSign.vue
src/components/guestSign.vue
+153
-31
guestlogin.vue
src/components/guestlogin.vue
+3
-0
TravelFeature.vue
...nts/newTravelmanager/TravelGroupControl/TravelFeature.vue
+15
-30
DateLimit.vue
src/components/public/DateLimit.vue
+5
-13
StartDateLimit.vue
src/components/public/StartDateLimit.vue
+0
-2
index.js
src/plug/index.js
+15
-24
config.js
src/router/config.js
+16
-16
No files found.
src/components/SalesModule/investigationList.vue
View file @
c4c6afb5
...
...
@@ -103,7 +103,6 @@
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
;
console
.
log
(
"this.dataList"
,
this
.
dataList
);
}
},
null
)
}
...
...
src/components/guestSign.vue
View file @
c4c6afb5
...
...
@@ -3,6 +3,9 @@
font-size
:
40px
;
margin-top
:
10px
;
margin-bottom
:
10px
;
width
:
95%
;
margin
:
0
auto
;
overflow-y
:
scroll
;
}
/* 自定义评分组件的样式 */
...
...
@@ -16,7 +19,46 @@
}
/
deep
/
.guestSign
.custom-rate
.el-rate__text
{
font-size
:
60px
;
font-size
:
38px
;
}
/
deep
/
.guestSign
.el-textarea
.el-textarea__inner
{
font-size
:
36px
;
min-height
:
200px
;
}
/
deep
/
.guestSign
.el-radio-group
.el-radio__label
{
font-size
:
36px
;
}
/
deep
/
.guestSign
.el-radio-group
.el-radio__input
{
line-height
:
3
;
}
/
deep
/
.guestSign
.el-radio-group
.el-radio__inner
{
width
:
40px
;
height
:
40px
;
line-height
:
40px
;
}
/
deep
/
.guestSign
.el-checkbox-group
.el-checkbox__inner
{
width
:
40px
;
height
:
40px
;
line-height
:
40px
;
}
/
deep
/
.guestSign
.el-checkbox-group
.el-checkbox__input
{
line-height
:
3
;
}
/* 调整checkbox的选择框大小 */
/
deep
/
.guestSign
.el-checkbox-group
.el-checkbox__inner
::after
{
width
:
40px
;
height
:
40px
;
}
/
deep
/
.guestSign
.el-checkbox-group
.el-checkbox__label
{
font-size
:
36px
;
}
</
style
>
...
...
@@ -24,34 +66,62 @@
<
template
>
<div
class=
"guestSign"
>
<span>
感谢
{{
qMsg
.
SurName
}}
{{
qMsg
.
Sex
==
1
?
"先生"
:
"女士"
}}
参与意见调查
</span>
<span>
领队:王 ,导游:张
</span>
<span>
团期:2022.01.01-2024.08.01
</span>
<el-row>
<el-col
:span=
"24"
style=
"text-align:center;margin-top:10px;"
>
<span
style=
"font-weight:bold;"
>
感谢
{{
qMsg
.
SurName
}}{{
qMsg
.
Sex
==
1
?
"先生"
:
"女士"
}}
参与意见调查
</span>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
领队:
<template
v-if=
"priceInfo&&priceInfo.LeaderName&&priceInfo.LeaderName!=''"
>
{{
priceInfo
.
LeaderName
}}
</
template
>
</el-col>
<el-col
:span=
"12"
>
导游:
<
template
v-if=
"priceInfo&&priceInfo.GuideName&&priceInfo.GuideName!=''"
>
{{
priceInfo
.
GuideName
}}
</
template
></el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<span>
团期:
<
template
v-if=
"priceInfo&&priceInfo.StartDateStr&&priceInfo.StartDateStr!=''"
>
{{
priceInfo
.
StartDateStr
}}
</
template
>
<
template
v-if=
"priceInfo&&priceInfo.EndDateStr&&priceInfo.EndDateStr!=''"
>
-
{{
priceInfo
.
EndDateStr
}}
</
template
></span>
</el-col>
</el-row>
<
template
v-for=
"(item,index) in dataList "
>
<span
:key=
"`t_`+index"
>
{{
index
+
1
}}
、
{{
item
.
Title
}}
</span>
<el-row
:key=
"`t_`+index"
>
<el-col
:span=
"24"
>
<span>
{{
index
+
1
}}
、
{{
item
.
Title
}}
</span>
</el-col>
</el-row>
<el-row
:key=
"`s_`+index"
>
<el-col
:span=
"24"
style=
"min-height:100px;margin-top:10px;margin-bottom:10px;"
>
<template
v-if=
"item.SurveyType === 1"
>
<el-rate
:key=
"`s_`+index"
v-model=
"item.ScoreNum"
show-text
:texts=
"texts"
class=
"custom-rate"
>
<el-rate
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-group
v-model=
"item.ScoreNum
"
>
<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-group
v-model=
"item.SurveyOptionsList
"
>
<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
type=
"textarea"
:rows=
"2"
:placeholder=
"$t('fnc.qsrneirong')"
v-model=
"item.TextContent"
>
</el-input>
</
template
>
</el-col>
</el-row>
</template>
<el-button
type=
"primary"
>
提交
</el-button>
<el-row
style=
"margin-bottom:100px;"
>
<el-col
:span=
"24"
style=
"text-align:center;"
>
<el-button
type=
"primary"
style=
"width:50%;height:80px;font-size:36px;"
@
click=
"saveGuestSurvey"
:loading=
"saveLoading"
>
提交
</el-button>
</el-col>
</el-row>
</div>
</template>
...
...
@@ -61,12 +131,22 @@
data
()
{
return
{
qMsg
:
{
TCID
:
21633
,
TCID
:
0
,
GuestId
:
0
,
SurName
:
""
,
//中文姓
Sex
:
0
,
//性别 1-男 2-女
OrderId
:
0
,
},
dataList
:
[],
priceInfo
:
{},
texts
:
[
'非常不满意'
,
'不满意'
,
'感觉一般'
,
'满意'
,
'非常满意'
],
saveLoading
:
false
,
};
},
created
()
{
...
...
@@ -82,12 +162,25 @@
if
(
this
.
$route
.
query
.
Sex
)
{
this
.
qMsg
.
Sex
=
this
.
$route
.
query
.
Sex
;
}
if
(
this
.
$route
.
query
.
OrderId
)
{
this
.
qMsg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
}
},
mounted
()
{
this
.
getPriceInfo
();
this
.
GetSurveyShowList
();
},
methods
:
{
getPriceInfo
()
{
this
.
apipost
(
'miniProgram_post_GetBasePrice'
,
{
tcid
:
this
.
qMsg
.
TCID
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
data
=
res
.
data
.
data
this
.
priceInfo
=
data
;
}
},
null
)
},
GetSurveyShowList
:
function
()
{
let
data
=
{
IsShow
:
1
,
...
...
@@ -112,11 +205,40 @@
}
})
this
.
dataList
=
data
;
console
.
log
(
"this.dataList1"
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
dataList
)))
}
},
null
)
},
//提交意见调查
saveGuestSurvey
()
{
//this.saveLoading = true;
var
postMsg
=
[];
console
.
log
(
"this.dataList2"
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
dataList
)))
if
(
this
.
dataList
&&
this
.
dataList
.
length
>
0
)
{
this
.
dataList
.
forEach
(
item
=>
{
item
.
GuestId
=
this
.
qMsg
.
GuestId
;
item
.
TCID
=
this
.
qMsg
.
TCID
;
item
.
OrderID
=
this
.
qMsg
.
OrderId
;
if
(
item
.
SurveyType
===
2
||
item
.
SurveyType
===
3
)
{
item
.
SurveyOptionsList
.
forEach
(
y
=>
{
if
(
item
.
ScoreNum
==
y
.
ID
)
{
y
.
IsCheck
=
"1"
;
}
})
item
.
ScoreNum
=
0
;
}
postMsg
.
push
(
item
);
})
}
this
.
apipost
(
"survey_post_SetGuestSurvey"
,
postMsg
,
res
=>
{
this
.
saveLoading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
});
}
}
}
...
...
src/components/guestlogin.vue
View file @
c4c6afb5
...
...
@@ -29,6 +29,7 @@
GuestId
:
0
,
SurName
:
""
,
//中文姓
Sex
:
0
,
//性别 1-男 2-女
OrderId
:
0
}
};
},
...
...
@@ -55,6 +56,7 @@
this
.
qMsg
.
GuestId
=
tempData
[
0
].
Id
;
this
.
qMsg
.
SurName
=
tempData
[
0
].
SurName
;
this
.
qMsg
.
Sex
=
tempData
[
0
].
Sex
;
this
.
qMsg
.
OrderId
=
tempData
[
0
].
OrderId
;
this
.
$router
.
push
({
name
:
"guestSign"
,
query
:
{
...
...
@@ -62,6 +64,7 @@
GuestId
:
this
.
qMsg
.
GuestId
,
SurName
:
this
.
qMsg
.
SurName
,
Sex
:
this
.
qMsg
.
Sex
,
OrderId
:
this
.
qMsg
.
OrderId
}
})
}
...
...
src/components/newTravelmanager/TravelGroupControl/TravelFeature.vue
View file @
c4c6afb5
...
...
@@ -194,7 +194,7 @@
<!-- ppt 模版行程 -->
<div
v-if=
"FeatureData.FeatureType==9&&FeatureDataFlag"
v-loading=
"iframeLoading"
>
<iframe
name=
"myIframe"
:src=
"myIframeUrl"
style=
"width: 100%;border: 0;"
:style=
"{'height':myIframeHeigth+'px'}"
@
load=
"resizeIframe"
>
:style=
"{'height':myIframeHeigth+'px'}"
>
</iframe>
<!-- <div v-if="FeatureData.TripImageListNew&&FeatureData.TripImageListNew.length>0">
<template v-for="url in FeatureData.TripImageListNew">
...
...
@@ -373,17 +373,6 @@
},
methods
:
{
resizeIframe
()
{
const
iframe
=
document
.
getElementsByName
(
"myIframe"
);
if
(
iframe
)
{
const
iframeWindow
=
iframe
.
contentWindow
;
if
(
iframeWindow
&&
iframeWindow
.
document
&&
iframeWindow
.
document
.
readyState
===
'complete'
)
{
const
body
=
iframeWindow
.
document
.
body
;
const
viewportHeight
=
iframeWindow
.
innerHeight
;
this
.
myIframeHeigth
=
body
.
scrollHeight
||
viewportHeight
;
}
}
},
//图片左移右移
ExchangeImg
(
type
,
index
,
IsMove
)
{
if
(
type
==
1
)
{
...
...
@@ -449,10 +438,8 @@
this
.
myIframeHeigth
=
datas
[
1
];
this
.
isPostMessage
=
true
}
if
(
this
.
myIframeUrl
&&
this
.
myIframeUrl
!=
''
)
{
this
.
myIframeUrl
=
this
.
myIframeUrl
+
`&t=
${
new
Date
().
getTime
()}
`
document
.
all
.
myIframe
.
src
=
this
.
myIframeUrl
;
document
.
all
.
myIframe
.
src
=
this
.
myIframeUrl
+
`&t=
${
new
Date
().
getTime
()}
`
}
this
.
$emit
(
'pptJourney'
,
true
)
}
else
if
(
event
.
data
==
'暂无行程数据'
)
{
...
...
@@ -464,6 +451,16 @@
}
}
//计算iframe高度
const
iframe
=
document
.
getElementsByName
(
"myIframe"
);
if
(
iframe
)
{
const
iframeWindow
=
iframe
.
contentWindow
;
if
(
iframeWindow
&&
iframeWindow
.
document
&&
iframeWindow
.
document
.
readyState
===
'complete'
)
{
const
body
=
iframeWindow
.
document
.
body
;
const
viewportHeight
=
iframeWindow
.
innerHeight
;
this
.
myIframeHeigth
=
body
.
scrollHeight
||
viewportHeight
;
}
}
this
.
iframeLoading
=
false
;
},
// 添加编辑模版
...
...
@@ -782,22 +779,10 @@
this
.
clickFeature
(
obj
)
}
},
watch
:
{
myIframeUrl
:
{
//深度监听,可监听到对象、数组的变化
handler
:
function
(
val
,
oldVal
)
{
if
(
val
!=
''
&&
val
!=
oldVal
)
{
this
.
resizeIframe
();
}
},
deep
:
true
,
immediate
:
true
},
dataAll
:
{
handler
:
function
(
val
,
oldVal
)
{},
deep
:
true
,
immediate
:
true
beforeDestroy
()
{
window
.
removeEventListener
(
'message'
,
this
.
handleMessage
,
false
);
},
watch
:
{
FeatureData
:
{
//深度监听,可监听到对象、数组的变化
handler
:
function
(
val
,
oldVal
)
{
...
...
src/components/public/DateLimit.vue
View file @
c4c6afb5
<
template
>
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"SGroupDate"
:picker-options=
"pickerBeginDateBefore"
value-format=
"yyyy-MM-dd"
placeholder
:clearable=
"((clearable==false||clearable)&&!isQueryHistoryData)?clearable:true"
@
change=
"getTime"
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
@
change=
"getTime"
></el-date-picker>
</
template
>
<
script
>
export
default
{
...
...
@@ -13,15 +14,8 @@
pickerBeginDateBefore
:
{
disabledDate
:
time
=>
{
if
(
this
.
EndGroupDate
){
// if(!this.isQueryHistoryData){
// let endTime = this.TourDateRestrictions()
// return time && endTime.getTime() >= time.getTime();
// }else{
// let endTime = new Date(this.SGroupDate);
// return time && endTime.getTime() >= time.getTime();
// }
let
endTime
=
new
Date
(
this
.
EndGroupDate
);
return
time
&&
endTime
.
getTime
()
<
=
time
.
getTime
();
return
time
&&
endTime
.
getTime
()
>
=
time
.
getTime
();
}
else
{
if
(
!
this
.
isQueryHistoryData
){
let
endTime
=
this
.
TourDateRestrictions
()
...
...
@@ -62,14 +56,12 @@
this
.
$emit
(
'change'
,
this
.
SGroupDate
)
},
GetSupperOrderEditAuth
()
{
var
actiionContract
=
this
.
$AuthCode
.
isQueryHistoryData
;
var
isQueryHistoryData
=
this
.
$AuthCode
.
isQueryHistoryData
;
this
.
CheckUserAuth
(
actiionContract
,
res
=>
{
var
actionCode
=
this
.
$AuthCode
.
isQueryHistoryData
;
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
isQueryHistoryData
=
true
;
}
});
},
}
}
...
...
src/components/public/StartDateLimit.vue
View file @
c4c6afb5
...
...
@@ -84,14 +84,12 @@
},
GetSupperOrderEditAuth
()
{
var
actiionContract
=
this
.
$AuthCode
.
isQueryHistoryData
;
var
isQueryHistoryData
=
this
.
$AuthCode
.
isQueryHistoryData
;
// 合同
this
.
CheckUserAuth
(
actiionContract
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
isQueryHistoryData
=
true
;
}
});
},
}
}
...
...
src/plug/index.js
View file @
c4c6afb5
...
...
@@ -669,32 +669,23 @@ export default {
//用户权限验证
Vue
.
prototype
.
CheckUserAuth
=
function
(
authCode
,
successCall
,
faildCall
)
{
let
localStorageJson
=
this
.
getLocalStorage
();
var
newCode
=
','
+
authCode
+
','
;
if
((
","
+
localStorageJson
.
ActionMenuCode
+
","
).
indexOf
(
newCode
)
>
-
1
)
{
var
data
=
{
resultCode
:
1
,
data
:
1
,
};
var
res
=
{
data
:
data
}
successCall
(
res
);
}
else
{
if
(
authCode
!=
this
.
$AuthCode
.
isQueryHistoryData
)
{
this
.
apipost
(
"userauth_get_GetCheckUserAuthService"
,
{
actionMenuCode
:
authCode
},
successCall
,
faildCall
);
}
else
{
var
data
=
{
resultCode
:
1
,
data
:
0
,
};
if
(
localStorageJson
&&
localStorageJson
.
ActionMenu
&&
localStorageJson
.
ActionMenu
.
length
>
0
)
{
localStorageJson
.
ActionMenu
.
forEach
(
sItem
=>
{
if
(
data
.
data
==
0
&&
sItem
.
ActionCode
.
toLowerCase
()
==
authCode
.
toLowerCase
())
{
data
.
data
=
1
;
}
});
}
var
res
=
{
data
:
data
}
let
str
=
`CheckUserAuth_authCode:`
+
authCode
;
console
.
log
(
str
,
data
);
successCall
(
res
);
}
}
},
//供应商版请求接口方法
Vue
.
prototype
.
ApiPost2
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
...
...
src/router/config.js
View file @
c4c6afb5
...
...
@@ -6418,21 +6418,21 @@ export default {
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
:
'意见调查表填写'
},
},
//
{
//
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