|
|
@ -166,6 +166,13 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} else { |
|
|
|
return row.useDecision |
|
|
|
} |
|
|
|
} |
|
|
|
const isShowPackageBtn = (row, val) => { |
|
|
|
if (val.indexOf(row.inspectionType) > -1) { |
|
|
|
return true |
|
|
|
} else { |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row) => { |
|
|
@ -174,7 +181,7 @@ const buttonBaseClick = (val, item) => { |
|
|
|
defaultButtons.mainApplyDecisionBtn({ hide: isShowMainButton(row, null), hasPermi:'qms:inspection-recode-main:edit'}), // 使用决策 |
|
|
|
// defaultButtons.mainListDeleteBtn(null), // 删除 |
|
|
|
defaultButtons.mainListOrderPubBtn({ hide: isShowMainButton(row, 'publish'), hasPermi:'qms:inspection-recode-main:pub'}), // 发布 |
|
|
|
defaultButtons.mainListPackageBtn(null), // 包装 |
|
|
|
defaultButtons.mainListPackageBtn({hide: isShowMainButton(row,['11'])}), // 包装 |
|
|
|
// defaultButtons.mainListJobExeBtn({ |
|
|
|
// hide:row.useDecision, |
|
|
|
// hasPermi: 'qms:inspection-recode-main:execute', |
|
|
|