|
|
@@ -123,8 +123,8 @@
|
|
|
</vxe-column>
|
|
|
<vxe-column title="开票信息" field="remark" min-width="100" :formatter="colNoData">
|
|
|
<template #default="{ row }">
|
|
|
- <div v-if="row.payStatus == '1'&& !+form?.trainingSignupVo?.invoiceStatus" @click="checkInvoiceData(row.invoiceInfo)" class="pointer">查看</div>
|
|
|
- <div v-if="row.payStatus == '1' && +form?.trainingSignupVo?.invoiceStatus" @click="checkInvoiceData(row.invoiceInfo)" class="pointer">已开票,点击查看</div>
|
|
|
+ <div v-if="row.payStatus == '1'&& !+row?.invoiceStatus" @click="checkInvoiceData(row.invoiceInfo)" class="pointer">查看</div>
|
|
|
+ <div v-if="row.payStatus == '1' && +row?.invoiceStatus" @click="checkInvoiceData(row.invoiceInfo)" class="pointer">已开票,点击查看</div>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
<vxe-column title="特殊说明" min-width="100" fixed="right">
|
|
|
@@ -152,11 +152,10 @@
|
|
|
<el-button v-if="row.payType === '2'&& row.payStatus !== '1'" size="small" color="#81b337" style="color: white" @click="openTransfer(row)">确认收到转账</el-button>
|
|
|
<div v-if="row.payStatus == '1' && row?.res == '0'&& form?.trainingStatus == '2'">用户报名未成功,请至微信商户号进行退款</div>
|
|
|
<div v-if="row.payType === '10'">该报名已退款</div>
|
|
|
- <el-button v-if="row.payType === '2'&& row.payStatus !== '1'" size="small" color="#33aeeb" style="color: white" @click="openTransfer(row)">上传发票</el-button>
|
|
|
- <el-upload v-if="row?.trainingStatus == '2' && row.payStatus == '1' && +row?.hasInvoice && !+form?.trainingSignupVo?.invoiceStatus" class="upload-demo" :action="uploadFileUrl" multiple :limit="1" :on-success="handleSuccess" :headers="headers" :show-file-list="false">
|
|
|
- <el-button type="primary">上传发票</el-button>
|
|
|
+ <el-upload v-if="form?.trainingStatus == '2' && row.payStatus == '1' && +row?.hasInvoice && !+row?.invoiceStatus && row.payType !== '10'" class="upload-demo" :action="uploadFileUrl" multiple :limit="1" :on-success="handleSuccess" :headers="headers" :show-file-list="false" accept=".pdf,.PDF">
|
|
|
+ <el-button size="small" color="#33aeeb" style="color: white" @click=" invoiceId = row.id">上传发票</el-button>
|
|
|
</el-upload>
|
|
|
- <el-upload v-if="row?.trainingStatus == '2' && row.payStatus == '1' && +row?.hasInvoice && +form?.trainingSignupVo?.invoiceStatus" class="upload-demo" :action="uploadFileUrl" multiple :limit="1" :on-success="handleSuccess" :headers="headers" :show-file-list="false">
|
|
|
+ <el-upload v-if="form?.trainingStatus == '2' && row.payStatus == '1' && +row?.hasInvoice && +row?.invoiceStatus && row.payType !== '10'" class="upload-demo" :action="uploadFileUrl" multiple :limit="1" :on-success="handleSuccess" :headers="headers" :show-file-list="false" accept=".pdf,.PDF">
|
|
|
<el-button type="primary">重新上传</el-button>
|
|
|
</el-upload>
|
|
|
</template>
|
|
|
@@ -275,6 +274,7 @@ const participationFee = ref()
|
|
|
const editPricedata = ref()
|
|
|
const invoicingInformation = ref(false)
|
|
|
const invoiceData = ref()
|
|
|
+const invoiceId = ref()
|
|
|
const headers = ref(globalHeaders());
|
|
|
const fromvalue = ref({
|
|
|
targetId: '',
|
|
|
@@ -366,9 +366,16 @@ const changeEditPrice = async ()=>{
|
|
|
modiFication.value = false
|
|
|
getList();
|
|
|
}
|
|
|
-const handleSuccess = (res)=>{
|
|
|
- console.log(res,'res');
|
|
|
-
|
|
|
+const handleSuccess = async(res,uploadFile)=>{
|
|
|
+ await uploadInvoice({
|
|
|
+ id:invoiceId.value,
|
|
|
+ invoiceUrl:{
|
|
|
+ fileName:res.data.fileName,
|
|
|
+ url:res.data.fileName,
|
|
|
+ fileSize:uploadFile.raw.size
|
|
|
+ }
|
|
|
+ })
|
|
|
+ getList();
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
getList();
|