Commit 5209fd6f authored by 黄奎's avatar 黄奎

页面修改

parent 0599d826
...@@ -433,6 +433,7 @@ ...@@ -433,6 +433,7 @@
</div> </div>
</el-tooltip> </el-tooltip>
<div class="btnList"> <div class="btnList">
<template v-if="userInfo.RB_Group_id==2">
<button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan"> <button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan">
{{ $t("pub.updateMsg") }} {{ $t("pub.updateMsg") }}
</button> </button>
...@@ -445,7 +446,7 @@ ...@@ -445,7 +446,7 @@
</button> </button>
<br /> <br />
<button v-if="IsHotelPriceStock==1" style="width: 80px; margin-top: 10px" <button v-if="IsHotelPriceStock==1||userInfo.RB_Group_id!=2" style="width: 80px; margin-top: 10px"
@click="goUrl('HotelProductManage2', item)" class="hotelBtnMan"> @click="goUrl('HotelProductManage2', item)" class="hotelBtnMan">
{{ $t("ground.baojiayukucun") }} {{ $t("ground.baojiayukucun") }}
</button> </button>
...@@ -456,6 +457,19 @@ ...@@ -456,6 +457,19 @@
<template v-if="item.MaxFileDate&&item.MaxFileDate!=''"> <template v-if="item.MaxFileDate&&item.MaxFileDate!=''">
<span style="color:red">最近一次上传时间:{{item.MaxFileDate}}</span> <span style="color:red">最近一次上传时间:{{item.MaxFileDate}}</span>
</template> </template>
</template>
<template v-else>
<button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan">
{{ $t("pub.updateMsg") }}
</button>
<button @click="CopyHotel(item.ID)" class="hotelBtnMan" v-if="userInfo.RB_Group_id == QjGroupId()">
复制
</button>
<button style="width: 80px; margin-top: 10px" @click="goUrl('HotelProductManage2', item)"
class="hotelBtnMan">
{{ $t("ground.baojiayukucun") }}
</button>
</template>
</div> </div>
</div> </div>
</div> </div>
......
<style> <style>
.addMsgSW{ .addMsgSW {
width: 105px; width: 105px;
} }
.updateMsgSw{
.updateMsgSw {
width: 169px; width: 169px;
} }
._info_img ul { ._info_img ul {
/* padding: 10px 0 */ /* padding: 10px 0 */
} }
...@@ -59,17 +61,23 @@ ...@@ -59,17 +61,23 @@
text-align: center; text-align: center;
overflow: auto; overflow: auto;
} }
.page_MyCustomer .icon-guanbi1{
width: 18px;height: 18px; .page_MyCustomer .icon-guanbi1 {
width: 18px;
height: 18px;
line-height: 20px; line-height: 20px;
text-align: center; text-align: center;
color: #fff;position: absolute; color: #fff;
right: -5px;top: -10px; position: absolute;
background: #dedede;border-radius: 50%; right: -5px;
top: -10px;
background: #dedede;
border-radius: 50%;
font-size: 12px; font-size: 12px;
cursor: pointer; cursor: pointer;
z-index: 3; z-index: 3;
} }
.page_MyCustomer ._mc_addbox { .page_MyCustomer ._mc_addbox {
height: 52px; height: 52px;
width: 100%; width: 100%;
...@@ -476,10 +484,11 @@ ...@@ -476,10 +484,11 @@
</li> </li>
<li> <li>
<button class="hollowFixedBtn" @click="reSearchPage">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="reSearchPage">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" <button class="normalBtn" @click="clickAdd">{{$t('salesModule.addCustomer')}}</button>
@click="clickAdd">{{$t('salesModule.addCustomer')}}</button> <template v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<button class="normalBtn" @click="outerVisible=true">导入</button> <button class="normalBtn" @click="outerVisible=true">导入</button>
<button class="normalBtn" @click="getDownList">模板下载</button> <button class="normalBtn" @click="getDownList">模板下载</button>
</template>
</li> </li>
</div> </div>
<div class="_mc_addbox"> <div class="_mc_addbox">
...@@ -505,7 +514,8 @@ ...@@ -505,7 +514,8 @@
</li> </li>
</div> </div>
<div class="_mc_list _scrollbar" :class="addShow==true?'_edHeight':''"> <div class="_mc_list _scrollbar" :class="addShow==true?'_edHeight':''">
<table v-if="msg.CustomerStatus!=0" class="MycustomerTable singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table v-if="msg.CustomerStatus!=0" class="MycustomerTable singeRowTable" border="0" cellspacing="0"
cellpadding="0" v-loading="loading">
<tr> <tr>
<th>姓名</th> <th>姓名</th>
<th>联系电话</th> <th>联系电话</th>
...@@ -575,7 +585,8 @@ ...@@ -575,7 +585,8 @@
<td><span style="cursor: pointer;text-decoration: underline;" <td><span style="cursor: pointer;text-decoration: underline;"
@click.stop="goUrC('CouponsList',item.customerAccountId)">{{item.couponNum}}</span></td> @click.stop="goUrC('CouponsList',item.customerAccountId)">{{item.couponNum}}</span></td>
<td> <td>
<span style="cursor: pointer;color: #2CA4F0" @click="seeDeta(item)">{{ item.depositMoney?item.depositMoney:0 }}</span> <span style="cursor: pointer;color: #2CA4F0"
@click="seeDeta(item)">{{ item.depositMoney?item.depositMoney:0 }}</span>
</td> </td>
<td> <td>
<el-tooltip class="item" effect="dark" content="编辑" placement="top-start"> <el-tooltip class="item" effect="dark" content="编辑" placement="top-start">
...@@ -591,8 +602,8 @@ ...@@ -591,8 +602,8 @@
icon="iconfont icon-icon-test6" circle></el-button> icon="iconfont icon-icon-test6" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="团队成员" placement="top-start"> <el-tooltip class="item" effect="dark" content="团队成员" placement="top-start">
<el-button style="padding:4px" @click.stop="goTeamMember(item)" type="primary" <el-button style="padding:4px" @click.stop="goTeamMember(item)" type="primary" icon="el-icon-user-solid"
icon="el-icon-user-solid" circle></el-button> circle></el-button>
</el-tooltip> </el-tooltip>
</td> </td>
</tr> </tr>
...@@ -601,7 +612,8 @@ ...@@ -601,7 +612,8 @@
</tr> </tr>
</table> </table>
<!-- 产品列表 --> <!-- 产品列表 -->
<signedClientList v-else :loading="loading" :list="dataList" :isVisa="isVisa" @success="reSearchPage" :pagesTitle="pagesTitle"></signedClientList> <signedClientList v-else :loading="loading" :list="dataList" :isVisa="isVisa" @success="reSearchPage"
:pagesTitle="pagesTitle"></signedClientList>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total">
</el-pagination> </el-pagination>
...@@ -612,8 +624,8 @@ ...@@ -612,8 +624,8 @@
<p class="_tit">{{$t('salesModule.addCustomer')}} <p class="_tit">{{$t('salesModule.addCustomer')}}
<span class="fr"> <span class="fr">
<button class="hollowFixedBtn" type="button" @click="cancelEdit()">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" type="button" @click="cancelEdit()">{{$t('pub.cancelBtn')}}</button>
<el-button type="button" class="normalBtn" v-if='allowAdd' @click="saveVisa()" <el-button type="button" class="normalBtn" v-if='allowAdd' @click="saveVisa()" :loading="loadingSave">
:loading="loadingSave">{{$t('pub.saveBtn')}}</el-button> {{$t('pub.saveBtn')}}</el-button>
</span> </span>
</p> </p>
</div> </div>
...@@ -681,31 +693,27 @@ ...@@ -681,31 +693,27 @@
<div style="display: flex;flex-wrap: wrap;"> <div style="display: flex;flex-wrap: wrap;">
<div class="_info_img" v-if="addMsg.BusinessCardPhotos&&addMsg.BusinessCardPhotos.length>0"> <div class="_info_img" v-if="addMsg.BusinessCardPhotos&&addMsg.BusinessCardPhotos.length>0">
<ul class="clearfix"> <ul class="clearfix">
<li v-for="(img,imgI) in addMsg.BusinessCardPhotos" style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;"> <li v-for="(img,imgI) in addMsg.BusinessCardPhotos"
style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;">
<img v-if="!img" src="../../assets/img/Travelslider.png" alt=""> <img v-if="!img" src="../../assets/img/Travelslider.png" alt="">
<el-image <el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]">
v-if="img&&verificationFile(img,3)"
:src="img"
:preview-src-list="[img]">
</el-image> </el-image>
<div v-if="img&&verificationFile(img,1)" <div v-if="img&&verificationFile(img,1)"
style="width: 50px; line-height: 50px;text-align: center;"> style="width: 50px; line-height: 50px;text-align: center;">
<span class="_wenjian_P iconfont" <span class="_wenjian_P iconfont"
:class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span> :class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span>
</div> </div>
<span class="iconfont icon-guanbi1" <span class="iconfont icon-guanbi1" @click="deleteUploadFile(imgI)"></span>
@click="deleteUploadFile(imgI)"></span> <div v-if="img&&verificationFile(img,1)" class="_see_img"
<div v-if="img&&verificationFile(img,1)" class="_see_img" @click="verificationFile(img,3)?'':showUpLoadFile2(img)"> @click="verificationFile(img,3)?'':showUpLoadFile2(img)">
<i class="iconfont icon-sousuo"></i> <i class="iconfont icon-sousuo"></i>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<div style="display: flex; justify-content: end;"> <div style="display: flex; justify-content: end;">
<el-upload class="upload-demo" <el-upload class="upload-demo" ref="my-upload"
ref="my-upload" style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg"
style="display:inline-block;position:relative;top:-1px;left:3px;"
:http-request="uploadImg"
:show-file-list="false" action=""> :show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button> <el-button size="small" type="primary">上传合同</el-button>
</el-upload> </el-upload>
...@@ -717,34 +725,19 @@ ...@@ -717,34 +725,19 @@
<el-form-item label="平台用户名"> <el-form-item label="平台用户名">
<div style="display: flex;flex-wrap: nowrap;justify-content: space-between;"> <div style="display: flex;flex-wrap: nowrap;justify-content: space-between;">
<div style="display: flex; flex-wrap: wrap;align-items: center;"> <div style="display: flex; flex-wrap: wrap;align-items: center;">
<el-tag <el-tag :key="tag" v-for="tag in addMsg.PlatformUserNameList" closable :disable-transitions="false"
:key="tag" @close="handleClose(tag,1)" size="medium" style="margin-right: 5px;margin-bottom: 3px;">
v-for="tag in addMsg.PlatformUserNameList"
closable
:disable-transitions="false"
@close="handleClose(tag,1)"
size="medium"
style="margin-right: 5px;margin-bottom: 3px;">
{{tag}} {{tag}}
</el-tag> </el-tag>
<div> <div>
<el-input <el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInputTwo"
class="input-new-tag" size="small" @keyup.enter.native="handleInputConfirm(1)" @blur="handleInputConfirm(1)">
v-if="inputVisible"
v-model="inputValue"
ref="saveTagInputTwo"
size="small"
@keyup.enter.native="handleInputConfirm(1)"
@blur="handleInputConfirm(1)"
>
</el-input> </el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput(1)">+ 添加</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput(1)">+ 添加</el-button>
</div> </div>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="签约月结客户" prop="SigningType"> <el-form-item label="签约月结客户" prop="SigningType">
...@@ -763,7 +756,6 @@ ...@@ -763,7 +756,6 @@
<template v-for="(subItem,subIndex) in saveMsg"> <template v-for="(subItem,subIndex) in saveMsg">
<a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex" <a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
@click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a> @click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a>
<a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;" <a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
@click="DeleteFile(subIndex)">删除</a> @click="DeleteFile(subIndex)">删除</a>
</template> </template>
...@@ -777,7 +769,8 @@ ...@@ -777,7 +769,8 @@
<template v-if="isShow"> <template v-if="isShow">
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('salesModule.CustomerSource')" prop="CustomerSourceType"> <el-form-item :label="$t('salesModule.CustomerSource')" prop="CustomerSourceType">
<el-select filterable v-model='addMsg.CustomerSourceType' style="width: 100%;" :placeholder="$t('pub.pleaseSel')"> <el-select filterable v-model='addMsg.CustomerSourceType' style="width: 100%;"
:placeholder="$t('pub.pleaseSel')">
<el-option v-for='item in khly' :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for='item in khly' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
...@@ -808,7 +801,6 @@ ...@@ -808,7 +801,6 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('hotel.hotel_remark')" prop="remark"> <el-form-item :label="$t('hotel.hotel_remark')" prop="remark">
<el-input v-model="addMsg.remark" autosize type="textarea" maxlength="500"></el-input> <el-input v-model="addMsg.remark" autosize type="textarea" maxlength="500"></el-input>
...@@ -819,7 +811,6 @@ ...@@ -819,7 +811,6 @@
<el-input v-model="addMsg.CustomerSource" maxlength="20"></el-input> <el-input v-model="addMsg.CustomerSource" maxlength="20"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('salesModule.doorPhoto')"> <el-form-item :label="$t('salesModule.doorPhoto')">
<el-upload class="avatar-uploader" action="" :http-request="uploadImg1" <el-upload class="avatar-uploader" action="" :http-request="uploadImg1"
...@@ -854,8 +845,7 @@ ...@@ -854,8 +845,7 @@
<div slot="tip" class="el-upload__tip">只能上传Excel文件</div> <div slot="tip" class="el-upload__tip">只能上传Excel文件</div>
</el-upload> </el-upload>
</el-dialog> </el-dialog>
<div class="MyCustomerDetailbottomLayer ownScrollbarStyle" <div class="MyCustomerDetailbottomLayer ownScrollbarStyle" style="height:500px;" v-if="addLayer1">
style="height:500px;" v-if="addLayer1">
<p>修改客户信息</p> <p>修改客户信息</p>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="18"> <el-col :span="18">
...@@ -866,8 +856,7 @@ ...@@ -866,8 +856,7 @@
<input type="button" class="normalBtn" value="保存" @click="saveUpdate()" /> <input type="button" class="normalBtn" value="保存" @click="saveUpdate()" />
</el-col> </el-col>
</el-row> </el-row>
<el-form label-width="80px" > <el-form label-width="80px">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-form-item label="联系电话"> <el-form-item label="联系电话">
...@@ -887,8 +876,7 @@ ...@@ -887,8 +876,7 @@
</el-col> </el-col>
<el-col :span="4" v-if="updateMsg.customerExceptionList.length > 0"> <el-col :span="4" v-if="updateMsg.customerExceptionList.length > 0">
<el-form-item label="解决异常"> <el-form-item label="解决异常">
<el-select filterable multiple clearable collapse-tags <el-select filterable multiple clearable collapse-tags v-model='updateMsg.CustomerExceptionIds'>
v-model='updateMsg.CustomerExceptionIds'>
<el-option v-for='item in updateMsg.customerExceptionList' :label='item.exceptionName' <el-option v-for='item in updateMsg.customerExceptionList' :label='item.exceptionName'
:value='item.exceptionId' :key='item.exceptionId'> :value='item.exceptionId' :key='item.exceptionId'>
</el-option> </el-option>
...@@ -976,29 +964,24 @@ ...@@ -976,29 +964,24 @@
<li v-for="(img,imgI) in updateMsg.BusinessCardPhotos" <li v-for="(img,imgI) in updateMsg.BusinessCardPhotos"
style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;"> style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;">
<img v-if="!img" src="../../assets/img/Travelslider.png" alt=""> <img v-if="!img" src="../../assets/img/Travelslider.png" alt="">
<el-image <el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]">
v-if="img&&verificationFile(img,3)"
:src="img"
:preview-src-list="[img]">
</el-image> </el-image>
<div v-if="img&&verificationFile(img,1)" <div v-if="img&&verificationFile(img,1)"
style="width: 50px; line-height: 50px;text-align: center;"> style="width: 50px; line-height: 50px;text-align: center;">
<span class="_wenjian_P iconfont" <span class="_wenjian_P iconfont"
:class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span> :class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span>
</div> </div>
<span class="iconfont icon-guanbi1" <span class="iconfont icon-guanbi1" @click="deleteUploadFile(imgI)"></span>
@click="deleteUploadFile(imgI)"></span> <div v-if="img&&verificationFile(img,1)" class="_see_img"
<div v-if="img&&verificationFile(img,1)" class="_see_img" @click="verificationFile(img,3)?'':showUpLoadFile2(img)"> @click="verificationFile(img,3)?'':showUpLoadFile2(img)">
<i class="iconfont icon-sousuo"></i> <i class="iconfont icon-sousuo"></i>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<div style="display: flex; justify-content: end;"> <div style="display: flex; justify-content: end;">
<el-upload class="upload-demo" <el-upload class="upload-demo" ref="my-upload"
ref="my-upload" style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg"
style="display:inline-block;position:relative;top:-1px;left:3px;"
:http-request="uploadImg"
:show-file-list="false" action=""> :show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button> <el-button size="small" type="primary">上传合同</el-button>
</el-upload> </el-upload>
...@@ -1008,25 +991,12 @@ ...@@ -1008,25 +991,12 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="平台用户名"> <el-form-item label="平台用户名">
<el-tag <el-tag :key="tag" v-for="tag in updateMsg.PlatformUserNameList" closable :disable-transitions="false"
:key="tag" @close="handleClose(tag)" size="small" style="margin-right: 5px;margin-bottom: 3px;">
v-for="tag in updateMsg.PlatformUserNameList"
closable
:disable-transitions="false"
@close="handleClose(tag)"
size="small"
style="margin-right: 5px;margin-bottom: 3px;">
{{tag}} {{tag}}
</el-tag> </el-tag>
<el-input <el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInput" size="small"
class="input-new-tag" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm">
v-if="inputVisible"
v-model="inputValue"
ref="saveTagInput"
size="small"
@keyup.enter.native="handleInputConfirm"
@blur="handleInputConfirm"
>
</el-input> </el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 添加</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput">+ 添加</el-button>
</el-form-item> </el-form-item>
...@@ -1055,8 +1025,7 @@ ...@@ -1055,8 +1025,7 @@
</div> </div>
<detailList v-if="showdetail" :ClientId="detailObj&&detailObj.customerId" @cancel="showdetail=false"></detailList> <detailList v-if="showdetail" :ClientId="detailObj&&detailObj.customerId" @cancel="showdetail=false"></detailList>
<!-- 团队成员 --> <!-- 团队成员 -->
<TeamMemberList v-if="ShowTeamMember" :customerId="customerId" <TeamMemberList v-if="ShowTeamMember" :customerId="customerId" @close="ShowTeamMember=false,customerId=null"
@close="ShowTeamMember=false,customerId=null"
@success="getList"></TeamMemberList> @success="getList"></TeamMemberList>
</div> </div>
</template> </template>
...@@ -1065,7 +1034,7 @@ ...@@ -1065,7 +1034,7 @@
import signedClientList from './Common/signedClientList' import signedClientList from './Common/signedClientList'
import TeamMemberList from './Common/TeamMemberList' import TeamMemberList from './Common/TeamMemberList'
export default { export default {
components:{ components: {
signedClientList, signedClientList,
detailList, detailList,
TeamMemberList TeamMemberList
...@@ -1253,6 +1222,7 @@ ...@@ -1253,6 +1222,7 @@
isShow: true, isShow: true,
inputVisible: false, inputVisible: false,
inputValue: '', inputValue: '',
currentUserInfo: {}, //当前登录用户
} }
}, },
methods: { methods: {
...@@ -1263,19 +1233,19 @@ ...@@ -1263,19 +1233,19 @@
window.open("https://view.officeapps.live.com/op/view.aspx?src=" + i) window.open("https://view.officeapps.live.com/op/view.aspx?src=" + i)
} }
}, },
handleClose(tag,type) { handleClose(tag, type) {
if(type==1){ if (type == 1) {
this.addMsg.PlatformUserNameList.splice(this.addMsg.PlatformUserNameList.indexOf(tag), 1); this.addMsg.PlatformUserNameList.splice(this.addMsg.PlatformUserNameList.indexOf(tag), 1);
}else{ } else {
this.updateMsg.PlatformUserNameList.splice(this.updateMsg.PlatformUserNameList.indexOf(tag), 1); this.updateMsg.PlatformUserNameList.splice(this.updateMsg.PlatformUserNameList.indexOf(tag), 1);
} }
}, },
showInput(type) { showInput(type) {
this.inputVisible = true; this.inputVisible = true;
this.$nextTick(_ => { this.$nextTick(_ => {
if(type==1){ if (type == 1) {
this.$refs.saveTagInputTwo.$refs.input.focus(); this.$refs.saveTagInputTwo.$refs.input.focus();
}else{ } else {
this.$refs.saveTagInput.$refs.input.focus(); this.$refs.saveTagInput.$refs.input.focus();
} }
}); });
...@@ -1283,35 +1253,35 @@ ...@@ -1283,35 +1253,35 @@
handleInputConfirm(type) { handleInputConfirm(type) {
let inputValue = this.inputValue; let inputValue = this.inputValue;
if (inputValue) { if (inputValue) {
if(type==1){ if (type == 1) {
this.addMsg.PlatformUserNameList.push(inputValue); this.addMsg.PlatformUserNameList.push(inputValue);
}else{ } else {
this.updateMsg.PlatformUserNameList.push(inputValue); this.updateMsg.PlatformUserNameList.push(inputValue);
} }
} }
this.inputVisible = false; this.inputVisible = false;
this.inputValue = ''; this.inputValue = '';
}, },
goTeamMember(row){ goTeamMember(row) {
this.customerId = row.customerId this.customerId = row.customerId
this.ShowTeamMember = true this.ShowTeamMember = true
}, },
seeDeta(row){ seeDeta(row) {
this.detailObj = row this.detailObj = row
this.showdetail = true this.showdetail = true
}, },
reSearchPage(){ reSearchPage() {
this.msg.pageIndex = 1 this.msg.pageIndex = 1
this.currentPage = 1 this.currentPage = 1
this.getList() this.getList()
}, },
clickAdd(){ clickAdd() {
this.cancelData() this.cancelData()
this.inputValue = '' this.inputValue = ''
this.inputVisible = false this.inputVisible = false
this.addShow=true; this.addShow = true;
this.isOldPerson=false, this.isOldPerson = false,
this.addLayer1=false this.addLayer1 = false
}, },
uploadFileBtn(file) { //上传 uploadFileBtn(file) { //上传
if (file.file.size > 1024 * 1024 * 100) { if (file.file.size > 1024 * 1024 * 100) {
...@@ -1444,11 +1414,11 @@ ...@@ -1444,11 +1414,11 @@
} }
}) })
let AreaName = sheng + shi + qu let AreaName = sheng + shi + qu
if(this.updateMsg.Address==''||!this.updateMsg.Address){ if (this.updateMsg.Address == '' || !this.updateMsg.Address) {
this.updateMsg.Address = AreaName this.updateMsg.Address = AreaName
// this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address // this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address
} }
if(this.updateMsg.Address&&this.updateMsg.Address.indexOf(AreaName)==-1){ if (this.updateMsg.Address && this.updateMsg.Address.indexOf(AreaName) == -1) {
this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address
} }
...@@ -1464,14 +1434,13 @@ ...@@ -1464,14 +1434,13 @@
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
}, err => { }, err => {})
})
}, },
deleteUploadFile(fIndex,type){ deleteUploadFile(fIndex, type) {
if(type){ if (type) {
this.addMsg.BusinessCardPhotos.splice(fIndex,1) this.addMsg.BusinessCardPhotos.splice(fIndex, 1)
}else{ } else {
this.updateMsg.BusinessCardPhotos.splice(fIndex,1) this.updateMsg.BusinessCardPhotos.splice(fIndex, 1)
} }
}, },
uploadImgNew(file) { uploadImgNew(file) {
...@@ -1530,11 +1499,12 @@ ...@@ -1530,11 +1499,12 @@
this.updateMsg.CustomerExceptionIds = [] this.updateMsg.CustomerExceptionIds = []
this.updateMsg.District = x.district this.updateMsg.District = x.district
this.BusinessCardPhotos = x.businessCardPhotos && x.businessCardPhotos.length > 0?x.businessCardPhotos[0]:'' this.BusinessCardPhotos = x.businessCardPhotos && x.businessCardPhotos.length > 0 ? x
this.updateMsg.BusinessCardPhotos = x.businessCardPhotos?x.businessCardPhotos:[] .businessCardPhotos[0] : ''
this.updateMsg.PlatformUserNameList = x.platformUserNameList?x.platformUserNameList:[] this.updateMsg.BusinessCardPhotos = x.businessCardPhotos ? x.businessCardPhotos : []
this.Images = x.images && x.images.length > 0?x.images[0]:'' this.updateMsg.PlatformUserNameList = x.platformUserNameList ? x.platformUserNameList : []
this.HousePhotos = x.housePhotos && x.housePhotos.length > 0?x.housePhotos[0]:'' this.Images = x.images && x.images.length > 0 ? x.images[0] : ''
this.HousePhotos = x.housePhotos && x.housePhotos.length > 0 ? x.housePhotos[0] : ''
this.updateMsg.uniqueCode = x.uniqueCode this.updateMsg.uniqueCode = x.uniqueCode
this.updateMsg.lineid = x.lineid this.updateMsg.lineid = x.lineid
...@@ -1633,10 +1603,10 @@ ...@@ -1633,10 +1603,10 @@
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
that.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath that.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
if(that.addShow==true){ if (that.addShow == true) {
that.addMsg.BusinessCardPhotos.push(that.BusinessCardPhotos) that.addMsg.BusinessCardPhotos.push(that.BusinessCardPhotos)
} }
if(that.addLayer1==true){ if (that.addLayer1 == true) {
that.updateMsg.BusinessCardPhotos.push(that.BusinessCardPhotos) that.updateMsg.BusinessCardPhotos.push(that.BusinessCardPhotos)
} }
that.$message.success('上传成功'); that.$message.success('上传成功');
...@@ -1814,10 +1784,10 @@ ...@@ -1814,10 +1784,10 @@
}, },
clickGetList(type) { clickGetList(type) {
this.msg.CustomerStatus = type this.msg.CustomerStatus = type
if(type==0){ if (type == 0) {
this.msg.SigningType=1 this.msg.SigningType = 1
}else{ } else {
this.msg.SigningType=0 this.msg.SigningType = 0
} }
this.reSearchPage() this.reSearchPage()
}, },
...@@ -1914,11 +1884,11 @@ ...@@ -1914,11 +1884,11 @@
} }
}) })
let AreaName = sheng + shi + qu let AreaName = sheng + shi + qu
if(this.addMsg.address==''||!this.addMsg.address){ if (this.addMsg.address == '' || !this.addMsg.address) {
this.addMsg.address = AreaName this.addMsg.address = AreaName
// this.addMsg.address = AreaName + ',' + this.addMsg.address // this.addMsg.address = AreaName + ',' + this.addMsg.address
} }
if(this.addMsg.address&&this.addMsg.address.indexOf(AreaName)==-1){ if (this.addMsg.address && this.addMsg.address.indexOf(AreaName) == -1) {
this.addMsg.address = AreaName + ',' + this.addMsg.address this.addMsg.address = AreaName + ',' + this.addMsg.address
} }
if (!this.addMsg.address) { if (!this.addMsg.address) {
...@@ -1961,14 +1931,16 @@ ...@@ -1961,14 +1931,16 @@
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
this.loadingSave = false this.loadingSave = false
}, err => {this.loadingSave = false}) }, err => {
this.loadingSave = false
})
}, },
cancelEdit() { // 取消新增 cancelEdit() { // 取消新增
this.addShow = false this.addShow = false
this.cancelData() this.cancelData()
this.resetForm('addMsg') this.resetForm('addMsg')
}, },
cancelData(){ cancelData() {
this.addMsg = { this.addMsg = {
CustomerId: 0, CustomerId: 0,
customerName: '', customerName: '',
...@@ -2007,6 +1979,9 @@ ...@@ -2007,6 +1979,9 @@
this.getList(); this.getList();
}, },
}, },
created() {
this.currentUserInfo = this.getLocalStorage();
},
mounted() { mounted() {
this.getList() this.getList()
this.getCustomerBrandList() this.getCustomerBrandList()
......
...@@ -1301,25 +1301,15 @@ export default { ...@@ -1301,25 +1301,15 @@ export default {
if (this.outerVisible) { if (this.outerVisible) {
if (!blo) { if (!blo) {
this.addMsg.AirportList && this.addMsg.AirportList.forEach(x => { this.addMsg.AirportList && this.addMsg.AirportList.forEach(x => {
// x.Id=0,
// x.ProductId= 0//产品id
x.AirportId = x.AirportId ? x.AirportId : ''//机场id x.AirportId = x.AirportId ? x.AirportId : ''//机场id
// x.Lng= ''
// x.Lat= ''
x.Name = x.Name ? x.Name : ''//机场名称 包含IATA x.Name = x.Name ? x.Name : ''//机场名称 包含IATA
// x.Address= ''//详细地址
}) })
} }
this.layer_Departure_airport = res.data.data; this.layer_Departure_airport = res.data.data;
} else { } else {
this.addMsg.AirportList && this.addMsg.AirportList.forEach(x => { this.addMsg.AirportList && this.addMsg.AirportList.forEach(x => {
// x.Id=0,
// x.ProductId= 0//产品id
x.AirportId = x.AirportId ? x.AirportId : ''//机场id x.AirportId = x.AirportId ? x.AirportId : ''//机场id
// x.Lng= ''
// x.Lat= ''
x.Name = x.Name ? x.Name : ''//机场名称 包含IATA x.Name = x.Name ? x.Name : ''//机场名称 包含IATA
// x.Address= ''//详细地址
}) })
this.Departure_airport = res.data.data; this.Departure_airport = res.data.data;
} }
...@@ -1333,15 +1323,6 @@ export default { ...@@ -1333,15 +1323,6 @@ export default {
showImg: function (src) { showImg: function (src) {
this.images = [] this.images = []
this.images = JSON.parse(JSON.stringify(this.addMsg.ImageList)) this.images = JSON.parse(JSON.stringify(this.addMsg.ImageList))
// let srcArr = src.split('?')
// src = srcArr[0]
// let isExsit = false
// this.images.forEach(x => {
// if (x === src)
// isExsit = true
// })
// if (!isExsit)
// this.images.push(src)
this.$viewer.show() this.$viewer.show()
this.$viewer.view(this.images.indexOf(src)) this.$viewer.view(this.images.indexOf(src))
}, },
......
...@@ -226,15 +226,16 @@ ...@@ -226,15 +226,16 @@
/* 景区列表 */ /* 景区列表 */
</style> </style>
<template> <template>
<div class="flexOne scenicSpotList"> <div class="flexOne scenicSpotList">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span class="hotel_name"> <span class="hotel_name">
<em>产品名称</em> <em>产品名称</em>
<el-input maxlength="50" clearable @keyup.native.enter="resetPageIndex(),selectResource()" v-model="msg.Name"> <el-input maxlength="50" clearable @keyup.native.enter="resetPageIndex(),selectResource()"
v-model="msg.Name">
</el-input> </el-input>
</span> </span>
</li> </li>
...@@ -250,8 +251,7 @@ ...@@ -250,8 +251,7 @@
<li> <li>
<button class="hollowFixedBtn" type="button" <button class="hollowFixedBtn" type="button"
@click="resetPageIndex(),selectResource()">{{$t('pub.searchBtn')}}</button> @click="resetPageIndex(),selectResource()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" type="button" <button class="normalBtn" type="button" @click="goUrl('CharteringInfoManage')">{{$t('pub.addBtn')}}</button>
@click="goUrl('CharteringInfoManage')">{{$t('pub.addBtn')}}</button>
<!-- <button class="hollowFixedBtn" type="button" @click="DownLoadFile()">{{$t('adm.adm_download')}}</button> --> <!-- <button class="hollowFixedBtn" type="button" @click="DownLoadFile()">{{$t('adm.adm_download')}}</button> -->
</li> </li>
</ul> </ul>
...@@ -304,8 +304,8 @@ ...@@ -304,8 +304,8 @@
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage"
:page-size="msg.pageSize" layout="total,prev, pager, next, jumper" :total="msg.total"></el-pagination> :page-size="msg.pageSize" layout="total,prev, pager, next, jumper" :total="msg.total"></el-pagination>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
...@@ -357,12 +357,13 @@ ...@@ -357,12 +357,13 @@
}, },
methods: { methods: {
// 上下架 // 上下架
clickShelf(item){ clickShelf(item) {
var that = this; var that = this;
let text let text
if(item.ProductState==1){ if (item.ProductState == 1) {
text = '下架' text = '下架'
}if(item.ProductState==2){ }
if (item.ProductState == 2) {
text = '上架' text = '上架'
} }
that.Confirm(`是否要${text}该包车产品?`, function () { that.Confirm(`是否要${text}该包车产品?`, function () {
...@@ -527,7 +528,7 @@ ...@@ -527,7 +528,7 @@
); );
}, },
goUrl(path, id) { goUrl(path, id) {
if(id){ if (id) {
this.$store.commit("pageConditionUpdate", this.msg); this.$store.commit("pageConditionUpdate", this.msg);
this.$router.push({ this.$router.push({
path: path, path: path,
...@@ -537,7 +538,7 @@ ...@@ -537,7 +538,7 @@
tab: '修改产品信息' tab: '修改产品信息'
} }
}); });
}else{ } else {
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
...@@ -549,7 +550,7 @@ ...@@ -549,7 +550,7 @@
} }
}, },
goUrlT(path, id,Name) { goUrlT(path, id, Name) {
let data = { let data = {
id: id, id: id,
Name: Name, Name: Name,
...@@ -594,18 +595,18 @@ ...@@ -594,18 +595,18 @@
this.msg = this.$store.state.pageCondition; this.msg = this.$store.state.pageCondition;
} }
} }
if(this.$route.query.StatisticsSTime){ if (this.$route.query.StatisticsSTime) {
this.msg.StatisticsSTime=this.$route.query.StatisticsSTime this.msg.StatisticsSTime = this.$route.query.StatisticsSTime
} }
if(this.$route.query.StatisticsETime){ if (this.$route.query.StatisticsETime) {
this.msg.StatisticsETime=this.$route.query.StatisticsETime this.msg.StatisticsETime = this.$route.query.StatisticsETime
} }
if(this.$route.query.type){ if (this.$route.query.type) {
if(this.$route.query.type==1){ if (this.$route.query.type == 1) {
this.msg.CreateBy =this.$route.query.EmployeeId; this.msg.CreateBy = this.$route.query.EmployeeId;
} }
if(this.$route.query.type==2){ if (this.$route.query.type == 2) {
this.msg.UpdateBy =this.$route.query.EmployeeId; this.msg.UpdateBy = this.$route.query.EmployeeId;
} }
} }
var id = this.$route.query.ID; var id = this.$route.query.ID;
...@@ -616,5 +617,4 @@ ...@@ -616,5 +617,4 @@
} }
}; };
</script> </script>
\ No newline at end of file
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