| | |
| | | onShow() { |
| | | let that = this |
| | | uni.$on('isRefresh',function(data){ |
| | | console.log(data); |
| | | that.user.username = data.title |
| | | that.user.id = data.id |
| | | that.user.type = data.key |
| | |
| | | <image src="../../../static/image/infoSea.png" mode="aspectFit"></image> |
| | | <view>{{cstmr.name}}</view> |
| | | </view> |
| | | <view class="cstmr-tel">{{cstmr.tel}} | {{cstmr.addr}} | {{cstmr.director$ ? cstmr.director$ : '--'}}</view> |
| | | <!-- {{cstmr.tel}} | {{cstmr.addr}} | {{cstmr.director$ ? cstmr.director$ : '--'}} --> |
| | | <view class="cstmr-tel"> |
| | | <view class="tel-box"> |
| | | <view>客户电话</view> |
| | | <view >{{cstmr.tel ? cstmr.tel : '--'}}</view> |
| | | </view> |
| | | <view class="tel-box"> |
| | | <view>客户详细地址</view> |
| | | <view >{{cstmr.addr ? cstmr.addr : '--'}}</view> |
| | | </view> |
| | | <view class="tel-box"> |
| | | <view>负责人</view> |
| | | <view >{{cstmr.director$ ? cstmr.director$ : '--'}}</view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="container"> |
| | | <view><y-title title="基本信息"></y-title></view><view></view> |
| | |
| | | <!-- <view class="list-item1">电话</view><view class="list-item2 color-main">{{cstmr.tel}}</view> --> |
| | | |
| | | </view> |
| | | <view class="container"> |
| | | <view class="container2"> |
| | | <view><y-title title="其他信息"></y-title></view><view></view> |
| | | <view class="list-item1">添加人员</view><view class="list-item2 color-main">{{cstmr.createBy$}}</view> |
| | | <view class="list-item1">添加时间</view><view class="list-item2">{{cstmr.createTime$}}</view> |
| | | <view class="list-item1">修改人员</view><view class="list-item2">{{cstmr.updateBy$}}</view> |
| | | <view class="list-item1">修改时间</view><view class="list-item2 color-main">{{cstmr.updateTime$}}</view> |
| | | </view> |
| | | <view class="container"> |
| | | <!-- <view><y-title title="跟进人"></y-title></view><view></view><view><uni-icons @click="addPerson()" type="plus" size="20" color="#55aaff"></uni-icons></view> |
| | | <view class="list" v-for="(item,index) in followers" :key="index"> |
| | | <view class="list-left">{{item.userName}}</view> |
| | | <view class="list-right"><button size="mini" style="float: right;" type="warn" @click="removeFollowers(item.userId)">移除</button></view> |
| | | <view class="container2-sub"> |
| | | <view class="sub-item"> |
| | | <view class="list-item1">添加人员</view><view class="list-item2 color-main">{{cstmr.createBy$}}</view> |
| | | </view> |
| | | <view class="sub-item"> |
| | | <view class="list-item1">添加时间</view><view class="list-item2">{{cstmr.createTime$}}</view> |
| | | </view> |
| | | <view class="sub-item"> |
| | | <view class="list-item1">修改人员</view><view class="list-item2">{{cstmr.updateBy$}}</view> |
| | | </view> |
| | | <view class="sub-item"> |
| | | <view class="list-item1">修改时间</view><view class="list-item2 color-main">{{cstmr.updateTime$}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="list-none" v-show="followers.length == 0"> |
| | | <text>暂无跟进人</text> |
| | | </view> --> |
| | | </view> |
| | | |
| | | </scroll-view> |
| | |
| | | height: 35rpx; |
| | | } |
| | | .cstmr-tel { |
| | | min-height: 60rpx; |
| | | line-height: 60rpx; |
| | | font-size: 24rpx; |
| | | color: #303133; |
| | | display: flex; |
| | | } |
| | | .tel-box { |
| | | margin-top: 20rpx; |
| | | padding-right: 8rpx; |
| | | margin-left: 10rpx; |
| | | border-right: 1px solid #b1b3b8; |
| | | } |
| | | .tel-box:last-child { |
| | | border: none |
| | | } |
| | | .container { |
| | | margin-top: 10px; |
| | |
| | | grid-template-columns: 5fr 5fr 2fr; |
| | | margin-bottom: 120rpx; |
| | | } |
| | | .container2 { |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-top: 10px; |
| | | padding: 10rpx 20rpx 0 20rpx; |
| | | background-color: #fff; |
| | | } |
| | | .container2-sub { |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | .sub-item { |
| | | display: flex; |
| | | } |
| | | .list-item1 { |
| | | min-height: 45rpx; |
| | | line-height: 45rpx; |
| | |
| | | text-indent: 30rpx; |
| | | } |
| | | .list-item2 { |
| | | margin-left: 10rpx; |
| | | min-height: 45rpx; |
| | | line-height: 45rpx; |
| | | color: black; |
| | |
| | | </uni-nav-bar> |
| | | <!-- 搜索框 --> |
| | | <view class="search-bg"> |
| | | <!-- <uni-search-bar placeholder="客户代号/名称" bgColor="#f4f4f4" @confirm="search" /> --> |
| | | <u-search placeholder="客户代号/名称" v-model="keyword" :clearabled="true" @custom="search()" @search="search()"></u-search> |
| | | </view> |
| | | <view> |
| | | <!-- 客户列表 --> |
| | | <view class="c-list" @click="getDetails(item.id)" v-for="(item,index) in csmtrList" :key="index"> |
| | | <view class="titles"> |
| | | <y-title :title="item.name"></y-title> |
| | | <y-title :title="item.name"></y-title><view></view> |
| | | </view> |
| | | <view style="display: grid;grid-template-columns: 1fr 3fr;"> |
| | | <view class="list-item1">客户代号</view><view class="list-item2">{{item.uuid}}</view> |
| | |
| | | <uni-popup ref="inputDialog" type="dialog"> |
| | | <view class="popup"> |
| | | <!-- 标题 --> |
| | | <view class="title">接取</view> |
| | | <view class="desc">接取</view> |
| | | <scroll-view scroll-y="true" style="height: 23vh;touch-action: none;"> |
| | | <!-- <view style="display: flex;justify-content: center;margin: 8px;align-items: center;" v-for="item in csmtrs"> |
| | | <checkbox style="flex: 1;display: flex;justify-content: flex-end;"></checkbox> |
| | |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | <view style="height: 50rpx;"></view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | user: { |
| | | username: '', |
| | | id: 0, |
| | | type: '' |
| | | type: 'user_id' |
| | | }, |
| | | falg: true, |
| | | csmtrList: [], |
| | |
| | | background-color: #fff; |
| | | border-radius: 10rpx; |
| | | margin: 20rpx 2% 0 2%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | /* display: flex; |
| | | flex-direction: column; */ |
| | | font-size: 24rpx; |
| | | } |
| | | /* 父view 换 scroll-view */ |
| | |
| | | } |
| | | .titles { |
| | | padding-left: 10rpx; |
| | | text-indent: 5rpx; |
| | | /* text-indent: 5rpx; */ |
| | | margin-top: 10rpx; |
| | | } |
| | | /* .title { |
| | |
| | | background-color: #FFF; |
| | | border-radius: 25rpx; |
| | | } |
| | | .title { |
| | | .desc { |
| | | height: 100rpx; |
| | | line-height: 100rpx; |
| | | width: 100%; |
| | |
| | | <image src="../../../static/image/zuzhibumen.png" mode="aspectFit"></image> |
| | | <view>{{saleManage.name}}</view> |
| | | </view> |
| | | <view class="cstmr-tel"> |
| | | <!-- <view class="cstmr-tel"> |
| | | {{saleManage.company$}} | |
| | | {{saleManage.money ? saleManage.pcd$ : '--'}} | |
| | | {{saleManage.director$ ? saleManage.pcd$ : '--'}} |
| | | </view> --> |
| | | <view class="cstmr-tel"> |
| | | <view class="tel-box"> |
| | | <view>客户电话</view> |
| | | <view >{{cstmr.tel ? cstmr.tel : '--'}}</view> |
| | | </view> |
| | | <view class="tel-box"> |
| | | <view>客户详细地址</view> |
| | | <view >{{cstmr.addr ? cstmr.addr : '--'}}</view> |
| | | </view> |
| | | <view class="tel-box"> |
| | | <view>负责人</view> |
| | | <view >{{cstmr.director$ ? cstmr.director$ : '--'}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="container"> |
| | |
| | | height: 35rpx; |
| | | } |
| | | .cstmr-tel { |
| | | min-height: 60rpx; |
| | | line-height: 60rpx; |
| | | font-size: 24rpx; |
| | | color: #303133; |
| | | display: flex; |
| | | } |
| | | .tel-box { |
| | | margin-top: 20rpx; |
| | | padding-right: 8rpx; |
| | | margin-left: 10rpx; |
| | | border-right: 1px solid #b1b3b8; |
| | | } |
| | | .tel-box:last-child { |
| | | border: none |
| | | } |
| | | .container { |
| | | margin-top: 10px; |
| | |
| | | getCsmtr1(e) { |
| | | let that = this |
| | | that.csmtrList = [] |
| | | uni.showLoading({}) |
| | | let param = {curr:1,limit:4,dept_id: 0,user_id: 67} |
| | | if (this.user.type == 'user_id') { |
| | | param = {curr:1,limit:4,user_id: that.user.id} |
| | | } else if(this.user.type == 'dept_id') { |
| | | param = {curr:1,limit:4,dept_id: that.user.id} |
| | | } else { |
| | | param = {curr:1,limit:4} |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/order/page/auth', |
| | | header: {'token' : uni.getStorageSync('token'),}, |
| | | data: {curr:1,limit:4}, |
| | | data: param, |
| | | method:'GET', |
| | | success(result) { |
| | | if (result.statusCode === 404) { |
| | |
| | | }); |
| | | }, 1000); |
| | | }, |
| | | complete() { |
| | | uni.hideLoading() |
| | | } |
| | | }) |
| | | }, |
| | | getCsmtr() { |
| | | let that = this |
| | | uni.showLoading({}) |
| | | let param = {curr:that.curr,limit:4,dept_id: 0,user_id: 67} |
| | | if (this.user.type == 'user_id') { |
| | | param = {curr:that.curr,limit:4,user_id: that.user.id} |
| | | } else if(this.user.type == 'dept_id') { |
| | | param = {curr:that.curr,limit:4,dept_id: that.user.id} |
| | | } else { |
| | | param = {curr:that.curr,limit:4} |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/order/page/auth', |
| | | header: {'token' : uni.getStorageSync('token'),}, |
| | | data: {curr:that.curr,limit:4}, |
| | | data: param, |
| | | method:'GET', |
| | | success(result) { |
| | | if (result.statusCode === 404) { |
| | |
| | | }); |
| | | }, 1000); |
| | | }, |
| | | complete() { |
| | | uni.hideLoading() |
| | | } |
| | | }) |
| | | }, |
| | | getDetails(id) { |
| | |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | if (option == '') { |
| | | if (option != '') { |
| | | this.id = option.id |
| | | this.init() |
| | | this.autoLoad('follower','') |
| | |
| | | eventChannel.on('saleManage', function(data) { |
| | | _this.id = data.data |
| | | _this.init() |
| | | console.log(data.data); |
| | | }) |
| | | this.autoLoad('follower','') |
| | | setTimeout(()=>{ |
| | |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | that.saleManage = res.data |
| | | that.cstmr = res.data |
| | | that.cstmrId = that.cstmr.id |
| | |
| | | header: {'token' : uni.getStorageSync('token'), |
| | | }, |
| | | method: 'GET', |
| | | |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |