add:手持接口增加

This commit is contained in:
songxiaopeng
2024-04-03 17:31:37 +08:00
parent 098c1b2ea6
commit 0f7f57ff82
16 changed files with 969 additions and 342 deletions

View File

@@ -83,17 +83,17 @@
>
任务下发
</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="orderFinish(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="orderFinish(crud.selections[0])"-->
<!-- >-->
<!-- 工单完成-->
<!-- </el-button>-->
<el-button
v-if="false"
slot="right"
@@ -716,22 +716,22 @@ export default {
this.dialogVisible = false
})
},
orderFinish(row){
this.fullscreenLoading = true
let param = {
orderCode:row.workorder_code
}
crudPdmBdWorkorder.orderFinish(param).then(res => {
this.crud.notify('工单完成', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
}).catch(() => {
this.fullscreenLoading = false
}).finally(() => {
this.fullscreenLoading = false
this.barcodeForm={}
this.dialogVisible = false
})
},
// orderFinish(row){
// this.fullscreenLoading = true
// let param = {
// orderCode:row.workorder_code
// }
// crudPdmBdWorkorder.orderFinish(param).then(res => {
// this.crud.notify('工单完成', CRUD.NOTIFICATION_TYPE.SUCCESS)
// this.crud.toQuery()
// }).catch(() => {
// this.fullscreenLoading = false
// }).finally(() => {
// this.fullscreenLoading = false
// this.barcodeForm={}
// this.dialogVisible = false
// })
// },
synchronize() {
this.fullscreenLoading = true
crudPdmBdWorkorder.orderSynchronize(this.crud.query).then(res => {