This commit is contained in:
weipengfei 2023-08-30 14:40:01 +08:00
parent 90d0ee0ebd
commit 301cf33e0c
4 changed files with 69 additions and 12 deletions

12
api/shareholder.js Normal file
View File

@ -0,0 +1,12 @@
import oahttp from "@/utils/oahttp.js";
/**
* 股金流水
*/
export const companyAccountLog = (data) => oahttp.get('/company_account_log/lists', data)
/**
* 股金详情
*/
export const companyShareholderInfo = (data) => oahttp.get('/company/shareholder_info', data)

View File

@ -304,7 +304,7 @@ export default {
},
computed: {
oaHomeData () {
const route = getCurrentPages()[0]?.route;
const route = '/pages/oaHome/oaHome';
let arr = [];
this.$store.state.config?.config?.menu?.forEach((item) => {
if (item.paths.includes(route)) {

View File

@ -124,7 +124,7 @@
};
},
myOaData(){
const route = getCurrentPages()[0]?.route;
const route = 'pages/oaMy/oaMy';
let arr = [];
this.$store.state.config?.config?.menu?.forEach((item)=>{
if(item.paths.includes(route)){
@ -199,6 +199,7 @@
<style lang="scss">
.my {
padding-bottom: 160rpx;
.head_box {
position: relative;
padding: 28rpx;

View File

@ -2,21 +2,20 @@
<view style="padding-bottom: 160rpx;">
<view class="price_card">
<view>账户入股金额</view>
<view><text class="money">30000.00</text></view>
<view><text class="money">{{shareholder.shareholder_money}}</text></view>
</view>
<view class="card">
<view class="card" v-if="shareholder.is_contract">
<view class="contract">
<view class="left">
<image class="contract_img" src="../../static/img/contract/pdf.png"></image>
<view class="text">
<view class="name">入股合同</view>
<view>
<text>{{'2023-03-03'}}</text>
<text>{{shareholder.contract_time}}</text>
</view>
</view>
</view>
<view class="right" @click="navToContract('fdsf')">
<view class="right" @click="navToContract(shareholder.contract_url)">
<uni-icons type="paperclip" color="#3274F9"></uni-icons>
<view>查看</view>
</view>
@ -27,7 +26,7 @@
<u-line></u-line>
<u-steps style="padding: 28rpx;" :current="-1" direction="column" activeColor="#0122c7" dot
inactiveColor="#0122c7">
<u-steps-item v-for="(item, index) in 2" title="开始" desc="结算">
<u-steps-item v-for="(item, index) in list" :key="index" :title="item.update_time" :desc="item.remark">
</u-steps-item>
</u-steps>
</view>
@ -62,18 +61,59 @@
import {
download_file
} from "@/api/junziqian.js"
import {
companyAccountLog,
companyShareholderInfo
} from "@/api/shareholder.js"
export default {
data() {
return {
shareholder: {
contract_url: "",
is_contract: 0,
shareholder_money: "0.00",
contract_time: ""
},
list: [],
loadConfig: {
page: 1,
limit: 25,
lastpage: '',
loadingText: '努力加载中',
loadmoreText: '轻轻上拉',
nomoreText: '我也是有底线的~~',
status: 'loadmore'
},
};
},
onLoad() {
this.initInfo();
this.loadList();
},
methods: {
async initInfo() {
let res = await companyShareholderInfo();
this.shareholder = res.data;
},
async loadList(){
if (this.loadConfig.status == "nomore") return;
this.loadConfig.status = "loading";
let res = await companyAccountLog({
page: this.loadConfig.page,
limit: this.loadConfig.limit
})
this.loadConfig.status = "loadmore"
if (res.data.list.length < this.loadConfig.limit) {
this.loadConfig.status = "nomore"
} else {
this.loadConfig.page++;
}
for (var i = 0; i < 20; i++) {
this.list = [...this.list, ...res.data.list];
}
},
navToContract(contract_no) {
if (!contract_no) return Toast('暂无合同');
uni.showLoading({
title: '加载中'
});
download_file({
applyNo: contract_no
}).then(res => {
@ -81,6 +121,10 @@
uni.hideLoading();
Toast(res.msg)
}
uni.showLoading({
title: '加载中',
mask: true
});
uni.navigateTo({
url: `/subpkg/pdfView/pdfView?url=${res.data.url}`,
fail() {