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