|
@ -4,15 +4,15 @@ |
|
|
<Search :schema="Maintenance.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
<Search :schema="Maintenance.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
<!-- 列表头部 --> |
|
|
<TableHead |
|
|
<TableHead |
|
|
:HeadButttondata="HeadButttondata" |
|
|
:HeadButttondata="HeadButttondata" |
|
|
@button-base-click="buttonBaseClick" |
|
|
@button-base-click="buttonBaseClick" |
|
|
:routeName="routeName" |
|
|
:routeName="routeName" |
|
|
@updataTableColumns="updataTableColumns" |
|
|
@updataTableColumns="updataTableColumns" |
|
|
@searchFormClick="searchFormClick" |
|
|
@searchFormClick="searchFormClick" |
|
|
:allSchemas="Maintenance.allSchemas" |
|
|
:allSchemas="Maintenance.allSchemas" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
<!-- 列表 --> |
|
|
<ContentWrap> |
|
|
<ContentWrap> |
|
@ -66,9 +66,10 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
|
|
import * as BasicInspectionOptionApi from "@/api/eam/basicInspectionOption"; |
|
|
import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts.data"; |
|
|
import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts.data"; |
|
|
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts"; |
|
|
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts"; |
|
|
import { ToolAccounts } from "@/views/eam/toolAccounts/toolAccounts.data"; |
|
|
import { ToolAccounts } from "@/views/eam/toolAccounts/ToolAccounts.data"; |
|
|
import * as ToolItemApi from "@/api/eam/toolAccounts"; |
|
|
import * as ToolItemApi from "@/api/eam/toolAccounts"; |
|
|
|
|
|
|
|
|
defineOptions({ name: 'Maintenance' }) |
|
|
defineOptions({ name: 'Maintenance' }) |
|
@ -248,32 +249,32 @@ const handleDisable = async (id: number) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const onChange = (field, item) => { |
|
|
const onChange = (field, item) => { |
|
|
console.log(field) |
|
|
console.log(field) |
|
|
console.log(item) |
|
|
console.log(item) |
|
|
//设备 |
|
|
//设备 |
|
|
if(field == 'type' && item == 'DEVICE'){ |
|
|
if(field == 'type' && item == 'DEVICE'){ |
|
|
Maintenance.allSchemas.formSchema.forEach((items) => { |
|
|
Maintenance.allSchemas.formSchema.forEach((items) => { |
|
|
if (items.field == 'equipmentCode') { |
|
|
if (items.field == 'equipmentCode') { |
|
|
basicFormRef.value.formRef.setValues({ |
|
|
basicFormRef.value.formRef.setValues({ |
|
|
equipmentCode:'' |
|
|
equipmentCode:'' |
|
|
}) |
|
|
}) |
|
|
items.componentProps.searchAllSchemas = EquipmentAccounts.allSchemas |
|
|
items.componentProps.searchAllSchemas = EquipmentAccounts.allSchemas |
|
|
items.componentProps.searchPage = EquipmentItemApi.getEquipmentAccountsPage |
|
|
items.componentProps.searchPage = EquipmentItemApi.getEquipmentAccountsPage |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
//工装 |
|
|
//工装 |
|
|
if(field == 'type' && item == 'EQUIPMENT'){ |
|
|
if(field == 'type' && item == 'EQUIPMENT'){ |
|
|
Maintenance.allSchemas.formSchema.forEach((items) => { |
|
|
Maintenance.allSchemas.formSchema.forEach((items) => { |
|
|
if (items.field == 'equipmentCode') { |
|
|
if (items.field == 'equipmentCode') { |
|
|
basicFormRef.value.formRef.setValues({ |
|
|
basicFormRef.value.formRef.setValues({ |
|
|
equipmentCode:'' |
|
|
equipmentCode:'' |
|
|
}) |
|
|
}) |
|
|
items.componentProps.searchAllSchemas = ToolAccounts.allSchemas |
|
|
items.componentProps.searchAllSchemas = ToolAccounts.allSchemas |
|
|
items.componentProps.searchPage = ToolItemApi.getToolAccountsPage |
|
|
items.componentProps.searchPage = ToolItemApi.getToolAccountsPage |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
/** 导出按钮操作 */ |
|
@ -322,3 +323,4 @@ onMounted(async () => { |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|