切换批次托盘操作为Workerman接口
This commit is contained in:
@@ -203,7 +203,6 @@ import { i18nMixin } from '@/composables/useI18n'
|
|||||||
import { confirmMixin } from '@/composables/useConfirmHandle'
|
import { confirmMixin } from '@/composables/useConfirmHandle'
|
||||||
import {
|
import {
|
||||||
getBatchTrayList,
|
getBatchTrayList,
|
||||||
trayUnbinding,
|
|
||||||
getBatteryParam
|
getBatteryParam
|
||||||
} from '@/api/planning-production/batch-tray'
|
} from '@/api/planning-production/batch-tray'
|
||||||
import { sendWorkerman } from '@/api/production-master-data/workerman'
|
import { sendWorkerman } from '@/api/production-master-data/workerman'
|
||||||
@@ -396,7 +395,14 @@ export default {
|
|||||||
message: this.key('tray_unbind_confirm'),
|
message: this.key('tray_unbind_confirm'),
|
||||||
title: this.key('prompt')
|
title: this.key('prompt')
|
||||||
},
|
},
|
||||||
() => trayUnbinding({ batch: row.batch, tray: row.tray })
|
() => sendWorkerman({
|
||||||
|
sendData: {
|
||||||
|
action: 'set_tray_unbinding',
|
||||||
|
param: {
|
||||||
|
tray: row.tray
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
)
|
)
|
||||||
this.$message.success(this.$t(this.key('operation_success')))
|
this.$message.success(this.$t(this.key('operation_success')))
|
||||||
this.pagination.current = Math.min(
|
this.pagination.current = Math.min(
|
||||||
@@ -415,8 +421,7 @@ export default {
|
|||||||
sendData: {
|
sendData: {
|
||||||
action: 'set_tray_inactivity',
|
action: 'set_tray_inactivity',
|
||||||
param: {
|
param: {
|
||||||
batch: row.batch,
|
data: [{ tray: row.tray }]
|
||||||
tray: row.tray
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user