Commit b663d257 authored by 黄奎's avatar 黄奎

页面修改

parent f9dc4704
...@@ -103,7 +103,6 @@ ...@@ -103,7 +103,6 @@
}, res => { }, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
console.log("this.dataList", this.dataList);
} }
}, null) }, null)
} }
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
font-size: 40px; font-size: 40px;
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
width: 95%;
margin: 0 auto;
overflow-y: scroll;
} }
/* 自定义评分组件的样式 */ /* 自定义评分组件的样式 */
...@@ -16,7 +19,46 @@ ...@@ -16,7 +19,46 @@
} }
/deep/.guestSign .custom-rate .el-rate__text { /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> </style>
...@@ -24,34 +66,62 @@ ...@@ -24,34 +66,62 @@
<template> <template>
<div class="guestSign"> <div class="guestSign">
<span>感谢 {{qMsg.SurName}} {{qMsg.Sex==1?"先生":"女士"}} 参与意见调查</span> <el-row>
<span>领队:王 ,导游:张</span> <el-col :span="24" style="text-align:center;margin-top:10px;">
<span>团期:2022.01.01-2024.08.01</span> <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 "> <template v-for="(item,index) in dataList ">
<span :key="`t_`+index">{{index+1}}{{item.Title}}</span> <el-row :key="`t_`+index">
<template v-if="item.SurveyType === 1"> <el-col :span="24">
<el-rate :key="`s_`+index" v-model="item.ScoreNum" show-text :texts="texts" class="custom-rate"> <span>{{index+1}}{{item.Title}}</span>
</el-rate> </el-col>
</template> </el-row>
<template v-if="item.SurveyType === 2"> <el-row :key="`s_`+index">
<el-radio-group v-model="item.ScoreNum" :key="`ss_`+index"> <el-col :span="24" style="min-height:100px;margin-top:10px;margin-bottom:10px;">
<el-radio v-for="(radio, rIndex) in item.SurveyOptionsList" :label="radio.ID" :key="rIndex"> <template v-if="item.SurveyType === 1">
{{radio.OptionsName}}</el-radio> <el-rate v-model="item.ScoreNum" show-text :texts="texts" class="custom-rate">
</el-radio-group> </el-rate>
</template> </template>
<template v-if="item.SurveyType === 3"> <template v-if="item.SurveyType === 2">
<el-checkbox-group v-model="item.SurveyOptionsList" :key="`sss_`+index"> <el-radio-group v-model="item.ScoreNum">
<el-checkbox v-for="(radio, rIndex) in item.SurveyOptionsList" :label="radio.ID" :key="rIndex"> <el-radio v-for="(radio, rIndex) in item.SurveyOptionsList" :label="radio.ID" :key="rIndex">
{{radio.OptionsName}}</el-checkbox> {{radio.OptionsName}}</el-radio>
</el-checkbox-group> </el-radio-group>
</template> </template>
<template v-if="item.SurveyType === 4"> <template v-if="item.SurveyType === 3">
<el-input :key="`ssss_`+index" type="textarea" :rows="2" :placeholder="$t('fnc.qsrneirong')" <el-checkbox-group v-model="item.SurveyOptionsList">
v-model="item.TextContent"> <el-checkbox v-for="(radio, rIndex) in item.SurveyOptionsList" :label="radio.ID" :key="rIndex">
</el-input> {{radio.OptionsName}}</el-checkbox>
</template> </el-checkbox-group>
</template>
<template v-if="item.SurveyType === 4">
<el-input type="textarea" :rows="2" :placeholder="$t('fnc.qsrneirong')" v-model="item.TextContent">
</el-input>
</template>
</el-col>
</el-row>
</template> </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> </div>
</template> </template>
...@@ -61,12 +131,22 @@ ...@@ -61,12 +131,22 @@
data() { data() {
return { return {
qMsg: { qMsg: {
TCID: 21633, TCID: 0,
GuestId: 0, GuestId: 0,
SurName: "", //中文姓 SurName: "", //中文姓
Sex: 0, //性别 1-男 2-女 Sex: 0, //性别 1-男 2-女
OrderId: 0,
}, },
dataList: [], dataList: [],
priceInfo: {},
texts: [
'非常不满意',
'不满意',
'感觉一般',
'满意',
'非常满意'
],
saveLoading: false,
}; };
}, },
created() { created() {
...@@ -82,12 +162,25 @@ ...@@ -82,12 +162,25 @@
if (this.$route.query.Sex) { if (this.$route.query.Sex) {
this.qMsg.Sex = this.$route.query.Sex; this.qMsg.Sex = this.$route.query.Sex;
} }
if (this.$route.query.OrderId) {
this.qMsg.OrderId = this.$route.query.OrderId;
}
}, },
mounted() { mounted() {
this.getPriceInfo();
this.GetSurveyShowList(); this.GetSurveyShowList();
}, },
methods: { 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 () { GetSurveyShowList: function () {
let data = { let data = {
IsShow: 1, IsShow: 1,
...@@ -112,11 +205,40 @@ ...@@ -112,11 +205,40 @@
} }
}) })
this.dataList = data; this.dataList = data;
console.log("this.dataList1", JSON.parse(JSON.stringify(this.dataList)))
} }
}, null) }, 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);
}
});
}
} }
} }
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
GuestId: 0, GuestId: 0,
SurName: "", //中文姓 SurName: "", //中文姓
Sex: 0, //性别 1-男 2-女 Sex: 0, //性别 1-男 2-女
OrderId:0
} }
}; };
}, },
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
this.qMsg.GuestId = tempData[0].Id; this.qMsg.GuestId = tempData[0].Id;
this.qMsg.SurName = tempData[0].SurName; this.qMsg.SurName = tempData[0].SurName;
this.qMsg.Sex = tempData[0].Sex; this.qMsg.Sex = tempData[0].Sex;
this.qMsg.OrderId=tempData[0].OrderId;
this.$router.push({ this.$router.push({
name: "guestSign", name: "guestSign",
query: { query: {
...@@ -62,6 +64,7 @@ ...@@ -62,6 +64,7 @@
GuestId: this.qMsg.GuestId, GuestId: this.qMsg.GuestId,
SurName: this.qMsg.SurName, SurName: this.qMsg.SurName,
Sex: this.qMsg.Sex, Sex: this.qMsg.Sex,
OrderId:this.qMsg.OrderId
} }
}) })
} }
......
...@@ -60,15 +60,12 @@ ...@@ -60,15 +60,12 @@
this.$emit('change',this.SGroupDate) this.$emit('change',this.SGroupDate)
}, },
GetSupperOrderEditAuth() { GetSupperOrderEditAuth() {
var actiionContract = this.$AuthCode.isQueryHistoryData; var actionCode = this.$AuthCode.isQueryHistoryData;
var isQueryHistoryData = this.$AuthCode.isQueryHistoryData; this.CheckUserAuth(actionCode, res => {
// 合同
this.CheckUserAuth(actiionContract, res => {
if (res.data.resultCode == 1 && res.data.data == 1) { if (res.data.resultCode == 1 && res.data.data == 1) {
this.isQueryHistoryData = true; this.isQueryHistoryData = true;
} }
}); });
}, },
} }
} }
......
...@@ -84,14 +84,12 @@ ...@@ -84,14 +84,12 @@
}, },
GetSupperOrderEditAuth() { GetSupperOrderEditAuth() {
var actiionContract = this.$AuthCode.isQueryHistoryData; var actiionContract = this.$AuthCode.isQueryHistoryData;
var isQueryHistoryData = this.$AuthCode.isQueryHistoryData;
// 合同 // 合同
this.CheckUserAuth(actiionContract, res => { this.CheckUserAuth(actiionContract, res => {
if (res.data.resultCode == 1 && res.data.data == 1) { if (res.data.resultCode == 1 && res.data.data == 1) {
this.isQueryHistoryData = true; this.isQueryHistoryData = true;
} }
}); });
}, },
} }
} }
......
...@@ -669,8 +669,10 @@ export default { ...@@ -669,8 +669,10 @@ export default {
//用户权限验证 //用户权限验证
Vue.prototype.CheckUserAuth = function (authCode, successCall, faildCall) { Vue.prototype.CheckUserAuth = function (authCode, successCall, faildCall) {
let localStorageJson = this.getLocalStorage(); let localStorageJson = this.getLocalStorage();
console.log("authCode", authCode)
var newCode = ',' + authCode + ','; var newCode = ',' + authCode + ',';
if (("," + localStorageJson.ActionMenuCode + ",").indexOf(newCode) > -1) { if (localStorageJson && localStorageJson.ActionMenuCode && ("," + localStorageJson.ActionMenuCode + ",").indexOf(newCode) > -1) {
console.log("c_111", newCode)
var data = { var data = {
resultCode: 1, resultCode: 1,
data: 1, data: 1,
...@@ -681,10 +683,12 @@ export default { ...@@ -681,10 +683,12 @@ export default {
successCall(res); successCall(res);
} else { } else {
if (authCode != this.$AuthCode.isQueryHistoryData) { if (authCode != this.$AuthCode.isQueryHistoryData) {
console.log("c_222_2", authCode)
this.apipost("userauth_get_GetCheckUserAuthService", { this.apipost("userauth_get_GetCheckUserAuthService", {
actionMenuCode: authCode actionMenuCode: authCode
}, successCall, faildCall); }, successCall, faildCall);
} else { } else {
console.log("c_333", authCode)
var data = { var data = {
resultCode: 1, resultCode: 1,
data: 0, data: 0,
......
...@@ -6418,21 +6418,21 @@ export default { ...@@ -6418,21 +6418,21 @@ export default {
title: '财务批量打印页面' title: '财务批量打印页面'
}, },
}, },
{ // {
path: '/guestlogin', //意见调查表登录 // path: '/guestlogin', //意见调查表登录
name: 'guestlogin', // name: 'guestlogin',
component: resolve => require(['@/components/guestlogin'], resolve), // component: resolve => require(['@/components/guestlogin'], resolve),
meta: { // meta: {
title: '意见调查表登录' // title: '意见调查表登录'
}, // },
}, // },
{ // {
path: '/guestSign', //意见调查表填写 // path: '/guestSign', //意见调查表填写
name: 'guestSign', // name: 'guestSign',
component: resolve => require(['@/components/guestSign'], resolve), // component: resolve => require(['@/components/guestSign'], resolve),
meta: { // meta: {
title: '意见调查表填写' // title: '意见调查表填写'
}, // },
}, // },
] ]
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment