更新
This commit is contained in:
parent
90d0ee0ebd
commit
301cf33e0c
12
api/shareholder.js
Normal file
12
api/shareholder.js
Normal 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)
|
@ -304,7 +304,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
oaHomeData () {
|
oaHomeData () {
|
||||||
const route = getCurrentPages()[0]?.route;
|
const route = '/pages/oaHome/oaHome';
|
||||||
let arr = [];
|
let arr = [];
|
||||||
this.$store.state.config?.config?.menu?.forEach((item) => {
|
this.$store.state.config?.config?.menu?.forEach((item) => {
|
||||||
if (item.paths.includes(route)) {
|
if (item.paths.includes(route)) {
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
myOaData(){
|
myOaData(){
|
||||||
const route = getCurrentPages()[0]?.route;
|
const route = 'pages/oaMy/oaMy';
|
||||||
let arr = [];
|
let arr = [];
|
||||||
this.$store.state.config?.config?.menu?.forEach((item)=>{
|
this.$store.state.config?.config?.menu?.forEach((item)=>{
|
||||||
if(item.paths.includes(route)){
|
if(item.paths.includes(route)){
|
||||||
@ -199,6 +199,7 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.my {
|
.my {
|
||||||
|
padding-bottom: 160rpx;
|
||||||
.head_box {
|
.head_box {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 28rpx;
|
padding: 28rpx;
|
||||||
|
@ -2,21 +2,20 @@
|
|||||||
<view style="padding-bottom: 160rpx;">
|
<view style="padding-bottom: 160rpx;">
|
||||||
<view class="price_card">
|
<view class="price_card">
|
||||||
<view>账户入股金额</view>
|
<view>账户入股金额</view>
|
||||||
<view><text class="money">30000.00</text>元</view>
|
<view><text class="money">{{shareholder.shareholder_money}}</text>元</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="card">
|
<view class="card" v-if="shareholder.is_contract">
|
||||||
<view class="contract">
|
<view class="contract">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<image class="contract_img" src="../../static/img/contract/pdf.png"></image>
|
<image class="contract_img" src="../../static/img/contract/pdf.png"></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<view class="name">《入股合同》</view>
|
<view class="name">《入股合同》</view>
|
||||||
<view>
|
<view>
|
||||||
|
<text>{{shareholder.contract_time}}</text>
|
||||||
<text>{{'2023-03-03'}}</text>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</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>
|
<uni-icons type="paperclip" color="#3274F9"></uni-icons>
|
||||||
<view>查看</view>
|
<view>查看</view>
|
||||||
</view>
|
</view>
|
||||||
@ -27,7 +26,7 @@
|
|||||||
<u-line></u-line>
|
<u-line></u-line>
|
||||||
<u-steps style="padding: 28rpx;" :current="-1" direction="column" activeColor="#0122c7" dot
|
<u-steps style="padding: 28rpx;" :current="-1" direction="column" activeColor="#0122c7" dot
|
||||||
inactiveColor="#0122c7">
|
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-item>
|
||||||
</u-steps>
|
</u-steps>
|
||||||
</view>
|
</view>
|
||||||
@ -62,18 +61,59 @@
|
|||||||
import {
|
import {
|
||||||
download_file
|
download_file
|
||||||
} from "@/api/junziqian.js"
|
} from "@/api/junziqian.js"
|
||||||
|
import {
|
||||||
|
companyAccountLog,
|
||||||
|
companyShareholderInfo
|
||||||
|
} from "@/api/shareholder.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
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: {
|
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) {
|
navToContract(contract_no) {
|
||||||
if (!contract_no) return Toast('暂无合同');
|
if (!contract_no) return Toast('暂无合同');
|
||||||
uni.showLoading({
|
|
||||||
title: '加载中'
|
|
||||||
});
|
|
||||||
download_file({
|
download_file({
|
||||||
applyNo: contract_no
|
applyNo: contract_no
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@ -81,6 +121,10 @@
|
|||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
Toast(res.msg)
|
Toast(res.msg)
|
||||||
}
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中',
|
||||||
|
mask: true
|
||||||
|
});
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/subpkg/pdfView/pdfView?url=${res.data.url}`,
|
url: `/subpkg/pdfView/pdfView?url=${res.data.url}`,
|
||||||
fail() {
|
fail() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user