Browse Source

HL-4935 WMS WEB端预生产和装配报工记录中增加撤销报工操作选项,实现快速制品回收

hella_online_20240823
李达明 1 month ago
parent
commit
9b987ee671
  1. 1
      src/api/wms/productreceiptRecordMain/index.ts
  2. 3
      src/locales/zh-CN.ts
  3. 11
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
  4. 10
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

1
src/api/wms/productreceiptRecordMain/index.ts

@ -25,6 +25,7 @@ export interface ProductreceiptRecordMainVO {
toAreaTypes: string toAreaTypes: string
toAreaCodes: string toAreaCodes: string
available: string available: string
inventoryStatus:string
} }
// 查询制品收货记录主列表 // 查询制品收货记录主列表

3
src/locales/zh-CN.ts

@ -1277,7 +1277,8 @@ export default {
:'请输入联系电话', :'请输入联系电话',
:'请选择范围', :'请选择范围',
'确认撤销报工吗?': "确认撤销报工吗?", '确认撤销报工吗?': "确认撤销报工吗?",
'收货数量不可以大于订单数量!':'收货数量不可以大于订单数量' '收货数量不可以大于订单数量!':'收货数量不可以大于订单数量',
:'撤销报工成功',
}, },
} }

11
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -252,8 +252,15 @@ const labelRecovery = async (row) => {
try { try {
await message.confirm(t('ts.确认撤销报工吗?')) await message.confirm(t('ts.确认撤销报工吗?'))
tableObject.loading = true tableObject.loading = true
let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(row) const params = ref({
message.success(t('ts.确认撤销报工成功')) number: '',
inventoryStatus: '',
})
params.number= row.number;
params.inventoryStatus= row.inventoryStatus;
let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(params);
message.success(t('ts.撤销报工成功'))
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false

10
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -281,8 +281,14 @@ const handleCreatePutawayRequest = async (number:string) => {
const labelRecovery = async (row) => { const labelRecovery = async (row) => {
try { try {
await message.confirm(t('ts.确认撤销报工吗?')) await message.confirm(t('ts.确认撤销报工吗?'))
let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(row) const params = ref({
message.success(t('ts.确认撤销报工成功')) number: '',
inventoryStatus: '',
})
params.number= row.number;
params.inventoryStatus= row.inventoryStatus;
let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(params)
message.success(t('ts.撤销报工成功'))
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false

Loading…
Cancel
Save