Browse Source

新移动记录

linshi20240813
wangyufei 3 months ago
parent
commit
f1b643d132
  1. 3
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue
  2. 40
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts

3
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

@ -241,6 +241,8 @@ const submitForm = async (formType, submitData) => {
item.toBatch = item.fromBatch
item.fromLocationCode = data.fromLocationCode
item.toLocationCode = data.toLocationCode
item.toInventoryStatus = data.toInventoryStatus
if(item.qty == 0){
message.error(`到数量不能为0!`)
flag.value = true
@ -276,6 +278,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
val.forEach(item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow['fromPackingNumber'] = item['packingNumber']
newRow['toPackingNumber'] = item['packingNumber']
newRow['fromContainerNumber'] = item['containerNumber']
newRow['itemCode'] = item['itemCode']
newRow['fromBatch'] = item['batch']

40
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts

@ -167,6 +167,26 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '到库存状态',
field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: false,
type: 'Select'
},
form: {
componentProps: {
disabled: false
}
}
},
{
label: '截止时间',
field: 'dueTime',
@ -303,26 +323,6 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
}
}
},
{
label: '到库存状态',
field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: false,
type: 'Select'
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '包装规格',
field: 'packUnit',

Loading…
Cancel
Save