douzhuo há 2 anos
ascendente
cometimento
1fe141d8cb
3 ficheiros alterados com 44 adições e 19 eliminações
  1. +2
    -0
      config.js
  2. +34
    -13
      pages/mine/reception/addreception.vue
  3. +8
    -6
      utils/domain.js

+ 2
- 0
config.js Ver ficheiro

@@ -65,6 +65,8 @@ var config = {
addATD:`${host}/addtodigest/addATD`,
//取消加精
delATD:`${host}/addtodigest/delATD`,
// 获取客户来源列表
sourceList: `${host}/customer/sourceList`,
}
};
module.exports = config;

+ 34
- 13
pages/mine/reception/addreception.vue Ver ficheiro

@@ -40,8 +40,7 @@
<view class="title" style="border: none;" @click="Buildingselection()">
<view class="titletext">客户来源</view>
<view class="titletext2" style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;">
<!-- {{parames.sourceName||'请选择客户来源'}} -->
<text v-if="parames.sourceName" style="color: #333333;">{{parames.sourceName}}</text>
<text v-if="parames.sourceId" style="color: #333333;">{{showSourceName}}</text>
<text v-else>请选择客户来源</text>
</view>
<view class="titleimg">
@@ -68,12 +67,11 @@
<view class="clive" v-if="saveisshow" @click.stop="save">确定</view>
<view class="clive2" v-else >确定</view>
<view v-if="Showhiddenunits">
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" @cancel="cancel" @confirm="confirm"></u-select>
</view>
<view v-if="Showhid">
<u-select :mask-close-able="false" v-model="Showhid" mode="single-column" :list="freeList" @cancel="cancel1" @confirm="confirm1"></u-select>
</view>
<!-- <view v-if="Showhiddenunits"> -->
<!-- <u-select v-model="show" :list="list"></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> -->
<u-select :mask-close-able="false" v-model="Showhid" mode="single-column" :list="freeList" @cancel="cancel1" @confirm="confirm1"></u-select>
<u-modal v-model="show" :mask-close-able="true" :title="'代接待提醒'" :confirm-text="confirmtext" :cancel-text='canceltext' @cancel="confirmA" @confirm="confirmB" :show-cancel-button='true' :content="content"></u-modal>
</view>
</template>
@@ -87,8 +85,8 @@
return {
Showhiddenunits:false,
list: [
{label: '自然到访',value:'自然到访'},
{label: '渠道推荐',value:'渠道推荐'},
// {label: '自然到访',value:'自然到访'},
// {label: '渠道推荐',value:'渠道推荐'},
],
parames: {
name: '',
@@ -96,12 +94,13 @@
sex: 1,
phone: '',
source: null,
sourceName: null,
sourceId: null,
howMany: 1,
agentId:null,
projectId:'',
replaceReception:0
},
showSourceName: '', // 展示文字
shifoinfo:0,
freeList:[],
Showhid:false,
@@ -115,12 +114,33 @@
};
},
onShow: function() {
onShow() {
this.parames.projectId=uni.getStorageSync('buildingID').id;
this.init()
this.getFreeList();
this.getFromSource();
},
methods: {
// 获取客户来源
getFromSource() {
uni.request({
url: config.service.sourceList+"?houseId="+this.parames.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.shifoinfo=data.data.data.selfAssigned
this.list = data.data.data
}
}
})
},
//取消
confirmA(){
if(this.daitiReceptionobj.assign!=null){
@@ -261,7 +281,8 @@
this.Showhiddenunits=false;
},
confirm(e) {
this.parames.sourceName=e[0].value;
this.showSourceName = e[0].label;
this.parames.sourceId=e[0].value;
this.Showhiddenunits=false;
},
init(){


+ 8
- 6
utils/domain.js Ver ficheiro

@@ -1,9 +1,10 @@
// http.js使用域名
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// 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://192.168.31.134:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式


@@ -12,11 +13,12 @@ const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
* 小程序配置文件
*/
// 此处主机域名修改成腾讯云解决方案分配的域名
// const host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
// const host = 'http://192.168.31.169:8080/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://192.168.31.134:8080/autoSR/api'; // 佳豪
// const host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
const host = 'https://zkgj.quhouse.com/api'; // 质控正式
// const host = 'https://zkgj.quhouse.com/api'; // 质控正式
// const host = 'https://hfju.com/api'; // 数智正式




Carregando…
Cancelar
Guardar