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