Commit a237ff76 authored by 黄奎's avatar 黄奎

11

parent 26f6809c
...@@ -579,15 +579,16 @@ ...@@ -579,15 +579,16 @@
style="cursor: pointer;text-decoration: underline;">{{item.visiteCount}}</span></td> style="cursor: pointer;text-decoration: underline;">{{item.visiteCount}}</span></td>
<!-- <td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">{{item.cL_Balance}}</td> --> <!-- <td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">{{item.cL_Balance}}</td> -->
<td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2"> <td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.SalesModule.dindanysze')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('objFill.v101.SalesModule.dindanysze')"
<span @click="goUrl(type,item.customerId,3)" placement="top-start">
style="cursor: pointer;text-decoration: underline;"> <span @click="goUrl(type,item.customerId,3)" style="cursor: pointer;text-decoration: underline;">
{{item.tradeTotal}}</span> {{item.tradeTotal}}</span>
</el-tooltip> </el-tooltip>
</td> </td>
<td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">{{item.inquireCount}}</td> <td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">{{item.inquireCount}}</td>
<td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">{{item.allianceName}}</td> <td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">{{item.allianceName}}</td>
<td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2"><span style="cursor: pointer;text-decoration: underline;" <td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2"><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 v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2"> <td v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<span style="cursor: pointer;color: #2CA4F0" <span style="cursor: pointer;color: #2CA4F0"
...@@ -602,11 +603,13 @@ ...@@ -602,11 +603,13 @@
<el-button style="padding:4px" @click.stop="goUrlT('empBankAccount',item.customerId)" type="danger" <el-button style="padding:4px" @click.stop="goUrlT('empBankAccount',item.customerId)" type="danger"
icon="iconfont icon-guanliyuan" circle></el-button> icon="iconfont icon-guanliyuan" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('objFill.jiaoyixiangqing')" placement="top-start" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2"> <el-tooltip class="item" effect="dark" :content="$t('objFill.jiaoyixiangqing')" placement="top-start"
v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-button style="padding:4px" @click.stop="goUrC('CustomerAnalysis',item.customerId)" type="success" <el-button style="padding:4px" @click.stop="goUrC('CustomerAnalysis',item.customerId)" type="success"
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="$t('objFill.tuanduichengyuan')" placement="top-start" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2"> <el-tooltip class="item" effect="dark" :content="$t('objFill.tuanduichengyuan')" placement="top-start"
v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-button style="padding:4px" @click.stop="goTeamMember(item)" type="primary" icon="el-icon-user-solid" <el-button style="padding:4px" @click.stop="goTeamMember(item)" type="primary" icon="el-icon-user-solid"
circle></el-button> circle></el-button>
</el-tooltip> </el-tooltip>
...@@ -686,7 +689,7 @@ ...@@ -686,7 +689,7 @@
<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" <li v-for="(img,imgI) in addMsg.BusinessCardPhotos" :key="`cb_`+imgI"
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 v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]"> <el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]">
...@@ -726,14 +729,15 @@ ...@@ -726,14 +729,15 @@
<el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInputTwo" <el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInputTwo"
size="small" @keyup.enter.native="handleInputConfirm(1)" @blur="handleInputConfirm(1)"> 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)">+ {{$t('fnc.tianjia')}}</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput(1)">+
{{$t('fnc.tianjia')}}</el-button>
</div> </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="4" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<el-form-item :label="$t('objFill.qianyueyjkh')" prop="SigningType" > <el-form-item :label="$t('objFill.qianyueyjkh')" prop="SigningType">
<div style="display: flex;flex-wrap: nowrap;"> <div style="display: flex;flex-wrap: nowrap;">
<div> <div>
<el-checkbox v-model='addMsg.SigningType'> <el-checkbox v-model='addMsg.SigningType'>
...@@ -781,7 +785,7 @@ ...@@ -781,7 +785,7 @@
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('visaT.post')" prop="Duty"> <el-form-item :label="$t('visaT.post')" prop="Duty">
<el-select filterable v-model='addMsg.Duty' :placeholder="$t('pub.pleaseSel')"> <el-select filterable v-model='addMsg.Duty' :placeholder="$t('pub.pleaseSel')">
<el-option v-for='item in zw' :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for='item in zwList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -789,7 +793,7 @@ ...@@ -789,7 +793,7 @@
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('salesModule.premises')" prop="Premises"> <el-form-item :label="$t('salesModule.premises')" prop="Premises">
<el-select filterable v-model='addMsg.Premises' :placeholder="$t('pub.pleaseSel')"> <el-select filterable v-model='addMsg.Premises' :placeholder="$t('pub.pleaseSel')">
<el-option v-for='item in jycs' :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for='item in jycsList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -908,8 +912,8 @@ ...@@ -908,8 +912,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2"> <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;">{{$t('objFill.xushenhexx')}}<span <p class="fz12 color333 fbold" style="border: none; margin-bottom: 15px; padding-left: 20px;">
class="colorE95252 fz12 fwnormal"> {{$t('objFill.xushenhexx')}}<span class="colorE95252 fz12 fwnormal">
{{$t('objFill.bianjimddzjrsh')}} {{$t('objFill.bianjimddzjrsh')}}
</span> </span>
</p> </p>
...@@ -977,7 +981,8 @@ ...@@ -977,7 +981,8 @@
<el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInput" size="small" <el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInput" size="small"
@keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"> @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm">
</el-input> </el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ {{$t('fnc.tianjia')}}</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput">+ {{$t('fnc.tianjia')}}
</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
...@@ -1164,8 +1169,8 @@ ...@@ -1164,8 +1169,8 @@
provinceList: [], provinceList: [],
cityList: [], cityList: [],
regionList: [], regionList: [],
jycs: [], //经营场所 jycsList: [], //经营场所
zw: [], //职务 zwList: [], //职务
khly: [], //客户来源 khly: [], //客户来源
outerVisible: false, outerVisible: false,
updateMsg: { updateMsg: {
...@@ -1654,19 +1659,21 @@ ...@@ -1654,19 +1659,21 @@
}, err => {}) }, err => {})
} else {} } else {}
}, },
//经营场所
getJycs() { getJycs() {
this.apipost('app_today_visit_GetCustomerPremisesEnum', {}, res => { this.apipost('app_today_visit_GetCustomerPremisesEnum', {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.jycs = res.data.data this.jycsList = res.data.data
this.addMsg.Premises = res.data.data[0].ID this.addMsg.Premises = this.jycsList[0].ID
} }
}, err => {}) }, err => {})
}, },
//职务
getZw() { getZw() {
this.apipost('app_today_visit_GetCustomerDutyEnum', {}, res => { this.apipost('app_today_visit_GetCustomerDutyEnum', {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.zw = res.data.data this.zwList = res.data.data
this.addMsg.Duty = res.data.data[1].ID this.addMsg.Duty = this.zwList[1].ID
} }
}, err => {}) }, err => {})
}, },
...@@ -1824,11 +1831,6 @@ ...@@ -1824,11 +1831,6 @@
if (this.addMsg.District == '') { if (this.addMsg.District == '') {
this.addMsg.District = 0 this.addMsg.District = 0
} }
// if (this.BusinessCardPhotos) {
// this.addMsg.BusinessCardPhotos = []
// this.addMsg.BusinessCardPhotos.push(this.BusinessCardPhotos)
// }
if (this.HousePhotos) { if (this.HousePhotos) {
this.addMsg.HousePhotos = [] this.addMsg.HousePhotos = []
this.addMsg.HousePhotos.push(this.HousePhotos) this.addMsg.HousePhotos.push(this.HousePhotos)
...@@ -1864,7 +1866,6 @@ ...@@ -1864,7 +1866,6 @@
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
} }
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
...@@ -1880,27 +1881,7 @@ ...@@ -1880,27 +1881,7 @@
this.loadingSave = true this.loadingSave = true
this.apipost('app_add_new_visit_customer', this.addMsgS, res => { this.apipost('app_add_new_visit_customer', this.addMsgS, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.addMsg = { this.cancelData();
customerName: '',
contact: '',
contactNumber: '',
address: '',
brandIds: [],
remark: '',
Duty: '',
Premises: '',
CustomerId: '0',
BusinessCardPhotos: [],
HousePhotos: [],
Images: [],
CustomerSourceType: '',
CustomerSource: '',
Country: '2',
Province: '',
City: '',
District: '',
PlatformUserNameList: []
}
this.addMsgS.customerVisit.expectVisitDateTime = '' this.addMsgS.customerVisit.expectVisitDateTime = ''
this.$message.success(res.data.message) this.$message.success(res.data.message)
this.addShow = false this.addShow = false
...@@ -1919,36 +1900,41 @@ ...@@ -1919,36 +1900,41 @@
this.resetForm('addMsg') this.resetForm('addMsg')
}, },
cancelData() { cancelData() {
this.addMsg = { this.addMsg.CustomerId = 0;
CustomerId: 0, this.addMsg.customerName = "";
customerName: '', this.addMsg.contact = "";
contact: '', this.addMsg.contactNumber = "";
contactNumber: '', this.addMsg.address = "";
address: '', this.addMsg.brandIds = [];
brandIds: [], this.addMsg.remark = "";
remark: '', this.addMsg.Duty = "";
Duty: '', if (this.zwList && this.zwList.length > 1) {
Premises: '', this.addMsg.Duty = this.zwList[1].ID;
CustomerId: '0', }
BusinessCardPhotos: [], this.addMsg.Premises = "";
HousePhotos: [], if (this.jycsList && this.jycsList.length > 0) {
Images: [], this.addMsg.Premises = this.jycsList[0].ID;
CustomerSourceType: '', }
CustomerSource: '', this.addMsg.BusinessCardPhotos = [];
Country: '2', this.addMsg.HousePhotos = [];
Province: '', this.addMsg.Images = [];
City: '', this.addMsg.CustomerSourceType = "";
District: '', if (this.khly && this.khly.length > 0) {
UniqueCode: '', this.addMsg.CustomerSourceType = this.khly[0].ID;
LINEID: '', }
Email: '', this.addMsg.CustomerSource = "";
PlatformUserNameList: [], this.addMsg.Country = "2";
this.addMsg.Province = "";
} this.addMsg.City = "";
this.BusinessCardPhotos = '', this.addMsg.District = "";
this.HousePhotos = '', this.addMsg.UniqueCode = "";
this.Images = '', this.addMsg.LINEID = "";
this.addMsgS.customerVisit.expectVisitDateTime = '' this.addMsg.Email = "";
this.addMsg.PlatformUserNameList = [];
this.BusinessCardPhotos = '';
this.HousePhotos = '';
this.Images = '';
this.addMsgS.customerVisit.expectVisitDateTime = '';
}, },
resetForm(formName) { // 重置表单 resetForm(formName) { // 重置表单
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
......
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