You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
172 lines
3.5 KiB
172 lines
3.5 KiB
<template>
|
|
<view>
|
|
<view class="formBox">
|
|
<u-alert description="点击可查看对应每笔入库单" type="primary"></u-alert>
|
|
<view class="swipe-action">
|
|
<view class="swipe-action__content" @tap="onItemClick(item)" v-for="(item,index) in list" :key="index">
|
|
<view class="swipe-action__content__left">
|
|
<view class="swipe-action__content__text">{{ item.nickname == null ?'暂无':item.nickname}}</view>
|
|
</view>
|
|
<view class="swipe-action__content__right">
|
|
<view class="swipe-action__content__right__text">欠款总金额:</view>
|
|
<view class="swipe-action__content__right__money">{{ item.no_earn == null ?'暂无':item.no_earn }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
mapState
|
|
} from 'vuex';
|
|
export default {
|
|
name: 'upstream',
|
|
computed: mapState([ 'userId','shopIndex' ]),
|
|
data() {
|
|
return {
|
|
choose: '1',
|
|
options1: [{
|
|
text: '编辑金额',
|
|
style: {
|
|
backgroundColor: '#3c9cff'
|
|
}
|
|
}],
|
|
popupShow: false,
|
|
shopName: '',
|
|
list:[]
|
|
}
|
|
},
|
|
onShow() {
|
|
this.getList()
|
|
},
|
|
methods: {
|
|
getList() {
|
|
this.tui.request("/app/customer/debt", "POST", {
|
|
shopId:this.shopIndex
|
|
}, false, true).then((res) => {
|
|
if(res.code == 200){
|
|
this.list = res.result
|
|
}else{
|
|
this.tui.toast(res.message)
|
|
}
|
|
|
|
})
|
|
},
|
|
onItemClick(target) {
|
|
uni.navigateTo({
|
|
url: `/pages/index/downarrears?userId=${target.userId}&nickname=${target.nickname}`
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.formBox {
|
|
.uni-data-select {
|
|
width: 100%;
|
|
}
|
|
|
|
.tui-order-title {
|
|
position: relative;
|
|
font-size: 28upx;
|
|
line-height: 28upx;
|
|
padding-left: 16upx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.tui-order-title::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
border-left: 8upx solid $u-primary;
|
|
height: 120%;
|
|
border-radius: 4upx;
|
|
}
|
|
}
|
|
|
|
.tui-tabbar {
|
|
width: 100%;
|
|
height: 98rpx;
|
|
background: #fff;
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
font-size: 26rpx;
|
|
box-shadow: 0 0 1px rgba(0, 0, 0, .3);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
z-index: 996;
|
|
}
|
|
.u-page {
|
|
padding: 0;
|
|
}
|
|
|
|
.u-demo-block__title {
|
|
padding: 10px 0 2px 15px;
|
|
}
|
|
|
|
.swipe-action {
|
|
&__content {
|
|
background-color: #fff;
|
|
margin-bottom: 25rpx;
|
|
padding:25rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
&__left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
&__right {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-basis: 300rpx;
|
|
justify-content: space-between;
|
|
&__text {
|
|
color: firebrick;
|
|
}
|
|
&__money {
|
|
flex-basis: 100rpx;
|
|
color: red;
|
|
text-align: right;
|
|
}
|
|
}
|
|
&__text {
|
|
padding: 12rpx 0;
|
|
width: 100%;
|
|
}
|
|
&__time {
|
|
font-size: 22rpx;
|
|
color: #3a3a3a;
|
|
}
|
|
&__icon {
|
|
flex-basis: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
.edit-info {
|
|
height: 450 rpx;
|
|
padding: 25rpx;
|
|
.title {
|
|
text-align: center;
|
|
font-size: 32rpx;
|
|
}
|
|
.info-name {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 35rpx 0;
|
|
}
|
|
}
|
|
</style>
|
|
<style>
|
|
.u-radio {
|
|
margin: 15 upx 0;
|
|
}
|
|
</style>
|
|
|