Browse Source

提交修改客户

dev
douzhuo 2 years ago
parent
commit
ba165a81b2
4 changed files with 54 additions and 12 deletions
  1. +1
    -1
      pages/center/consumer/consumerDetail.vue
  2. +48
    -6
      pages/center/consumer/edit.vue
  3. +1
    -1
      pages/login/Verifythelogin.vue
  4. +4
    -4
      utils/domain.js

+ 1
- 1
pages/center/consumer/consumerDetail.vue View File

@@ -380,7 +380,7 @@
goedit(){
// console.log('去编辑')
uni.navigateTo({
url:`/pages/center/consumer/edit?id=${this.customerId}`
url:`/pages/center/consumer/edit?id=${this.customerId}&projectId=${this.customerInfo.projectId}`
})
},
// 去添加提醒


+ 48
- 6
pages/center/consumer/edit.vue View File

@@ -62,17 +62,17 @@
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
</view>
</view>
<!-- <view class="conmsg-msg-lab">
<view class="conmsg-msg-lab">
<view class="conmsg-msg-lab-1">
客户阶段
客户来源
</view>
<view class="conmsg-msg-lab-inp">
<input type="text" placeholder="请选择客户阶段" @click="stageshow = true" v-model="selectform.stage" disabled/>
<input type="text" placeholder="请选择客户来源" @click="Buildingselection" v-model="form.sourceName" disabled/>
</view>
<view class="conmsg-msg-lab-img">
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
</view>
</view> -->
</view>
<view class="conmsg-msg-lab" style="border: none;">
<view class="conmsg-msg-lab-1">
备注内容
@@ -119,13 +119,18 @@
<!-- 客户等级 -->
<u-select v-model="levelshow" :list="levellist" @confirm="levelshowCallback"></u-select>
<u-select :mask-close-able="false" label-name="sourceName" value-name="id" v-model="Showhiddenunits" mode="single-column" :list="list" @cancel="cancel" @confirm="confirm"></u-select>
</view>
</template>

<script>
const config = require("@/config");
export default{
data(){
return{
Showhiddenunits: false, // 控制客户来源弹窗
form:{
name:'',
sex:'1',
@@ -133,7 +138,7 @@
chatNo:'',
level:'1',
remarks:'',
sourceId: ''
},
selectform:{
level:'A',
@@ -146,6 +151,8 @@
},
list: [], // 客户来源数组
levelshow:false,
customerId:'',
// 等级
@@ -168,7 +175,8 @@
},
],
allList:[],
dataCode:''
dataCode:'',
projectId: '', // 楼盘ID
}
},
onLoad(e) {
@@ -179,9 +187,42 @@
console.log(e)
// 先调用借口查询数据
this.customerId=e.id
if (e.projectId) this.projectId = e.projectId
this.getdetail()
this.getFromSource()
},
methods:{
// 获取客户来源
getFromSource() {
uni.request({
url: config.service.sourceList+"?houseId="+this.projectId,
method: "GET",
header: {
'content-type': 'application/json',
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
success: (data) => {
console.log(data)
if(data.data.code==10000){
this.list = data.data.data
}
}
})
},
// 选择客户来源
Buildingselection(){
this.Showhiddenunits=true;
},
cancel(){
this.Showhiddenunits=false;
},
confirm(e) {
this.form.sourceName = e[0].label;
this.form.sourceId = e[0].value;
this.Showhiddenunits=false;
},
Edittag(item,item1,index,i){
if(this.allList[index].children[i].selected==0){
@@ -221,6 +262,7 @@
this.selectform.level='A';
this.form.level=1;
}
this.showSourceName = res.sourceName;
// 获取置业需求
this.getListByType()
})


+ 1
- 1
pages/login/Verifythelogin.vue View File

@@ -90,7 +90,7 @@
}
if (this.msg.length == 4) {
uni.navigateTo({
url: '/pages/login/Setthepassword?username='+'18655732363',
url: '/pages/login/Setthepassword?username='+this.phonecet,
})
} else {
uni.showToast({


+ 4
- 4
utils/domain.js View File

@@ -1,7 +1,7 @@
// http.js使用域名
// const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地
const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
// const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
@@ -14,8 +14,8 @@ const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
*/
// 此处主机域名修改成腾讯云解决方案分配的域名
// const host = 'http://192.168.31.57:8080/autoSR/api';// 本地
const host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
// const host = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
const host = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪
// const host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const host = 'https://zkgj.quhouse.com/api'; // 质控正式


Loading…
Cancel
Save