diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue index b98e2a26d..fecfaaad5 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue @@ -95,6 +95,7 @@ import * as LocationApi from '@/api/wms/location' import { formatDate } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' import * as ruleApi from '@/api/wms/rule/index' +import { formatTime } from '@/utils/index' const { loadStart, loadDone } = usePageLoading() // 库存转移申请 // 只有库存转移申请在使用的 @@ -327,6 +328,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => newRow['uom'] = item['uom'] newRow['qty'] = item['qty'] newRow['toInventoryStatus'] = item['inventoryStatus']//库存移动申请 + newRow['toBatch'] = formatTime(new Date(), 'yyyyMMdd') tableData.value.push(newRow) }) }else if (formField == 'toLocationCode') { diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts index caf3af137..87aed3ab1 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts @@ -588,22 +588,27 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( } }, }, - // { - // label: '到批次', - // field: 'toBatch', - // sort: 'custom', - // table: { - // width: 150 - // }, - // isTableForm: true, - // isForm: false, - // tableForm: { - // disabled: true, - // placeholder: '请选择从批次', - // valueFormat: 'YYYYMMDD', - // format: 'YYYYMMDD', - // }, - // }, + { + label: '到批次', + field: 'toBatch', + sort: 'custom', + table: { + width: 150 + }, + tableForm: { + disabled: false, + type:'FormDate', + placeholder: '请选择到批次', + valueFormat: 'YYYYMMDD', + format: 'YYYYMMDD', + }, + form: { + componentProps: { + disabled: false, + valueFormat: 'YYYYMMDD', + } + } + }, { label: '从包装号', field: 'fromPackingNumber',