更新日志
This commit is contained in:
@@ -32,6 +32,14 @@ export function finishd(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function issued(data) {
|
||||
return request({
|
||||
url: 'api/produceshiftorder/issued',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function synchron() {
|
||||
return request({
|
||||
url: 'api/produceshiftorder/synchron',
|
||||
@@ -39,4 +47,4 @@ export function synchron() {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, finishd, synchron }
|
||||
export default { add, edit, del, finishd, issued, synchron }
|
||||
|
||||
@@ -4,6 +4,17 @@
|
||||
<div class="head-container">
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="info"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:disabled="is_disabled(crud.selections.length, crud.selections[0])"
|
||||
@click="issued(crud.selections[0])"
|
||||
>
|
||||
下发命令
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
@@ -199,6 +210,12 @@ export default {
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
issued(data) {
|
||||
crudProduceshiftorder.issued({ data: data }).then(res => {
|
||||
this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
synchron() {
|
||||
crudProduceshiftorder.synchron().then(res => {
|
||||
this.crud.notify('同步成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user