|
@ -144,8 +144,10 @@ const butttondata = (row,$index) => { |
|
|
return [] |
|
|
return [] |
|
|
} |
|
|
} |
|
|
return [ |
|
|
return [ |
|
|
|
|
|
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
// defaultButtons.mainListEditBtn({hasPermi:'wms:packageover-job-main:update'}), // 编辑 |
|
|
// defaultButtons.mainListEditBtn({hasPermi:'wms:packageover-job-main:update'}), // 编辑 |
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:packageover-job-main:close'}), // 关闭 |
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:packageover-job-main:close'}), // 关闭 |
|
|
|
|
|
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:packageover-job-main:delete'}), // 删除 |
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:packageover-job-main:delete'}), // 删除 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
@ -159,6 +161,7 @@ const isShowMainButton = (row, val) => { |
|
|
} |
|
|
} |
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
|
|
|
|
|
if (val == 'mainClose') { // 关闭 |
|
|
if (val == 'mainClose') { // 关闭 |
|
|
// 发起关闭 |
|
|
// 发起关闭 |
|
|
await message.confirm('确认要关闭吗?') |
|
|
await message.confirm('确认要关闭吗?') |
|
@ -169,6 +172,12 @@ const buttonTableClick = async (val, row) => { |
|
|
openForm('update', row) |
|
|
openForm('update', row) |
|
|
} else if (val == 'delete') { // 删除 |
|
|
} else if (val == 'delete') { // 删除 |
|
|
handleDelete(row.masterId) |
|
|
handleDelete(row.masterId) |
|
|
|
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
|
|
|
await PackageoverJobMainApi.acceptPackageoverJobMain(row.masterId) |
|
|
|
|
|
getList() |
|
|
|
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
|
|
|
await PackageoverJobMainApi.abandonPackageoverJobMain(row.masterId) |
|
|
|
|
|
getList() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|