Browse Source

EAM ——> 基础数据 车间产线 更新

master_hella_20240701
gaojs 5 months ago
parent
commit
e31212419e
  1. 1
      src/views/eam/basicEamProductionline/basicEamProductionline.data.ts
  2. 13
      src/views/eam/basicEamProductionline/index.vue
  3. 13
      src/views/eam/basicEamWorkshop/index.vue
  4. 11
      src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts
  5. 14
      src/views/eam/equipmentRepairJobMain/equipmentRepairJobMain.data.ts
  6. 11
      src/views/eam/equipmentReportRepairRequest/equipmentReportRepairRequest.data.ts
  7. 11
      src/views/eam/maintenance/maintenance.data.ts
  8. 12
      src/views/eam/planInspection/planInspection.data.ts
  9. 11
      src/views/eam/planSpotCheck/planSpotCheck.data.ts

1
src/views/eam/basicEamProductionline/basicEamProductionline.data.ts

@ -2,7 +2,6 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as WorkshopApi from "@/api/eam/basicEamWorkshop";
import {BasicEamWorkshop} from "@/views/eam/basicEamWorkshop/basicEamWorkshop.data";
import {getBasicEamWorkshopPage} from "@/api/eam/basicEamWorkshop";
// 表单校验
export const BasicEamProductionlineRules = reactive({

13
src/views/eam/basicEamProductionline/index.vue

@ -169,6 +169,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
if(type == "create"){
BasicEamProductionline.allSchemas.formSchema.forEach((item) => {
if(item.field == 'code'){
item.componentProps.disabled = false
}
})
}else {
BasicEamProductionline.allSchemas.formSchema.forEach((item) => {
if(item.field == 'code'){
item.componentProps.disabled = false
}
})
}
basicFormRef.value.open(type, row)
}

13
src/views/eam/basicEamWorkshop/index.vue

@ -168,6 +168,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
if(type == "create"){
BasicEamWorkshop.allSchemas.formSchema.forEach((item) => {
if(item.field == 'code'){
item.componentProps.disabled = false
}
})
}else{
BasicEamWorkshop.allSchemas.formSchema.forEach((item) => {
if(item.field == 'code'){
item.componentProps.disabled = true
}
})
}
basicFormRef.value.open(type, row)
}

11
src/views/eam/equipmentMaintenanceMain/equipmentMaintenanceMain.data.ts

@ -2,8 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts.data";
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data";
import * as WorkshopApi from "@/api/wms/workshop";
import {BasicEamWorkshop} from "@/views/eam/basicEamWorkshop/basicEamWorkshop.data";
import * as WorkshopApi from "@/api/eam/basicEamWorkshop";
import {RelationMaintenancePlanItem} from "@/views/eam/maintenance/maintenance.data";
import * as ItemApi from "@/api/eam/relationMaintenancePlanItem";
import {validateroundNumber} from "@/utils/validator";
@ -378,20 +378,19 @@ export const EquipmentMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm:false,
},
{
label: '车间编号',
label: '车间代码',
field: 'workshopCode',
sort: 'custom',
isSearch: false,
required: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '车间', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法
searchAllSchemas: BasicEamWorkshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getBasicEamWorkshopPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',

14
src/views/eam/equipmentRepairJobMain/equipmentRepairJobMain.data.ts

@ -4,8 +4,8 @@ import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {BasicFaultCause} from "@/views/eam/basicFaultCause/basicFaultCause.data";
import * as ItemApi from "@/api/eam/basicFaultCause";
import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data";
import * as WorkshopApi from "@/api/wms/workshop";
import {BasicEamWorkshop} from "@/views/eam/basicEamWorkshop/basicEamWorkshop.data";
import * as WorkshopApi from "@/api/eam/basicEamWorkshop";
import {BasicFaultType} from "@/views/eam/basicFaultType/basicFaultType.data";
import * as BasicFaultTypeApi from "@/api/eam/basicFaultType";
@ -452,20 +452,19 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
// isSearch: true,
// },
{
label: '车间编号',
label: '车间代码',
field: 'workshopCode',
sort: 'custom',
isSearch: false,
required: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择车间', // 输入框占位文本
searchListPlaceholder: '车间', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法
searchAllSchemas: BasicEamWorkshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getBasicEamWorkshopPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
@ -474,6 +473,7 @@ export const EquipmentRepairJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}
},
},
// {
// label: '产线编号',
// field: 'lineCode',

