add:手持接口增加
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user