|
|
@@ -1,44 +1,68 @@
|
|
|
<template>
|
|
|
- <!-- 管理-业务审核-点价 -->
|
|
|
- <div class="business-review-dj"
|
|
|
- :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>
|
|
|
- <!-- 点价记录详情 -->
|
|
|
- <SomepriceDetail />
|
|
|
- <!-- 点价审核 -->
|
|
|
- <SomepriceAudit />
|
|
|
- <!-- 撤销点价登记 -->
|
|
|
- <SomepriceCancel />
|
|
|
- </div>
|
|
|
+ <!-- 管理-业务审核-点价 -->
|
|
|
+ <div class="business-review-dj"
|
|
|
+ :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 #pricetype="{ text }">
|
|
|
+ <a>{{ getPriceTypeName(text) }}</a>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #applystatus="{ text }">
|
|
|
+ <a>{{ getApplyStatusName(text) }}</a>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #contracttype="{ text }">
|
|
|
+ <a>{{ getContractTypeName(text) }}</a>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #contractstatus="{ text }">
|
|
|
+ <a>{{ getContractStatusName(text) }}</a>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ </contextMenu>
|
|
|
+ <!-- 点价记录详情 -->
|
|
|
+ <SomepriceDetail :selectedRow="selectedRow"
|
|
|
+ @refresh="queryTable"/>
|
|
|
+ <!-- 点价审核 -->
|
|
|
+ <SomepriceAudit :selectedRow="selectedRow"
|
|
|
+ @refresh="queryTable"/>
|
|
|
+ <!-- 撤销点价登记 -->
|
|
|
+ <SomepriceCancel :selectedRow="selectedRow"
|
|
|
+ @refresh="queryTable"/>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<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 { Filter, SomepriceDetail, SomepriceAudit, SomepriceCancel } from '../../components';
|
|
|
-import { queryTableList, getFilterTableCB, QryBusinessDjRsp } from './setup';
|
|
|
+import {Filter, SomepriceDetail, SomepriceAudit, SomepriceCancel} from '../../components';
|
|
|
+import {queryTableList, getFilterTableCB, QryBusinessDjRsp} from './setup';
|
|
|
+import {getPriceTypeName} from "@/views/business/purchase/setup";
|
|
|
+import {getApplyStatusName} from "@/views/manage/business-review/setup";
|
|
|
+import {getContractStatusName, getContractTypeName} from "@/views/information/spot-contract/setup";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'business-review-dj',
|
|
|
@@ -52,25 +76,27 @@ export default defineComponent({
|
|
|
},
|
|
|
setup() {
|
|
|
// 表头数据
|
|
|
- const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
|
+ const {columns, registerColumn, updateColumn, filteredInfo} = getTableColumns();
|
|
|
// 表格事件
|
|
|
- const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<QryBusinessDjRsp>({});
|
|
|
+ const {expandedRowKeys, selectedRow, Rowclick} = getTableEvent<QryBusinessDjRsp>({});
|
|
|
// 表格操作按钮列表
|
|
|
- const { commonBtn, forDataBtn } = getBtnList('business_review_someprice', true);
|
|
|
+ const {commonBtn, forDataBtn} = getBtnList('business_review_someprice', true);
|
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList({});
|
|
|
+ const {loading, tableList, queryTable} = queryTableList({});
|
|
|
initData(() => {
|
|
|
// 获取列表数据
|
|
|
queryTable();
|
|
|
// 注册表头信息 过滤
|
|
|
registerColumn('table_pcweb_business_aduit_dj', getFilterTableCB);
|
|
|
});
|
|
|
+
|
|
|
// 查询
|
|
|
function search(value: any) {
|
|
|
filteredInfo.value = value;
|
|
|
// 更新表信息
|
|
|
updateColumn();
|
|
|
}
|
|
|
+
|
|
|
return {
|
|
|
columns,
|
|
|
filteredInfo,
|
|
|
@@ -82,6 +108,10 @@ export default defineComponent({
|
|
|
loading,
|
|
|
tableList,
|
|
|
search,
|
|
|
+ getPriceTypeName,
|
|
|
+ getApplyStatusName,
|
|
|
+ getContractTypeName,
|
|
|
+ getContractStatusName,
|
|
|
};
|
|
|
},
|
|
|
});
|