|
@@ -33,16 +33,16 @@
|
|
<view class="cell-item-c" @tap="goPage(item)">
|
|
<view class="cell-item-c" @tap="goPage(item)">
|
|
<view class="cell-item-info">
|
|
<view class="cell-item-info">
|
|
<view class="cell-item-info-network">
|
|
<view class="cell-item-info-network">
|
|
- 咸阳市秦都区文彩舫东区
|
|
|
|
- <u-badge type="success" bgColor="#c90101" :count="8" :offset="[-10,-32]" size="mini"></u-badge>
|
|
|
|
|
|
+ {{item.stationName}}
|
|
|
|
+ <u-badge type="success" bgColor="#c90101" :count="item.unCleanNum" :offset="[-10,-32]" size="mini"></u-badge>
|
|
</view>
|
|
</view>
|
|
<view class="cell-item-info-weight">
|
|
<view class="cell-item-info-weight">
|
|
<view class="cell-item-weight-bar">
|
|
<view class="cell-item-weight-bar">
|
|
- 15.25kg
|
|
|
|
|
|
+ {{item.totalWeight}}kg
|
|
<u-badge class="badge" type="primary" bgColor="#01c9b2" count="总" :offset="[0,0]"></u-badge>
|
|
<u-badge class="badge" type="primary" bgColor="#01c9b2" count="总" :offset="[0,0]"></u-badge>
|
|
</view>
|
|
</view>
|
|
<view class="cell-item-weight-bar">
|
|
<view class="cell-item-weight-bar">
|
|
- 15.25kg
|
|
|
|
|
|
+ {{item.maxWeight}}kg
|
|
<u-badge class="badge" type="warning" bgColor="#05695d" count="最大" :offset="[0,0]"></u-badge>
|
|
<u-badge class="badge" type="warning" bgColor="#05695d" count="最大" :offset="[0,0]"></u-badge>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -66,14 +66,14 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import searchModal from '@/pages/cleared/searchModal.vue'
|
|
import searchModal from '@/pages/cleared/searchModal.vue'
|
|
- import { getGoldLogList, GoldLogCancel, GoldLogTotal } from '@/api/officialPartnerGoldLog.js'
|
|
|
|
|
|
+ import { waitToCleanList } from '@/api/cleared.js'
|
|
export default{
|
|
export default{
|
|
components: { searchModal },
|
|
components: { searchModal },
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
listdata: [{id:1},{id:2}],
|
|
listdata: [{id:1},{id:2}],
|
|
pageNo: 1, // 当前页码
|
|
pageNo: 1, // 当前页码
|
|
- pageSize: 40, // 每页条数
|
|
|
|
|
|
+ pageSize: 10, // 每页条数
|
|
total: 0, // 数据总条数
|
|
total: 0, // 数据总条数
|
|
noDataText: '暂无数据', // 列表请求状态提示语
|
|
noDataText: '暂无数据', // 列表请求状态提示语
|
|
status: 'loadmore', // 加载中状态
|
|
status: 'loadmore', // 加载中状态
|
|
@@ -84,8 +84,8 @@
|
|
openScreen: false, // 是否打开筛选
|
|
openScreen: false, // 是否打开筛选
|
|
searchForm: {
|
|
searchForm: {
|
|
// 查询条件
|
|
// 查询条件
|
|
- bundleName: '', // 网点名称
|
|
|
|
- custMobile: '', // 排序方式
|
|
|
|
|
|
+ stationName: '', // 网点名称
|
|
|
|
+ orderType: 'max', // 排序方式
|
|
},
|
|
},
|
|
btnStyle: { // 自定义按钮样式
|
|
btnStyle: { // 自定义按钮样式
|
|
borderColor: '#07c160',
|
|
borderColor: '#07c160',
|
|
@@ -95,7 +95,8 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- // this.refresh({})
|
|
|
|
|
|
+ this.openScreen = false // 关闭筛选框
|
|
|
|
+ this.refresh(this.searchForm)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 加入清运单
|
|
// 加入清运单
|
|
@@ -131,6 +132,7 @@
|
|
},
|
|
},
|
|
// 获取查询参数 刷新列表
|
|
// 获取查询参数 刷新列表
|
|
refresh(params){
|
|
refresh(params){
|
|
|
|
+ this.searchForm = params
|
|
this.listdata = []
|
|
this.listdata = []
|
|
this.total = 0
|
|
this.total = 0
|
|
this.searchHandle(1)
|
|
this.searchHandle(1)
|
|
@@ -138,10 +140,12 @@
|
|
// 搜索查询
|
|
// 搜索查询
|
|
searchHandle (pageNo) {
|
|
searchHandle (pageNo) {
|
|
this.status = "loading"
|
|
this.status = "loading"
|
|
- pageNo ? this.pageNo = pageNo : null
|
|
|
|
- getGoldLogList({
|
|
|
|
|
|
+ pageNo ? this.pageNo = pageNo : null,
|
|
|
|
+ waitToCleanList({
|
|
pageNo: this.pageNo,
|
|
pageNo: this.pageNo,
|
|
- pageSize: this.pageSize
|
|
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ stationName: this.searchForm.stationName,
|
|
|
|
+ orderType: this.searchForm.orderType
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
res.data.list.map(item => {
|
|
res.data.list.map(item => {
|
|
@@ -166,7 +170,7 @@
|
|
// 查看详情
|
|
// 查看详情
|
|
goPage(row){
|
|
goPage(row){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/cleared/network'
|
|
|
|
|
|
+ url: '/pages/cleared/network?stationNo=' + item.stationNo
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// scroll-view到底部加载更多
|
|
// scroll-view到底部加载更多
|
|
@@ -242,7 +246,7 @@
|
|
box-shadow: 3rpx 3rpx 5rpx #eee;
|
|
box-shadow: 3rpx 3rpx 5rpx #eee;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
- padding: $uni-spacing-col-base $uni-spacing-row-base;
|
|
|
|
|
|
+ padding: 30rpx 20rpx;
|
|
// 多选框
|
|
// 多选框
|
|
.cell-item-checkbox{
|
|
.cell-item-checkbox{
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
@@ -256,7 +260,7 @@
|
|
flex-grow: 1;
|
|
flex-grow: 1;
|
|
.cell-item-info-network{
|
|
.cell-item-info-network{
|
|
word-break: break-all;
|
|
word-break: break-all;
|
|
- margin-bottom: $uni-spacing-col-base;
|
|
|
|
|
|
+ margin-bottom: 26rpx;
|
|
display: inline-block;
|
|
display: inline-block;
|
|
position: relative;
|
|
position: relative;
|
|
}
|
|
}
|