diff --git a/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts index 579f2a28a..8b65a711b 100644 --- a/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts @@ -233,11 +233,11 @@ export const ContainerRecordDetail = useCrudSchemas(reactive([ field: 'containerNumber', sort: 'custom' }, - // { - // label: '来源库位代码', - // field: 'fromLocationCode', - // sort: 'custom', - // }, + { + label: '来源库位代码', + field: 'fromLocationCode', + sort: 'custom', + }, { label: '目标库位代码', field: 'toLocationCode', diff --git a/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue index e3ea5e8cb..1709cedf0 100644 --- a/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue @@ -136,6 +136,25 @@ else if ( routeName.value == 'ScrapContainerManageRecord') { importFileName.value = '器具管理记录' } +if ( routeName.value == 'InitialContainerManageRecord') { + console.log('dodododo1') + console.log('dodododo1',tableColumns.value) + tableColumns.value = tableColumns.value.filter(item=>item.field != "fromLocationCode") + console.log('dodododo1',tableColumns.value) + // ContainerRecordDetail.allSchemas.formSchema.forEach((item) => { + // if(item.field == 'fromLocationCode'){ + // console.log('dodododo2') + // item.hidden = true + // } + // }) +}else{ + ContainerRecordDetail.allSchemas.formSchema.forEach((item) => { + if(item.field == 'fromLocationCode'){ + item.hidden = false + } + }) +} + // 字段设置 更新主列表字段 const updataTableColumns = (val) => {