Browse Source

EAM ——> 巡检 点检 保养 维修 问题更新

hella_online_20240829
gaojs 5 months ago
parent
commit
3bafe325b1
  1. 4
      src/utils/disposition/defaultButtons.ts
  2. 8
      src/views/eam/equipmentAccounts/equipmentAccounts.data.ts
  3. 14
      src/views/eam/equipmentAccounts/index.vue
  4. 9
      src/views/eam/equipmentSigning/equipmentSigning.data.ts
  5. 4
      src/views/eam/equipmentSigning/index.vue
  6. 6
      src/views/eam/equipmentTransferRecord/index.vue

4
src/utils/disposition/defaultButtons.ts

@ -1154,7 +1154,7 @@ export function mainCopyBtn(option:any) {
// 主列表-部件
export function componentBtn(option:any) {
return __defaultBtnOption(option,{
label: '部件',
label: '关联部件',
name: 'component',
hide: false,
type: 'primary',
@ -1166,7 +1166,7 @@ export function componentBtn(option:any) {
// 主列表-备件
export function sparePartBtn(option:any) {
return __defaultBtnOption(option,{
label: '备件',
label: '关联备件',
name: 'sparePart',
hide: false,
type: 'primary',

8
src/views/eam/equipmentAccounts/equipmentAccounts.data.ts

@ -62,6 +62,12 @@ export const EquipmentAccounts = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: false
},
{
label: '出厂编号',
field: 'factoryCode',
sort: 'custom',
isSearch: false
},
{
label: '设备类型',
field: 'type',
@ -625,7 +631,7 @@ export const EquipmentAccounts = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action',
isForm: false,
table: {
width: 150,
width: 200,
fixed: 'right'
}
}

14
src/views/eam/equipmentAccounts/index.vue

@ -250,6 +250,20 @@ const openForm = async (type: string, row?: any) => {
row.lineName = productionlineNoPage?.find(item=>item.code == row.lineCode)?.name
row.manufactureName = equipmentManufacturerNoPage?.find(item=>item.number == row.manufactureCode)?.name
row.supplierName = equipmentSupplierNoPage?.find(item=>item.number == row.supplierCode)?.name
EquipmentAccounts.allSchemas.formSchema.forEach((item) => {
if (item.field == 'status') {
item.componentProps.disabled = false
}
})
}else{
EquipmentAccounts.allSchemas.formSchema.forEach((item) => {
if (item.field == 'status') {
item.componentProps.disabled = true
item.value = 'TOACCEPT'
}
})
}
basicFormRef.value.open(type, row)
}

9
src/views/eam/equipmentSigning/equipmentSigning.data.ts

@ -136,19 +136,22 @@ export const EquipmentSigning = useCrudSchemas(reactive<CrudSchema[]>([
label: '供应商编号',
field: 'supplierCode',
sort: 'custom',
isSearch: true
isSearch: true,
isForm: false
},
{
label: '供应商联系人',
field: 'supplierPeople',
sort: 'custom',
isSearch: true
isSearch: true,
isForm: false
},
{
label: '供应商联系方式',
field: 'supplierTelephone',
sort: 'custom',
isSearch: false
isSearch: false,
isForm: false,
},
// {
// label: '流程状态',

4
src/views/eam/equipmentSigning/index.vue

@ -140,8 +140,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:equipment-signing:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipment-signing:delete'}), //
// defaultButtons.mainListEditBtn({hasPermi:'eam:equipment-signing:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipment-signing:delete'}), //
]
// -

6
src/views/eam/equipmentTransferRecord/index.vue

@ -113,7 +113,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:equipment-transfer-record:create'}), //
//defaultButtons.defaultAddBtn({hasPermi:'eam:equipment-transfer-record:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'eam:equipment-transfer-record:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'eam:equipment-transfer-record:export'}), //
defaultButtons.defaultFreshBtn(null), //
@ -147,8 +147,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:equipment-transfer-record:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipment-transfer-record:delete'}), //
//defaultButtons.mainListEditBtn({hasPermi:'eam:equipment-transfer-record:update'}), //
//defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipment-transfer-record:delete'}), //
]
// -

Loading…
Cancel
Save