Commit 72ac588f authored by 黄奎's avatar 黄奎

页面修改

parent fe6dae97
......@@ -425,14 +425,11 @@
<div class="leaderInfo afterfix" v-for="item in dataList" :key="item.subCode"
@drop="drop($event,item.TCID,item.Id)" @dragover="allowDrop($event)">
<el-row :gutter="10">
<el-col :span="2">
<div class="LtimeList">{{item.TCNUM}}({{item.TCID}})</div>
</el-col>
<el-col :span="4">
<div class="_oll_line" v-if="item.LeaderType==0"></div>
<div class="_oll_line _o_green" v-if="item.LeaderType>0"></div>
<el-tooltip class="item" effect="dark" :content="item.Title" placement="top-start" popper-class="max-w250">
<div class="Lleader" @click="getJourney(0,item.TCID,item.Title)">{{item.Title}}</div>
<div class="Lleader" @click="getJourney(0,item.TCID,item.Title)">{{item.TCNUM}}({{item.TCID}})】{{item.Title}}</div>
</el-tooltip>
</el-col>
<el-col :span="2">
......
<style>
.guideMg input.normalBtn {
width: auto;
padding: 0 30px;
}
.guideMg .addCompany {
width: 440px;
height: 600px;
}
.guideMg .addCompany .el-dialog__body {
height: 486px;
overflow: auto;
}
.guideMg .name_input .el-form-item__content .el-input input {
border-radius: 0;
}
.guideMg .name_input .el-form-item__content .el-input:first-child input {
border-top-left-radius: 17px;
border-bottom-left-radius: 17px;
}
.guideMg
.cn_name
.el-form-item:nth-child(2)
.el-form-item__content
.el-input:last-child
input,
.guideMg .is-error .el-form-item__content {
border-top-right-radius: 17px;
border-bottom-right-radius: 17px;
}
.guideMg .el-form-item__content .el-textarea {
width: 217px;
}
.guideMg .cn_name .el-form-item:nth-child(1) {
width: 55%;
float: left;
}
.guideMg .cn_name .el-form-item:nth-child(2) {
width: 45%;
float: left;
position: relative;
left: -5px;
}
.guideMg .cn_name .el-form-item:nth-child(2) .el-form-item__content {
margin: 0 !important;
}
.guideMg .cn_name .el-form-item:nth-child(2) .el-form-item__content input {
border-radius: 0;
border-top-right-radius: 17px;
border-bottom-right-radius: 17px;
}
.guideMg .cn_name .name_input .el-form-item__content,
.guideMg .cn_name .name_input .el-form-item__content .el-input input {
width: 108.5px;
}
.guideMg .time .el-input--prefix .el-input__inner {
padding-left: 30px;
}
.guideMg .contentDiv {
width: 100%;
min-height: 500px;
margin-top: 40px;
}
.guideMg .query-box {
border-bottom: none;
}
.guideMg .listDiv {
width: 360px;
height: 220px;
background-color: #fff;
margin: 0 40px 40px 0;
float: left;
border-radius: 4px;
}
.guideMg .topInfo {
width: 100%;
height: 100%;
background: url(../../assets/img/fangwei.png);
font-size: 12px;
color: #666666;
border-radius: 4px;
position: relative;
}
.guideMg .leftImg {
float: left;
margin: 16px 0 0 20px;
width: 80px;
text-align: center;
}
.guideMg .leftImg div {
width: 80px;
height: 80px;
margin-bottom: 7px;
overflow: hidden;
}
.guideMg .leftImg div img {
width: 100%;
height: 100%;
border-radius: 50%;
}
.guideMg .midInfo {
float: left;
margin: 16px 0 0 20px;
line-height: 20px;
}
.guideMg .nainfo {
font-size: 14px;
color: #666;
}
.guideMg .naIn {
color: #333;
}
.guideMg .midList {
margin-top: 0;
}
.guideMg .icon-dianhua ,.guideMg .icon-zuoji{
color: #47bf8c;
margin-right: 10px;
}
.guideMg .leftCode {
float: left;
margin: 5px 0 0 10px;
}
.guideMg .phoneNum {
float: right;
font-size: 14px;
color: #333;
margin: 15px 30px 0 0;
}
.guideMg .botmInfo {
float: left;
width: 100%;
margin-top: 15px;
}
.guideMg .lagurage {
width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.guideMg .btnList {
position: absolute;
top: 0;
right: 0;
height: 30px;
line-height: 30px;
display: none;
background-color: #e95252;
text-align: center;
color: #fff;
font-size: 12px;
border-radius: 4px;
}
.guideMg .btnList span {
display: inline-block;
width: 35px;
cursor: pointer;
position: relative;
}
.guideMg .btnList span i {
position: absolute;
top: 11px;
left: 35px;
width: 1px;
height: 10px;
background-color: #fff;
}
.guideMg .listDiv:hover .btnList {
display: block;
}
.guideMg .listDiv:hover {
box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
transition: all linear 0.5s;
}
.guideMg .leftCode text {
letter-spacing: 18px;
}
.guideMg .leftCode canvas {
height: 60px;
}
.guideMg ._sanjiao_{
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-top: 20px solid #e73828;
border-bottom: 20px solid transparent;
border-left: 20px solid #e73828;
border-right: 20px solid transparent;
}
.guideMg ._sanjiao_:after {
content: '外';
position: absolute;
top: -15px;
left: -14px;
white-space: nowrap;
color: #FFFFFF;
font-size: 12px;
}
.guideMg ._regMsg{
width: 400px;
}
.guideMg ._regMsg .el-dialog__body div {
display: flex;
}
.guideMg ._regMsg .el-dialog__body div p{
color: #666;
width: 50%;
}
.guideMg ._regMsg .el-dialog__body div p i{
display: inline-block;
width: 80px;
text-align: right;
}
.guideMg ._regMsg .el-dialog__body div p span{
color: #333;
}
.guideMg ._regMsg .el-dialog__body p._regMsg_tips{
color: red;
font-size: 12px;
margin-top: 10px;
text-align: center;
}
.guideMg ._regMsg .el-dialog__body{
padding-bottom: 0;
}
.guideMg .btnList span:last-child{
width:65px;
}
.guideMg input.normalBtn {
width: auto;
padding: 0 30px;
}
.guideMg .addCompany {
width: 440px;
height: 600px;
}
.guideMg .addCompany .el-dialog__body {
height: 486px;
overflow: auto;
}
.guideMg .name_input .el-form-item__content .el-input input {
border-radius: 0;
}
.guideMg .name_input .el-form-item__content .el-input:first-child input {
border-top-left-radius: 17px;
border-bottom-left-radius: 17px;
}
.guideMg .cn_name .el-form-item:nth-child(2) .el-form-item__content .el-input:last-child input,
.guideMg .is-error .el-form-item__content {
border-top-right-radius: 17px;
border-bottom-right-radius: 17px;
}
.guideMg .el-form-item__content .el-textarea {
width: 217px;
}
.guideMg .cn_name .el-form-item:nth-child(1) {
width: 55%;
float: left;
}
.guideMg .cn_name .el-form-item:nth-child(2) {
width: 45%;
float: left;
position: relative;
left: -5px;
}
.guideMg .cn_name .el-form-item:nth-child(2) .el-form-item__content {
margin: 0 !important;
}
.guideMg .cn_name .el-form-item:nth-child(2) .el-form-item__content input {
border-radius: 0;
border-top-right-radius: 17px;
border-bottom-right-radius: 17px;
}
.guideMg .cn_name .name_input .el-form-item__content,
.guideMg .cn_name .name_input .el-form-item__content .el-input input {
width: 108.5px;
}
.guideMg .time .el-input--prefix .el-input__inner {
padding-left: 30px;
}
.guideMg .contentDiv {
width: 100%;
min-height: 500px;
margin-top: 40px;
}
.guideMg .query-box {
border-bottom: none;
}
.guideMg .listDiv {
width: 360px;
height: 220px;
background-color: #fff;
margin: 0 40px 40px 0;
float: left;
border-radius: 4px;
}
.guideMg .topInfo {
width: 100%;
height: 100%;
background: url(../../assets/img/fangwei.png);
font-size: 12px;
color: #666666;
border-radius: 4px;
position: relative;
}
.guideMg .leftImg {
float: left;
margin: 16px 0 0 20px;
width: 80px;
text-align: center;
}
.guideMg .leftImg div {
width: 80px;
height: 80px;
margin-bottom: 7px;
overflow: hidden;
}
.guideMg .leftImg div img {
width: 100%;
height: 100%;
border-radius: 50%;
}
.guideMg .midInfo {
float: left;
margin: 16px 0 0 20px;
line-height: 20px;
}
.guideMg .nainfo {
font-size: 14px;
color: #666;
}
.guideMg .naIn {
color: #333;
}
.guideMg .midList {
margin-top: 0;
}
.guideMg .icon-dianhua,
.guideMg .icon-zuoji {
color: #47bf8c;
margin-right: 10px;
}
.guideMg .leftCode {
float: left;
margin: 5px 0 0 10px;
}
.guideMg .phoneNum {
float: right;
font-size: 14px;
color: #333;
margin: 15px 30px 0 0;
}
.guideMg .botmInfo {
float: left;
width: 100%;
margin-top: 15px;
}
.guideMg .lagurage {
width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.guideMg .btnList {
position: absolute;
top: 0;
right: 0;
height: 30px;
line-height: 30px;
display: none;
background-color: #e95252;
text-align: center;
color: #fff;
font-size: 12px;
border-radius: 4px;
}
.guideMg .btnList span {
display: inline-block;
width: 35px;
cursor: pointer;
position: relative;
}
.guideMg .btnList span i {
position: absolute;
top: 11px;
left: 35px;
width: 1px;
height: 10px;
background-color: #fff;
}
.guideMg .listDiv:hover .btnList {
display: block;
}
.guideMg .listDiv:hover {
box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
transition: all linear 0.5s;
}
.guideMg .leftCode text {
letter-spacing: 18px;
}
.guideMg .leftCode canvas {
height: 60px;
}
.guideMg ._sanjiao_ {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-top: 20px solid #e73828;
border-bottom: 20px solid transparent;
border-left: 20px solid #e73828;
border-right: 20px solid transparent;
}
.guideMg ._sanjiao_:after {
content: '外';
position: absolute;
top: -15px;
left: -14px;
white-space: nowrap;
color: #FFFFFF;
font-size: 12px;
}
.guideMg ._regMsg {
width: 400px;
}
.guideMg ._regMsg .el-dialog__body div {
display: flex;
}
.guideMg ._regMsg .el-dialog__body div p {
color: #666;
width: 50%;
}
.guideMg ._regMsg .el-dialog__body div p i {
display: inline-block;
width: 80px;
text-align: right;
}
.guideMg ._regMsg .el-dialog__body div p span {
color: #333;
}
.guideMg ._regMsg .el-dialog__body p._regMsg_tips {
color: red;
font-size: 12px;
margin-top: 10px;
text-align: center;
}
.guideMg ._regMsg .el-dialog__body {
padding-bottom: 0;
}
.guideMg .btnList span:last-child {
width: 65px;
}
</style>
<template>
<div class="flexOne guideMg">
......@@ -256,7 +298,8 @@
<li>
<span>
<em>{{$t('system.query_name')}}</em>
<el-input v-model="msg.FullName" clearable @keyup.native.enter="getList" :placeholder="$t('system.ph_in')"></el-input>
<el-input v-model="msg.FullName" clearable @keyup.native.enter="getList" :placeholder="$t('system.ph_in')">
</el-input>
</span>
</li>
<li>
......@@ -275,13 +318,13 @@
<el-input v-model="msg.Passport" clearable></el-input>
</span>
</li>
<li>
<li>
<span>
<em>{{$t('system.table_IDcard')}}</em>
<el-input v-model="msg.IdCard" clearable></el-input>
</span>
</li>
<li>
<li>
<span>
<em>{{$t('system.table_phone')}}</em>
<el-input v-model="msg.MobilePhone" clearable></el-input>
......@@ -292,19 +335,22 @@
<em>{{$t('ground.jingwaidh')}}</em>
<el-input v-model="msg.SpareTel" clearable></el-input>
</span>
</li>
</li>
<li>
<span>
<em>{{$t('ground.yuangongzh')}}</em>
<el-select v-model="msg.EmployeeId" filterable :placeholder="$t('system.ph_in')" class="w120">
<el-option :label="$t('pub.unlimitedSel')" value="0"></el-option>
<el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId" :key="item.EmployeeId"></el-option>
<el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId"
:key="item.EmployeeId"></el-option>
</el-select>
</span>
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" />
<input type="button" class="normalBtn" :value="$t('admin.admin_addGuide')" @click="outerVisible = true,dialogTitle=$t('ground.xinzenglddy'),initAddMsg()" />
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="resetPageIndex(),getList()" />
<input type="button" class="normalBtn" :value="$t('admin.admin_addGuide')"
@click="outerVisible = true,dialogTitle=$t('ground.xinzenglddy'),initAddMsg()" />
</li>
</ul>
</div>
......@@ -328,31 +374,34 @@
</div>
<div class="nainfo" v-if="item.LeaderGuidClass==1">
<div class="phoneNum" style="margin-top: 10px;float: left">
<i class="iconfont icon-dianhua"></i>{{item.MobilePhone?item.MobilePhone:$t('fnc.no')}}<br/>
<i class="iconfont icon-zuoji"></i><span style="margin-left: 0">{{item.SpareTel?item.SpareTel:$t('fnc.no')}}</span>
<i class="iconfont icon-dianhua"></i>{{item.MobilePhone?item.MobilePhone:$t('fnc.no')}}<br />
<i class="iconfont icon-zuoji"></i><span
style="margin-left: 0">{{item.SpareTel?item.SpareTel:$t('fnc.no')}}</span>
</div>
</div>
<div class="nainfo" v-if="!item.LeaderGuidClass">{{$t('admin.admin_ming')}}<span class="naIn">{{item.Name}}/{{item.EnName}}</span></div>
<div class="midList" v-if="!item.LeaderGuidClass">{{$t('system.table_sex')}}{{item.Sex==0?$t('ground.manM'):$t('ground.nvM')}}</div>
<div v-if="!item.LeaderGuidClass">{{$t('system.query_goCoun')}}{{item.CountryName}}</div>
<el-tooltip class="item" effect="dark" :content="item.LanguageName" placement="top-start" popper-class="max-w200" v-if="!item.LeaderGuidClass">
<div class="lagurage" v-if="item.Type==3">{{$t('system.query_Language')}}{{item.LanguageName}}
<div class="nainfo" v-if="!item.LeaderGuidClass">{{$t('admin.admin_ming')}}<span
class="naIn">{{item.Name}}/{{item.EnName}}</span></div>
<div class="midList" v-if="!item.LeaderGuidClass">
{{$t('system.table_sex')}}{{item.Sex==0?$t('ground.manM'):$t('ground.nvM')}}</div>
<div v-if="!item.LeaderGuidClass">{{$t('system.query_goCoun')}}{{item.CountryName}}</div>
<el-tooltip class="item" effect="dark" :content="item.LanguageName" placement="top-start"
popper-class="max-w200" v-if="!item.LeaderGuidClass">
<div class="lagurage" v-if="item.Type==3">{{$t('system.query_Language')}}{{item.LanguageName}}
</div>
</el-tooltip>
</el-tooltip>
</div>
<div class="clearfix botmInfo" v-if="!item.LeaderGuidClass">
<div class="leftCode">
<!-- <barcode :value="item.Passport" :options="{ lineColor: '#000',displayValue:true, width:'2', height: '40px', fontSize: '20px',background:'transparent',textPosition :'top',textMargin:'5px'}"
tag="canvas"></barcode> -->
</div>
<div class="phoneNum">
<!-- <i class="iconfont icon-dianhua"></i>{{item.MobilePhone}} -->
<i class="iconfont icon-dianhua"></i>{{item.MobilePhone?item.MobilePhone:$t('fnc.no')}}<br/>
<i class="iconfont icon-zuoji"></i><span style="margin-left: 0">{{item.SpareTel?item.SpareTel:$t('fnc.no')}}</span>
<i class="iconfont icon-dianhua"></i>{{item.MobilePhone?item.MobilePhone:$t('fnc.no')}}<br />
<i class="iconfont icon-zuoji"></i><span
style="margin-left: 0">{{item.SpareTel?item.SpareTel:$t('fnc.no')}}</span>
</div>
</div>
<div class="btnList">
<span @click="outerVisible=true,updateData(item.ID),dialogTitle=$t('ground.xiugailddy')">{{$t('pub.updateMsg')}}<i></i></span>
<span
@click="outerVisible=true,updateData(item.ID),dialogTitle=$t('ground.xiugailddy')">{{$t('pub.updateMsg')}}<i></i></span>
<span @click="goUrl('leaderChedule',item.ID)">{{$t('leader.leader_schedule')}}<i></i></span>
<span @click="goUrl2('leaderStateDetails',item.ID)">{{$t('leader.leader_performance')}}<i></i></span>
<span @click="deletelist(item.ID)">{{$t('system.table_delete')}}<i></i></span>
......@@ -372,28 +421,28 @@
<span>{{$t('admin.admin_xing')}}</span>
<span class="naIn">{{item.Surname}}/{{item.EnSurname}}</span>
</div>
<div class="nainfo" >{{$t('admin.admin_ming')}}<span class="naIn">{{item.Name}}/{{item.EnName}}</span></div>
<div class="nainfo">{{$t('admin.admin_ming')}}<span class="naIn">{{item.Name}}/{{item.EnName}}</span></div>
<div class="midList">{{$t('system.table_sex')}}{{item.Sex==0?$t('ground.manM'):$t('ground.nvM')}}</div>
<div>{{$t('system.query_goCoun')}}{{item.CountryName}}</div>
<div>{{$t("ground.daituanshu")}}{{item.TourNum}}</div>
<el-tooltip class="item" effect="dark" :content="item.LanguageName" placement="top-start" popper-class="max-w200" >
<div class="lagurage" v-if="item.Type==3">{{$t('system.query_Language')}}{{item.LanguageName}}
<div>{{$t("ground.daituanshu")}}{{item.TourNum}}</div>
<el-tooltip class="item" effect="dark" :content="item.LanguageName" placement="top-start"
popper-class="max-w200">
<div class="lagurage" v-if="item.Type==3">{{$t('system.query_Language')}}{{item.LanguageName}}
</div>
</el-tooltip>
</div>
<div class="clearfix botmInfo">
<div class="leftCode">
<!-- <barcode :value="item.Passport" :options="{ lineColor: '#000',displayValue:true, width:'2', height: '40px', fontSize: '20px',background:'transparent',textPosition :'top',textMargin:'5px'}"
tag="canvas"></barcode> -->
</div>
<div class="phoneNum">
<!-- <i class="iconfont icon-dianhua"></i>{{item.MobilePhone}} -->
<i class="iconfont icon-dianhua"></i>{{item.MobilePhone?item.MobilePhone:$t('fnc.no')}}<br/>
<i class="iconfont icon-zuoji"></i><span style="margin-left: 0">{{item.SpareTel?item.SpareTel:$t('fnc.no')}}</span>
<i class="iconfont icon-dianhua"></i>{{item.MobilePhone?item.MobilePhone:$t('fnc.no')}}<br />
<i class="iconfont icon-zuoji"></i><span
style="margin-left: 0">{{item.SpareTel?item.SpareTel:$t('fnc.no')}}</span>
</div>
</div>
<div class="btnList">
<span @click="outerVisible=true,updateData(item.ID),dialogTitle=$t('ground.xiugailddy')">{{$t('pub.updateMsg')}}<i></i></span>
<span
@click="outerVisible=true,updateData(item.ID),dialogTitle=$t('ground.xiugailddy')">{{$t('pub.updateMsg')}}<i></i></span>
<span @click="goUrl('leaderChedule',item.ID)">{{$t('leader.leader_schedule')}}<i></i></span>
<span @click="goUrl2('leaderStateDetails',item.ID)">{{$t('leader.leader_performance')}}<i></i></span>
<span @click="deletelist(item.ID)">{{$t('system.table_delete')}}<i></i></span>
......@@ -402,10 +451,11 @@
</div>
</div>
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage" layout="total,prev, pager, next, jumper"
:page-size=msg.pageSize :total="msg.total">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="msg.total">
</el-pagination>
<el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="outerVisible" center :before-close="closeChangeMachie">
<el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="outerVisible" center
:before-close="closeChangeMachie">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
<el-form-item>
<el-radio-group v-model="addMsg.LeaderGuidClass">
......@@ -419,7 +469,8 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('admin.admin_language')" class='multiple_input LanguageList' v-if="addMsg.Type==3&&addMsg.LeaderGuidClass==0">
<el-form-item :label="$t('admin.admin_language')" class='multiple_input LanguageList'
v-if="addMsg.Type==3&&addMsg.LeaderGuidClass==0">
<el-select v-model="LanguageIdS" multiple :placeholder="$t('admin.admin_phlanguage')" class="w210">
<el-option v-for='item in LanguageList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
......@@ -433,10 +484,12 @@
</el-form-item>
<div class="cn_name clearfix">
<el-form-item :label="$t('admin.admin_Surname')" prop="Surname" class="name_input">
<el-input v-model="addMsg.Surname" :placeholder="$t('admin.admin_xing')" v-on:input="setEngName(1,addMsg.Surname)"></el-input>
<el-input v-model="addMsg.Surname" :placeholder="$t('admin.admin_xing')"
v-on:input="setEngName(1,addMsg.Surname)"></el-input>
</el-form-item>
<el-form-item prop="Name" class="name_input">
<el-input v-model="addMsg.Name" :placeholder="$t('admin.admin_ming')" v-on:input="setEngName(2,addMsg.Name)"></el-input>
<el-input v-model="addMsg.Name" :placeholder="$t('admin.admin_ming')"
v-on:input="setEngName(2,addMsg.Name)"></el-input>
</el-form-item>
</div>
<div class="cn_name clearfix" v-if="addMsg.LeaderGuidClass==0">
......@@ -453,18 +506,22 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.query_company')" prop="RB_Branch_id" v-if="addMsg.LeaderGuidClass==0" >
<el-select v-model="addMsg.RB_Branch_id" filterable :placeholder="$t('system.ph_choice')" class="w210" @change="getDerpartMent(addMsg.RB_Branch_id)">
<el-form-item :label="$t('system.query_company')" prop="RB_Branch_id" v-if="addMsg.LeaderGuidClass==0">
<el-select v-model="addMsg.RB_Branch_id" filterable :placeholder="$t('system.ph_choice')" class="w210"
@change="getDerpartMent(addMsg.RB_Branch_id)">
<el-option v-for='item in BranchList' :key="item.Id" :label="item.BName" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('admin.admin_IDcard')" prop="IdCard" class="other_input" v-if="addMsg.LeaderGuidClass==0">
<el-input type="text" v-model="addMsg.IdCard" :placeholder="$t('admin.admin_phIDcard')" class="w210"></el-input>
<el-form-item :label="$t('admin.admin_IDcard')" prop="IdCard" class="other_input"
v-if="addMsg.LeaderGuidClass==0">
<el-input type="text" v-model="addMsg.IdCard" :placeholder="$t('admin.admin_phIDcard')" class="w210">
</el-input>
</el-form-item>
<el-form-item :label="$t('admin.admin_BirthDate')" prop="BirthDate" class='time' v-if="addMsg.LeaderGuidClass==0">
<el-date-picker class="w210" v-model="addMsg.BirthDate" type="date" :placeholder="$t('admin.admin_phBirthDate')"
value-format="yyyy-MM-dd">
<el-form-item :label="$t('admin.admin_BirthDate')" prop="BirthDate" class='time'
v-if="addMsg.LeaderGuidClass==0">
<el-date-picker class="w210" v-model="addMsg.BirthDate" type="date"
:placeholder="$t('admin.admin_phBirthDate')" value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item :label="$t('admin.admin_BirthPlace')" prop="BirthPlace" v-if="addMsg.LeaderGuidClass==0">
......@@ -473,48 +530,40 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('system.table_sex')" prop="Sex" >
<el-form-item :label="$t('system.table_sex')" prop="Sex">
<el-select v-model="addMsg.Sex" :placeholder="$t('leader.leader_Sex')" class="w210">
<el-option v-for='item in SexOptions' :key="item.value" :label="item.type" :value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('pub.mbPhoneNum')" prop="MobilePhone" class="other_input">
<el-input type="text" v-model="addMsg.MobilePhone" :placeholder="$t('admin.admin_phPhone')" class="w210"></el-input>
<el-input type="text" v-model="addMsg.MobilePhone" :placeholder="$t('admin.admin_phPhone')" class="w210">
</el-input>
</el-form-item>
<el-form-item :label="$t('ground.jingwaidh')" prop="SpareTel" class="other_input">
<el-input type="text" v-model="addMsg.SpareTel" :placeholder="$t('admin.admin_SpareTel')" class="w210"></el-input>
<el-input type="text" v-model="addMsg.SpareTel" :placeholder="$t('admin.admin_SpareTel')" class="w210">
</el-input>
</el-form-item>
<el-form-item :label="$t('system.table_Passport')" v-if="addMsg.LeaderGuidClass==0" prop="Passport" class="other_input">
<el-input type="text" v-model="addMsg.Passport" :placeholder="$t('system.ph_Passport')" maxlength="9" class="w210"></el-input>
<el-form-item :label="$t('system.table_Passport')" v-if="addMsg.LeaderGuidClass==0" prop="Passport"
class="other_input">
<el-input type="text" v-model="addMsg.Passport" :placeholder="$t('system.ph_Passport')" maxlength="9"
class="w210"></el-input>
</el-form-item>
<el-form-item :label="$t('admin.admin_IssuePlace')" prop="IssuePlace" v-if="addMsg.LeaderGuidClass==0">
<el-select
v-model="addMsg.IssuePlace"
filterable
remote
reserve-keyword
:placeholder="$t('ground.qingshurugjz')"
:remote-method="searchKey"
:loading="loading2">
<el-option
v-for="item in searchList"
:key="item.ID"
:label="item.Name"
:value="item.ID">
</el-option>
</el-select>
<!-- <el-select v-model="addMsg.IssuePlace" filterable :placeholder="$t('admin.admin_phIssuePlace')" class="w210">
<el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
<el-select v-model="addMsg.IssuePlace" filterable remote reserve-keyword
:placeholder="$t('ground.qingshurugjz')" :remote-method="searchKey" :loading="loading2">
<el-option v-for="item in searchList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select> -->
</el-select>
</el-form-item>
<el-form-item :label="$t('admin.admin_IssueDate')" prop="IssueDate" class='time' v-if="addMsg.LeaderGuidClass==0">
<el-form-item :label="$t('admin.admin_IssueDate')" prop="IssueDate" class='time'
v-if="addMsg.LeaderGuidClass==0">
<el-date-picker class="w210" v-model="addMsg.IssueDate" type="date" :placeholder="$t('admin.admin_choDate')"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item :label="$t('admin.admin_ExpiryDate')" prop="ExpiryDate" class='time' v-if="addMsg.LeaderGuidClass==0">
<el-form-item :label="$t('admin.admin_ExpiryDate')" prop="ExpiryDate" class='time'
v-if="addMsg.LeaderGuidClass==0">
<el-date-picker class="w210" v-model="addMsg.ExpiryDate" type="date" :placeholder="$t('admin.admin_choDate')"
value-format="yyyy-MM-dd">
</el-date-picker>
......@@ -534,10 +583,11 @@
</el-form>
<div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button> &nbsp;
<button class="hollowFixedBtn" @click="outerVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button>
<button class="hollowFixedBtn"
@click="outerVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button>
</div>
</el-dialog>
<el-dialog custom-class='_regMsg' :title="$t('tips.tips')" :visible.sync="regMsgVisible" center >
<el-dialog custom-class='_regMsg' :title="$t('tips.tips')" :visible.sync="regMsgVisible" center>
<div>
<p><i>{{$t('system.query_workType')}}</i><span>{{regMsg.TypeName}}</span></p>
<p><i>{{$t('system.query_name')}}</i><span>{{regMsg.Name}}</span></p>
......@@ -554,632 +604,596 @@
</div>
</template>
<script>
export default {
data() {
return {
searchList: [],
loading2: false,
outerVisible: false,
//选择的语言
LanguageIdS: "",
//默认图片
defaultImg:
'this.src="' + require("../../assets/img/default_head_img.jpg") + '"',
//下拉框默认值
DefaultSelectValue: 0,
//分公司默认值
BranchDefaultValue: -1,
//请求数据参数
msg: {
Type: '0',
FullName: "",
RB_Branch_id: -1,
pageIndex: 1,
pageSize: 8,
total: 0,
currentPage: 1,
// 查询类型【1-地接查询(领兼地和导游),2-操作查询领队】
QueryType: 0,
LeaderGuidClass:-1
},
addMsg: {
ID: "0",
Type: "3",
EmployeeId: "",
Surname: "",
Name: "",
EnSurname: "",
EnName: "",
IdCard: "",
BirthDate: "",
BirthPlace: "",
Sex: "",
MobilePhone: "",
Passport: "",
IssuePlace: "",
IssueDate: "",
ExpiryDate: "",
CountryID: "",
LanguageId: "",
Remarks: "",
VisaNumber: "",
LeaderGuidType: "",
LeaderGuidClass:0,
SpareTel:'',
emRB_Department_Id:'',
emRB_Post_Id:'',
RB_Branch_id:'',
EmPassword:'',
EmAccount:'',
},
getDepartmentMsg:{
RB_Group_Id:'0',
RB_Branch_Id:'-1',
Status:'0',
},
PostList:[],
getPostMsg:{
RB_Group_Id:'0',
RB_Branch_Id:'-1',
RB_Department_Id:'0',
},
SexOptions: [
{
value: "0",
type: "男"
export default {
data() {
return {
searchList: [],
loading2: false,
outerVisible: false,
//选择的语言
LanguageIdS: "",
//默认图片
defaultImg: 'this.src="' + require("../../assets/img/default_head_img.jpg") + '"',
//下拉框默认值
DefaultSelectValue: 0,
//分公司默认值
BranchDefaultValue: -1,
//请求数据参数
msg: {
Type: '0',
FullName: "",
RB_Branch_id: -1,
pageIndex: 1,
pageSize: 8,
total: 0,
currentPage: 1,
// 查询类型【1-地接查询(领兼地和导游),2-操作查询领队】
QueryType: 0,
LeaderGuidClass: -1
},
{
value: "1",
type: "女"
}
],
//数据列表
DataList: [],
//国家列表
countryList: [],
//城市列表
cityList: [],
//语言列表
LanguageList: [],
//工作类型列表
workTypeList: [],
//员工列表
EmployeeList: [],
//分公司列表
BranchList: [],
//部门
departMentList:[],
//操作标题
dialogTitle: "",
//加载层
loading: true,
hidePassworShow:true,
regMsgVisible:false,
regMsg:{},
rules: {
//表单必填验证
CountryID: [
{
required: true,
message:this.$t('visaT.qxzguojia'),
trigger: "change"
}
],
Type: [
{
required: true,
message:this.$t('admin.admin_workType'),
trigger: "change"
}
],
RB_Branch_id: [
{
required: true,
message:this.$t('rule.qszssgongsi'),
trigger: "change"
}
],
emRB_Department_Id: [
{
required: true,
message:this.$t('rule.qxzsubm'),
trigger: "change"
}
],
emRB_Post_Id: [
{
required: true,
message:this.$t('rule.qxzsugw'),
trigger: "change"
}
],
Surname: [
{
required: true,
message:this.$t('visaT.qsrzwx'),
trigger: "change"
addMsg: {
ID: "0",
Type: "3",
EmployeeId: "",
Surname: "",
Name: "",
EnSurname: "",
EnName: "",
IdCard: "",
BirthDate: "",
BirthPlace: "",
Sex: "",
MobilePhone: "",
Passport: "",
IssuePlace: "",
IssueDate: "",
ExpiryDate: "",
CountryID: "",
LanguageId: "",
Remarks: "",
VisaNumber: "",
LeaderGuidType: "",
LeaderGuidClass: 0,
SpareTel: '',
emRB_Department_Id: '',
emRB_Post_Id: '',
RB_Branch_id: '',
EmPassword: '',
EmAccount: '',
},
getDepartmentMsg: {
RB_Group_Id: '0',
RB_Branch_Id: '-1',
Status: '0',
},
PostList: [],
getPostMsg: {
RB_Group_Id: '0',
RB_Branch_Id: '-1',
RB_Department_Id: '0',
},
SexOptions: [{
value: "0",
type: "男"
},
{
pattern: this.$commonUtils.Regex.el_IsChinese,
message:this.$t('visaT.qsrzwx'),
value: "1",
type: "女"
}
],
Name: [
{
//数据列表
DataList: [],
//国家列表
countryList: [],
//城市列表
cityList: [],
//语言列表
LanguageList: [],
//工作类型列表
workTypeList: [],
//员工列表
EmployeeList: [],
//分公司列表
BranchList: [],
//部门
departMentList: [],
//操作标题
dialogTitle: "",
//加载层
loading: true,
hidePassworShow: true,
regMsgVisible: false,
regMsg: {},
rules: {
//表单必填验证
CountryID: [{
required: true,
message:this.$t('rule.qsrzwm'),
message: this.$t('visaT.qxzguojia'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsChinese,
message:this.$t('rule.qsrzwm'),
}
],
EnSurname: [
{
}],
Type: [{
required: true,
message:this.$t('visaT.qsrywx'),
message: this.$t('admin.admin_workType'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsEnglish,
message:this.$t('visaT.qsrywx'),
}
],
EnName: [
{
}],
RB_Branch_id: [{
required: true,
message:this.$t('rule.qsrywm'),
message: this.$t('rule.qszssgongsi'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsEnglish,
message:this.$t('rule.qsrywm'),
}
],
IdCard: [
{
}],
emRB_Department_Id: [{
required: true,
message:this.$t('rule.qsrIdnum'),
message: this.$t('rule.qxzsubm'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsIDnumber,
message:this.$t('rule.qsrIdnum'),
}
],
BirthDate: [
{
}],
emRB_Post_Id: [{
required: true,
message:this.$t('admin.admin_phBirthDate'),
message: this.$t('rule.qxzsugw'),
trigger: "change"
}
],
Sex: [
{
}],
Surname: [{
required: true,
message: this.$t('visaT.qsrzwx'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsChinese,
message: this.$t('visaT.qsrzwx'),
}
],
Name: [{
required: true,
message: this.$t('rule.qsrzwm'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsChinese,
message: this.$t('rule.qsrzwm'),
}
],
EnSurname: [{
required: true,
message: this.$t('visaT.qsrywx'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsEnglish,
message: this.$t('visaT.qsrywx'),
}
],
EnName: [{
required: true,
message: this.$t('rule.qsrywm'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsEnglish,
message: this.$t('rule.qsrywm'),
}
],
IdCard: [{
required: true,
message: this.$t('rule.qsrIdnum'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsIDnumber,
message: this.$t('rule.qsrIdnum'),
}
],
BirthDate: [{
required: true,
message:this.$t('rule.qxzxb'),
message: this.$t('admin.admin_phBirthDate'),
trigger: "change"
}
],
MobilePhone: [
{
}],
Sex: [{
required: true,
message:this.$t('rule.qsrzqsjh'),
message: this.$t('rule.qxzxb'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_isInteger,
message:this.$t('rule.qsrzqsjh'),
}
],
// SpareTel: [
// {
// pattern: this.$commonUtils.Regex.el_isInteger,
// message: "请输正确的电话"
// }
// ],
Passport: [
{
}],
MobilePhone: [{
required: true,
message: this.$t('rule.qsrzqsjh'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_isInteger,
message: this.$t('rule.qsrzqsjh'),
}
],
// SpareTel: [
// {
// pattern: this.$commonUtils.Regex.el_isInteger,
// message: "请输正确的电话"
// }
// ],
Passport: [{
required: true,
message: this.$t('rule.qsrzqhzh'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsNumEn,
message: this.$t('rule.qsrzqhzh'),
}
],
IssuePlace: [{
required: true,
message:this.$t('rule.qsrzqhzh'),
message: this.$t('rule.qxzqfgj'),
trigger: "change"
},
{
pattern: this.$commonUtils.Regex.el_IsNumEn,
message:this.$t('rule.qsrzqhzh'),
}
],
IssuePlace: [
{
}],
IssuePlaceCity: [{
required: true,
message:this.$t('rule.qxzqfgj'),
message: this.$t('rule.qxzqfcs'),
trigger: "change"
}
],
IssuePlaceCity: [
{
}],
IssueDate: [{
required: true,
message:this.$t('rule.qxzqfcs'),
message: this.$t('rule.qxzqfrq'),
trigger: "change"
}
],
IssueDate: [
{
}],
ExpiryDate: [{
required: true,
message:this.$t('rule.qxzqfrq'),
message: this.$t('rule.qxzgqr'),
trigger: "change"
}
],
ExpiryDate: [
{
}],
BirthPlace: [{
required: true,
message:this.$t('rule.qxzgqr'),
message: this.$t('visaT.qxzguojia'),
trigger: "change"
}
],
BirthPlace: [
{
}],
EmPassword: [{
required: true,
message:this.$t('visaT.qxzguojia'),
trigger: "change"
}
],
EmPassword: [
{
required: true,
message:this.$t('admin.admin_lnLoginName'),
message: this.$t('admin.admin_lnLoginName'),
trigger: "blur"
}
],
EmAccount: [
{
}],
EmAccount: [{
required: true,
message:this.$t('admin.admin_lnLoginPwd'),
message: this.$t('admin.admin_lnLoginPwd'),
trigger: "blur"
}],
}
};
},
methods: {
searchKey(query) {
if (query !== '') {
this.loading2 = true
this.apipost(
"dict_post_Destination_GetCountryByKeyWord", {
keyWord: query
},
res => {
if (res.data.resultCode == 1) {
this.searchList = res.data.data
} else {
this.Error(res.data.message);
}
this.loading2 = false
},
err => {}
);
}
},
//领队账户管理
AccountManage(item) {
this.$router.push({
name: "empBankAccount",
query: {
id: item.ID,
type: 7,
blank: 'y',
tab: '账户管理'
}
],
}
};
},
methods: {
searchKey(query){
if (query !== '') {
this.loading2 = true
this.apipost(
"dict_post_Destination_GetCountryByKeyWord",
{keyWord: query},
});
},
setEngName(type, name) {
if (type == 1 && name != "") {
this.addMsg.EnSurname = this.$languageUtils.ConvertChineseToPinYin(
name
);
} else {
this.addMsg.EnName = this.$languageUtils.ConvertChineseToPinYin(name);
}
},
goUrl(path, ID) {
this.$router.push({
path: path,
query: {
id: ID,
blank: 'y',
tab: '档期管理'
}
});
},
goUrl2(path, ID) {
this.$router.push({
path: path,
query: {
id: ID,
Type: 2,
blank: 'y',
tab: '绩效统计'
}
});
},
//获取现有领队列表
getList() {
var that = this;
that.loading = true;
that.apipost(
"leader_post_GetPageList",
that.msg,
res => {
that.loading = false;
if (res.data.resultCode == 1) {
this.searchList = res.data.data
that.DataList = res.data.data.pageData;
that.msg.total = res.data.data.count;
} else {
this.Error(res.data.message);
that.Error(res.data.message);
}
this.loading2 = false
},
err => {}
);
}
},
//领队账户管理
AccountManage(item) {
this.$router.push({
name: "empBankAccount",
query: { id: item.ID, type: 7,blank:'y',tab:'账户管理'}
});
},
setEngName(type, name) {
if (type == 1 && name != "") {
this.addMsg.EnSurname = this.$languageUtils.ConvertChineseToPinYin(
name
},
getCountry() {
//获取国家
this.apipost(
"dict_post_Destination_GetCountry", {},
res => {
this.countryList = res.data.data;
},
err => {}
);
} else {
this.addMsg.EnName = this.$languageUtils.ConvertChineseToPinYin(name);
}
},
goUrl(path, ID) {
this.$router.push({
path: path,
query: {
id: ID,
blank:'y',
tab:'档期管理'
}
});
},
goUrl2(path, ID) {
this.$router.push({
path: path,
query: {
id: ID,
Type: 2,
blank:'y',
tab:'绩效统计'
}
});
},
//获取现有领队列表
getList() {
var that = this;
that.loading = true;
that.apipost(
"leader_post_GetPageList",
that.msg,
res => {
that.loading = false;
if (res.data.resultCode == 1) {
that.DataList = res.data.data.pageData;
that.msg.total = res.data.data.count;
} else {
that.Error(res.data.message);
}
},
err => {}
);
},
getCountry() {
//获取国家
this.apipost(
"dict_post_Destination_GetCountry",
{},
res => {
this.countryList = res.data.data;
},
err => {}
);
},
//获取工作类型(值获取领兼地和导游)
getWorkType() {
this.apipost(
"leader_post_GetType",
{},
res => {
if (res.data.resultCode == 1) {
res.data.data.forEach(item => {
// if (item.Value != 1) {
},
//获取工作类型(值获取领兼地和导游)
getWorkType() {
this.apipost(
"leader_post_GetType", {},
res => {
if (res.data.resultCode == 1) {
res.data.data.forEach(item => {
// if (item.Value != 1) {
this.workTypeList.push(item);
// }
});
}
},
err => {}
);
},
//获取中国下面的城市列表
getCityList() {
this.apipost(
"dict_post_Destination_GetChildList",
{
Id: 2
},
res => {
this.cityList = res.data.data;
},
err => {}
);
},
//获取语言
getLanguage() {
this.apipost(
"language_post_GetList",
{},
res => {
this.LanguageList = res.data.data;
},
err => {}
);
},
//获取员工列表获取账号
getEmployeeList() {
let msg = {
GroupId: "",
BranchId: "",
DepartmentId: "",
PostId: "",
IsLeave: "0"
};
this.apipost(
"admin_get_EmployeeGetList",
msg,
res => {
this.EmployeeList = res.data.data;
},
err => {}
);
},
//获取公司列表
getBranchList() {
let msg = {
Status: "0",
is_show: "",
RB_Group_Id: ""
};
this.apipost(
"admin_get_BranchGetList",
msg,
res => {
this.BranchList = res.data.data;
},
err => {}
);
},
//获取部门
getDerpartMent(id){
// }
});
}
},
err => {}
);
},
//获取中国下面的城市列表
getCityList() {
this.apipost(
"dict_post_Destination_GetChildList", {
Id: 2
},
res => {
this.cityList = res.data.data;
},
err => {}
);
},
//获取语言
getLanguage() {
this.apipost(
"language_post_GetList", {},
res => {
this.LanguageList = res.data.data;
},
err => {}
);
},
//获取员工列表获取账号
getEmployeeList() {
let msg = {
GroupId: "",
BranchId: "",
DepartmentId: "",
PostId: "",
IsLeave: "0"
};
this.apipost(
"admin_get_EmployeeGetList",
msg,
res => {
this.EmployeeList = res.data.data;
},
err => {}
);
},
//获取公司列表
getBranchList() {
let msg = {
Status: "0",
is_show: "",
RB_Group_Id: ""
};
this.apipost(
"admin_get_BranchGetList",
msg,
res => {
this.BranchList = res.data.data;
},
err => {}
);
},
//获取部门
getDerpartMent(id) {
this.getDepartmentMsg.RB_Branch_Id = id;
this.apipost('admin_get_DepartmentGetList',this.getDepartmentMsg,res=>{
if(res.data.resultCode==1){
this.departMentList=res.data.data;
}else{}
},err=>{})
this.apipost('admin_get_DepartmentGetList', this.getDepartmentMsg, res => {
if (res.data.resultCode == 1) {
this.departMentList = res.data.data;
} else {}
}, err => {})
},
//岗位
getPost(id,id2){
//岗位
getPost(id, id2) {
this.getPostMsg.RB_Department_Id = id2;
this.getPostMsg.RB_Branch_Id = id;
this.apipost('admin_get_PostGetList',this.getPostMsg,res=>{
if(res.data.resultCode==1){
this.PostList=res.data.data;
}else{}
},err=>{})
},
//添加
addGroupGuide() {
this.apipost(
"leader_post_Set",
this.addMsg,
res => {
this.apipost('admin_get_PostGetList', this.getPostMsg, res => {
if (res.data.resultCode == 1) {
this.Success("保存成功!");
this.getList();
this.outerVisible = false;
this.initAddMsg();
if (res.data.data.PassWord) {
this.regMsgVisible = true;
this.regMsg = res.data.data;
this.PostList = res.data.data;
} else {}
}, err => {})
},
//添加
addGroupGuide() {
this.apipost(
"leader_post_Set",
this.addMsg,
res => {
if (res.data.resultCode == 1) {
this.Success("保存成功!");
this.getList();
this.outerVisible = false;
this.initAddMsg();
if (res.data.data.PassWord) {
this.regMsgVisible = true;
this.regMsg = res.data.data;
}
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
submitForm(addMsg) {
//提交创建、修改表单
let that = this;
let LanguageSring = "";
if (this.LanguageIdS != "") {
that.LanguageIdS.forEach(x => {
LanguageSring = LanguageSring + x + ",";
});
}
that.addMsg.LanguageId = LanguageSring;
that.$refs[addMsg].validate(valid => {
if (valid) {
that.addGroupGuide();
} else {
this.Error(res.data.message);
return false;
}
},
err => {}
);
},
submitForm(addMsg) {
//提交创建、修改表单
let that = this;
let LanguageSring = "";
if (this.LanguageIdS != "") {
that.LanguageIdS.forEach(x => {
LanguageSring = LanguageSring + x + ",";
});
}
that.addMsg.LanguageId = LanguageSring;
that.$refs[addMsg].validate(valid => {
if (valid) {
that.addGroupGuide();
} else {
return false;
}
});
},
deletelist(ID) {
var that = this;
that.Confirm(this.$t('tips.shifoushanchu'), function() {
that.apipost(
"leader_post_Remove",
{
},
deletelist(ID) {
var that = this;
that.Confirm(this.$t('tips.shifoushanchu'), function () {
that.apipost(
"leader_post_Remove", {
ID: ID
},
res => {
if (res.data.resultCode == 1) {
that.getList();
}
},
err => {}
);
});
},
initAddMsg() {
//初始化创建、修改表单数据
let newMsg = {
ID: "0",
Type: "3",
EmployeeId: "",
Surname: "",
Name: "",
EnSurname: "",
EnName: "",
IdCard: "",
BirthDate: "",
BirthPlace: "",
Sex: "",
MobilePhone: "",
Passport: "",
IssuePlace: "",
IssueDate: "",
ExpiryDate: "",
CountryID: "",
LanguageId: "",
Remarks: "",
VisaNumber: "",
LeaderGuidType: "",
LeaderGuidClass: 0,
SpareTel: '',
emRB_Department_Id: '',
emRB_Post_Id: '',
RB_Branch_id: '',
EmAccount: '',
EmPassword: ''
};
this.addMsg = newMsg;
},
//翻页功能按钮
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
//查询初始化页码
resetPageIndex() {
this.msg.pageIndex = 1;
this.msg.currentPage = 1;
},
//修改
updateData(ID) {
this.LanguageIdS = [];
this.apipost(
"leader_post_Get", {
ID: ID
},
res => {
if (res.data.resultCode == 1) {
that.getList();
let LanguageIdArr = [];
this.addMsg = res.data.data;
this.addMsg.LeaderGuidClass = this.addMsg.LeaderGuidClass ? this.addMsg.LeaderGuidClass : 0;
this.addMsg.Type = this.addMsg.Type.toString();
this.addMsg.Sex = this.addMsg.Sex.toString();
this.addMsg.LeaderGuidType = this.addMsg.LeaderGuidType.toString();
this.addMsg.VisaNumber = this.addMsg.VisaNumber.toString();
if (this.addMsg.emRB_Department_Id) {
this.getPost(this.addMsg.RB_Branch_id, this.addMsg.emRB_Department_Id);
this.getDerpartMent(this.addMsg.RB_Branch_id)
}
if (this.addMsg.LanguageId) {
this.addMsg.LanguageId = this.addMsg.LanguageId.substr(
0,
this.addMsg.LanguageId.length - 1
);
LanguageIdArr = this.addMsg.LanguageId.split(",");
LanguageIdArr.forEach(x => {
this.LanguageIdS.push(Number(x));
});
}
this.searchKey(this.addMsg.CityName)
this.addMsg.EmPassword = "";
},
err => {}
);
});
},
initAddMsg() {
//初始化创建、修改表单数据
let newMsg = {
ID: "0",
Type: "3",
EmployeeId: "",
Surname: "",
Name: "",
EnSurname: "",
EnName: "",
IdCard: "",
BirthDate: "",
BirthPlace: "",
Sex: "",
MobilePhone: "",
Passport: "",
IssuePlace: "",
IssueDate: "",
ExpiryDate: "",
CountryID: "",
LanguageId: "",
Remarks: "",
VisaNumber: "",
LeaderGuidType: "",
LeaderGuidClass:0,
SpareTel:'',
emRB_Department_Id:'',
emRB_Post_Id:'',
RB_Branch_id:'',
EmAccount:'',
EmPassword:''
};
this.addMsg = newMsg;
},
//弹出框关闭初始化弹框内表单
closeChangeMachie(done) {
done();
this.resetForm("addMsg");
},
//弹出框取消 初始化谈框内表单
resetForm(formName) {
this.$refs[formName].resetFields();
this.LanguageIdS = [];
}
},
//翻页功能按钮
handleCurrentChange(val) {
this.msg.pageIndex = val;
mounted() {
this.getList();
},
//查询初始化页码
resetPageIndex() {
this.msg.pageIndex = 1;
this.msg.currentPage = 1;
},
//修改
updateData(ID) {
this.LanguageIdS = [];
this.apipost(
"leader_post_Get",
{
ID: ID
},
res => {
let LanguageIdArr = [];
this.addMsg = res.data.data;
this.addMsg.LeaderGuidClass = this.addMsg.LeaderGuidClass ? this.addMsg.LeaderGuidClass : 0;
this.addMsg.Type = this.addMsg.Type.toString();
this.addMsg.Sex = this.addMsg.Sex.toString();
this.addMsg.LeaderGuidType = this.addMsg.LeaderGuidType.toString();
this.addMsg.VisaNumber = this.addMsg.VisaNumber.toString();
if(this.addMsg.emRB_Department_Id){
this.getPost(this.addMsg.RB_Branch_id,this.addMsg.emRB_Department_Id);
this.getDerpartMent(this.addMsg.RB_Branch_id)
}
if (this.addMsg.LanguageId) {
this.addMsg.LanguageId = this.addMsg.LanguageId.substr(
0,
this.addMsg.LanguageId.length - 1
);
LanguageIdArr = this.addMsg.LanguageId.split(",");
LanguageIdArr.forEach(x => {
this.LanguageIdS.push(Number(x));
});
}
this.searchKey(this.addMsg.CityName)
this.addMsg.EmPassword="";
},
err => {}
);
},
//弹出框关闭初始化弹框内表单
closeChangeMachie(done) {
done();
this.resetForm("addMsg");
},
//弹出框取消 初始化谈框内表单
resetForm(formName) {
this.$refs[formName].resetFields();
this.LanguageIdS = [];
this.getCountry();
this.getCityList();
this.getWorkType();
this.getLanguage();
this.getEmployeeList();
this.getBranchList();
let userInfo = this.getLocalStorage();
// this.getPostMsg.RB_Group_Id=this.getDepartmentMsg.RB_Group_Id=this.addMsg.RB_Group_id=this.msg.RB_Group_id=userInfo.RB_Group_id; //集团
}
},
mounted() {
this.getList();
this.getCountry();
this.getCityList();
this.getWorkType();
this.getLanguage();
this.getEmployeeList();
this.getBranchList();
let userInfo=this.getLocalStorage();
// this.getPostMsg.RB_Group_Id=this.getDepartmentMsg.RB_Group_Id=this.addMsg.RB_Group_id=this.msg.RB_Group_id=userInfo.RB_Group_id; //集团
}
};
};
</script>
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