fix: 窑后送料禁止去货架三层、分拣优化、任务请求并发问题、点位解锁功能
This commit is contained in:
@@ -231,7 +231,7 @@
|
||||
v-for="item in custerList"
|
||||
:key="item.custer_NO"
|
||||
:label="item.custer_NAME"
|
||||
:value="item.custer_NO"
|
||||
:value="item.custer_NAME"
|
||||
>
|
||||
<span style="float: left">{{ item.custer_NO }}</span>
|
||||
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.custer_NAME }}</span>
|
||||
|
||||
@@ -134,6 +134,30 @@
|
||||
>
|
||||
禁用
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="!crud.query.lock_type"
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
type="danger"
|
||||
icon="el-icon-circle-check"
|
||||
:disabled="crud.selections.length === 0"
|
||||
@click="changeLock(crud.selections)"
|
||||
>
|
||||
锁定
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="crud.query.lock_type"
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
type="danger"
|
||||
icon="el-icon-circle-close"
|
||||
:disabled="crud.selections.length === 0"
|
||||
@click="changeLock(crud.selections)"
|
||||
>
|
||||
解锁
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表单组件-->
|
||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="540px">
|
||||
@@ -505,6 +529,15 @@ export default {
|
||||
this.crud.query.point_type = null
|
||||
this.crud.query.point_status = null
|
||||
this.hand()
|
||||
},
|
||||
changeLock(data) {
|
||||
const param = {}
|
||||
param.data = data
|
||||
param.lock_type = this.crud.query.lock_type
|
||||
crudSchBasePoint.changeLock(param).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,4 +40,12 @@ export function getPointList(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, changeUsed, getPointList }
|
||||
export function changeLock(data) {
|
||||
return request({
|
||||
url: 'api/schBasePoint/changeLock',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, changeUsed, getPointList, changeLock }
|
||||
|
||||
Reference in New Issue
Block a user