|
|
@@ -32,8 +32,8 @@
|
|
|
<script lang="ts">
|
|
|
import { MtpTableButton, contextMenu, defineAsyncComponent, defineComponent, handleComposeTable, ComposeTableParam } from '@/common/export/commonTable';
|
|
|
|
|
|
-import { Filter, SomepriceDetail, SomepriceAudit, SomepriceCancel } from '../../../components';
|
|
|
-import { queryTableList, QryBusinessDjRsp } from '../setup';
|
|
|
+import { Filter, SomepriceDetail, SomepriceAudit, SomepriceCancel } from '../../components';
|
|
|
+import { queryTableList, QryBusinessDjRsp } from './setup';
|
|
|
import { getPriceTypeName, getContractStatusName, getContractTypeName, getApplyStatusName } from '@/common/constants/enumsName';
|
|
|
import { getAnalogueName } from '@/views/information/spot-contract/setup';
|
|
|
import { Column, ColumnType } from '@/common/setup/table';
|
|
|
@@ -41,6 +41,7 @@ import { ref } from 'vue';
|
|
|
import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { getTableButton } from '@/common/setup/table/button';
|
|
|
+import { useRoute } from 'vue-router';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'business-review-dj',
|
|
|
@@ -48,13 +49,17 @@ export default defineComponent({
|
|
|
contextMenu,
|
|
|
Filter,
|
|
|
MtpTableButton,
|
|
|
- detail: defineAsyncComponent(() => import('../../../components/somepriceDetail/index.vue')),
|
|
|
- someprice_checkpending_check: defineAsyncComponent(() => import('../../../components/somepriceAudit/index.vue')),
|
|
|
- someprice_checkpending_cancel: defineAsyncComponent(() => import('../../../components/somepriceCancel/index.vue')),
|
|
|
+ detail: defineAsyncComponent(() => import('../../components/somepriceDetail/index.vue')),
|
|
|
+ check: defineAsyncComponent(() => import('../../components/somepriceAudit/index.vue')),
|
|
|
+ cancel: defineAsyncComponent(() => import('../../components/somepriceCancel/index.vue')),
|
|
|
},
|
|
|
setup() {
|
|
|
+ const { name: routeName } = useRoute();
|
|
|
+ // 权限按钮
|
|
|
+ const buttons = getTableButton();
|
|
|
+
|
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList({ applystatus: '1' });
|
|
|
+ const { loading, tableList, queryTable } = queryTableList({ applystatus: routeName === 'someprice_checkpending' ? '1' : '2' });
|
|
|
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => queryTable();
|
|
|
@@ -96,9 +101,6 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 权限按钮
|
|
|
- const buttons = getTableButton(['someprice_checkpending_check', 'someprice_checkpending_cancel', 'detail']);
|
|
|
-
|
|
|
return {
|
|
|
...handleComposeTable<QryBusinessDjRsp>(param),
|
|
|
handlePermissionBtn,
|