|
|
@ -312,7 +312,11 @@ const butttondata = (row) => { |
|
|
|
defaultButtons.mainCountAdjustRequesttBtn({ |
|
|
|
hide: isShowGenerateMainButton(row, ['2']), |
|
|
|
hasPermi: 'wms:count-request-main:generate' |
|
|
|
}) // 生成盘点调整 |
|
|
|
}), // 生成盘点调整 |
|
|
|
defaultButtons.mainThawRequesttBtn({ |
|
|
|
hide: isShowGenerateMainButton(row, ['3']), |
|
|
|
hasPermi: 'wms:count-request-main:thaw' |
|
|
|
}) // 解冻 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -419,6 +423,17 @@ const buttonTableClick = async (val, row) => { |
|
|
|
.catch((err) => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else if (val == 'mainThaw') { |
|
|
|
// 解冻 |
|
|
|
await message.confirm('确认要解冻吗?') |
|
|
|
CountRequestMainApi.thaw(row.id) |
|
|
|
.then(() => { |
|
|
|
message.success(t('解冻成功')) |
|
|
|
getList() |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else if (val == 'edit') { |
|
|
|
// 编辑 |
|
|
|
openForm('update', row) |
|
|
|