feat: 收票登记新增发票明细查询按钮并接入冲销明细
This commit is contained in:
@@ -128,7 +128,12 @@
|
||||
</section-card>
|
||||
|
||||
<section-card title="发票明细">
|
||||
<el-table :data="invoiceItems" border empty-text="选择金蝶票据池发票后带出发票明细行">
|
||||
<template #extra>
|
||||
<el-button size="small" type="primary" :loading="invoiceDetailLoading" :disabled="!form.invoiceNo" @click="reloadInvoiceDetail">
|
||||
查询明细
|
||||
</el-button>
|
||||
</template>
|
||||
<el-table v-loading="invoiceDetailLoading" :data="invoiceItems" border empty-text="选择金蝶票据池发票后带出发票明细行">
|
||||
<el-table-column type="index" label="序号" width="64" align="center" />
|
||||
<el-table-column prop="goodsName" label="货物名称" min-width="160" show-overflow-tooltip />
|
||||
<el-table-column prop="specModel" label="规格型号" min-width="120" show-overflow-tooltip />
|
||||
@@ -179,6 +184,10 @@
|
||||
</el-table>
|
||||
</section-card>
|
||||
|
||||
<section-card v-if="recordId" title="发票冲销明细">
|
||||
<invoice-write-off-table biz-type="receipt" :biz-id="recordId" />
|
||||
</section-card>
|
||||
|
||||
<section-card title="附件信息">
|
||||
<!-- 金蝶票池认领的发票附件为 piaozone path 型,需带发票号走 A801-2 代理查看/下载 -->
|
||||
<vehicle-attachment-table
|
||||
@@ -276,6 +285,7 @@ import * as api from '@/api/payment/invoiceReceipt';
|
||||
import { getList as getContractList } from '@/api/business/contract-manage';
|
||||
import KingdeeInvoicePoolDialog from '@/components/kingdee-invoice-pool-dialog/main.vue';
|
||||
import VehicleAttachmentTable from '@/components/vehicle-attachment-table/main.vue';
|
||||
import InvoiceWriteOffTable from '@/components/invoice-write-off-table/main.vue';
|
||||
import { getMkPublicDetail } from '@/api/mk-process';
|
||||
import { loadMkEnabled, submitMkApprovalFlow } from '@/utils/mk-approval';
|
||||
|
||||
@@ -315,6 +325,7 @@ export default {
|
||||
components: {
|
||||
KingdeeInvoicePoolDialog,
|
||||
VehicleAttachmentTable,
|
||||
InvoiceWriteOffTable,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -323,6 +334,7 @@ export default {
|
||||
customerEmailOptions: [],
|
||||
departmentEmailOptions: [],
|
||||
invoiceItems: [],
|
||||
invoiceDetailLoading: false,
|
||||
contractDialog: {
|
||||
visible: false,
|
||||
loading: false,
|
||||
@@ -504,6 +516,18 @@ export default {
|
||||
this.invoiceItems = [];
|
||||
}
|
||||
},
|
||||
// 手动按发票号查询金蝶发票明细(历史单据无缓存明细时点击刷新)
|
||||
async reloadInvoiceDetail() {
|
||||
this.invoiceDetailLoading = true;
|
||||
try {
|
||||
this.invoiceItems = this.unwrapData(await api.invoiceDetailQuery(this.form.invoiceNo)) || [];
|
||||
if (!this.invoiceItems.length) this.$message.info('未查询到该发票的明细行');
|
||||
} catch {
|
||||
this.$message.error('查询金蝶发票明细失败');
|
||||
} finally {
|
||||
this.invoiceDetailLoading = false;
|
||||
}
|
||||
},
|
||||
// 所属合同=承运商合同:选择后带出承办部门(结算组织=承办部门对应平台公司金蝶编码,后端派生)
|
||||
openContractDialog() {
|
||||
this.contractDialog.visible = true;
|
||||
|
||||
Reference in New Issue
Block a user