|
|
@@ -39,9 +39,16 @@ |
|
|
|
* |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="conmsg-msg-lab-inp"> |
|
|
|
<input :disabled="dataCode!=6" type="number" placeholder="请输入联系电话" placeholder-style="color:#B2B2B2;" maxlength="11" v-model="form.phone"/> |
|
|
|
</view> |
|
|
|
<template v-if="form.isShow == 1"> |
|
|
|
<view class="conmsg-msg-lab-inp"> |
|
|
|
<input disabled type="number" placeholder="请输入联系电话" placeholder-style="color:#B2B2B2;" maxlength="11" v-model="form.showPhone"/> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<view class="conmsg-msg-lab-inp"> |
|
|
|
<input :disabled="dataCode!=6" type="number" placeholder="请输入联系电话" placeholder-style="color:#B2B2B2;" maxlength="11" v-model="form.phone"/> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</view> |
|
|
|
<view class="conmsg-msg-lab"> |
|
|
|
<view class="conmsg-msg-lab-1"> |
|
|
@@ -177,13 +184,13 @@ |
|
|
|
allList:[], |
|
|
|
dataCode:'', |
|
|
|
projectId: '', // 项目ID |
|
|
|
userInfo: {}, // 当前用户信息 |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(e) { |
|
|
|
const { |
|
|
|
dataCode |
|
|
|
} = uni.getStorageSync("weapp_session_userInfo_data"); |
|
|
|
this.dataCode=dataCode |
|
|
|
this.userInfo = uni.getStorageSync("weapp_session_userInfo_data"); |
|
|
|
console.log() |
|
|
|
this.dataCode=this.userInfo.dataCode |
|
|
|
console.log(e) |
|
|
|
// 先调用借口查询数据 |
|
|
|
this.customerId=e.id |
|
|
@@ -206,6 +213,9 @@ |
|
|
|
if(data.data.code==10000){ |
|
|
|
this.list = data.data.data |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
console.log(res) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@@ -253,6 +263,7 @@ |
|
|
|
this.$u.get("customer/findById?",{id:this.customerId}) |
|
|
|
.then(res=>{ |
|
|
|
this.form=res |
|
|
|
this.form.showPhone = this.form.phone&&this.form.isShow==1?this.form.phone.length==11?this.form.phone.substr(0, 3) + '****' + this.form.phone.substr(7):this.form.phone:this.form.phone&&this.form.isShow!=1?this.form.phone: '--' |
|
|
|
// 给客户等级赋值 |
|
|
|
let idx= this.levellist.findIndex(item=>item.value==res.level) |
|
|
|
if(idx!=-1){ |
|
|
|