Browse Source

SBBJ-977设备维护-维修工单,状态完成后明细应不能编辑、删除,现能编辑、删除

master
张立 1 week ago
parent
commit
6ee12c5148
  1. 4
      src/views/eam/device/devicemaintenancejob/index.vue

4
src/views/eam/device/devicemaintenancejob/index.vue

@ -106,6 +106,7 @@
:openFormCallBack="openFormCallBack"
:buttonControllFunction="buttonControllFunction"
@deleteDetail="getList"
:isShowAddBtn="isShowAddBtn"
/>
<!-- 导入 -->
@ -303,6 +304,7 @@ const selectedOptions = ref([])
const options = ref([])
const isTemporaryShow = ref(false)
const DeviceMaintenanceDetailFilter = ref(cloneDeep(DeviceMaintenanceDetail))
const isShowAddBtn = ref(false)
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
@ -815,8 +817,10 @@ const detailRef = ref()
const openDetail = async (row: any, titleName: any, titleValue: any) => {
if(row.status == 'COMPLETED' || row.status == 'VERIFIED' || row.status == 'APPLYPASS' || row.status == 'APPROVEPASS'){
DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns.filter(item => item.field !== 'action');
isShowAddBtn.value = false
}else{
DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns;
isShowAddBtn.value = true
}
const userListAll = await UserApi.getSimpleUserList()
const factoryList = await selectAllFactoryArea()

Loading…
Cancel
Save