|
|
@@ -2,7 +2,7 @@
|
|
|
<!-- 客户资料 -->
|
|
|
<div class="plan_uncommitted"
|
|
|
:loading="loading">
|
|
|
- <Filter @search="updateColumn">
|
|
|
+ <Filter @search="search">
|
|
|
<mtp-table-button class="btn-list-sticky"
|
|
|
:buttons="addButton"
|
|
|
@click="openComponent" />
|
|
|
@@ -57,22 +57,19 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
+import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import { isPingAnOem, isQianHaiJin } from '@/common/config/projectName';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
+import { getCardTypeEnumItemName, getStatusName, getUserInfoTypeName } from '@/common/constants/enumsName';
|
|
|
import { ComposeTableParam, contextMenu, defineAsyncComponent, defineComponent, handleComposeTable, MtpTableButton, queryTableList, useRouteName } from '@/common/export/commonTable';
|
|
|
-import { getTableButton } from '@/common/setup/table/button';
|
|
|
-import { QueryCustomInfo } from '@/services/go/ermcp/customInfo';
|
|
|
-import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
|
-import { getUserInfoTypeName, getStatusName, getCardTypeEnumItemName } from '@/common/constants/enumsName';
|
|
|
-import Filter from './compoments/filterTable/index.vue';
|
|
|
-import { pingan_custom_column, qian_hai_jin_custom_column } from './setup';
|
|
|
+import { formatTime } from '@/common/methods';
|
|
|
import { ColumnType } from '@/common/methods/table';
|
|
|
-import { getTableColumns } from '@/common/setup/table';
|
|
|
-import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
-import { queryCustomerInfo } from '@/services/go/ermcp/qhj';
|
|
|
+import { getTableButton } from '@/common/setup/table/button';
|
|
|
import { getUserId } from '@/services/bus/user';
|
|
|
+import { queryCustomerInfo } from '@/services/go/ermcp/qhj';
|
|
|
import { QhjCustomer } from '@/services/go/ermcp/qhj/interface';
|
|
|
-import { formatTime } from '@/common/methods';
|
|
|
+import Filter from './compoments/filterTable/index.vue';
|
|
|
+import { pingan_custom_column, qian_hai_jin_custom_column } from './setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: EnumRouterName.plan_audit,
|
|
|
@@ -103,13 +100,13 @@ export default defineComponent({
|
|
|
const userid = getUserId();
|
|
|
if (isRouterName('custom_checkpending')) {
|
|
|
// 待审核
|
|
|
- queryTable(queryCustomerInfo, { userid, querytype: 2 });
|
|
|
+ queryTable(queryCustomerInfo, { userid, querytype: 2, includesub: 1 });
|
|
|
} else if (isRouterName('custom_normal')) {
|
|
|
// 正常
|
|
|
- queryTable(queryCustomerInfo, { userid, querytype: 3 });
|
|
|
+ queryTable(queryCustomerInfo, { userid, querytype: 3, includesub: 1 });
|
|
|
} else if (isRouterName('custom_disabled')) {
|
|
|
// 停用
|
|
|
- queryTable(queryCustomerInfo, { userid, querytype: 4 });
|
|
|
+ queryTable(queryCustomerInfo, { userid, querytype: 4, includesub: 1 });
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -137,6 +134,10 @@ export default defineComponent({
|
|
|
return columns;
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
+ // 搜索
|
|
|
+ function search() {}
|
|
|
+
|
|
|
// 表格通用逻辑
|
|
|
const param: ComposeTableParam = {
|
|
|
queryFn: queryTableAction,
|
|
|
@@ -158,6 +159,7 @@ export default defineComponent({
|
|
|
getColumns,
|
|
|
handleBtnList,
|
|
|
formatTime,
|
|
|
+ search,
|
|
|
};
|
|
|
},
|
|
|
});
|