diff --git a/src/views/qms/inspectionRecord/index.vue b/src/views/qms/inspectionRecord/index.vue index 678b64570..989ddb785 100644 --- a/src/views/qms/inspectionRecord/index.vue +++ b/src/views/qms/inspectionRecord/index.vue @@ -160,7 +160,13 @@ const buttonBaseClick = (val, item) => { return val ? true : false } } - + const isShowEditBtn = (row, val) => { + if (val.indexOf(row.inspectionType) > -1) { + return true + } else { + return row.useDecision + } + } // 列表-操作按钮 const butttondata = (row) => { return [ @@ -173,7 +179,7 @@ const buttonBaseClick = (val, item) => { // hide:row.useDecision, // hasPermi: 'qms:inspection-recode-main:execute', // }), // 执行 - defaultButtons.mainListEditBtn({ hide:row.useDecision }), // 编辑 + defaultButtons.mainListEditBtn({ hide:isShowEditBtn(row,['11'])}), // 编辑 ] }