|
|
@ -181,7 +181,7 @@ const butttondata = (row) => { |
|
|
|
// defaultButtons.mainListEditBtn({hasPermi:'eam:moldInspectionMain:update'}), // 编辑 |
|
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'eam:moldInspectionMain:delete'}), // 删除 |
|
|
|
defaultButtons.mainListEditBtn(null), // 编辑 |
|
|
|
defaultButtons.maintenanceOrderBtn({ hide: !(row.status == 'PROCCED' && (userStore.getUser.id == row.maintenance)) }), //检修 |
|
|
|
defaultButtons.mainInspectionOrderBtn({ hide: !(row.status == 'PROCCED' && (userStore.getUser.id == row.maintenance)) }), //检修 |
|
|
|
defaultButtons.finishOrderBtn({ hide: !(row.status == 'PROCCED' && (userStore.getUser.id == row.maintenance)) }), //完成 |
|
|
|
] |
|
|
|
} |
|
|
@ -190,8 +190,8 @@ const butttondata = (row) => { |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'maintenanceOrder') { // 检修 |
|
|
|
handleMaintenanceOrder(row) |
|
|
|
} else if (val == 'mainInspectionOrder') { // 检修 |
|
|
|
openDetail(row, '代码', row.number) |
|
|
|
} else if (val == 'finishOrder') { // 完成 |
|
|
|
handleFinishOrder(row) |
|
|
|
} |
|
|
@ -297,12 +297,12 @@ function handleFinishOrder(row) { |
|
|
|
|
|
|
|
const onChange = (field, cur, item) => { |
|
|
|
// 当有效天数 和 生效时间 发生变化 |
|
|
|
if (field == 'moldNumber') { |
|
|
|
if (field == 'deviceNumber') { |
|
|
|
basicFormRef.value.formRef.formModel.factoryAreaNumber = Number(item.componentProps.options.find(element => element.number == cur).factoryAreaNumber) |
|
|
|
basicFormRef.value.formRef.formModel.maintenance = String(userStore?.getUser?.id) |
|
|
|
basicFormRef.value.formRef.formModel.maintenanceNumber = '' |
|
|
|
} else if (field == 'maintenanceNumber') { |
|
|
|
basicFormRef.value.formRef.formModel.moldNumber = item.componentProps.options.find(element => element.number == cur).moldNumber |
|
|
|
basicFormRef.value.formRef.formModel.deviceNumber = item.componentProps.options.find(element => element.number == cur).deviceNumber |
|
|
|
basicFormRef.value.formRef.formModel.factoryAreaNumber = Number(item.componentProps.options.find(element => element.number == cur).factoryAreaNumber) |
|
|
|
basicFormRef.value.formRef.formModel.maintenance = String(userStore?.getUser?.id) |
|
|
|
} |
|
|
|