|
|
@@ -1,15 +1,15 @@ |
|
|
|
<template> |
|
|
|
<view class="title"> |
|
|
|
<view> |
|
|
|
<text class="status">待补缴</text> |
|
|
|
<text class="status1">已补缴</text> |
|
|
|
<text :class="state.reimburseStatus=='0'?'status':'status1'" @click="getlist(0)">待补缴</text> |
|
|
|
<text :class="state.reimburseStatus=='1'?'status2':'status3'" @click="getlist(1)">已补缴</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
<view class="list" v-for="(item,index) in state.list"> |
|
|
|
<view class="list" v-for="(item,index) in state.list" @click="details(item.id)"> |
|
|
|
<checkbox-group @change="checkboxGroupChange(item)"> |
|
|
|
<label class="uni-list-cell uni-list-cell-pd" style="display: flex;"> |
|
|
|
<checkbox :checked="item.checked" style="transform:scale(0.8);top: -12rpx;position: relative;"/> |
|
|
|
<checkbox :checked="item.checked" style="transform:scale(0.8);top: -12rpx;position: relative;" v-if="state.reimburseStatus=='0'"/> |
|
|
|
<view class="right-box"> |
|
|
|
<view class="right-box-top"> |
|
|
|
<view> |
|
|
@@ -27,7 +27,7 @@ |
|
|
|
</checkbox-group> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="pay_wrap"> |
|
|
|
<view class="pay_wrap" v-if="state.reimburseStatus=='0'"> |
|
|
|
<checkbox-group @change="checkboxChangeAll"> |
|
|
|
<label class="uni-list-cell uni-list-cell-pd"> |
|
|
|
<checkbox value="ALL" :checked="state.checkedAll" style="transform:scale(0.8)"/>合计 ¥{{allPrice/100}} |
|
|
@@ -48,8 +48,9 @@ |
|
|
|
} from "@dcloudio/uni-app"; |
|
|
|
import {requestNew} from "@/utils/network/request.js"; |
|
|
|
import { |
|
|
|
reimbursePage |
|
|
|
reimbursePage,reimburseUserPay |
|
|
|
} from "@/utils/network/api.js"; |
|
|
|
import {navTo} from '@/utils/utils'; |
|
|
|
const allPrice = ref(0) |
|
|
|
const state = reactive({ |
|
|
|
reimburseStatus:"0",//0未补缴 1已补缴 2已关闭 |
|
|
@@ -60,7 +61,7 @@ |
|
|
|
checkedAll:false |
|
|
|
}) |
|
|
|
onLoad(() => { |
|
|
|
getlist() |
|
|
|
getlist(state.reimburseStatus) |
|
|
|
}) |
|
|
|
const checkboxGroupChange = (e) => { |
|
|
|
console.log(e); |
|
|
@@ -79,11 +80,13 @@ |
|
|
|
allPrice.value = 0 |
|
|
|
state.suppleNoList.forEach((item, i) => { |
|
|
|
state.list.forEach((val, index) => { |
|
|
|
console.log("state.suppleNoList",state.suppleNoList,state.list,item.orderId,val.orderId) |
|
|
|
if (item.orderId == val.orderId) { |
|
|
|
arr.push(val.reimburseFee) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
console.log("arr",arr) |
|
|
|
// 计算价格 |
|
|
|
arr.forEach(item => { |
|
|
|
allPrice.value += item |
|
|
@@ -114,11 +117,12 @@ |
|
|
|
console.log(state.suppleNoList, "支付集合"); |
|
|
|
} |
|
|
|
// 获取列表数据 |
|
|
|
const getlist = () => { |
|
|
|
const getlist = (reimburseStatus) => { |
|
|
|
state.reimburseStatus=reimburseStatus |
|
|
|
const options = { |
|
|
|
type: 2, |
|
|
|
data: { |
|
|
|
reimburseStatus:state.reimburseStatus,//补缴单状态 |
|
|
|
reimburseStatus:reimburseStatus,//补缴单状态 |
|
|
|
pageNo:state.pageNo, |
|
|
|
pageSize:state.pageSize |
|
|
|
}, |
|
|
@@ -137,6 +141,23 @@ |
|
|
|
} |
|
|
|
const pay=()=>{ |
|
|
|
console.log(allPrice.value, "支付金额"); |
|
|
|
const options = { |
|
|
|
type: 2, |
|
|
|
data: { |
|
|
|
orderIds:state.reimburseStatus,//补缴单状态 |
|
|
|
reimburseFee:state.pageNo, |
|
|
|
spbillCreateIp:state.pageSize |
|
|
|
}, |
|
|
|
method: "POST", |
|
|
|
showLoading: true, |
|
|
|
}; |
|
|
|
requestNew(reimburseUserPay, options).then((res) => { |
|
|
|
console.log("res",res); |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
const details=(id)=>{ |
|
|
|
navTo(`/subpackage/after-sale/arrears/arrears-details?id=${id}`) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
@@ -164,7 +185,30 @@ |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.status1{ |
|
|
|
background: #FFFFFA; |
|
|
|
border-radius: 34rpx 0rpx 0rpx 34rpx; |
|
|
|
border: 1px solid #CCB375; |
|
|
|
color: #CCB375; |
|
|
|
width: 200rpx; |
|
|
|
height: 68rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
line-height: 68rpx; |
|
|
|
display: inline-block; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.status2{ |
|
|
|
background:#CCB375; |
|
|
|
border-radius: 0rpx 34rpx 34rpx 0rpx; |
|
|
|
border: 1px solid #CCB375; |
|
|
|
font-size: 28rpx; |
|
|
|
color: white; |
|
|
|
width: 200rpx; |
|
|
|
height: 68rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
line-height: 68rpx; |
|
|
|
display: inline-block; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.status3{ |
|
|
|
border-radius: 0rpx 34rpx 34rpx 0rpx; |
|
|
|
border: 1px solid #CCB375; |
|
|
|
font-size: 28rpx; |