电子结算单
This commit is contained in:
@@ -2,29 +2,33 @@
|
||||
<view class="container">
|
||||
<cu-custom class="main-totextbar bg-main-oil" :isBack="true" bgColor="bg-main-oil">
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">商品列表</block>
|
||||
<block slot="content">电子对账单</block>
|
||||
</cu-custom>
|
||||
|
||||
<view class="options-frame">
|
||||
<view v-for="item,index in optionsList" :key="index" :class="index == currentIndex ? 'active':''"
|
||||
@click="selectOptions(index)">{{item.text}}<text>({{item.count}})</text></view>
|
||||
@click="selectOptions(index)">{{item.text}}</view>
|
||||
</view>
|
||||
|
||||
<scroll-view v-if="dataList.length" class="list" :scroll-y="true" @scrolltolower="lower">
|
||||
<view class="item" v-for="item,index in dataList" :key="index">
|
||||
|
||||
<view class="introduce">
|
||||
<image :src="item.url"></image>
|
||||
<view>{{item.productName}}</view>
|
||||
<view>规格:默认</view>
|
||||
<view>库存:{{item.totalStock}}</view>
|
||||
</view>
|
||||
<view class="footer">
|
||||
<view class="button">删除</view>
|
||||
<view class="button">编辑</view>
|
||||
<view v-if="item.status!=0" class="introduce" @click="openDetails(item)">
|
||||
<view>{{item.id}}</view>
|
||||
<view>
|
||||
结算周期:
|
||||
<view>{{item.beginReconciliationTime}}至 {{item.endReconciliationTime}}</view>
|
||||
</view>
|
||||
<view>结算金额:{{item.statementAmount}}元</view>
|
||||
<view>推送时间:{{item.reviewTime?item.reviewTime:'暂无'}}</view>
|
||||
<view class="footer">
|
||||
<view v-if="item.status ==1" class="button" @click="openDetails(item)">点击确认</view>
|
||||
<view v-if="item.status ==2" class="buttonConfirmed">已确认</view>
|
||||
<view v-if="item.status ==3" class="buttonError">金额有误</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view style="height: 30rpx; background: #fff;"></view>
|
||||
</scroll-view>
|
||||
<view v-else class="empty">
|
||||
<image src="https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/yunsite-empty.png"></image>
|
||||
@@ -35,12 +39,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import serve from '@/api/packageIntegral/productList.js'
|
||||
import serve from '@/api/packageElectron/packageElectron.js'
|
||||
|
||||
export default {
|
||||
options: {
|
||||
styleIsolation: 'shared'
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentIndex: 0,
|
||||
@@ -49,22 +50,18 @@
|
||||
pagesize: 20,
|
||||
params: {},
|
||||
},
|
||||
dataList: [{},{}],
|
||||
dataList: [],
|
||||
optionsList: [{
|
||||
text: '全部',
|
||||
count: 0,
|
||||
value: ''
|
||||
}, {
|
||||
text: '待确认',
|
||||
count: 0,
|
||||
value: ''
|
||||
}, {
|
||||
text: '已确认',
|
||||
count: 0,
|
||||
value: ''
|
||||
}, {
|
||||
text: '金额异常',
|
||||
count: 0,
|
||||
value: ''
|
||||
}],
|
||||
|
||||
@@ -73,36 +70,58 @@
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
// this.productByPage()
|
||||
// this.getTopInfo()
|
||||
this.getByPage()
|
||||
},
|
||||
|
||||
methods: {
|
||||
selectOptions(index) {
|
||||
this.currentIndex = index
|
||||
console.log(index,'index')
|
||||
this.paramter.currentPage = 1
|
||||
if(index == 0){
|
||||
this.paramter.params ={}
|
||||
this.paramter.params.status = '5'
|
||||
}else if(index ==1){
|
||||
this.paramter.params ={}
|
||||
this.paramter.params.productStatus = 1
|
||||
this.paramter.params.status = '1'
|
||||
}else if(index ==2){
|
||||
this.paramter.params ={}
|
||||
this.paramter.params.productStatus = 2
|
||||
this.paramter.params.status = '2'
|
||||
}else if(index ==3){
|
||||
this.paramter.params ={}
|
||||
this.paramter.params.auditStatus = 1
|
||||
this.paramter.params.status = '3'
|
||||
}
|
||||
// this.productByPage()
|
||||
this.getByPage()
|
||||
},
|
||||
getByPage(){
|
||||
serve.getByPage(this.paramter).then(res=>{
|
||||
if (res.code === 20000) {
|
||||
if (!res.data.list.length&&this.paramter.currentPage!=1) {
|
||||
uni.showToast({
|
||||
title: '没有更多结算单啦~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (this.paramter.currentPage == 1) {
|
||||
this.dataList = []
|
||||
}
|
||||
this.dataList = this.dataList.concat(res.data.list)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
lower() {
|
||||
this.paramter.currentPage += 1
|
||||
// this.productByPage()
|
||||
this.getByPage()
|
||||
},
|
||||
|
||||
openDetails(item){
|
||||
let stationInfo = JSON.stringify(item)
|
||||
uni.navigateTo({
|
||||
url: `./reconciliationDetails/index?data=${stationInfo}`
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -117,8 +136,8 @@
|
||||
>.options-frame {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 43rpx;
|
||||
padding: 0 31rpx;
|
||||
background: #fff;
|
||||
|
||||
|
||||
>view {
|
||||
@@ -128,146 +147,94 @@
|
||||
line-height: 66rpx;
|
||||
text-align: center;
|
||||
color: #000000;
|
||||
background: #F7F7F7;
|
||||
|
||||
>text {
|
||||
color: #F83D3D;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #FFF;
|
||||
background: #F83D3D;
|
||||
|
||||
>text {
|
||||
color: #fff;
|
||||
}
|
||||
color: #e19555;
|
||||
border-bottom: 4rpx solid #e19555;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
>.list {
|
||||
margin-top: 35rpx;
|
||||
margin: 30rpx;
|
||||
flex: 1;
|
||||
overflow-y: hidden;
|
||||
|
||||
.item {
|
||||
position: relative;
|
||||
margin-top: 20rpx;
|
||||
background: #fff;
|
||||
// min-height: 106rpx;
|
||||
// border-bottom: 12rpx solid #F1F2F7;
|
||||
|
||||
&:nth-of-type(1) {
|
||||
margin-top: 0
|
||||
}
|
||||
|
||||
.header {
|
||||
// padding: 26rpx 23rpx 0;
|
||||
height: 60rpx;
|
||||
// line-height: 83rpx;
|
||||
width: 100%;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
border-top: 1rpx solid #D7D7D7;
|
||||
|
||||
.identifying{
|
||||
width: 120rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
// background-color: #F83D3D;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
border-bottom-right-radius: 30rpx;
|
||||
}
|
||||
}
|
||||
|
||||
margin: 20rpx 60rpx 0 0;
|
||||
.introduce {
|
||||
position: relative;
|
||||
padding: 24rpx 29rpx 31rpx 268rpx;
|
||||
padding: 12rpx 24rpx 24rpx;
|
||||
min-height: 220rpx;
|
||||
|
||||
>image {
|
||||
position: absolute;
|
||||
top: 13rpx;
|
||||
left: 34rpx;
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
// border: 1px solid #333;
|
||||
background: #fff;
|
||||
border: 2rpx solid #d7d7d7;
|
||||
border-radius: 10rpx;
|
||||
>view{
|
||||
padding: 10rpx 0;
|
||||
}
|
||||
|
||||
>view {
|
||||
&:nth-of-type(1) {
|
||||
font-size: 28rpx;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
&:nth-of-type(2),
|
||||
&:nth-of-type(3) {
|
||||
margin-top: 11rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
&:nth-of-type(3) {
|
||||
margin-top: 18rpx;
|
||||
|
||||
}
|
||||
|
||||
&:nth-of-type(4) {
|
||||
margin-top: 11rpx;
|
||||
font-size: 28rpx;
|
||||
color: #F83D3D;
|
||||
}
|
||||
>view:nth-child(1){
|
||||
font-weight: bold;
|
||||
padding-bottom: 12rpx;
|
||||
border-bottom: 2rpx solid #d7d7d7;
|
||||
}
|
||||
}
|
||||
.examine{
|
||||
width: 120rpx;
|
||||
height: 45rpx;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
line-height: 45rpx;
|
||||
position: absolute;
|
||||
right: 50rpx;
|
||||
top: 180rpx;
|
||||
}
|
||||
|
||||
>.footer {
|
||||
position: relative;
|
||||
height: 58rpx;
|
||||
line-height: 58rpx;
|
||||
padding: 0 34rpx 40rpx;
|
||||
font-size: 32rpx;
|
||||
color: #000;
|
||||
font-weight: 550;
|
||||
|
||||
.button {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 128rpx;
|
||||
>.footer {
|
||||
position: relative;
|
||||
height: 58rpx;
|
||||
line-height: 58rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
background: #FFF;
|
||||
border: 1px solid #999;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
>.button{
|
||||
&:nth-of-type(1){
|
||||
right: 360rpx;
|
||||
padding: 0 34rpx 40rpx;
|
||||
font-size: 32rpx;
|
||||
color: #000;
|
||||
font-weight: 550;
|
||||
|
||||
.button {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 10rpx;
|
||||
width: 150rpx;
|
||||
height: 58rpx;
|
||||
line-height: 58rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
background: #169bd5;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
&:nth-of-type(2){
|
||||
right: 200rpx;
|
||||
.buttonConfirmed{
|
||||
position: absolute;
|
||||
top: -85rpx;
|
||||
right: 10rpx;
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
line-height: 150rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
background: #7f7f7f;
|
||||
border-radius: 75rpx;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
&:nth-of-type(3){
|
||||
right: 40rpx;
|
||||
.buttonError{
|
||||
position: absolute;
|
||||
top: -85rpx;
|
||||
right: 10rpx;
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
line-height: 150rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
background: #d9001b;
|
||||
border-radius: 75rpx;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user