Commit a035a093 authored by chuan.liu's avatar chuan.liu

市场线索查询联调

parent 1574f8de
This diff is collapsed.
...@@ -48,24 +48,28 @@ ...@@ -48,24 +48,28 @@
</refresh> </refresh>
<cell v-for="(item,index) in lists" :key="index"> <cell v-for="(item,index) in lists" :key="index">
<view class="scroll-item"> <view class="scroll-item">
<view class="item-block item-block-code"> <view v-if="index===0" class="item-block item-block-sum">
<text class="item-block-label">单号:333</text> <text class="item-block-label">共 1 项</text>
</view>
<view class="item-block item-block-name">
<text class="item-block-label item-block__label">2</text>
</view>
<view class="item-block">
<text class="item-block-label-des">2-3</text>
</view> </view>
<view class="block-detal"> <view class="block-detal">
<view class="block-detal-item"> <view class="block-detal-head">
<text class="detal-item-label">存货分类</text> <text
<text class="detal-item-value">sss</text> class="detal-head-item-value detal-head-item-value-first">{{item.auditTime}}</text>
<text class="detal-head-item-value">{{item.viloationTypeName}}</text>
<text class="detal-head-item-value">{{item.childTypeName}}</text>
<text
class="detal-head-item-value detal-head-item-value-last status-done">{{item.statusName}}</text>
</view>
<view class="block-detal-body">
<text class="detal-item-value">{{item.terminalName}}</text>
<text class="detal-item-value">{{item.terminalAddress}}</text>
<text class="detal-item-value">{{item.platformName}}</text>
<text class="detal-item-value">{{item.storeName}}</text>
<view class="detal-item-value" v-for="(product,index2) in item.entries" :key='index2'>
<text class="product-val">{{product.productName}}</text>
<text class="product-val">{{product.barcodeTypeName}}</text>
<text class="product-val"> {{product.barcode}}</text>
</view> </view>
<view class="block-detal-item block-detal-item-last">
<text class="detal-item-label">已占用计划(件)</text>
<text class="detal-item-value">3</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -166,7 +170,7 @@ ...@@ -166,7 +170,7 @@
}, },
created() { created() {
this.condition.submitUserId = this.userInfo.code this.condition.submitUserId = this.userInfo.code
this.reset() // this.reset()
}, },
methods: { methods: {
async getClueList(isRefresh) { async getClueList(isRefresh) {
...@@ -204,6 +208,7 @@ ...@@ -204,6 +208,7 @@
const res = await api[this.activeTabIndex](params) const res = await api[this.activeTabIndex](params)
uni.hideLoading(); uni.hideLoading();
if (res?.data?.results) {
const { const {
totalNumberOfResults, totalNumberOfResults,
numberOfPages numberOfPages
...@@ -211,13 +216,16 @@ ...@@ -211,13 +216,16 @@
this.loadParams.total = totalNumberOfResults this.loadParams.total = totalNumberOfResults
this.loadParams.totalPage = numberOfPages this.loadParams.totalPage = numberOfPages
if (isRefresh) { if (isRefresh) {
this.lists = res.data.results this.lists = res.data.results
this.loadParams.isDone = false this.loadParams.isDone = false
} else { } else {
this.lists = this.lists.concat(res.data.results) this.lists = this.lists.concat(res.data.results)
} }
} else {
this.lists = [res.data]
this.loadParams.isDone = true
}
setTimeout(() => { setTimeout(() => {
this.refreshing = false; this.refreshing = false;
...@@ -479,9 +487,8 @@ ...@@ -479,9 +487,8 @@
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-bottom: 32rpx; padding: 0 64rpx 0 48rpx;
border-radius: 16rpx; background-color: #fff;
padding: 32rpx 64rpx 40rpx 48rpx;
} }
.planout-block-item__last { .planout-block-item__last {
...@@ -507,13 +514,10 @@ ...@@ -507,13 +514,10 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.item-block-code { .item-block-sum {
padding-bottom: 16rpx; padding-bottom: 10px;
} margin-bottom: 28rpx;
border-bottom: 1px solid #f4f5f6;
.item-block-name {
padding-top: 24rpx;
padding-bottom: 32rpx;
} }
.item-block-label-des { .item-block-label-des {
...@@ -527,29 +531,51 @@ ...@@ -527,29 +531,51 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #f8f8f8; background: #f8f8f8;
border-radius: 20rpx; border-radius: 10rpx;
padding: 32rpx; padding: 24rpx 32rpx;
margin-top: 32rpx; margin-bottom: 28rpx;
} }
.block-detal-item { .block-detal-head {
display: flex; display: flex;
margin-bottom: 32rpx;
justify-content: space-between; justify-content: space-between;
border-bottom: 1px solid #ddd;
padding-bottom: 6px;
} }
.block-detal-item-last { .detal-head-item-value {
margin-bottom: 0; flex: 1;
text-align: center;
} }
.detal-item-label { .detal-head-item-value-first {
color: #999; flex: 1.2;
font-size: 24rpx; text-align: left;
}
.detal-head-item-value-last {
flex: 0.7;
text-align: right;
}
.status-done {
color: #F62C29;
}
.product-val {
margin-right: 10px;
}
.block-detal-body {
display: flex;
flex-direction: column;
padding-top: 20rpx;
} }
.detal-item-value { .detal-item-value {
color: #333; color: #333;
font-size: 28rpx; font-size: 24rpx;
margin-bottom: 8rpx;
} }
.btn { .btn {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment