| | |
| | | </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.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.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.pcd$ ? saleManage.pcd$ : '--'}}</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.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.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> |
| | |
| | | orderProductTypeIds: [], |
| | | orderProductTypeList: [], |
| | | baseFormData: { |
| | | id: '', |
| | | memoExperience: '', |
| | | status: 0, |
| | | citysData: [], |
| | | cstmrType: '', |
| | | company: '', |
| | |
| | | text: '外销', |
| | | value: 2 |
| | | }], |
| | | id: 0, |
| | | citysData: [], |
| | | citysDataTemp: '' |
| | | citysDataTemp: '', |
| | | memoExperience: '', |
| | | status: 0 |
| | | } |
| | | }, |
| | | onReady() { |
| | |
| | | // 获取省市区 |
| | | this.citysData = test.citysData |
| | | this.getDetail() |
| | | }, |
| | | onLoad: function(option) { |
| | | let _this = this |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.emit('acceptDataFromOpenedPage', {data: 'data from test page'}); |
| | | eventChannel.emit('someEvent', {data: 'data from test page for someEvent'}); |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('saleManage', function(data) { |
| | | data = data.data |
| | | console.log(data); |
| | | _this.cstmrList = [{value: data.cstmrId$,id: data.cstmrId}] |
| | | _this.companyList = [{name: data.company$,id: data.company}] |
| | | _this.directorList = [{value: data.director$,id: data.director}] |
| | | _this.orderProductTypeList = [{value: data.orderProductTypeId$,id: data.orderProductTypeId}] |
| | | data.cstmrId = data.cstmrId$ |
| | | data.company = data.company$ |
| | | data.director = data.director$ |
| | | data.orderProductTypeId = data.orderProductTypeId$ |
| | | _this.citysDataTemp = data.pcd |
| | | _this.id = data.id |
| | | _this.memoExperience = data.memoExperience |
| | | _this.status = data.status |
| | | _this.baseFormData = data |
| | | }) |
| | | }, |
| | | methods: { |
| | | async getDetail() { |
| | |
| | | } |
| | | } |
| | | for (element of that.directorList) { |
| | | console.log(that.directorList); |
| | | console.log(that.baseFormData.director); |
| | | if (element.value == that.baseFormData.director) { |
| | | that.baseFormData.director = element.id |
| | | } |
| | |
| | | res.remarks = '' |
| | | } |
| | | res.pcd = this.citysDataTemp |
| | | res.id = this.id |
| | | res.memoExperience = this.memoExperience |
| | | res.status = this.status |
| | | uni.request({ |
| | | url: that.baseUrl + '/order/add/auth', |
| | | url: that.baseUrl + '/order/update/auth', |
| | | header: { |
| | | 'token': uni.getStorageSync('token'), |
| | | 'content-type': 'application/x-www-form-urlencoded', |
| | |
| | | success(result) { |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | uni.navigateBack() |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }) |
| | | } else if (res.code === 403) { |
| | | uni.showToast({ |
| | | title: res.msg, |
| | |
| | | <view> |
| | | <!-- 客户列表 --> |
| | | <view class="c-list" v-for="(item,index) in csmtrList" :key="index"> |
| | | <view class="titles" @click="getDetails(item.cstmrId)"> |
| | | <view class="titles" @click="getDetails(item.id)"> |
| | | <view style="flex: 1;"> |
| | | <y-title :title="item.name"></y-title> |
| | | </view> |
| | |
| | | <view class="list-item1">项目代号</view><view class="list-item2">{{item.uuid}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">甲方单位</view><view class="list-item2 color-main" @click="goDetls(item.id)">{{item.cstmrId$ ? item.cstmrId$ : '--'}}</view> |
| | | <view class="list-item1">甲方单位</view><view class="list-item2 color-main" @click="goDetls(item.cstmrId)">{{item.cstmrId$ ? item.cstmrId$ : '--'}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">所属区域</view><view class="list-item2">{{item.pcd$ ? item.pcd$ : '--'}}</view> |
| | |
| | | </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> |
| | |
| | | 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 }) |
| | | } |
| | | }) |
| | | } |
| | | } |