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

页面修改

parent 2fac6c80
......@@ -508,7 +508,8 @@
{{$t('salesModule.BlackListCustomers')}}
<div class="divActive" v-show="msg.CustomerStatus==4"></div>
</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>
</li>
......@@ -638,7 +639,6 @@
</el-form-item>
</el-col>
<el-col :span="4">
<!-- :label="$t('salesModule.storeName')" -->
<el-form-item label="客户名称" prop="customerName">
<el-input :disabled="isOldPerson" v-model="addMsg.customerName" :placeholder="$t('pub.pleaseImport')"
maxlength="20"></el-input>
......@@ -650,7 +650,7 @@
maxlength="20"></el-input>
</el-form-item>
</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-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'>
......@@ -671,101 +671,85 @@
<el-input v-model="addMsg.address" :placeholder="$t('salesModule.HouseNumber')" maxlength="50"></el-input>
</el-form-item>
</el-col>
<!--
<el-col :span="6">
<el-form-item label="統一编号" prop="UniqueCode">
<el-input v-model="addMsg.UniqueCode" placeholder="请输入統一编号" maxlength="20"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="LINE ID" prop="LINEID">
<el-input v-model="addMsg.LINEID" placeholder="请输入LINE ID" maxlength="20"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="Email" prop="Email">
<el-input v-model="addMsg.Email" placeholder="请输入Email" style="width: 240px;"></el-input>
</el-form-item>
</el-col> -->
<el-col :span="8">
<el-form-item label="合同资料">
<div style="display: flex;flex-wrap: wrap;">
<div class="_info_img" v-if="addMsg.BusinessCardPhotos&&addMsg.BusinessCardPhotos.length>0">
<ul class="clearfix">
<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="">
<el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]">
</el-image>
<div v-if="img&&verificationFile(img,1)"
style="width: 50px; line-height: 50px;text-align: center;">
<span class="_wenjian_P iconfont"
:class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span>
</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>
<template v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-col :span="8">
<el-form-item label="合同资料">
<div style="display: flex;flex-wrap: wrap;">
<div class="_info_img" v-if="addMsg.BusinessCardPhotos&&addMsg.BusinessCardPhotos.length>0">
<ul class="clearfix">
<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="">
<el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]">
</el-image>
<div v-if="img&&verificationFile(img,1)"
style="width: 50px; line-height: 50px;text-align: center;">
<span class="_wenjian_P iconfont"
:class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span>
</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 style="display: flex; justify-content: end;">
<el-upload class="upload-demo" ref="my-upload"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg"
:show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button>
</el-upload>
</div>
</div>
<div style="display: flex; justify-content: end;">
<el-upload class="upload-demo" ref="my-upload"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg"
:show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button>
</el-upload>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="平台用户名">
<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>
<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>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="平台用户名">
<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>
</el-form-item>
</el-col>
<el-col :span="4" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item label="签约月结客户" prop="SigningType" >
<div style="display: flex;flex-wrap: nowrap;">
<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>
<el-checkbox v-model='addMsg.SigningType'>
</el-checkbox>
</div>
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="签约月结客户" prop="SigningType">
<div style="display: flex;flex-wrap: nowrap;">
<div>
<el-checkbox v-model='addMsg.SigningType'>
</el-checkbox>
</div>
<div v-if="addMsg.SigningType">
<el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!addMsg.SigningType"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
:show-file-list="false" action="">
<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 v-if="addMsg.SigningType">
<el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!addMsg.SigningType"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
:show-file-list="false" action="">
<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>
<span style="color: red;margin-left: 5px;">(此处为客户与我司月度结款)</span>
</div>
<span style="color: red;margin-left: 5px;">(此处为客户与我司月度结款)</span>
</div>
</div>
</el-form-item>
</el-col>
</el-form-item>
</el-col>
</template>
<template v-if="isShow">
<el-col :span="6">
<el-form-item :label="$t('salesModule.CustomerSource')" prop="CustomerSourceType">
......@@ -776,7 +760,7 @@
</el-select>
</el-form-item>
</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-select filterable class='multiple_input' multiple v-model='addMsg.brandIds'
:placeholder="$t('pub.pleaseSel')">
......@@ -883,24 +867,7 @@
</el-select>
</el-form-item>
</el-col>
<!--
<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-col :span="12" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item label="签约" prop="SigningType">
<div style="display: flex;flex-wrap: nowrap;">
<div>
......@@ -917,7 +884,6 @@
<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"
@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>
</div>
......@@ -925,17 +891,16 @@
<span style="color: red;margin-left: 5px;">(此处为客户与我司月度结款)</span>
</div>
</div>
</el-form-item>
</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
class="colorE95252 fz12 fwnormal">
(编辑门店地址后,客户将重新进入审核流程)
</span>
</p>
</el-col>
<el-col :span="8">
<el-col :span="8" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item label="区域">
<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'>
......@@ -956,7 +921,7 @@
<el-input v-model='updateMsg.Address' maxlength="50"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="8" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item label="合同资料">
<div style="display: flex;flex-wrap: wrap;">
<div class="_info_img" v-if="updateMsg.BusinessCardPhotos&&updateMsg.BusinessCardPhotos.length>0">
......@@ -989,7 +954,7 @@
</div>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="8" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item label="平台用户名">
<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;">
......@@ -1000,7 +965,6 @@
</el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 添加</el-button>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="门牌照片">
......
......@@ -206,12 +206,21 @@
<div class="btmTitle">{{titleInfo}}</div>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
<ul class="changeMsg clearfix">
<li>
<el-form-item label="中文名称" prop="Name">
<el-input v-model="addMsg.Name" class="w150" maxlength="20"></el-input>
</el-form-item>
</li>
<li>
<template v-if="currentUserInfo&&currentUserInfo.RB_Group_id==100">
<li>
<el-form-item label="名称" prop="Name">
<el-input v-model="addMsg.Name" class="w150" maxlength="20"></el-input>
</el-form-item>
</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-input v-model="addMsg.EnName" class="w150" maxlength="20"></el-input>
</el-form-item>
......@@ -401,7 +410,8 @@
message: "请输入三码",
trigger: "change"
}]
}
},
currentUserInfo: {},
};
},
methods: {
......@@ -558,7 +568,7 @@
this.disCountry = true;
this.addMsg.ParentID = res.data.data.CountryID;
} 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.disCountry = true;
this.disProvince = true;
......@@ -573,8 +583,8 @@
this.addMsg.ProvinceID = res.data.data.ProvinceID;
this.addMsg.CityID = res.data.data.CityID;
this.addMsg.Images = res.data.data.Images;
this.addMsg.Lng=res.data.data.Lng;
this.addMsg.Lat=res.data.data.Lat;
this.addMsg.Lng = res.data.data.Lng;
this.addMsg.Lat = res.data.data.Lat;
if (this.addMsg.Area == 0) {
this.addMsg.Area = this.addMsg.Area.toString();
} else {
......@@ -720,6 +730,9 @@
}
}
},
created() {
this.currentUserInfo = this.getLocalStorage();
},
mounted() {
this.initData();
this.getContinentList();
......
......@@ -6,7 +6,8 @@
<ul>
<li>
<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>
</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