Commit 0e541674 authored by 黄奎's avatar 黄奎

页面修改

parent 2fac6c80
...@@ -508,7 +508,8 @@ ...@@ -508,7 +508,8 @@
{{$t('salesModule.BlackListCustomers')}} {{$t('salesModule.BlackListCustomers')}}
<div class="divActive" v-show="msg.CustomerStatus==4"></div> <div class="divActive" v-show="msg.CustomerStatus==4"></div>
</li> </li>
<li :class="{active:msg.CustomerStatus==0}" @click="clickGetList(0)"> <li :class="{active:msg.CustomerStatus==0}" @click="clickGetList(0)"
v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
签约月结客户 签约月结客户
<div class="divActive" v-show="msg.CustomerStatus==0"></div> <div class="divActive" v-show="msg.CustomerStatus==0"></div>
</li> </li>
...@@ -638,7 +639,6 @@ ...@@ -638,7 +639,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<!-- :label="$t('salesModule.storeName')" -->
<el-form-item label="客户名称" prop="customerName"> <el-form-item label="客户名称" prop="customerName">
<el-input :disabled="isOldPerson" v-model="addMsg.customerName" :placeholder="$t('pub.pleaseImport')" <el-input :disabled="isOldPerson" v-model="addMsg.customerName" :placeholder="$t('pub.pleaseImport')"
maxlength="20"></el-input> maxlength="20"></el-input>
...@@ -650,7 +650,7 @@ ...@@ -650,7 +650,7 @@
maxlength="20"></el-input> maxlength="20"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item :label="$t('pub.area')"> <el-form-item :label="$t('pub.area')">
<el-select class="addMsgSW" filterable v-model='addMsg.Province' @change='getCity'> <el-select class="addMsgSW" filterable v-model='addMsg.Province' @change='getCity'>
<el-option v-for='item in provinceList' :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for='item in provinceList' :label='item.Name' :value='item.ID' :key='item.ID'>
...@@ -671,101 +671,85 @@ ...@@ -671,101 +671,85 @@
<el-input v-model="addMsg.address" :placeholder="$t('salesModule.HouseNumber')" maxlength="50"></el-input> <el-input v-model="addMsg.address" :placeholder="$t('salesModule.HouseNumber')" maxlength="50"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <template v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-col :span="6"> <el-col :span="8">
<el-form-item label="統一编号" prop="UniqueCode"> <el-form-item label="合同资料">
<el-input v-model="addMsg.UniqueCode" placeholder="请输入統一编号" maxlength="20"></el-input> <div style="display: flex;flex-wrap: wrap;">
</el-form-item> <div class="_info_img" v-if="addMsg.BusinessCardPhotos&&addMsg.BusinessCardPhotos.length>0">
</el-col> <ul class="clearfix">
<el-col :span="6"> <li v-for="(img,imgI) in addMsg.BusinessCardPhotos"
<el-form-item label="LINE ID" prop="LINEID"> style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;">
<el-input v-model="addMsg.LINEID" placeholder="请输入LINE ID" maxlength="20"></el-input> <img v-if="!img" src="../../assets/img/Travelslider.png" alt="">
</el-form-item> <el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]">
</el-col> </el-image>
<el-col :span="6"> <div v-if="img&&verificationFile(img,1)"
<el-form-item label="Email" prop="Email"> style="width: 50px; line-height: 50px;text-align: center;">
<el-input v-model="addMsg.Email" placeholder="请输入Email" style="width: 240px;"></el-input> <span class="_wenjian_P iconfont"
:class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span>
</el-form-item> </div>
</el-col> --> <span class="iconfont icon-guanbi1" @click="deleteUploadFile(imgI)"></span>
<el-col :span="8"> <div v-if="img&&verificationFile(img,1)" class="_see_img"
<el-form-item label="合同资料"> @click="verificationFile(img,3)?'':showUpLoadFile2(img)">
<div style="display: flex;flex-wrap: wrap;"> <i class="iconfont icon-sousuo"></i>
<div class="_info_img" v-if="addMsg.BusinessCardPhotos&&addMsg.BusinessCardPhotos.length>0"> </div>
<ul class="clearfix"> </li>
<li v-for="(img,imgI) in addMsg.BusinessCardPhotos" </ul>
style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;"> </div>
<img v-if="!img" src="../../assets/img/Travelslider.png" alt=""> <div style="display: flex; justify-content: end;">
<el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]"> <el-upload class="upload-demo" ref="my-upload"
</el-image> style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg"
<div v-if="img&&verificationFile(img,1)" :show-file-list="false" action="">
style="width: 50px; line-height: 50px;text-align: center;"> <el-button size="small" type="primary">上传合同</el-button>
<span class="_wenjian_P iconfont" </el-upload>
:class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span> </div>
</div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(imgI)"></span>
<div v-if="img&&verificationFile(img,1)" class="_see_img"
@click="verificationFile(img,3)?'':showUpLoadFile2(img)">
<i class="iconfont icon-sousuo"></i>
</div>
</li>
</ul>
</div> </div>
<div style="display: flex; justify-content: end;"> </el-form-item>
<el-upload class="upload-demo" ref="my-upload" </el-col>
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg" <el-col :span="6">
:show-file-list="false" action=""> <el-form-item label="平台用户名">
<el-button size="small" type="primary">上传合同</el-button> <div style="display: flex;flex-wrap: nowrap;justify-content: space-between;">
</el-upload> <div style="display: flex; flex-wrap: wrap;align-items: center;">
<el-tag :key="tag" v-for="tag in addMsg.PlatformUserNameList" closable :disable-transitions="false"
@close="handleClose(tag,1)" size="medium" style="margin-right: 5px;margin-bottom: 3px;">
{{tag}}
</el-tag>
<div>
<el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInputTwo"
size="small" @keyup.enter.native="handleInputConfirm(1)" @blur="handleInputConfirm(1)">
</el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput(1)">+ 添加</el-button>
</div>
</div>
</div> </div>
</div> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="4" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-col :span="6"> <el-form-item label="签约月结客户" prop="SigningType" >
<el-form-item label="平台用户名"> <div style="display: flex;flex-wrap: nowrap;">
<div style="display: flex;flex-wrap: nowrap;justify-content: space-between;">
<div style="display: flex; flex-wrap: wrap;align-items: center;">
<el-tag :key="tag" v-for="tag in addMsg.PlatformUserNameList" closable :disable-transitions="false"
@close="handleClose(tag,1)" size="medium" style="margin-right: 5px;margin-bottom: 3px;">
{{tag}}
</el-tag>
<div> <div>
<el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInputTwo" <el-checkbox v-model='addMsg.SigningType'>
size="small" @keyup.enter.native="handleInputConfirm(1)" @blur="handleInputConfirm(1)"> </el-checkbox>
</el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput(1)">+ 添加</el-button>
</div> </div>
</div> <div v-if="addMsg.SigningType">
</div> <el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!addMsg.SigningType"
</el-form-item> style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
</el-col> :show-file-list="false" action="">
<el-col :span="4"> <el-button size="small" type="primary">上传签约资料</el-button>
<el-form-item label="签约月结客户" prop="SigningType"> </el-upload>
<div style="display: flex;flex-wrap: nowrap;"> <div v-if="addMsg.SigningType && saveMsg&& saveMsg.length>0">
<div> <template v-for="(subItem,subIndex) in saveMsg">
<el-checkbox v-model='addMsg.SigningType'> <a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
</el-checkbox> @click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a>
</div> <a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
<div v-if="addMsg.SigningType"> @click="DeleteFile(subIndex)">删除</a>
<el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!addMsg.SigningType" </template>
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn" </div>
:show-file-list="false" action=""> <span style="color: red;margin-left: 5px;">(此处为客户与我司月度结款)</span>
<el-button size="small" type="primary">上传签约资料</el-button>
</el-upload>
<div v-if="addMsg.SigningType && saveMsg&& saveMsg.length>0">
<template v-for="(subItem,subIndex) in saveMsg">
<a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
@click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a>
<a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
@click="DeleteFile(subIndex)">删除</a>
</template>
</div> </div>
<span style="color: red;margin-left: 5px;">(此处为客户与我司月度结款)</span>
</div> </div>
</div> </el-form-item>
</el-col>
</el-form-item> </template>
</el-col>
<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">
...@@ -776,7 +760,7 @@ ...@@ -776,7 +760,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item :label="$t('salesModule.Belongbrand')" prop="brandIds"> <el-form-item :label="$t('salesModule.Belongbrand')" prop="brandIds">
<el-select filterable class='multiple_input' multiple v-model='addMsg.brandIds' <el-select filterable class='multiple_input' multiple v-model='addMsg.brandIds'
:placeholder="$t('pub.pleaseSel')"> :placeholder="$t('pub.pleaseSel')">
...@@ -883,24 +867,7 @@ ...@@ -883,24 +867,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="12" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-col :span="4">
<el-form-item label="统一编码">
<el-input class='w200' v-model='updateMsg.uniqueCode'></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="LINE ID">
<el-input class='w200' v-model='updateMsg.lineid'></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="Email">
<el-input class='w200' v-model='updateMsg.email'></el-input>
</el-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item label="签约" prop="SigningType"> <el-form-item label="签约" prop="SigningType">
<div style="display: flex;flex-wrap: nowrap;"> <div style="display: flex;flex-wrap: nowrap;">
<div> <div>
...@@ -917,7 +884,6 @@ ...@@ -917,7 +884,6 @@
<div v-for="(subItem,subIndex) in saveMsg" style="display: flex;flex-wrap: nowrap;"> <div v-for="(subItem,subIndex) in saveMsg" style="display: flex;flex-wrap: nowrap;">
<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>
</div> </div>
...@@ -925,17 +891,16 @@ ...@@ -925,17 +891,16 @@
<span style="color: red;margin-left: 5px;">(此处为客户与我司月度结款)</span> <span style="color: red;margin-left: 5px;">(此处为客户与我司月度结款)</span>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<p class="fz12 color333 fbold" style="border: none; margin-bottom: 15px; padding-left: 20px;">需审核信息<span <p class="fz12 color333 fbold" style="border: none; margin-bottom: 15px; padding-left: 20px;">需审核信息<span
class="colorE95252 fz12 fwnormal"> class="colorE95252 fz12 fwnormal">
(编辑门店地址后,客户将重新进入审核流程) (编辑门店地址后,客户将重新进入审核流程)
</span> </span>
</p> </p>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item label="区域"> <el-form-item label="区域">
<el-select class="updateMsgSw" filterable v-model='updateMsg.Province' @change='getCityNew'> <el-select class="updateMsgSw" filterable v-model='updateMsg.Province' @change='getCityNew'>
<el-option v-for='item in provinceList' :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for='item in provinceList' :label='item.Name' :value='item.ID' :key='item.ID'>
...@@ -956,7 +921,7 @@ ...@@ -956,7 +921,7 @@
<el-input v-model='updateMsg.Address' maxlength="50"></el-input> <el-input v-model='updateMsg.Address' maxlength="50"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item label="合同资料"> <el-form-item label="合同资料">
<div style="display: flex;flex-wrap: wrap;"> <div style="display: flex;flex-wrap: wrap;">
<div class="_info_img" v-if="updateMsg.BusinessCardPhotos&&updateMsg.BusinessCardPhotos.length>0"> <div class="_info_img" v-if="updateMsg.BusinessCardPhotos&&updateMsg.BusinessCardPhotos.length>0">
...@@ -989,7 +954,7 @@ ...@@ -989,7 +954,7 @@
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item label="平台用户名"> <el-form-item label="平台用户名">
<el-tag :key="tag" v-for="tag in updateMsg.PlatformUserNameList" closable :disable-transitions="false" <el-tag :key="tag" v-for="tag in updateMsg.PlatformUserNameList" closable :disable-transitions="false"
@close="handleClose(tag)" size="small" style="margin-right: 5px;margin-bottom: 3px;"> @close="handleClose(tag)" size="small" style="margin-right: 5px;margin-bottom: 3px;">
...@@ -1000,7 +965,6 @@ ...@@ -1000,7 +965,6 @@
</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>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="门牌照片"> <el-form-item label="门牌照片">
......
...@@ -206,12 +206,21 @@ ...@@ -206,12 +206,21 @@
<div class="btmTitle">{{titleInfo}}</div> <div class="btmTitle">{{titleInfo}}</div>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
<ul class="changeMsg clearfix"> <ul class="changeMsg clearfix">
<li> <template v-if="currentUserInfo&&currentUserInfo.RB_Group_id==100">
<el-form-item label="中文名称" prop="Name"> <li>
<el-input v-model="addMsg.Name" class="w150" maxlength="20"></el-input> <el-form-item label="名称" prop="Name">
</el-form-item> <el-input v-model="addMsg.Name" class="w150" maxlength="20"></el-input>
</li> </el-form-item>
<li> </li>
</template>
<template v-else>
<li>
<el-form-item label="中文名称" prop="Name">
<el-input v-model="addMsg.Name" class="w150" maxlength="20"></el-input>
</el-form-item>
</li>
</template>
<li v-if="currentUserInfo&&currentUserInfo.RB_Group_id!=100">
<el-form-item label="英文名称"> <el-form-item label="英文名称">
<el-input v-model="addMsg.EnName" class="w150" maxlength="20"></el-input> <el-input v-model="addMsg.EnName" class="w150" maxlength="20"></el-input>
</el-form-item> </el-form-item>
...@@ -401,7 +410,8 @@ ...@@ -401,7 +410,8 @@
message: "请输入三码", message: "请输入三码",
trigger: "change" trigger: "change"
}] }]
} },
currentUserInfo: {},
}; };
}, },
methods: { methods: {
...@@ -558,7 +568,7 @@ ...@@ -558,7 +568,7 @@
this.disCountry = true; this.disCountry = true;
this.addMsg.ParentID = res.data.data.CountryID; this.addMsg.ParentID = res.data.data.CountryID;
} else if (res.data.data.CodeLevel == 3) { } else if (res.data.data.CodeLevel == 3) {
this.getProvinceList(res.data.data.CountryID,1) this.getProvinceList(res.data.data.CountryID, 1)
this.addMsg.ParentID = res.data.data.ProvinceID; this.addMsg.ParentID = res.data.data.ProvinceID;
this.disCountry = true; this.disCountry = true;
this.disProvince = true; this.disProvince = true;
...@@ -573,8 +583,8 @@ ...@@ -573,8 +583,8 @@
this.addMsg.ProvinceID = res.data.data.ProvinceID; this.addMsg.ProvinceID = res.data.data.ProvinceID;
this.addMsg.CityID = res.data.data.CityID; this.addMsg.CityID = res.data.data.CityID;
this.addMsg.Images = res.data.data.Images; this.addMsg.Images = res.data.data.Images;
this.addMsg.Lng=res.data.data.Lng; this.addMsg.Lng = res.data.data.Lng;
this.addMsg.Lat=res.data.data.Lat; this.addMsg.Lat = res.data.data.Lat;
if (this.addMsg.Area == 0) { if (this.addMsg.Area == 0) {
this.addMsg.Area = this.addMsg.Area.toString(); this.addMsg.Area = this.addMsg.Area.toString();
} else { } else {
...@@ -720,6 +730,9 @@ ...@@ -720,6 +730,9 @@
} }
} }
}, },
created() {
this.currentUserInfo = this.getLocalStorage();
},
mounted() { mounted() {
this.initData(); this.initData();
this.getContinentList(); this.getContinentList();
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
<ul> <ul>
<li> <li>
<span><em>名称</em> <span><em>名称</em>
<el-input v-model='msg.MenuName' class="permiss-input" placeholder="请输入内容" @keyup.native="resetPageIndex(),getList()"></el-input> <el-input v-model='msg.MenuName' class="permiss-input" placeholder="请输入内容"
@keyup.native="resetPageIndex(),getList()"></el-input>
</span> </span>
</li> </li>
<li> <li>
......
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