opt: LMS解包区、工单
This commit is contained in:
@@ -61,17 +61,28 @@
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
<!-- <el-button-->
|
||||
<!-- slot="right"-->
|
||||
<!-- class="filter-item"-->
|
||||
<!-- type="success"-->
|
||||
<!-- icon="el-icon-position"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="!(crud.selections[0]) || crud.selections[1]"-->
|
||||
<!-- @click="submits(crud.selections[0])"-->
|
||||
<!-- >-->
|
||||
<!-- 开工-->
|
||||
<!-- </el-button>-->
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:disabled="!(crud.selections[0]) || crud.selections[1]"
|
||||
@click="submits(crud.selections[0])"
|
||||
>
|
||||
开工
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:disabled="!(crud.selections[0]) || crud.selections[1]"
|
||||
@click="loadComplete(crud.selections[0])"
|
||||
>
|
||||
上料完毕
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- slot="right"-->
|
||||
<!-- class="filter-item"-->
|
||||
@@ -658,17 +669,28 @@ export default {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
// 下发
|
||||
// submits(row) {
|
||||
// this.fullscreenLoading = true
|
||||
// crudPdmBdWorkorder.submits(row).then(res => {
|
||||
// this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
// this.crud.toQuery()
|
||||
// }).catch(() => {
|
||||
// this.fullscreenLoading = false
|
||||
// }).finally(() => {
|
||||
// this.fullscreenLoading = false
|
||||
// })
|
||||
// },
|
||||
submits(row) {
|
||||
this.fullscreenLoading = true
|
||||
crudPdmBdWorkorder.submits(row).then(res => {
|
||||
this.crud.notify('开工成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
}).catch(() => {
|
||||
this.fullscreenLoading = false
|
||||
}).finally(() => {
|
||||
this.fullscreenLoading = false
|
||||
})
|
||||
},
|
||||
loadComplete(row) {
|
||||
this.fullscreenLoading = true
|
||||
crudPdmBdWorkorder.loadComplete(row).then(res => {
|
||||
this.crud.notify('上料完成', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
}).catch(() => {
|
||||
this.fullscreenLoading = false
|
||||
}).finally(() => {
|
||||
this.fullscreenLoading = false
|
||||
})
|
||||
},
|
||||
// synchronize() {
|
||||
// this.fullscreenLoading = true
|
||||
// crudPdmBdWorkorder.orderSynchronize(this.crud.query).then(res => {
|
||||
|
||||
@@ -31,6 +31,14 @@ export function submits(param) {
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function loadComplete(param) {
|
||||
return request({
|
||||
url: 'api/pdmBdWorkorder/loadComplete',
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
export function forceFinish(param) {
|
||||
return request({
|
||||
url: 'api/pdmBdWorkorder/forceFinish',
|
||||
@@ -61,4 +69,4 @@ export function getCuster() {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, submits, forceFinish, orderSynchronize, queryMaterials, getCuster }
|
||||
export default { add, edit, del, submits, loadComplete, forceFinish, orderSynchronize, queryMaterials, getCuster }
|
||||
|
||||
Reference in New Issue
Block a user