add:增加一键解锁点位功能

This commit is contained in:
2026-06-16 17:59:26 +08:00
parent 9c4e0f16ab
commit 8a075f3023
8 changed files with 150 additions and 24 deletions

View File

@@ -128,8 +128,8 @@
size="mini"
type="warning"
icon="el-icon-circle-close"
:loading="downloadLoading"
@click="relse"
:disabled="crud.selections.length === 0"
@click="relse(crud.selections)"
>一键解锁出库点
</el-button>
<el-button
@@ -513,8 +513,12 @@ export default {
}
})
},
relse() {
crudSchBaseRegion.relse()
relse(data) {
const ids = data.map(r => r.point_code)
crudSchBasePoint.relse(ids).then(res => {
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
})
},
getPointTypeList(id, flag) {
crudSchBaseRegion.getPointTypeSelectById(id).then(res => {

View File

@@ -56,4 +56,12 @@ export function changeLock(data) {
})
}
export default { add, edit, del, changeUsed, getPointList, getRegionPoints, changeLock }
export function relse(data) {
return request({
url: 'api/schBasePoint/relse',
method: 'post',
data
})
}
export default { add, edit, del, changeUsed, getPointList, getRegionPoints, changeLock, relse }