| | |
| | | </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> |
| | | <view class="c-list" v-for="(item,index) in csmtrList" :key="index"> |
| | | <view class="titles" @click="getDetails(item.id)"> |
| | | <view style="flex: 1;"> |
| | | <y-title :title="item.name"></y-title> |
| | | </view> |
| | | <uni-icons class="opt-icon" type="right" size="20" color="#b9b9b9"></uni-icons> |
| | | </view> |
| | | <view style="display: grid;grid-template-columns: 1fr 3fr;"> |
| | | <view class="list-item1">项目代号</view><view class="list-item2">{{item.uuid}}</view> |
| | | <view class="list-item1">甲方单位</view><view class="list-item2">{{item.cstmrId$ ? item.cstmrId$ : '--'}}</view> |
| | | <view class="list-item1">所属区域</view><view class="list-item2">{{item.pcd$ ? item.pcd$ : '--'}}</view> |
| | | <view class="list-item1">项目地址</view><view class="list-item2">{{item.addr ? item.addr : '--'}}</view> |
| | | <view class="list-item1">项目负责人</view><view class="list-item2">{{item.director$ ? item.director$ : '--'}}</view> |
| | | <view class="list-item1">创建人</view><view class="list-item2">{{item.createBy$}}</view> |
| | | <view class="list-item1">创建时间</view><view class="list-item2">{{item.createTime$}}</view> |
| | | <view class="cstmrs"> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">项目号</view><view class="list-item2">{{item.id}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">跟踪项目名称</view><view class="list-item2">{{item.name}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <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.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 class="cstmrs-item"> |
| | | <view class="list-item1">项目地址</view><view class="list-item2">{{item.addr ? item.addr : '--'}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">项目预算金额(万)</view><view class="list-item2">{{item.money ? item.money : '--'}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">项目预估成交率</view><view class="list-item2">{{item.transactionRate ? item.transactionRate : '--'}}%</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">项目负责人</view><view class="list-item2">{{item.userId$ ? item.userId$ : '--'}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">备注</view><view class="list-item2">{{item.memo ? item.memo : '--'}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">添加时间</view><view class="list-item2">{{item.createTime$ ? item.createTime$ : '--'}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">所属公司</view><view class="list-item2">{{item.company$ ? item.company$ : '--'}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">产品类型</view><view class="list-item2">{{item.orderProductTypeId$ ? item.orderProductTypeId$ : '--'}}</view> |
| | | </view> |
| | | <view class="cstmrs-item"> |
| | | <view class="list-item1">状态</view><view class="list-item2">{{item.status$ ? item.status$ : '--'}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- <uni-load-more :status="status" :icon-size="16" :content-text="contentText" /> --> |
| | | <u-empty v-if="true" icon="../../../static/image/emptyList.png" v-show="csmtrList.length <= 0" /> |
| | | |
| | | <view style="height: 10rpx;"></view> |
| | | <view class="fxbtn"> |
| | | <uni-icons type="plusempty" color="#fff" @click="add()" ></uni-icons> |
| | | </view> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | keyword: '', |
| | | user: { |
| | | username: '', |
| | | id: 0, |
| | | type: '' |
| | | type: 'user_id' |
| | | }, |
| | | falg: true, |
| | | csmtrList: [], |
| | |
| | | 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) { |
| | | uni.navigateTo({ |
| | | url: '/pages/business/saleManage/saleManageDetails?id=' + id |
| | | }) |
| | | }, |
| | | goDetls(id) { |
| | | uni.navigateTo({ |
| | | url: '/pages/business/saleManage/cstmrDetls?id=' + id |
| | | }) |
| | | }, |
| | | // --- |
| | |
| | | margin-bottom: 20px; |
| | | } |
| | | .list-item1 { |
| | | |
| | | height: 45rpx; |
| | | flex: 1; |
| | | min-height: 45rpx; |
| | | line-height: 45rpx; |
| | | color: #909399; |
| | | text-indent: 30rpx; |
| | | } |
| | | .list-item2 { |
| | | height: 45rpx; |
| | | flex: 3; |
| | | min-height: 45rpx; |
| | | line-height: 45rpx; |
| | | color: black; |
| | | } |
| | |
| | | padding-left: 10rpx; |
| | | text-indent: 5rpx; |
| | | margin-top: 10rpx; |
| | | display: flex; |
| | | } |
| | | .cstmrs { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | } |
| | | .cstmrs-item { |
| | | display: flex; |
| | | } |
| | | .color-main { |
| | | color: #55aaff |
| | | } |
| | | /* .title { |
| | | height: 60rpx; |