更新了提现申请电子发票

This commit is contained in:
weipengfei 2023-09-18 09:59:02 +08:00
parent a2b890d971
commit b159303180
2 changed files with 35 additions and 6 deletions

View File

@ -94,6 +94,11 @@
prop="create_time"
show-overflow-tooltip
/>
<el-table-column
label="备注"
prop="deny_desc"
show-overflow-tooltip
/>
<el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }">
<!-- <el-button

View File

@ -7,6 +7,7 @@
width="550px"
@confirm="handleSubmit"
@close="handleClose"
:button="mode == 'audit'"
>
<el-form
ref="formRef"
@ -30,7 +31,17 @@
placeholder="请输入提现金额"
/>
</el-form-item>
<el-form-item label="" prop="amount">
<el-form-item label="电子发票" prop="invoice">
<el-button
v-if="formData.invoice"
type="primary"
link
@click="openTransfer(formData.invoice)"
>查看发票</el-button
>
<el-button v-else link>暂无发票</el-button>
</el-form-item>
<el-form-item label="余额详情" prop="amount">
<el-button type="primary" link>
<router-link
:to="{
@ -46,12 +57,17 @@
</el-button>
</el-form-item>
<el-form-item label="审核" prop="status">
<el-radio-group v-model="formData.status">
<el-radio-group v-model="formData.status" :disabled="mode != 'audit'">
<el-radio :label="1">通过</el-radio>
<el-radio :label="2">拒绝</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item v-if="formData.status == 2" label="备注" prop="deny_desc">
<el-form-item
v-if="formData.status == 2"
label="备注"
prop="deny_desc"
:readonly="mode != 'audit'"
>
<el-input
v-model="formData.deny_desc"
clearable
@ -80,7 +96,12 @@
<div class="el-upload__tip">请上传JPG/JPEG/PNG/GIF/PDF文件</div>
</template>
</el-upload>
<el-button v-else type="primary" link @click="openTransfer">
<el-button
v-else
type="primary"
link
@click="openTransfer(formData.transfer_voucher)"
>
查看凭证
</el-button>
</el-form-item>
@ -136,6 +157,7 @@ const formData = reactive({
company_name: "",
s_date: "",
e_date: "",
invoice: "",
});
//
@ -178,6 +200,8 @@ const setFormData = async (data: Record<any, any>) => {
formData[key] = data[key];
}
}
formData.invoice =
"https://ceshi-worker-task.lihaink.cn/uploads/files/20230918/20230918093829d92260738.pdf";
};
const getDetail = async (row: Record<string, any>) => {
@ -230,8 +254,8 @@ const handleFile = (e: any) => {
};
//
const openTransfer = () => {
window.open(formData.transfer_voucher);
const openTransfer = (uri: any) => {
window.open(uri);
};
//