11
src/views/eam/equipmentReportRepairRequest/equipmentReportRepairRequest.data.ts

@ -1,8 +1,8 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts.data";
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data";
import * as WorkshopApi from "@/api/wms/workshop";
import {BasicEamWorkshop} from "@/views/eam/basicEamWorkshop/basicEamWorkshop.data";
import * as WorkshopApi from "@/api/eam/basicEamWorkshop";
import {dateFormatter} from '@/utils/formatTime'
import {BasicFaultType} from "@/views/eam/basicFaultType/basicFaultType.data";
import * as BasicFaultTypeApi from "@/api/eam/basicFaultType";
@ -136,20 +136,19 @@ export const EquipmentReportRepairRequest = useCrudSchemas(reactive<CrudSchema[]
// isSearch: false,
// },
{
label: '车间编号',
label: '车间代码',
field: 'workshopCode',
sort: 'custom',
isSearch: false,
required: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '车间', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法
searchAllSchemas: BasicEamWorkshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getBasicEamWorkshopPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',

11
src/views/eam/maintenance/maintenance.data.ts

@ -4,8 +4,8 @@ import { EquipmentAccounts } from "@/views/eam/equipmentAccounts/equipmentAccoun
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import { BasicMaintenanceOption } from "@/views/eam/basicMaintenanceOption/basicMaintenanceOption.data";
import * as MaintenanceOptionApi from "@/api/eam/basicMaintenanceOption";
import * as WorkshopApi from '@/api/wms/workshop'
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data'
import {BasicEamWorkshop} from "@/views/eam/basicEamWorkshop/basicEamWorkshop.data";
import * as WorkshopApi from "@/api/eam/basicEamWorkshop";
// 表单校验
export const MaintenanceRules = reactive({
@ -232,20 +232,19 @@ export const Maintenance = useCrudSchemas(reactive<CrudSchema[]>([
isDetail:false,
},
{
label: '车间编号',
label: '车间代码',
field: 'workshopCode',
sort: 'custom',
isSearch: false,
required: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '车间', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法
searchAllSchemas: BasicEamWorkshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getBasicEamWorkshopPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',

12
src/views/eam/planInspection/planInspection.data.ts

@ -4,9 +4,8 @@ import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import * as BasicInspectionApi from "@/api/eam/basicInspectionOption";
import {BasicInspectionOption} from "@/views/eam/basicInspectionOption/basicInspectionOption.data";
import {getBasicInspectionOptionPage} from "@/api/eam/basicInspectionOption";
import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data";
import * as WorkshopApi from "@/api/wms/workshop";
import {BasicEamWorkshop} from "@/views/eam/basicEamWorkshop/basicEamWorkshop.data";
import * as WorkshopApi from "@/api/eam/basicEamWorkshop";
// 表单校验
export const PlanInspectionRules = reactive({
@ -234,20 +233,19 @@ export const PlanInspection = useCrudSchemas(reactive<CrudSchema[]>([
isDetail:false,
},
{
label: '车间编号',
label: '车间代码',
field: 'workshopCode',
sort: 'custom',
isSearch: false,
required: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '车间', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法
searchAllSchemas: BasicEamWorkshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getBasicEamWorkshopPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',

11
src/views/eam/planSpotCheck/planSpotCheck.data.ts

@ -4,8 +4,8 @@ import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import * as SpotCheckOptionApi from "@/api/eam/basicSpotCheckOption";
import {BasicSpotCheckOption} from "@/views/eam/basicSpotCheckOption/basicSpotCheckOption.data";
import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data";
import * as WorkshopApi from "@/api/wms/workshop";
import {BasicEamWorkshop} from "@/views/eam/basicEamWorkshop/basicEamWorkshop.data";
import * as WorkshopApi from "@/api/eam/basicEamWorkshop";
// 表单校验
export const PlanSpotCheckRules = reactive({
@ -233,20 +233,19 @@ export const PlanSpotCheck = useCrudSchemas(reactive<CrudSchema[]>([
isDetail:false,
},
{
label: '车间编号',
label: '车间代码',
field: 'workshopCode',
sort: 'custom',
isSearch: false,
required: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '车间', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法
searchAllSchemas: BasicEamWorkshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getBasicEamWorkshopPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',

Loading…
Cancel
Save