Browse Source

按钮隐藏

master
chenfang 10 months ago
parent
commit
599bd0579b
  1. 17
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

17
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -208,11 +208,6 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6'])}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5'])}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:onlinesettlement-request-main:update'}), // defaultButtons.mainListEditBtn({hasPermi:'wms:onlinesettlement-request-main:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:onlinesettlement-request-main:delete'}), // defaultButtons.mainListDeleteBtn({hasPermi:'wms:onlinesettlement-request-main:delete'}), //
] ]
@ -222,17 +217,7 @@ const butttondata = (row) => {
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'edit') { //
console.log('列表-操作按钮事件-关闭')
} else if (val == 'mainReAdd') { //
console.log('列表-操作按钮事件-重新添加')
} else if (val == 'mainSubmit') { //
console.log('列表-操作按钮事件-提交审批')
} else if (val == 'mainTurnDown') { //
console.log('列表-操作按钮事件-驳回')
} else if (val == 'mainApprove') { //
console.log('列表-操作按钮事件-审批通过')
} else if (val == 'edit') { //
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) handleDelete(row.id)

Loading…
Cancel
Save