|
@@ -1,45 +1,69 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 管理-业务审核-交收 -->
|
|
|
|
|
- <div class="finance_review_invoice"
|
|
|
|
|
- :loading="loading">
|
|
|
|
|
- <Filter @search="search">
|
|
|
|
|
- <BtnList :btnList="commonBtn" />
|
|
|
|
|
- </Filter>
|
|
|
|
|
- <contextMenu :contextMenuList="forDataBtn">
|
|
|
|
|
- <a-table :columns="columns"
|
|
|
|
|
- class="topTable hiddenFirstCol"
|
|
|
|
|
- :pagination="false"
|
|
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
- :customRow="Rowclick"
|
|
|
|
|
- rowKey="key"
|
|
|
|
|
- :data-source="tableList">
|
|
|
|
|
- <!-- 额外的展开行 -->
|
|
|
|
|
- <template #expandedRowRender="{ }">
|
|
|
|
|
- <BtnList :btnList="forDataBtn" />
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #warehousetype="{ text }">
|
|
|
|
|
- <span>{{ getWareHouseType(text) }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #warehousestatus="{ text }">
|
|
|
|
|
- <span>{{ getWareHouseStatus(text) }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
- </contextMenu>
|
|
|
|
|
- <!-- 点价记录详情 -->
|
|
|
|
|
- <InvoiceDetail />
|
|
|
|
|
- <!-- 交收审核 -->
|
|
|
|
|
- <InvoiceAudit />
|
|
|
|
|
- <!-- 撤销点价登记 -->
|
|
|
|
|
- <InvoiceCancel />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- 管理 - 财务审核 - 发票 -->
|
|
|
|
|
+ <div class="finance_review_invoice"
|
|
|
|
|
+ :loading="loading">
|
|
|
|
|
+ <Filter @search="search">
|
|
|
|
|
+ <BtnList :btnList="commonBtn"/>
|
|
|
|
|
+ </Filter>
|
|
|
|
|
+ <contextMenu :contextMenuList="forDataBtn">
|
|
|
|
|
+ <a-table :columns="columns"
|
|
|
|
|
+ class="topTable hiddenFirstCol"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
+ :customRow="Rowclick"
|
|
|
|
|
+ rowKey="key"
|
|
|
|
|
+ :data-source="tableList">
|
|
|
|
|
+ <!-- 额外的展开行 -->
|
|
|
|
|
+ <template #expandedRowRender="{ }">
|
|
|
|
|
+ <BtnList :btnList="forDataBtn"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 现货合同类型 -->
|
|
|
|
|
+ <template #contracttype="{ text }">
|
|
|
|
|
+ <a>{{ getContractTypeName(text) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 发票类型-->
|
|
|
|
|
+ <template #invoicetype= "{ record }" >
|
|
|
|
|
+ <a>{{ invoiceStatusName(record.contracttype) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 状态 -->
|
|
|
|
|
+ <template #applystatus="{ text }">
|
|
|
|
|
+ <a>{{ getApplyStatusName(text) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 点价类型 -->
|
|
|
|
|
+ <template #operateapplytype="{ text }">
|
|
|
|
|
+ <a>{{ operateApplyTypeName(text) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </contextMenu>
|
|
|
|
|
+ <!-- 点价记录详情 -->
|
|
|
|
|
+ <InvoiceDetail :selectedRow="selectedRow"
|
|
|
|
|
+ @refresh="queryTable"/>
|
|
|
|
|
+ <!-- 交收审核 -->
|
|
|
|
|
+ <InvoiceAudit :selectedRow="selectedRow"
|
|
|
|
|
+ @refresh="queryTable"/>
|
|
|
|
|
+ <!-- 撤销点价登记 -->
|
|
|
|
|
+ <InvoiceCancel :selectedRow="selectedRow"
|
|
|
|
|
+ @refresh="queryTable"/>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ defineComponent,
|
|
|
|
|
+ initData,
|
|
|
|
|
+ getTableColumns,
|
|
|
|
|
+ getTableEvent,
|
|
|
|
|
+ getBtnList,
|
|
|
|
|
+ contextMenu,
|
|
|
|
|
+ BtnList
|
|
|
|
|
+} from '@/common/export/table';
|
|
|
|
|
|
|
|
-import { InvoiceAudit, InvoiceCancel, InvoiceDetail, Filter } from '../../components';
|
|
|
|
|
|
|
+import {InvoiceAudit, InvoiceCancel, InvoiceDetail, Filter} from '../../components';
|
|
|
|
|
|
|
|
-import { queryTableList, getFilterTableCB, QryBussinessFpRsp } from './setup';
|
|
|
|
|
|
|
+import {queryTableList, getFilterTableCB, QryBussinessFpRsp} from './setup';
|
|
|
|
|
+import {getContractTypeName} from "@/views/information/spot-contract/setup";
|
|
|
|
|
+import {invoiceStatusName, kxtypeName, operateApplyTypeName} from "@/views/manage/finance-review/setup";
|
|
|
|
|
+import {getApplyStatusName} from "@/views/manage/business-review/setup";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'finance_review_invoice',
|
|
name: 'finance_review_invoice',
|
|
@@ -53,19 +77,20 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
// 表头数据
|
|
// 表头数据
|
|
|
- const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
|
|
|
|
|
+ const {columns, registerColumn, updateColumn, filteredInfo} = getTableColumns();
|
|
|
// 表格事件
|
|
// 表格事件
|
|
|
- const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<QryBussinessFpRsp>({});
|
|
|
|
|
|
|
+ const {expandedRowKeys, selectedRow, Rowclick} = getTableEvent<QryBussinessFpRsp>({});
|
|
|
// 表格操作按钮列表
|
|
// 表格操作按钮列表
|
|
|
- const { commonBtn, forDataBtn } = getBtnList('finance_review_invoice', true);
|
|
|
|
|
|
|
+ const {commonBtn, forDataBtn} = getBtnList('finance_review_invoice', true);
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList({});
|
|
|
|
|
|
|
+ const {loading, tableList, queryTable} = queryTableList({});
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
// 获取列表数据
|
|
// 获取列表数据
|
|
|
queryTable();
|
|
queryTable();
|
|
|
// 注册表头信息 过滤
|
|
// 注册表头信息 过滤
|
|
|
registerColumn('table_pcweb_fincial_aduit_fp', getFilterTableCB);
|
|
registerColumn('table_pcweb_fincial_aduit_fp', getFilterTableCB);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
// 查询
|
|
// 查询
|
|
|
function search(value: any) {
|
|
function search(value: any) {
|
|
|
console.log('value', value);
|
|
console.log('value', value);
|
|
@@ -74,6 +99,7 @@ export default defineComponent({
|
|
|
// 更新表信息
|
|
// 更新表信息
|
|
|
updateColumn();
|
|
updateColumn();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
columns,
|
|
columns,
|
|
|
filteredInfo,
|
|
filteredInfo,
|
|
@@ -85,6 +111,11 @@ export default defineComponent({
|
|
|
loading,
|
|
loading,
|
|
|
tableList,
|
|
tableList,
|
|
|
search,
|
|
search,
|
|
|
|
|
+ getContractTypeName,
|
|
|
|
|
+ invoiceStatusName,
|
|
|
|
|
+ getApplyStatusName,
|
|
|
|
|
+ operateApplyTypeName,
|
|
|
|
|
+ kxtypeName,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|