Browse Source

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

hella_online_20240829
gaojs 4 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) { export function componentBtn(option:any) {
return __defaultBtnOption(option,{ return __defaultBtnOption(option,{
label: '部件', label: '关联部件',
name: 'component', name: 'component',
hide: false, hide: false,
type: 'primary', type: 'primary',
@ -1166,7 +1166,7 @@ export function componentBtn(option:any) {
// 主列表-备件 // 主列表-备件
export function sparePartBtn(option:any) { export function sparePartBtn(option:any) {
return __defaultBtnOption(option,{ return __defaultBtnOption(option,{
label: '备件', label: '关联备件',
name: 'sparePart', name: 'sparePart',
hide: false, hide: false,
type: 'primary', type: 'primary',

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

@ -62,6 +62,12 @@ export const EquipmentAccounts = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false isSearch: false
}, },
{
label: '出厂编号',
field: 'factoryCode',
sort: 'custom',
isSearch: false
},
{ {
label: '设备类型', label: '设备类型',
field: 'type', field: 'type',
@ -625,7 +631,7 @@ export const EquipmentAccounts = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action', field: 'action',
isForm: false, isForm: false,
table: { table: {
width: 150, width: 200,
fixed: 'right' 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.lineName = productionlineNoPage?.find(item=>item.code == row.lineCode)?.name
row.manufactureName = equipmentManufacturerNoPage?.find(item=>item.number == row.manufactureCode)?.name row.manufactureName = equipmentManufacturerNoPage?.find(item=>item.number == row.manufactureCode)?.name
row.supplierName = equipmentSupplierNoPage?.find(item=>item.number == row.supplierCode)?.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) basicFormRef.value.open(type, row)
} }

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

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

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

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

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

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

Loading…
Cancel
Save