|
@@ -9,11 +9,12 @@
|
|
|
</vxe-column>
|
|
</vxe-column>
|
|
|
<vxe-column title="发票信息" min-width="100">
|
|
<vxe-column title="发票信息" min-width="100">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
- <div v-if="row?.invoiceInfo" @click="openInvoiceInfo(row)" class="cs-p">
|
|
|
|
|
|
|
+ <div v-if="row?.invoiceInfo && +row?.hasInvoice " @click="openInvoiceInfo(row)" class="cs-p">
|
|
|
<div>发票抬头:{{ row?.invoiceInfo?.headTitle || '-' }}</div>
|
|
<div>发票抬头:{{ row?.invoiceInfo?.headTitle || '-' }}</div>
|
|
|
<div class="f-s-12">发票税号:{{ row?.invoiceInfo?.taxSn || '-' }}</div>
|
|
<div class="f-s-12">发票税号:{{ row?.invoiceInfo?.taxSn || '-' }}</div>
|
|
|
<div class="f-s-12">收票邮箱:{{ row?.invoiceInfo?.email || '-' }}</div>
|
|
<div class="f-s-12">收票邮箱:{{ row?.invoiceInfo?.email || '-' }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div v-else-if="!+row?.hasInvoice">本次不开具发票</div>
|
|
|
<div v-else>-</div>
|
|
<div v-else>-</div>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-column>
|
|
</vxe-column>
|
|
@@ -31,15 +32,15 @@
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<el-button @click="confirmPay(row)" v-if="!+row?.paymentStatus" type="success" text>确认付款</el-button>
|
|
<el-button @click="confirmPay(row)" v-if="!+row?.paymentStatus" type="success" text>确认付款</el-button>
|
|
|
<span></span>
|
|
<span></span>
|
|
|
- <el-button v-if="+row.invoiceStatus" style="color: #999;" tag="a" text :underline="false"
|
|
|
|
|
- type="primary" :href="row.invoiceUrlAddr" target="_blank">查看发票</el-button>
|
|
|
|
|
- <el-button v-else type="primary" text @click="clickRowEdit(row)">上传发票</el-button>
|
|
|
|
|
|
|
+ <template v-if="+row?.hasInvoice">
|
|
|
|
|
+ <el-button v-if="+row.invoiceStatus" style="color: #999;" tag="a" text :underline="false" type="primary" :href="row.invoiceUrlAddr" target="_blank">查看发票</el-button>
|
|
|
|
|
+ <el-button v-else type="primary" text @click="clickRowEdit(row)">上传发票</el-button>
|
|
|
|
|
+ </template>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-column>
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
</vxe-table>
|
|
|
</div>
|
|
</div>
|
|
|
- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
|
|
- v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
|
|
|
|
+ <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
<uploadInvoiceForm v-if="showInvoice" v-model:show="showInvoice" :info="rowInfo"></uploadInvoiceForm>
|
|
<uploadInvoiceForm v-if="showInvoice" v-model:show="showInvoice" :info="rowInfo"></uploadInvoiceForm>
|
|
|
<InvoiceInfo v-if="showInvoiceInfo" v-model:show="showInvoiceInfo" :info="rowInfo"></InvoiceInfo>
|
|
<InvoiceInfo v-if="showInvoiceInfo" v-model:show="showInvoiceInfo" :info="rowInfo"></InvoiceInfo>
|
|
|
</template>
|
|
</template>
|
|
@@ -48,7 +49,7 @@ import { colNoData } from '@/utils/noData';
|
|
|
import { listVipPayment, VipConfirmPay } from '@/api/dgtmedicine/vipPayment/index';
|
|
import { listVipPayment, VipConfirmPay } from '@/api/dgtmedicine/vipPayment/index';
|
|
|
import { DateRange } from '@/views/models/index';
|
|
import { DateRange } from '@/views/models/index';
|
|
|
import { uploadInvoiceForm } from '../model/index';
|
|
import { uploadInvoiceForm } from '../model/index';
|
|
|
-const { query }: any = useRoute()
|
|
|
|
|
|
|
+const { query }: any = useRoute();
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const list = ref<any[]>([]);
|
|
const list = ref<any[]>([]);
|
|
@@ -65,7 +66,7 @@ const data = reactive<any>({
|
|
|
dateRange: [],
|
|
dateRange: [],
|
|
|
id: '',
|
|
id: '',
|
|
|
startDate: '',
|
|
startDate: '',
|
|
|
- endDate: '',
|
|
|
|
|
|
|
+ endDate: ''
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
const { queryParams } = toRefs(data);
|
|
const { queryParams } = toRefs(data);
|