Browse Source

器具管理页面展示

master_hella_20240701
chenfang 6 months ago
parent
commit
4fc6afb05c
  1. 4
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts
  2. 40
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

4
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts

@ -57,9 +57,7 @@ export const ContainerRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isForm: false, isForm: false,
table: { isTable:false
width: 150
},
}, },
{ {
label: '备注', label: '备注',

40
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

@ -79,7 +79,7 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const businessType = ref() const businessType = ref()
const importFileName = ref() const importFileName = ref()
const tableColumns = ref(ContainerRecordMain.allSchemas.tableColumns) const tableColumns = ref([...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: ContainerRecordDetailApi.getContainerRecordDetailPage // getListApi: ContainerRecordDetailApi.getContainerRecordDetailPage //
@ -93,36 +93,36 @@ const { tableObject, tableMethods } = useTable({
tableObject.params = { tableObject.params = {
type:'RETURN' type:'RETURN'
} }
ContainerRecordMain.allSchemas.formSchema.forEach(item=>{
if(item.field == 'type'){
item.value = "RETURN"
}});
businessType.value = 'ReturnContainerManage' businessType.value = 'ReturnContainerManage'
importFileName.value = '器具返回申请' importFileName.value = '器具返回记录'
} else if ( routeName.value == 'MoveContainerManage') { } else if ( routeName.value == 'MoveContainerManage') {
tableObject.params = { tableObject.params = {
type:'MOVE' type:'MOVE'
} }
ContainerRecordMain.allSchemas.formSchema.forEach(item=>{
if(item.field == 'type'){
item.value = "MOVE"
}});
businessType.value = 'MoveContainerManage' businessType.value = 'MoveContainerManage'
importFileName.value = '器具转移申请' importFileName.value = '器具转移记录'
} else if ( routeName.value == 'InitialContainerManage') {
tableObject.params = {
type:'INITIAL',
}
businessType.value = 'InitialContainerManage'
importFileName.value = '器具初始化记录'
}
else if ( routeName.value == 'ScrapContainerManage') {
tableObject.params = {
type:'SCRAP'
}
businessType.value = 'ScrapContainerManage'
importFileName.value = '器具报废记录'
} else if ( routeName.value == 'DeliverContainerManage') { } else if ( routeName.value == 'DeliverContainerManage') {
tableObject.params = { tableObject.params = {
type: 'DELIVER', type: 'DELIVER',
} }
//
ContainerRecordMain.allSchemas.formSchema.forEach(item=>{
if(item.field == 'type'){
item.value = "DELIVER"
}});
businessType.value = 'DeliverContainerManage' businessType.value = 'DeliverContainerManage'
importFileName.value = '器具发运申请' importFileName.value = '器具发运记录'
} else if( routeName.value == 'ContainerManage'){ } else if( routeName.value == 'ContainerManage'){
businessType.value = 'ContainerManage' businessType.value = 'ContainerManage'
importFileName.value = '器具管理申请' importFileName.value = '器具管理记录'
} }
@ -136,8 +136,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:containerRecordMain:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:container-record-detail:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:containerRecordMain:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:container-record-detail:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save