add:增加一键解锁点位功能
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user