| | |
| | | </view> |
| | | </view> |
| | | <view class="container"> |
| | | |
| | | <view><y-title title="基本信息"></y-title></view><view></view> |
| | | <view class="list-item1">跟踪项目</view><view class="list-item2">{{saleManage.name}}</view> |
| | | <view class="list-item1">项目代号</view><view class="list-item2">{{saleManage.uuid}}</view> |
| | | <view class="list-item1">甲方单位</view><view class="list-item2">{{saleManage.cstmrId$}}</view> |
| | | <view class="list-item1">项目总金额</view><view class="list-item2">{{saleManage.money}}</view> |
| | | <view class="list-item1">所属公司</view><view class="list-item2">{{saleManage.company$}}</view> |
| | | <view class="list-item1">省市区</view><view class="list-item2">{{saleManage.pcd$ ? saleManage.pcd$ : '--'}}</view> |
| | | <view class="list-item1">负责人</view><view class="list-item2">{{saleManage.director$ ? saleManage.director$ : '--'}}</view> |
| | | <view class="list-item1">甲方单位</view><view class="list-item2">{{saleManage.cstmrId$ ? saleManage.cstmrId$ : '--'}}</view> |
| | | <view class="list-item1">项目金额</view><view class="list-item2 color-main">{{saleManage.money ? saleManage.money : '--'}}</view> |
| | | <view class="list-item1">项目地址</view><view class="list-item2">{{saleManage.addr ? saleManage.addr : '--'}}</view> |
| | | <view class="list-item1">备注</view><view class="list-item2">{{saleManage.memo ? saleManage.memo : '--'}}</view> |
| | | <view class="list-item1">项目地址</view><view class="list-item2">{{saleManage.addr}}</view> |
| | | <view class="list-item1">负责人</view><view class="list-item2">{{saleManage.director$}}</view> |
| | | <view class="list-item1">备注</view><view class="list-item2">{{saleManage.remarks ? saleManage.remarks : '--'}}</view> |
| | | <view class="list-item1">项目预算金额(万)</view><view class="list-item2">{{saleManage.money ? saleManage.money : '--'}}</view> |
| | | <view class="list-item1">项目预估成交率</view><view class="list-item2">{{saleManage.transactionRate ? saleManage.transactionRate : '--'}}</view> |
| | | |
| | | |
| | | </view> |
| | | <view class="container"> |
| | | <view><y-title title="其他信息"></y-title></view><view></view> |
| | |
| | | <view class="list-item1">修改人员</view><view class="list-item2">{{saleManage.updateBy$}}</view> |
| | | <view class="list-item1">修改时间</view><view class="list-item2 color-main">{{saleManage.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> |
| | | <view class="list-none" v-show="followers.length == 0"> |
| | | <text>暂无跟进人</text> |
| | | </view> |
| | | <view class="boxx"> |
| | | |
| | | </view> |
| | | |
| | | </scroll-view> |
| | | <view class="foot"> |
| | | <button size="mini" type="default" @click="modi(id)">修改</button> |
| | | <button size="mini" type="warn" @click="del(id)">删除</button> |
| | | <button size="mini" type="primary" @click="goBusiness(id)">出差</button> |
| | | </view> |
| | | |
| | | <view> |
| | |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | this.id = option.id |
| | | this.init() |
| | | this.autoLoad('follower','') |
| | | setTimeout(()=>{ |
| | | this.getFollowers() |
| | | },500) |
| | | if (option == '') { |
| | | this.id = option.id |
| | | this.init() |
| | | this.autoLoad('follower','') |
| | | setTimeout(()=>{ |
| | | this.getFollowers() |
| | | },500) |
| | | } else { |
| | | let _this = this |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('saleManage', function(data) { |
| | | _this.id = data.data |
| | | console.log(data.data); |
| | | }) |
| | | this.init() |
| | | this.autoLoad('follower','') |
| | | setTimeout(()=>{ |
| | | this.getFollowers() |
| | | },500) |
| | | } |
| | | }, |
| | | methods: { |
| | | init() { |
| | |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | that.saleManage = res.data |
| | | that.cstmr = res.data |
| | | that.cstmrId = that.cstmr.id |
| | |
| | | that.getFollowers() |
| | | } |
| | | }) |
| | | }, |
| | | modi(id) { |
| | | let _this = this |
| | | uni.navigateTo({ |
| | | url: '/pages/business/saleManage/modiSaleManage', |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('saleManage', { data: _this.saleManage }) |
| | | } |
| | | }) |
| | | }, |
| | | goBusiness() { |
| | | let _this = this |
| | | // console.log(_this.saleManage); |
| | | uni.navigateTo({ |
| | | url: '/pages/business/goBusiness/addgoBusiness', |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('addType', { data: {orderId: _this.saleManage.cstmrId,comeFrom: 'saleManage'} }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .boxx { |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | .header { |
| | | width: auto; |
| | | min-height: 110rpx; |