在星链oms添加功能
1.充值功能-对应运营管理系统中企业充值预处理功能 3.查询油价功能-对应运营管理系统中油价管理功能 4.公司管理-客户管理 开户维护银行信息功能
This commit is contained in:
373
financialCenter/enterpriseRecharge/detail.vue
Normal file
373
financialCenter/enterpriseRecharge/detail.vue
Normal file
@@ -0,0 +1,373 @@
|
||||
<template>
|
||||
<view class="enterpriseRecharge_body">
|
||||
<topBar height="143rpx" title="企业充值预处理">
|
||||
</topBar>
|
||||
<view class="listContainer" style='flex: 1;overflow: hidden;'>
|
||||
<scroll-view style="height: 100%;" scroll-y="true">
|
||||
<view class="list_item_car">
|
||||
<view style="">
|
||||
<view class=" list_item_car_title flex jb">
|
||||
<view class="flex">
|
||||
<view class="flex jcenter acenter" style="min-width: 93rpx;">
|
||||
<view>浪潮:{{detailData.lcCollectId}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class=" list_item_car_title flex ">
|
||||
<view class="flex">
|
||||
<view class="pricr_text">
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
企业名称
|
||||
<view style="margin: 0 10rpx; min-width: 150rpx;" class="blackcolor">
|
||||
{{detailData.companyName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
交易金额
|
||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||
{{ Number(detailData.collectionAmount).toFixed(2) }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
创建时间
|
||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||
{{ detailData.createTime }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="preTreatmentSignFlex">
|
||||
<view v-if="detailData.preTreatmentSign ==0" class="preTreatmentSign colorFFBA00">
|
||||
未处理
|
||||
</view>
|
||||
<view v-if="detailData.preTreatmentSign ==1" class="preTreatmentSign color13D6C4">
|
||||
已处理
|
||||
</view>
|
||||
<view v-if="detailData.preTreatmentSign ==-1" class="preTreatmentSign colorFF4949">
|
||||
已驳回
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list_item_car">
|
||||
<view style="">
|
||||
<view class=" list_item_car_title flex jb">
|
||||
<view class="flex">
|
||||
<view class="flex jcenter acenter" style="min-width: 93rpx;">
|
||||
<view>汇款公司账户</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class=" list_item_car_title flex ">
|
||||
<view class="flex">
|
||||
<view class="pricr_text">
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
账户名称
|
||||
<view style="margin: 0 10rpx; min-width: 150rpx;" class="blackcolor">
|
||||
{{detailData.offlinePaymentCompany?detailData.offlinePaymentCompany:'暂无'}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
银行账号
|
||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||
{{ detailData.payBankAccount }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="list_item_car">
|
||||
<view style="">
|
||||
<view class=" list_item_car_title flex jb">
|
||||
<view class="flex">
|
||||
<view class="flex jcenter acenter" style="min-width: 93rpx;">
|
||||
<view>收款公司账户</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class=" list_item_car_title flex ">
|
||||
<view class="flex">
|
||||
<view class="pricr_text">
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
账户名称
|
||||
<view style="margin: 0 10rpx; min-width: 150rpx;" class="blackcolor">
|
||||
{{detailData.collectionAccountName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
开户行
|
||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||
{{detailData.collectionBankName }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
银行账号
|
||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||
{{ detailData.collectionBankAccount }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="list_item_car">
|
||||
<view style="">
|
||||
<view class=" list_item_car_title flex jb">
|
||||
<view class="flex">
|
||||
<view class="flex jcenter acenter" style="min-width: 93rpx;">
|
||||
<view>赊销待还金额</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class=" list_item_car_title flex ">
|
||||
<view class="uni-container" style="height: 300rpx;overflow: auto;">
|
||||
<uni-table ref="table" border stripe type="selection" emptyText="暂无更多数据"
|
||||
@selection-change="handleSelectionChange">
|
||||
<uni-tr>
|
||||
<uni-th align="center">赊销金额</uni-th>
|
||||
<uni-th align="center">创建时间</uni-th>
|
||||
</uni-tr>
|
||||
<uni-tr v-for="(item, index) in tableData" :key="index" :disabled="item.disabled">
|
||||
<uni-td>{{ item.transactionAmount?item.transactionAmount.toFixed(2):'暂无数据' }}</uni-td>
|
||||
<uni-td>
|
||||
<view class="name">{{ item.createTime }}</view>
|
||||
</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding: 30rpx 0;">
|
||||
合计赊销待还款金额:{{Number(cumulative).toFixed(2)}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="list_item_car">
|
||||
<view style="display: flex;margin-bottom: 100rpx;">
|
||||
<view style="width: 200rpx;font-size: 32rpx;font-weight: bold;line-height: 80rpx;">充值金额:</view>
|
||||
<view style="width: 400rpx;">
|
||||
<uni-easyinput disabled v-model="input">
|
||||
</uni-easyinput>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;padding: 30rpx 20rpx 50rpx;" v-if="detailData.preTreatmentSign ==0">
|
||||
<view class="preTreatmentSign" style="background-color: #fff;border: #555;" @tap="back">
|
||||
返回
|
||||
</view>
|
||||
<view class="preTreatmentSign" style="background-color: #ff4949;color: #fff;" @tap="bohuiDialog">
|
||||
驳回
|
||||
</view>
|
||||
<view class="preTreatmentSign" style="background-color: #1890ff;color: #fff;" @tap="handleClick">
|
||||
确认提交
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
<popup :butten='butten' @confirmFn='confirmFn' @closeFn='closeFn' :show="show" v-model="iShow.seting">
|
||||
<view slot="coment">
|
||||
<view class="popup_coment">
|
||||
<uni-section subTitle="是否确认驳回?" type="line" padding>
|
||||
<uni-easyinput type="textarea" v-model="rejectRemark" placeholder="请输入驳回原因"></uni-easyinput>
|
||||
</uni-section>
|
||||
</view>
|
||||
</view>
|
||||
</popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import scroll from '@/components/scroll'
|
||||
import enterpriseRecharge from '@/api/enterpriseRecharge'
|
||||
export default {
|
||||
components: {
|
||||
scroll
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
datas: {
|
||||
"pretreatmentId": "", //企业充值预处理id (row.id)
|
||||
"auditMark": 1, // 审核标识
|
||||
"companyBankCardId": "", // 公司银行卡
|
||||
"companyId": "", // 公司id
|
||||
"createSource": "XOIL_OMS_WEB", // 创建来源
|
||||
"offlineCompleteTime": "", // 线下汇款完成时间
|
||||
"offlinePaymentCompany": "", // 线下汇款公司
|
||||
"offlineStartTime": "", // 线下汇款开始时间
|
||||
"reverseRemark": "", // 说明
|
||||
"transactionAmount": '', // 充值金额
|
||||
"transactionState": 1, // 交易状态 0-已申请 1-已成功 -1-已撤销
|
||||
"transactionType": "RECHARGE", // 交易类型 (固定为充值)
|
||||
"repaymentIds": "" // 赊销待还款id(多个以逗号分隔)
|
||||
},
|
||||
rowDetails: {},
|
||||
detailData: {},
|
||||
id: '',
|
||||
tableData: [],
|
||||
cumulative: 0,
|
||||
input: '0.00',
|
||||
selectedIndexs: [],
|
||||
iShow: {
|
||||
seting: false
|
||||
},
|
||||
show: {
|
||||
img: false,
|
||||
footer: true
|
||||
},
|
||||
butten: {
|
||||
colse: '不用了',
|
||||
confirm: '确定',
|
||||
coloseBg: '#ffffff',
|
||||
coloseColor: '#555555',
|
||||
confirmBg: '#1890ff',
|
||||
confirmColor: '#FFFFFF',
|
||||
borderRadius: '30rpx'
|
||||
},
|
||||
rejectRemark: ''
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
if (e.jsData) {
|
||||
this.rowDetails = JSON.parse(e.jsData)
|
||||
this.id = JSON.parse(e.jsData).id
|
||||
let companyId = JSON.parse(e.jsData).companyId
|
||||
this.findDetail(this.id)
|
||||
this.getCompanyTrading(companyId)
|
||||
this.init()
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
cumulative: function() {
|
||||
console.log('实时更新价格变动', this.rowDetails.collectionAmount, this.cumulative)
|
||||
this.input = this.rowDetails.collectionAmount - this.cumulative;
|
||||
this.input = this.input.toFixed(2)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
bohuiDialog() {
|
||||
this.iShow.seting = true
|
||||
},
|
||||
closeFn() {
|
||||
this.rejectRemark = ''
|
||||
this.iShow.seting = false
|
||||
},
|
||||
confirmFn() {
|
||||
let data = {
|
||||
id: this.rowDetails.id,
|
||||
rejectRemark: this.rejectRemark
|
||||
}
|
||||
enterpriseRecharge.handleRejection(data).then(res => {
|
||||
if (res.code == 20000) {
|
||||
uni.showToast({
|
||||
title: '驳回成功',
|
||||
icon: 'success'
|
||||
})
|
||||
this.iShow.seting = false
|
||||
this.back()
|
||||
}
|
||||
})
|
||||
},
|
||||
handleClick() {
|
||||
if (this.rowDetails.collectionAmount - Number(this.cumulative).toFixed(2) < 0) {
|
||||
uni.showToast({
|
||||
title: '赊销金额大于充值金额!',
|
||||
icon: 'error'
|
||||
})
|
||||
return
|
||||
}
|
||||
let that = this
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认将不可更改?',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
that.saveSbumit()
|
||||
} else if (res.cancel) {
|
||||
console.log(res.cancel, '用户取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
saveSbumit() {
|
||||
let data = this.datas
|
||||
enterpriseRecharge.savePreprocessing(data).then(res => {
|
||||
if (res.code == 20000) {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
this.back()
|
||||
}
|
||||
})
|
||||
},
|
||||
init() {
|
||||
this.datas.pretreatmentId = this.rowDetails.id;
|
||||
this.datas.companyId = this.rowDetails.companyId;
|
||||
this.datas.companyBankCardId = this.rowDetails.payBankAccount;
|
||||
this.datas.offlineCompleteTime = this.rowDetails.offlineCompleteTime;
|
||||
this.datas.offlinePaymentCompany = this.rowDetails.offlinePaymentCompany;
|
||||
this.datas.offlineStartTime = this.rowDetails.offlineStartTime;
|
||||
this.datas.transactionAmount = this.rowDetails.collectionAmount;
|
||||
this.input = this.rowDetails.collectionAmount ? this.rowDetails.collectionAmount.toFixed(2) : 0.00
|
||||
},
|
||||
handleSelectionChange(item) {
|
||||
this.selectedIndexs = item.detail.index
|
||||
let e = this.selectedIndexs.map(i => this.tableData[i])
|
||||
if (this.calculation(e) > this.rowDetails.collectionAmount) {
|
||||
this.$refs.table.toggleRowSelection(e[e.length - 1], false);
|
||||
return
|
||||
}
|
||||
if (e.length != 0) {
|
||||
this.cumulative = this.calculation(e)
|
||||
} else {
|
||||
this.cumulative = 0;
|
||||
}
|
||||
this.datas.repaymentIds = e.map(item => item.id).join(',');
|
||||
},
|
||||
calculation(e) {
|
||||
if (e.length == 0) return 0
|
||||
let number = e.length == 1 ? e[0].transactionAmount : e.reduce((sum, item, index, arr) => {
|
||||
return (sum.transactionAmount ? sum.transactionAmount : sum) + item.transactionAmount
|
||||
});
|
||||
return number
|
||||
},
|
||||
findDetail(id) {
|
||||
enterpriseRecharge.findDetail(id).then(res => {
|
||||
if (res.code !== 20000) return
|
||||
this.detailData = res.data
|
||||
})
|
||||
},
|
||||
getCompanyTrading(companyId) {
|
||||
enterpriseRecharge.getCompanyTrading({
|
||||
companyId: companyId,
|
||||
transactionType: 'CHARGE_SALES',
|
||||
chargeSalesAuditStatus: '-2'
|
||||
}).then(res => {
|
||||
this.tableData = res.data
|
||||
this.tableData.forEach(tab => {
|
||||
if (tab.transactionAmount > this.rowDetails.collectionAmount) {
|
||||
tab.disabled = true
|
||||
} else {
|
||||
tab.disabled = false
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("./index.css");
|
||||
</style>
|
||||
333
financialCenter/enterpriseRecharge/index.css
Normal file
333
financialCenter/enterpriseRecharge/index.css
Normal file
@@ -0,0 +1,333 @@
|
||||
.icoon :active {
|
||||
color: #007AFF;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.acenter {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* .list_item_car_title:last-child{
|
||||
margin-bottom: 0;
|
||||
} */
|
||||
.list_item_car_title {
|
||||
width: 100%;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
|
||||
.pricr_text {
|
||||
font-size: 26rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.pricr_text .felx{
|
||||
padding: 15rpx 0;
|
||||
}
|
||||
|
||||
.list_item_car_footer {
|
||||
border-top: solid 1rpx #F0F0F0;
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.blackcolor {
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
|
||||
.jcenter {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.jb {
|
||||
justify-content: space-between;
|
||||
padding: 15rpx 0;
|
||||
border-bottom: 2rpx solid #000000;
|
||||
}
|
||||
.preTreatmentSignFlex{
|
||||
display: flex;
|
||||
flex: 1;
|
||||
}
|
||||
.preTreatmentSign{
|
||||
width: 160rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
margin: auto;
|
||||
}
|
||||
.colorFFBA00{
|
||||
color: #FFBA00;
|
||||
border: 2rpx solid #FFBA00;
|
||||
background-color: #FFF8E6;
|
||||
}
|
||||
.color13D6C4{
|
||||
color: #13D6C4;
|
||||
border: 2rpx solid #13D6C4;
|
||||
background-color: #E7FAF0;
|
||||
}
|
||||
.colorFF4949{
|
||||
color: #FF4949;
|
||||
border: 2rpx solid #FF4949;
|
||||
background-color: #FFEDED;
|
||||
}
|
||||
.enterpriseRecharge_body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
}
|
||||
.popup_coment {
|
||||
padding: 80rpx;
|
||||
text-align: center;
|
||||
font-size: 35rpx;
|
||||
color: #666666;
|
||||
}
|
||||
.tipLamp{
|
||||
position: absolute;
|
||||
height:100%;
|
||||
background-color: #E9CF31;
|
||||
width: 17rpx;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.listContainer {
|
||||
flex-grow: 1;
|
||||
padding-top: 20rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.list_item_car {
|
||||
/* min-height: 241rpx; */
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 3rpx 9rpx 0rpx rgba(88, 88, 88, 0.2);
|
||||
border-radius: 12rpx;
|
||||
padding: 17rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding-bottom: 0;
|
||||
/* margin-bottom: 20rpx; */
|
||||
margin: 0 20rpx 20rpx 20rpx;
|
||||
}
|
||||
|
||||
.yuan {
|
||||
width: 13rpx;
|
||||
height: 13rpx;
|
||||
background: #E9CF31;
|
||||
border-radius: 50%;
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
|
||||
.itemtable {
|
||||
width: 80rpx;
|
||||
height: 40rpx;
|
||||
background: #FD9500;
|
||||
color: white;
|
||||
position: relative;
|
||||
top: -17rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.large_text {
|
||||
font-size: 32rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.company_msg_content {
|
||||
max-width: 330rpx;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
.examine_popup_body {
|
||||
padding: 0 47rpx;
|
||||
margin: 33rpx 0;
|
||||
}
|
||||
|
||||
.company_msg {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.bgtext {
|
||||
|
||||
|
||||
font-size: 28rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
|
||||
}
|
||||
|
||||
.item_price {
|
||||
font-size: 24rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.text {
|
||||
|
||||
font-size: 26rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.samll_txext {
|
||||
font-size: 24rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #999999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
.leftTip {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
background-color: #E9CF31;
|
||||
width: 10rpx;
|
||||
}
|
||||
|
||||
.seach_input {
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 12rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.typeyuan {
|
||||
background-color: #17A00E;
|
||||
width: 14rpx;
|
||||
height: 14rpx;
|
||||
border-radius: 50px;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.seletypeyuan {
|
||||
background-color: red;
|
||||
width: 14rpx;
|
||||
height: 14rpx;
|
||||
border-radius: 50px;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.is-input-border {
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
page {
|
||||
background-color: #F0F2FF;
|
||||
}
|
||||
|
||||
.form_body_item {
|
||||
min-height: 339rpx;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 3px 9px 0px rgba(88, 88, 88, 0.2);
|
||||
border-radius: 12rpx;
|
||||
font-size: 28rpx;
|
||||
/* padding: 20rpx; */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* padding-bottom: 0; */
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
/* padding-top: 0; */
|
||||
}
|
||||
|
||||
.form_body {
|
||||
width: 100vw;
|
||||
padding: 0 10px;
|
||||
margin-top: 40rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.navigation_seleitem {
|
||||
width: 150rpx;
|
||||
height: 59rpx;
|
||||
background: #F0F2FF;
|
||||
border-top-left-radius: 11rpx;
|
||||
border-top-right-radius: 11rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transition: all 0.3s;
|
||||
position: relative;
|
||||
bottom: -2px;
|
||||
}
|
||||
|
||||
.navigation_item {
|
||||
width: 150rpx;
|
||||
height: 59rpx;
|
||||
border-top-left-radius: 11rpx;
|
||||
border-top-right-radius: 11rpx;
|
||||
font-size: 26rpx;
|
||||
color: #F0F2FF;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transition: all 0.3s;
|
||||
bottom: -2px;
|
||||
}
|
||||
|
||||
.Navigation {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
transition: all .5s;
|
||||
}
|
||||
|
||||
.header_seach_butten {
|
||||
font-size: 24rpx !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
margin: 0 !important;
|
||||
flex-shrink: 1;
|
||||
margin-left: 9rpx !important;
|
||||
background: #FFFFFF !important;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.uni-easyinput__content {
|
||||
height: 80rpx;
|
||||
}
|
||||
|
||||
.uni-easyinput {
|
||||
height: 80rpx;
|
||||
}
|
||||
|
||||
.header_seach_seach {
|
||||
display: flex;
|
||||
height: 80rpx;
|
||||
margin-top: 23rpx;
|
||||
}
|
||||
|
||||
.header_seach_title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header_seach {
|
||||
font-size: 26rpx;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.top {
|
||||
height: var(--status-bar-height);
|
||||
}
|
||||
176
financialCenter/enterpriseRecharge/index.vue
Normal file
176
financialCenter/enterpriseRecharge/index.vue
Normal file
@@ -0,0 +1,176 @@
|
||||
<template>
|
||||
<view class="enterpriseRecharge_body">
|
||||
<topBar height="343rpx" title="企业充值预处理">
|
||||
<view slot="coment">
|
||||
<view class="header_seach">
|
||||
<view class="header_seach_seach">
|
||||
<view class="seach_input">
|
||||
<uni-easyinput :letfText='letfText' confirmType='search'
|
||||
@confirm='getData.currentPage=1;getList()'
|
||||
placeholder-style="color:#bbbbbb;font-weight: 100;" v-model="getData.params.siteName"
|
||||
placeholder="企业名称">
|
||||
</uni-easyinput>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Navigation">
|
||||
<view @tap="seleFn(item);seleindex = index"
|
||||
:class="seleindex==index?'navigation_seleitem':'navigation_item'"
|
||||
v-for="(item,index) in navigation" :key="index">
|
||||
{{item.text}}
|
||||
<uni-icons :animation="animationData" class="icoon" v-if="index==0" type="refreshempty"
|
||||
style="margin-left: 10rpx;" size="15" color="#bbbbbb"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</topBar>
|
||||
<view class="listContainer" style='flex: 1;overflow: hidden;'>
|
||||
<scroll-view :refresher-triggered='isShow.refresherTriggered' @refresherrefresh='refresherrefresh' :refresher-enabled='true' @scrolltolower='scrolltolower' style="height: 100%;" scroll-y="true">
|
||||
<view v-for="(item,index) in list" @tap="jump(item)" class="list_item_car" >
|
||||
<view style="">
|
||||
<view class=" list_item_car_title flex jb">
|
||||
<view class="flex">
|
||||
<view class="flex jcenter acenter" style="min-width: 93rpx;">
|
||||
<view>浪潮:{{item.lcCollectId}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class=" list_item_car_title flex ">
|
||||
<view class="flex">
|
||||
<view class="pricr_text">
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
企业名称
|
||||
<view style="margin: 0 10rpx; min-width: 150rpx;" class="blackcolor">
|
||||
{{item.companyName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
交易金额
|
||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||
{{ Number(item.collectionAmount).toFixed(2) }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
创建时间
|
||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||
{{ item.createTime }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="preTreatmentSignFlex">
|
||||
<view v-if="item.preTreatmentSign ==0" class="preTreatmentSign colorFFBA00">
|
||||
未处理
|
||||
</view>
|
||||
<view v-if="item.preTreatmentSign ==1" class="preTreatmentSign color13D6C4">
|
||||
已处理
|
||||
</view>
|
||||
<view v-if="item.preTreatmentSign ==-1" class="preTreatmentSign colorFF4949">
|
||||
已驳回
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import scroll from '@/components/scroll'
|
||||
import enterpriseRecharge from '@/api/enterpriseRecharge'
|
||||
export default {
|
||||
components: {
|
||||
scroll
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
animationData: null,
|
||||
seleindex: '',
|
||||
isShow: {
|
||||
refresherTriggered:false
|
||||
},
|
||||
getData: {
|
||||
pageSize: 15,
|
||||
currentPage: 1,
|
||||
params: {
|
||||
preTreatmentSign: '', //申请状态审核状态
|
||||
siteName: '', //油站名称
|
||||
|
||||
}
|
||||
},
|
||||
navigation: [{
|
||||
text: '全部',
|
||||
index: ''
|
||||
},
|
||||
{
|
||||
text: '未处理',
|
||||
index: '0'
|
||||
},
|
||||
{
|
||||
text: '已处理',
|
||||
index: '1'
|
||||
},
|
||||
{
|
||||
text: '已驳回',
|
||||
index: '-1'
|
||||
}
|
||||
],
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getList()
|
||||
},
|
||||
onLoad() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
jump(item){
|
||||
uni.navigateTo({
|
||||
url: './detail?jsData=' + JSON.stringify(item)
|
||||
})
|
||||
},
|
||||
refresherrefresh(e){
|
||||
this.isShow.refresherTriggered = true
|
||||
this.getList()
|
||||
},
|
||||
seleFn(e) {
|
||||
if (e.index == '') {
|
||||
this.getData.params.preTreatmentSign = ''
|
||||
} else {
|
||||
this.getData.params.preTreatmentSign = e.index
|
||||
}
|
||||
this.getData.currentPage = 1
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
let page = JSON.parse(JSON.stringify(this.getData))
|
||||
enterpriseRecharge.getByPage(page).then(res => {
|
||||
this.isShow.refresherTriggered = false
|
||||
if (res.code !== 20000) return
|
||||
if (res.data.list.length == 0) {
|
||||
uni.showToast({
|
||||
title: '没有数据了哦',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
if (page.currentPage !== 1) {
|
||||
this.list = this.list.concat(res.data.list)
|
||||
return
|
||||
}
|
||||
this.list = res.data.list
|
||||
})
|
||||
},
|
||||
scrolltolower() {
|
||||
this.getData.currentPage += 1
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("./index.css");
|
||||
</style>
|
||||
Reference in New Issue
Block a user