Browse Source

[SBBJ-891][页面引用基础数据高级检索方法调整]

master
zengqinyuan 3 weeks ago
parent
commit
8b29622d24
  1. 3
      src/views/eam/basic/deviceInspectionConfig/deviceInspectionConfig.data.ts
  2. 4
      src/views/eam/basic/deviceInspectionConfig/index.vue
  3. 4
      src/views/eam/basic/moldInspectionConfig/moldInspectionConfig.data.ts
  4. 3
      src/views/eam/basic/moldMaintenanceConfig/moldMaintenanceConfig.data.ts

3
src/views/eam/basic/deviceInspectionConfig/deviceInspectionConfig.data.ts

@ -1,6 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as DeviceMoldItemsApi from '@/api/eam/basic/inspection'
import * as DeviceAccountsAPi from '@/api/eam/device/deviceAccounts'
import {DeviceMoldItems} from '@/views/eam/basic/inspection/inspection.data'
// 表单校验
@ -58,7 +59,7 @@ export const DeviceInspection = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '设备信息', // 查询弹窗标题
searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类
searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法
searchPage: DeviceAccountsAPi.getDeviceAccountsPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',

4
src/views/eam/basic/deviceInspectionConfig/index.vue

@ -222,7 +222,7 @@ const { tableObject, tableMethods } = useTable({
getListApi: DeviceInspectionConfigApi.getMoldMaintenanceConfigPage //
})
//
// a
const { getList, setSearchParams } = tableMethods
//
@ -404,4 +404,4 @@ onMounted(async () => {
})
</script>
./deviceInspectionConfig.data
./deviceInspectionConfig.data

4
src/views/eam/basic/moldInspectionConfig/moldInspectionConfig.data.ts

@ -1,7 +1,9 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as DeviceMoldItemsApi from '@/api/eam/basic/inspection'
import * as MoldAccountsApi from '@/api/eam/mold/moldAccounts'
import {DeviceMoldItemsTwo} from '@/views/eam/basic/inspection/inspection.data'
import {getMoldAccountsPage} from "@/api/eam/mold/moldAccounts";
// 表单校验
export const DeviceInspectionConfigRules = reactive({
@ -58,7 +60,7 @@ export const DeviceInspection = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '模具信息', // 查询弹窗标题
searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类
searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法
searchPage: MoldAccountsApi.getMoldAccountsPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',

3
src/views/eam/basic/moldMaintenanceConfig/moldMaintenanceConfig.data.ts

@ -1,6 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as DeviceMoldItemsApi from '@/api/eam/basic/deviceMaintenance'
import * as MoldAccountsApi from '@/api/eam/mold/moldAccounts'
// 表单校验
export const MoldMaintenanceConfigRules = reactive({
@ -47,7 +48,7 @@ export const MoldMaintenanceConfig = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '模具信息', // 查询弹窗标题
searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类
searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法
searchPage: MoldAccountsApi.getMoldAccountsPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',

Loading…
Cancel
Save