|
@@ -104,7 +104,7 @@
|
|
|
{{ u.fmt.fmtDateTime(row[field.prop]) }}
|
|
{{ u.fmt.fmtDateTime(row[field.prop]) }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-else-if="field.prop=='action'">
|
|
<template v-else-if="field.prop=='action'">
|
|
|
- <el-text type="primary" @click="handleWithdrawApplyClick(row)">提现申请</el-text>
|
|
|
|
|
|
|
+ <el-text class="cursor-pointer" type="primary" @click="handleWithdrawApplyClick(row)">提现申请</el-text>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
<div>{{ row[field.prop] }}</div>
|
|
<div>{{ row[field.prop] }}</div>
|
|
@@ -230,29 +230,31 @@ const loadData = (refresh: boolean = false) => {
|
|
|
|
|
|
|
|
// 打开详情页弹窗
|
|
// 打开详情页弹窗
|
|
|
const handleWithdrawApplyClick = ( row: any) => {
|
|
const handleWithdrawApplyClick = ( row: any) => {
|
|
|
- // stationAccountDialogRef.value.open(type, row);
|
|
|
|
|
- Msg.prompt(`请输入提现金额(单位分)`, '提现申请',
|
|
|
|
|
- {
|
|
|
|
|
- draggable: true,
|
|
|
|
|
- type: 'primary',
|
|
|
|
|
|
|
+ Msg.confirm(`确认执行本操作吗?`,'提现申请').then(()=>{
|
|
|
|
|
+ Msg.prompt(`请输入提现金额(单位分)`, '提现申请',
|
|
|
|
|
+ {
|
|
|
|
|
+ draggable: true,
|
|
|
|
|
+ type: 'primary',
|
|
|
|
|
+ }
|
|
|
|
|
+ ).then((res: any) => {
|
|
|
|
|
+ let {value, action} = res;
|
|
|
|
|
+ if (action === 'confirm') {
|
|
|
|
|
+ if(!value|| !Number.isInteger(value)){
|
|
|
|
|
+ Msg.message("请输入有效的提现金额,否则无法发起本操作",'error')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ Msg.showLoading(`请等待`);
|
|
|
|
|
+ $body(`finance/applyWithdrawn`,{stationId:row.stationId,amount:Number(value)}).then(()=>{
|
|
|
|
|
+ Msg.message("提现已发起")
|
|
|
|
|
+ Msg.hideLoading()
|
|
|
|
|
+ loadData(true)
|
|
|
|
|
+ }).catch(e=>{
|
|
|
|
|
+ Msg.hideLoading()
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- ).then((res: any) => {
|
|
|
|
|
- let {value, action} = res;
|
|
|
|
|
- if (action === 'confirm') {
|
|
|
|
|
- if(!value|| !Number.isInteger(value)){
|
|
|
|
|
- Msg.message("请输入有效的提现金额,否则无法发起本操作",'error')
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- Msg.showLoading(`请等待`);
|
|
|
|
|
- $body(`finance/applyWithdrawn`,{stationId:row.stationId,amount:Number(value)}).then(()=>{
|
|
|
|
|
- Msg.message("提现已发起")
|
|
|
|
|
- Msg.hideLoading()
|
|
|
|
|
- loadData(true)
|
|
|
|
|
- }).catch(e=>{
|
|
|
|
|
- Msg.hideLoading()
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
};
|
|
};
|
|
|
// 删除点击
|
|
// 删除点击
|
|
|
const handleRowDelete = (row: any) => {
|
|
const handleRowDelete = (row: any) => {
|