ljlong_2630 8 months ago
parent
commit
bfb2359947
  1. 8
      src/views/eam/device/devicemaintainjob/deviceMaintainOrderMain.data.ts
  2. 15
      src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts
  3. 2
      src/views/eam/mold/moldRepair/moldRepair.data.ts
  4. 8
      src/views/eam/mold/moldmaintainjob/moldMaintainOrderMain.data.ts
  5. 17
      src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

8
src/views/eam/device/devicemaintainjob/deviceMaintainOrderMain.data.ts

@ -261,12 +261,15 @@ export const DeviceMaintainOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '人数', label: '预估人数',
field: 'peoples', field: 'peoples',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps:{
disabled:true
}
}, },
isTable: true, isTable: true,
tableForm: { tableForm: {
@ -284,6 +287,9 @@ export const DeviceMaintainOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
form: { form: {
component: 'Input', component: 'Input',
componentProps:{
disabled:true
}
}, },
}, },
{ {

15
src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts

@ -158,6 +158,19 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
placeholder: "请先选择设备" placeholder: "请先选择设备"
}, },
},
isSearch:true,
search:{
component: 'Select',
api: () => userListAll,
componentProps: {
collapseTags:true,
collapseTagsTooltip:true,
optionsAlias: {
labelField: 'nickname',
valueField: 'id'
}
}
} }
}, },
{ {
@ -227,7 +240,7 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: '150', width: '150',
}, },
isSearch: true, isSearch: false,
dictType: DICT_TYPE.FAULT_TYPE, dictType: DICT_TYPE.FAULT_TYPE,
dictClass: 'string', dictClass: 'string',
form: { form: {

2
src/views/eam/mold/moldRepair/moldRepair.data.ts

@ -142,7 +142,7 @@ export const MoldRepair = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '描述', label: '描述',
field: 'describe', field: 'describes',
sort: 'custom', sort: 'custom',
table: { table: {
width: '150', width: '150',

8
src/views/eam/mold/moldmaintainjob/moldMaintainOrderMain.data.ts

@ -318,12 +318,15 @@ export const MoldMaintainOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '人数', label: '预估人数',
field: 'peoples', field: 'peoples',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps:{
disabled:true
}
}, },
isTable: true, isTable: true,
tableForm: { tableForm: {
@ -341,6 +344,9 @@ export const MoldMaintainOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
form: { form: {
component: 'Input', component: 'Input',
componentProps:{
disabled:true
}
}, },
}, },
{ {

17
src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

@ -8,6 +8,7 @@ import * as ItemApi from '@/api/eam/basic/item'
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const userListAll = await UserApi.getSimpleUserList() const userListAll = await UserApi.getSimpleUserList()
console.log(userListAll)
const userStore = useUserStore() const userStore = useUserStore()
const factoryList = await selectAllFactoryArea() const factoryList = await selectAllFactoryArea()
const moldList = await MoldAccountsApi.getMoldAccountsNoPage({}) const moldList = await MoldAccountsApi.getMoldAccountsNoPage({})
@ -173,7 +174,6 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: '150', width: '150',
}, },
isSearch: false,
api: () => userListAll, api: () => userListAll,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userListAll.find((account) => account.id == cellValue)?.nickname return userListAll.find((account) => account.id == cellValue)?.nickname
@ -184,11 +184,24 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
disabled: true, disabled: true,
optionsAlias: { optionsAlias: {
labelField: 'name', labelField: 'nickname',
valueField: 'id' valueField: 'id'
}, },
placeholder: "请先选择模具" placeholder: "请先选择模具"
}, },
},
isSearch:true,
search:{
component: 'Select',
api: () => userListAll,
componentProps: {
collapseTags:true,
collapseTagsTooltip:true,
optionsAlias: {
labelField: 'nickname',
valueField: 'id'
}
}
} }
}, },

Loading…
Cancel
Save