| | |
| | | </view> |
| | | </view> |
| | | <view class="container"> |
| | | |
| | | <view><y-title title="基本信息"></y-title></view><view></view> |
| | | <view class="list-item1">客户代号</view><view class="list-item2">{{saleManage.uuid}}</view> |
| | | <view class="list-item1">所属部门</view><view class="list-item2">{{saleManage.deptId$}}</view> |
| | | <view class="list-item1">客户类别</view><view class="list-item2">{{saleManage.cstmrType$}}</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.contacts ? saleManage.contacts : '--'}}</view> |
| | | <view class="list-item1">区分</view><view class="list-item2">{{saleManage.type$ ? saleManage.type$ : '--'}}</view> |
| | | <view class="list-item1">客户行业</view><view class="list-item2 color-main">{{saleManage.industry ? saleManage.industry : '--'}}</view> |
| | | <view class="list-item1">产品类别</view><view class="list-item2">{{saleManage.productCategory ? saleManage.productCategory : '--'}}</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="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="del(id)">出差</button> |
| | | <button size="mini" type="primary" @click="goBusiness(id)">出差</button> |
| | | </view> |
| | | |
| | | <view> |
| | |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | this.id = option.id |
| | | console.log(option); |
| | | 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() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + '/cstmr/' + that.id +'/auth', |
| | | url: that.baseUrl + '/order/' + that.id +'/auth', |
| | | header: {'token' : uni.getStorageSync('token')}, |
| | | method: 'GET', |
| | | success(res) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | modi() { |
| | | modi(id) { |
| | | let _this = this |
| | | uni.navigateTo({ |
| | | url: '/pages/business/saleManage/modiSaleManage' |
| | | 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'} }) |
| | | } |
| | | }) |
| | | } |
| | | } |