新增股金上交功能
This commit is contained in:
parent
6cafffd4fe
commit
13f8966ee0
@ -5,7 +5,6 @@ import oahttp from "@/utils/oahttp.js";
|
|||||||
*/
|
*/
|
||||||
export const companyAccountLog = (data) => oahttp.get('/company_account_log/lists', data)
|
export const companyAccountLog = (data) => oahttp.get('/company_account_log/lists', data)
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 股金详情
|
* 股金详情
|
||||||
*/
|
*/
|
||||||
@ -15,3 +14,8 @@ export const companyShareholderInfo = (data) => oahttp.get('/company/shareholder
|
|||||||
* 发起合同
|
* 发起合同
|
||||||
*/
|
*/
|
||||||
export const initiateShareholderContract = (data) => oahttp.post('/company/initiate_shareholder_contract', data)
|
export const initiateShareholderContract = (data) => oahttp.post('/company/initiate_shareholder_contract', data)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上交股金
|
||||||
|
*/
|
||||||
|
export const companyPayShareCapital = (data) => oahttp.post('/company/pay_share_capital', data)
|
@ -108,7 +108,7 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
<view class="button">
|
<view class="button">
|
||||||
<view class="retreat" @click="retreat">退股</view>
|
<view class="retreat" @click="retreat">退股</view>
|
||||||
<view class="hand" :class="{'disable': !shareholder.is_amount_turned||!shareholder.is_village}" @click="hand">上交</view>
|
<view class="hand" :class="{'disable': !shareholder.is_done_task || !shareholder.is_contract }" @click="hand">上交</view>
|
||||||
</view>
|
</view>
|
||||||
<u-modal :show="modelShow" title="提醒" :content="modelType==1?'确定要生成合同吗':'请确认合同无误后再发送'" closeOnClickOverlay showCancelButton cancel-text="取消" confirm-text="确认" close="modelShow=false" @cancel="modelShow=false" @confirm="modelType==1?createContract():addContract();modelShow=false"></u-modal>
|
<u-modal :show="modelShow" title="提醒" :content="modelType==1?'确定要生成合同吗':'请确认合同无误后再发送'" closeOnClickOverlay showCancelButton cancel-text="取消" confirm-text="确认" close="modelShow=false" @cancel="modelShow=false" @confirm="modelType==1?createContract():addContract();modelShow=false"></u-modal>
|
||||||
</view>
|
</view>
|
||||||
@ -122,7 +122,8 @@
|
|||||||
import {
|
import {
|
||||||
companyAccountLog,
|
companyAccountLog,
|
||||||
companyShareholderInfo,
|
companyShareholderInfo,
|
||||||
initiateShareholderContract
|
initiateShareholderContract,
|
||||||
|
companyPayShareCapital
|
||||||
} from "@/api/shareholder.js"
|
} from "@/api/shareholder.js"
|
||||||
import {
|
import {
|
||||||
companyView,
|
companyView,
|
||||||
@ -139,6 +140,7 @@
|
|||||||
shareholder: {
|
shareholder: {
|
||||||
contract_url: "",
|
contract_url: "",
|
||||||
is_contract: 0,
|
is_contract: 0,
|
||||||
|
is_done_task: 0,
|
||||||
shareholder_money: "0.00",
|
shareholder_money: "0.00",
|
||||||
contract_time: "",
|
contract_time: "",
|
||||||
is_amount_turned: ""
|
is_amount_turned: ""
|
||||||
@ -237,8 +239,13 @@
|
|||||||
Toast('暂无内容')
|
Toast('暂无内容')
|
||||||
},
|
},
|
||||||
hand() {
|
hand() {
|
||||||
if(!this.shareholder.is_amount_turned) return Toast('暂时无法上交');
|
if(!shareholder.is_done_task || !shareholder.is_contract) return Toast('暂时无法上交');
|
||||||
Toast('暂无内容')
|
this.handShare();
|
||||||
|
},
|
||||||
|
async handShare(){
|
||||||
|
await companyPayShareCapital();
|
||||||
|
Toast('上交成功!');
|
||||||
|
uni.navigateBack();
|
||||||
},
|
},
|
||||||
clickContract(e){
|
clickContract(e){
|
||||||
this.modelType = e;
|
this.modelType = e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user