Commit dbdde84b authored by youjie's avatar youjie
parents 9bb03486 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'">
...@@ -33,32 +29,37 @@ ...@@ -33,32 +29,37 @@
</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: { },
watch: {
ID: { ID: {
handler: function(val, oldVal) { handler: function (val, oldVal) {
if (val !== oldVal){ if (val !== oldVal) {
this.getDetails() this.getDetails()
} }
}, },
deep: true deep: true
} }
},mounted() { },
mounted() {
this.getDetails() this.getDetails()
},methods: { },
methods: {
getDetails: function () { getDetails: function () {
this.apipost('survey_post_GetGuestSurvey', {SurveyID: this.ID}, res=>{ this.apipost('survey_post_GetGuestSurvey', {
SurveyID: this.ID
}, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let data = res.data.data let data = res.data.data
data.map(x=>{ data.map(x => {
if (x.SurveyType === 2) { if (x.SurveyType === 2) {
x.SurveyOptionsList.map(y=>{ x.SurveyOptionsList.map(y => {
if (y.IsCheck === '1') { if (y.IsCheck === '1') {
x.lable = y.ID x.lable = y.ID
} }
...@@ -66,7 +67,7 @@ export default { ...@@ -66,7 +67,7 @@ export default {
} }
if (x.SurveyType === 3) { if (x.SurveyType === 3) {
let ckeckList = [] let ckeckList = []
x.SurveyOptionsList.map(y=>{ x.SurveyOptionsList.map(y => {
if (y.IsCheck === '1') { if (y.IsCheck === '1') {
ckeckList.push(y.ID) ckeckList.push(y.ID)
} }
...@@ -79,5 +80,6 @@ export default { ...@@ -79,5 +80,6 @@ export default {
}, null) }, null)
} }
} }
} }
</script> </script>
<style> <style>
.investigationList td button{ .investigationList td button {
width: 30px; width: 30px;
height: 30px; height: 30px;
display: inline-block; display: inline-block;
...@@ -11,10 +11,12 @@ ...@@ -11,10 +11,12 @@
cursor: pointer; cursor: pointer;
outline: none; outline: none;
padding: 0; padding: 0;
} }
.investigationList .el-button.is-circle{
.investigationList .el-button.is-circle {
padding: 0; padding: 0;
} }
</style> </style>
<template> <template>
<div class="investigationList"> <div class="investigationList">
...@@ -27,7 +29,7 @@ ...@@ -27,7 +29,7 @@
<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>
...@@ -35,22 +37,13 @@ ...@@ -35,22 +37,13 @@
<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
@click="dialogTitle = '游客问券', openPage(item)"
></el-button>
<!-- showID = item.ID, DiaoChaShow = true -->
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="查看游记" placement="top"> <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
v-if="item.NotesId > 0" @click="dialogTitle = '游记', showID = item.NotesId, YouJiShow = true"></el-button>
type="primary"
icon="iconfont icon-youji"
circle
@click="dialogTitle = '游记', showID = item.NotesId, YouJiShow = true"
></el-button>
</el-tooltip> </el-tooltip>
</td> </td>
</tr> </tr>
...@@ -59,35 +52,25 @@ ...@@ -59,35 +52,25 @@
<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,
...@@ -95,27 +78,36 @@ export default { ...@@ -95,27 +78,36 @@ export default {
showID: 0, showID: 0,
dialogTitle: '', dialogTitle: '',
} }
},mounted() { },
let TCID = this.$route.query.TCID, mounted() {
OrderID = this.$route.query.OrderId; let TCID = this.$route.query.TCID;
let OrderID = this.$route.query.OrderId;
this.getList(TCID, OrderID); this.getList(TCID, OrderID);
},methods: { },
openPage: function (obj){ methods: {
let dom = document.querySelector("#blankLink"); openPage: function (obj) {
dom.href = "http://activity.oytour.com/html/invesDetails2.html" + '?ID=' + obj.ID + '&name=' + encodeURI(obj.GuestName) + '&MobilePhone=' + obj.CustomerPhone this.showID = obj.ID;
dom.click(); // 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 () { closeDialog: function () {
this.DiaoChaShow = false; this.DiaoChaShow = false;
this.YouJiShow = false; this.YouJiShow = false;
}, },
getList: function (TCID, OrderID) { getList: function (TCID, OrderID) {
this.apipost('survey_post_GetTotalList', {TCID: TCID, OrderID: OrderID}, res=>{ this.apipost('survey_post_GetTotalList', {
TCID: TCID,
OrderID: OrderID
}, 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)
} }
} }
} }
</script> </script>
<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>
...@@ -34,70 +57,55 @@ ...@@ -34,70 +57,55 @@
</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>
<td>{{item.StartYear}}-{{item.EndYear}}</td> <td>{{item.StartYear}}-{{item.EndYear}}</td>
<td>{{moneyFormat(item.TradeMoney)}}</td> <td>{{moneyFormat(item.TradeMoney)}}</td>
<td><span class="cursorpointer text-decoration" @click="jiesuan(item.ID, 'happyMoneyDetails')" >{{item.TotalGuestNum}}</span></td> <td><span class="cursorpointer text-decoration"
@click="jiesuan(item.ID, 'happyMoneyDetails')">{{item.TotalGuestNum}}</span></td>
<td class="_icon_btn"> <td class="_icon_btn">
<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-edit" @click="addCustorm(item)"></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-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-search" v-if="item.IsClearing == 2" @click="jiesuan(item.ID, 'happyMoneyDetails')" ></i> <i class="edit el-icon-search" v-if="item.IsClearing == 2"
@click="jiesuan(item.ID, 'happyMoneyDetails')"></i>
</el-tooltip> </el-tooltip>
</td> </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"
type="year"
value-format="yyyy"
:range-separator="$t('restaurant.res_To')">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="结束时间" prop="EndYear"> <el-form-item label="结束时间" prop="EndYear">
<el-date-picker class="h34" <el-date-picker class="h34" @change="EndYearChange" v-model="addMsg.EndYear" type="year" value-format="yyyy"
@change="EndYearChange"
v-model="addMsg.EndYear"
type="year"
value-format="yyyy"
:range-separator="$t('restaurant.res_To')"> :range-separator="$t('restaurant.res_To')">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="销售" prop="Contact"> <el-form-item label="销售" prop="Contact">
<el-select filterable v-model='addMsg.Contact' class=""> <el-select filterable v-model='addMsg.Contact' class="">
<el-option v-for='item in EmployeeList' <el-option v-for='item in EmployeeList' :label='item.EmName' :value='item.EmployeeId'
:label='item.EmName'
:value='item.EmployeeId'
:key='item.EmployeeId'> :key='item.EmployeeId'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
<el-form-item label="客户" prop="CustomerIDs"> <el-form-item label="客户" prop="CustomerIDs">
<el-select v-model="addMsg.CustomerIDs" <el-select v-model="addMsg.CustomerIDs" multiple filterable remote reserve-keyword
multiple :placeholder="$t('pub.PleaseKeyWords')" :remote-method="getAllListBy" class="heightauto ">
filterable <el-option v-for="item in AllListBy" :key="item.CustomerId" :label="item.CustomerName"
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"> :value="item.CustomerId">
<span style="float: left">{{ item.CustomerName }}</span> <span style="float: left">{{ item.CustomerName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.Contact + item.ContactNumber }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.Contact + item.ContactNumber }}</span>
...@@ -110,13 +118,8 @@ ...@@ -110,13 +118,8 @@
<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>
...@@ -125,9 +128,9 @@ ...@@ -125,9 +128,9 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data(){ data() {
return{ return {
loading: false, loading: false,
dataList: [], dataList: [],
DiaoChaShow: false, DiaoChaShow: false,
...@@ -151,42 +154,55 @@ export default { ...@@ -151,42 +154,55 @@ export default {
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,
message: '请选择销售',
trigger: 'change'
}, ],
CustomerIDs: [{
type: 'array',
required: true,
message: '请至少选择一个客户',
trigger: 'change'
}, ],
} }
} }
},mounted() { },
mounted() {
this.getList(); this.getList();
let userInfo=this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID
this.getEmployee() this.getEmployee()
},methods: { },
jiesuan: function (ID, path, t){ methods: {
jiesuan: function (ID, path, t) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -217,7 +233,7 @@ export default { ...@@ -217,7 +233,7 @@ export default {
}, },
getList: function () { getList: function () {
this.loading = true this.loading = true
this.apipost('app_customer_GetAlliancePageList', this.msg, res=>{ this.apipost('app_customer_GetAlliancePageList', this.msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.loading = false; this.loading = false;
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
...@@ -235,16 +251,16 @@ export default { ...@@ -235,16 +251,16 @@ export default {
this.dialogFormVisible = true; this.dialogFormVisible = true;
}, },
// 保存 // 保存
UpdateDate: function(formName){ UpdateDate: function (formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.apipost('app_customer_SetAlliance', this.addMsg, res=>{ this.apipost('app_customer_SetAlliance', this.addMsg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.iniTAddMsg(); this.iniTAddMsg();
this.getList(); this.getList();
this.$message.success(res.data.message); this.$message.success(res.data.message);
} else{ } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, null) }, null)
...@@ -254,12 +270,14 @@ export default { ...@@ -254,12 +270,14 @@ export default {
}); });
}, },
getAllListBy: function (query) { getAllListBy: function (query) {
if(query == ''){ if (query == '') {
this.AllListBy = []; this.AllListBy = [];
return return
} }
this.optionloading = true this.optionloading = true
this.apipost('app_customer_GetAllListByGroupId', {CustomerName: query}, res=>{ this.apipost('app_customer_GetAllListByGroupId', {
CustomerName: query
}, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.optionloading = false this.optionloading = false
this.AllListBy = res.data.data this.AllListBy = res.data.data
...@@ -282,8 +300,8 @@ export default { ...@@ -282,8 +300,8 @@ export default {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
resetPageIndex(){ // 重置页码 resetPageIndex() { // 重置页码
this.msg.pageIndex=1; this.msg.pageIndex = 1;
this.currentPage = 1; this.currentPage = 1;
}, },
closeChangeMachie(done) { // 转交窗口关闭 closeChangeMachie(done) { // 转交窗口关闭
...@@ -295,11 +313,12 @@ export default { ...@@ -295,11 +313,12 @@ export default {
}, },
getEmployee() { //员工 getEmployee() { //员工
this.apipost('admin_get_EmployeeGetList', this.employeeMsg, res => { this.apipost('admin_get_EmployeeGetList', this.employeeMsg, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data; this.EmployeeList = res.data.data;
} }
}, err => {}) }, err => {})
}, },
} }
} }
</script> </script>
...@@ -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>
......
<style>
.height_auto.el-select .el-input {
height: auto;
}
.CommodityType ._addUpload_box {
display: block;
margin: 10px 0 0;
}
.CommodityType ._addUpload_box img {
height: 15px;
display: block;
margin-right: 25px;
}
.CommodityType ._addUpload_box>div.el-upload {
float: left;
width: 138px;
height: 92px;
border: 1px dashed rgba(210, 210, 210, 1);
border-radius: 2px;
cursor: pointer;
margin-bottom: 10px;
padding: 5px;
margin-right: 10px;
position: relative;
}
.CommodityType ._addUpload_box .icon-guanbi1 {
font-size: 12px;
color: white;
display: inline-block;
margin-left: 15px;
position: absolute;
left: 9px;
top: -5px;
background-color: #f56c6c;
border-radius: 50%;
height: 15px;
width: 15px;
text-align: center;
line-height: 15px;
}
.CommodityType ._addUpload_box>div:hover {
background-color: #f5f5f5;
}
.CommodityType .el-upload-dragger {
font-size: 28px;
color: #8c939d;
width: 126px;
height: 80px;
line-height: 41px;
text-align: center;
}
.CommodityType .bg_color_delete {
background-color: #ee4454;
border-color: #ee4454;
}
.comType_Img {
max-height: 50px;
}
</style>
<template>
<div class="flexOne CommodityType">
<div class="query-box">
<ul class>
<li>
<span>
<em>名称</em>
<el-input v-model="msg.Title"></el-input>
</span>
</li>
<li>
<input type="button" @click="getList" class="hollowFixedBtn" :value="$t('pub.searchBtn')">
<input type="button" @click="outerVisible = true,dialogTitle='新增', addMsg.reqType = 'add',resetInfo()"
class="normalBtn" :value="$t('pub.addBtn')">
</li>
</ul>
</div>
<div class="clearfix"></div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
<th width="100px">
编号
</th>
<th>问卷名称</th>
<th width="200px">操作人</th>
<th width="200px">操作时间</th>
<th width="120px">{{$t('hotel.table_operat')}}</th>
</tr>
<tr v-for="(item,index) in dataList" :key="index">
<td>{{item.MainId}}</td>
<td>{{item.Title}}</td>
<td>{{item.CreateByName}}</td>
<td>
<template v-if="item.UpdateDate&&item.UpdateDate!=''">
{{item.UpdateDate}}
</template>
<template v-else>
{{item.CreateDate}}
</template>
</td>
<td>
<el-tooltip class="item" effect="dark" :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 class="item" effect="dark" content="设置问卷内容" placement="top">
<el-button type="primary" icon="el-icon-tickets" circle @click="setSurverContent(item)">
</el-button>
</el-tooltip>
<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-tooltip>
</td>
</tr>
</table>
<div class="noDataNotice" v-if="dataList.length<1">
<i class="iconfont icon-kong"></i>
<p>{{$t("active.ld_noData")}}</p>
</div>
<el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize" :total="total">
</el-pagination>
<el-dialog custom-class="w400" :title="dialogTitle" :visible.sync="outerVisible" center
:before-close="closeChangeMachie">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="110px">
<el-form-item label="问卷名称" prop="Title">
<el-input v-model="addMsg.Title" class="w217" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn"
@click="outerVisible = false, resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
//请求
msg: {
pageIndex: 1,
pageSize: 15,
Title: ''
},
addMsg: {
MainId: 0,
Title: "",
},
total: 0,
rules: {
Title: [{
required: true,
message: "请输入名称",
trigger: "blur"
}]
},
loading: false,
outerVisible: false,
dialogTitle: "",
dataList: [],
};
},
mounted() {
this.getList();
},
filters: {},
methods: {
//设置问卷内容
setSurverContent(item) {
let query = {
MainId: item.MainId,
}
this.OpenNewPage('/VoucherInquiry', query)
},
// 删除
Delete(item) {
this.$confirm("是否删除? 删除后不可恢复", this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning"
})
.then(() => {
this.apipost(
"survey_post_RemoveSurveyMain", {
MainId: item.MainId
},
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_GetSurveyMainPage",
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;
}
});
},
//提交添加
addAward() {
this.apipost(
"survey_post_SetSurveyMain",
this.addMsg,
res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.outerVisible = false;
this.getList();
} else {
this.Error(res.data.message);
}
},
null
);
},
//修改信息
updateData(item) {
this.outerVisible = true;
this.apipost(
"survey_post_GetSurveyMain", {
MainId: item.MainId
},
res => {
if (res.data.resultCode === 1) {
let data = res.data.data
this.addMsg.MainId = data.MainId;
this.addMsg.Title = data.Title;
} else {
this.Error(res.data.message);
}
},
null
);
},
//重置信息
resetInfo() {
this.addMsg.MainId = 0;
this.addMsg.Title = "";
},
closeChangeMachie(done) {
//弹出框关闭初始化弹框内表单
done();
this.resetForm("addMsg");
},
resetForm(formName) {
this.$refs[formName].resetFields();
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
}
};
</script>
<style> <style>
.height_auto.el-select .el-input { .height_auto.el-select .el-input {
height: auto; height: auto;
} }
.CommodityType ._addUpload_box {
.CommodityType ._addUpload_box {
display: block; display: block;
margin: 10px 0 0; margin: 10px 0 0;
} }
.CommodityType ._addUpload_box img {
.CommodityType ._addUpload_box img {
height: 15px; height: 15px;
display: block; display: block;
margin-right: 25px; margin-right: 25px;
} }
.CommodityType ._addUpload_box > div.el-upload {
.CommodityType ._addUpload_box>div.el-upload {
float: left; float: left;
width: 138px; width: 138px;
height: 92px; height: 92px;
...@@ -22,8 +25,9 @@ ...@@ -22,8 +25,9 @@
padding: 5px; padding: 5px;
margin-right: 10px; margin-right: 10px;
position: relative; position: relative;
} }
.CommodityType ._addUpload_box .icon-guanbi1 {
.CommodityType ._addUpload_box .icon-guanbi1 {
font-size: 12px; font-size: 12px;
color: white; color: white;
display: inline-block; display: inline-block;
...@@ -37,25 +41,30 @@ ...@@ -37,25 +41,30 @@
width: 15px; width: 15px;
text-align: center; text-align: center;
line-height: 15px; line-height: 15px;
} }
.CommodityType ._addUpload_box > div:hover {
.CommodityType ._addUpload_box>div:hover {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.CommodityType .el-upload-dragger {
.CommodityType .el-upload-dragger {
font-size: 28px; font-size: 28px;
color: #8c939d; color: #8c939d;
width: 126px; width: 126px;
height: 80px; height: 80px;
line-height: 41px; line-height: 41px;
text-align: center; text-align: center;
} }
.CommodityType .bg_color_delete{
.CommodityType .bg_color_delete {
background-color: #ee4454; background-color: #ee4454;
border-color: #ee4454; border-color: #ee4454;
} }
.comType_Img{
.comType_Img {
max-height: 50px; 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,13 +108,15 @@ ...@@ -103,13 +108,15 @@
<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}}
...@@ -118,21 +125,13 @@ ...@@ -118,21 +125,13 @@
{{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"
:page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
<el-dialog <el-dialog custom-class="w400" :title="dialogTitle" :visible.sync="outerVisible" center
custom-class="w400" :before-close="closeChangeMachie">
:title="dialogTitle"
: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,39 +158,37 @@ ...@@ -163,39 +158,37 @@
<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> &nbsp;
@click="outerVisible = false, resetForm('addMsg')"
>{{$t('pub.cancelBtn')}}</button> &nbsp;
<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 {
//请求 //请求
...@@ -204,29 +197,33 @@ export default { ...@@ -204,29 +197,33 @@ export default {
pageSize: 15, pageSize: 15,
IsShow: -1, IsShow: -1,
SurveyType: -1, SurveyType: -1,
Title: '' Title: '',
MainId: 0,
}, },
addMsg: { addMsg: {
MainId: 0,
Title: "", Title: "",
SurveyType: '1', SurveyType: '1',
IsShow: 1, IsShow: 1,
Sort: 0, Sort: 0,
SurveyOptionsList: [ SurveyOptionsList: [{
{
OptionsName: '', OptionsName: '',
Sort: 0, Sort: 0,
ID: 0, ID: 0,
} }]
]
}, },
total:0, total: 0,
rules: { rules: {
Title: [ Title: [{
{ required: true, message: "请输入名称", trigger: "blur" } required: true,
], message: "请输入名称",
Sort: [ trigger: "blur"
{ required: true, message: "请输入排序", trigger: "blur" } }],
] Sort: [{
required: true,
message: "请输入排序",
trigger: "blur"
}]
}, },
loading: false, loading: false,
outerVisible: false, outerVisible: false,
...@@ -235,16 +232,20 @@ export default { ...@@ -235,16 +232,20 @@ export default {
TypeList: [], TypeList: [],
}; };
}, },
created() {
if (this.$route.query.MainId && this.$route.query.MainId > 0) {
this.msg.MainId = this.$route.query.MainId;
this.addMsg.MainId = this.$route.query.MainId;
}
},
mounted() { mounted() {
this.getList(); this.getList();
this.getTypeList(); this.getTypeList();
}, },
filters: {}, filters: {},
methods: { methods: {
// 获取类型名称 // 获取类型名称
getTypeName: function (type) { getTypeName: function (type) {
if (type === 1) { if (type === 1) {
return '打分' return '打分'
} else if (type === 2) { } else if (type === 2) {
...@@ -258,13 +259,11 @@ export default { ...@@ -258,13 +259,11 @@ export default {
// 切换类型 // 切换类型
changeType: function (i) { changeType: function (i) {
if (i === '1' || i === '4') { if (i === '1' || i === '4') {
this.addMsg.SurveyOptionsList = [ this.addMsg.SurveyOptionsList = [{
{
OptionsName: '', OptionsName: '',
Sort: 0, Sort: 0,
ID: 0, ID: 0,
} }]
]
} }
}, },
// 删除选项 // 删除选项
...@@ -281,7 +280,7 @@ export default { ...@@ -281,7 +280,7 @@ export default {
}) })
}, },
getTypeList: function () { getTypeList: function () {
this.apipost('survey_post_GetSurveyTypeEnumList', {}, res=>{ this.apipost('survey_post_GetSurveyTypeEnumList', {}, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.TypeList = res.data.data this.TypeList = res.data.data
} }
...@@ -296,8 +295,9 @@ export default { ...@@ -296,8 +295,9 @@ export default {
}) })
.then(() => { .then(() => {
this.apipost( this.apipost(
"survey_post_DelSurvey", "survey_post_DelSurvey", {
{SurveyID: item.ID }, SurveyID: item.ID
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
...@@ -321,7 +321,7 @@ export default { ...@@ -321,7 +321,7 @@ export default {
this.loading = false; this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total= res.data.data.count; this.total = res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -361,12 +361,13 @@ export default { ...@@ -361,12 +361,13 @@ export default {
updateData(item) { updateData(item) {
this.outerVisible = true; this.outerVisible = true;
this.apipost( this.apipost(
"survey_post_GetSurvey", "survey_post_GetSurvey", {
{SurveyID: item.ID}, SurveyID: item.ID
},
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let data = res.data.data let data = res.data.data
data.SurveyType = ''+data.SurveyType data.SurveyType = '' + data.SurveyType
this.addMsg = data this.addMsg = data
this.getList(); this.getList();
} else { } else {
...@@ -378,20 +379,15 @@ export default { ...@@ -378,20 +379,15 @@ export default {
}, },
//重置信息 //重置信息
resetInfo() { resetInfo() {
var newMsg = { this.addMsg.Title = "";
Title: "", this.addMsg.SurveyType = "";
SurveyType: "1", this.addMsg.IsShow = 1;
IsShow: 1, this.addMsg.Sort = 0;
Sort: 0, this.addMsg.SurveyOptionsList = [{
SurveyOptionsList: [
{
OptionsName: '', OptionsName: '',
Sort: 0, Sort: 0,
ID: 0, ID: 0,
} }];
]
};
this.addMsg = newMsg;
}, },
closeChangeMachie(done) { closeChangeMachie(done) {
//弹出框关闭初始化弹框内表单 //弹出框关闭初始化弹框内表单
...@@ -401,10 +397,11 @@ export default { ...@@ -401,10 +397,11 @@ export default {
resetForm(formName) { resetForm(formName) {
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
handleCurrentChange(val){ handleCurrentChange(val) {
this.msg.pageIndex=val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
} }
}; };
</script> </script>
<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>
<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>
<style>
</style>
<template>
<div>
<input type="button" value="手机号验证" />
<input type="button" value="护照号验证" />
</div>
</template>
<script>
export default {
components: {
},
data() {
return {
activeName: 'first',
postMsg: {
loginType: 1, //1-手机号码验证登录,2-护照号码验证登录
phoneNum: "", //电话号码
passportNum: "", //护照号码
}
};
},
mounted() {
},
methods: {
guestLogin() {
}
}
};
</script>
...@@ -451,7 +451,8 @@ ...@@ -451,7 +451,8 @@
} }
if (this.myIframeUrl && this.myIframeUrl != '') { if (this.myIframeUrl && this.myIframeUrl != '') {
document.all.myIframe.src = this.myIframeUrl + `&t=${new Date().getTime()}` this.myIframeUrl = this.myIframeUrl + `&t=${new Date().getTime()}`
document.all.myIframe.src = this.myIframeUrl;
} }
this.$emit('pptJourney', true) this.$emit('pptJourney', true)
} else if (event.data == '暂无行程数据') { } else if (event.data == '暂无行程数据') {
...@@ -782,6 +783,16 @@ ...@@ -782,6 +783,16 @@
} }
}, },
watch: { watch: {
myIframeUrl: {
//深度监听,可监听到对象、数组的变化
handler: function (val, oldVal) {
if (val != '' && val != oldVal) {
this.resizeIframe();
}
},
deep: true,
immediate: true
},
dataAll: { dataAll: {
handler: function (val, oldVal) {}, handler: function (val, oldVal) {},
deep: true, deep: true,
......
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
this.isQueryHistoryData = true; this.isQueryHistoryData = true;
} }
}); });
}, },
} }
} }
......
...@@ -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 {
if (authCode != this.$AuthCode.isQueryHistoryData) {
this.apipost("userauth_get_GetCheckUserAuthService", { this.apipost("userauth_get_GetCheckUserAuthService", {
actionMenuCode: authCode actionMenuCode: authCode
}, successCall, faildCall); }, 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")));
......
...@@ -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: '意见调查表填写'
},
},
] ]
} }
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