Browse Source

已发未结界面优化

intex_online20241111
ljlong_2630 3 months ago
parent
commit
6b2492c739
  1. 123
      src/views/wms/deliversettlementManage/unfinishedShipmentDetail/unfinishedShipmentDetail.data.ts
  2. 8
      src/views/wms/deliversettlementManage/unfinishedShipmentMain/index.vue

123
src/views/wms/deliversettlementManage/unfinishedShipmentDetail/unfinishedShipmentDetail.data.ts

@ -15,32 +15,23 @@ export const UnfinishedShipmentDetailRules = reactive({
}) })
export const UnfinishedShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const UnfinishedShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '自增主键',
field: 'id',
sort: 'custom',
isForm: false
},
{
label: '父主键',
field: 'masterId',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
}
},
{ {
label: '物料代码', label: '物料代码',
field: 'materialCode', field: 'materialCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true isSearch: true
}, },
{ {
label: '物料名称', label: '物料名称',
field: 'materialName', field: 'materialName',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true isSearch: true
}, },
{ {
@ -88,22 +79,22 @@ export const UnfinishedShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 0 value: 0
} }
}, },
{ // {
label: '是否可用', // label: '是否可用',
field: 'available', // field: 'available',
sort: 'custom', // sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, // dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑 // dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true, // isSearch: true,
form: { // form: {
component: 'Switch', // component: 'Switch',
value: 'TRUE', // value: 'TRUE',
componentProps: { // componentProps: {
inactiveValue: 'FALSE', // inactiveValue: 'FALSE',
activeValue: 'TRUE' // activeValue: 'TRUE'
} // }
} // }
}, // },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -120,63 +111,13 @@ export const UnfinishedShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false isForm: false
}, },
{ // {
label: '删除时间', // label: '操作',
field: 'deletionTime', // field: 'action',
sort: 'custom', // isForm: false,
formatter: dateFormatter, // table: {
isSearch: true, // width: 150,
search: { // fixed: 'right'
component: 'DatePicker', // }
componentProps: { // }
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
}
},
{
label: '删除者ID',
field: 'deleterId',
sort: 'custom',
isSearch: true
},
{
label: '扩展属性',
field: 'extraProperties',
sort: 'custom',
isSearch: true
},
{
label: '并发乐观锁',
field: 'concurrencyStamp',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
}
},
{
label: '地点id',
field: 'siteId',
sort: 'custom',
isSearch: true
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
])) ]))

8
src/views/wms/deliversettlementManage/unfinishedShipmentMain/index.vue

@ -1,7 +1,7 @@
<template> <template>
<ContentWrap> <ContentWrap>
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<Search :schema="UnfinishedShipmentMain.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> <Search :schema="[...UnfinishedShipmentMain.allSchemas.searchSchema,...UnfinishedShipmentDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
@ -12,6 +12,7 @@
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:allSchemas="UnfinishedShipmentMain.allSchemas" :allSchemas="UnfinishedShipmentMain.allSchemas"
:detailAllSchemas="UnfinishedShipmentDetail.allSchemas"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -57,6 +58,7 @@
:allSchemas="UnfinishedShipmentMain.allSchemas" :allSchemas="UnfinishedShipmentMain.allSchemas"
:detailAllSchemas="UnfinishedShipmentDetail.allSchemas" :detailAllSchemas="UnfinishedShipmentDetail.allSchemas"
:detailAllSchemasRules="UnfinishedShipmentDetailRules" :detailAllSchemasRules="UnfinishedShipmentDetailRules"
:apiPage="UnfinishedShipmentDetailApi.getUnfinishedShipmentDetailPage"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -82,7 +84,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // const route = useRoute() //
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(UnfinishedShipmentMain.allSchemas.tableColumns) const tableColumns = ref([...UnfinishedShipmentMain.allSchemas.tableColumns,...UnfinishedShipmentDetail.allSchemas.tableMainColumns])
// //
const searchTableSuccess = (formField, searchField, val, formRef) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
@ -99,7 +101,7 @@ const updataTableColumns = (val) => {
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: UnfinishedShipmentMainApi.getUnfinishedShipmentMainPage // getListApi: UnfinishedShipmentDetailApi.getUnfinishedShipmentDetailPage //
}) })
// //

Loading…
Cancel
Save