diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
index 236ee8fe0..168b9c9e1 100644
--- a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
+++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
@@ -27,43 +27,47 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
-
-
- {{ row.code }}
+
+
+ {{ row.number }}
-
+
-
-
-
+
diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts
index a503624dc..feaa984b8 100644
--- a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts
+++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts
@@ -5,73 +5,81 @@ import { dateFormatter } from '@/utils/formatTime'
export const StockupMainRecordRules = reactive({
})
+//主表
export const StockupMainRecord = useCrudSchemas(reactive([
{
- label: 'id',
- field: 'id',
+ label: '单据号',
+ field: 'number',
sort: 'custom',
- isForm: false,
+ isSearch: true,
+ table: {
+ width: 180
+ },
},
{
label: '申请单号',
field: 'requestNumber',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 180
+ },
},
{
label: '任务单号',
field: 'jobNumber',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 180
+ },
},
{
label: '发货计划单号',
field: 'deliverPlanNumber',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 180
+ },
},
{
label: '从仓库代码',
field: 'fromWarehouseCode',
sort: 'custom',
- isSearch: true,
+ table: {
+ width: 150
+ },
},
{
label: '到仓库代码',
field: 'toWarehouseCode',
sort: 'custom',
- isSearch: true,
- },
- {
- label: '明细',
- field: 'details',
- sort: 'custom',
- isSearch: true,
+ table: {
+ width: 150
+ },
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
- isSearch: true,
- form: {
- component: 'SelectV2'
- },
+ table: {
+ width: 150
+ },
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom',
- isSearch: true,
- form: {
- component: 'SelectV2'
- },
+ table: {
+ width: 150
+ },
},
{
label: '执行时间',
field: 'executeTime',
sort: 'custom',
formatter: dateFormatter,
- isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
@@ -80,6 +88,9 @@ export const StockupMainRecord = useCrudSchemas(reactive([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
+ table: {
+ width: 180
+ },
form: {
component: 'DatePicker',
componentProps: {
@@ -93,46 +104,33 @@ export const StockupMainRecord = useCrudSchemas(reactive([
field: 'activeDate',
sort: 'custom',
formatter: dateFormatter,
- isSearch: true,
- search: {
- 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')]
- }
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
},
- {
- label: '是否可用',
- field: 'available',
- sort: 'custom',
- isSearch: true,
- },
{
label: '申请时间',
field: 'requestTime',
sort: 'custom',
formatter: dateFormatter,
- isSearch: true,
- search: {
- 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')]
- }
+ table: {
+ width: 180
},
form: {
component: 'DatePicker',
componentProps: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'datetime',
valueFormat: 'x'
}
@@ -143,7 +141,6 @@ export const StockupMainRecord = useCrudSchemas(reactive([
field: 'dueTime',
sort: 'custom',
formatter: dateFormatter,
- isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
@@ -152,6 +149,9 @@ export const StockupMainRecord = useCrudSchemas(reactive([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
+ table: {
+ width: 180
+ },
form: {
component: 'DatePicker',
componentProps: {
@@ -161,46 +161,280 @@ export const StockupMainRecord = useCrudSchemas(reactive([
},
},
{
- label: '部门',
- field: 'departmentCode',
+ label: '是否可用',
+ field: 'available',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: true,
sort: 'custom',
- isSearch: true,
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ }
},
{
- label: '用户组',
- field: 'userGroupCode',
+ label: '部门',
+ field: 'departmentCode',
sort: 'custom',
- isSearch: true,
+ table: {
+ width: 150
+ },
},
{
label: '接口类型',
field: 'interfaceType',
+ dictType: DICT_TYPE.INTERFACE_TYPE,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '业务类型',
+ field: 'businessType',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ table: {
+ width: 100
+ },
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ search: {
+ 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')]
+ }
+ },
+ table: {
+ width: 180
+ },
+ isForm: false,
+ },
+ {
+ label: '从库区类型范围',
+ field: 'fromAreaTypes',
+ dictType: DICT_TYPE.LOCATION_TYPE,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '从库区代码范围',
+ field: 'fromAreaCodes',
sort: 'custom',
isSearch: true,
- form: {
- component: 'SelectV2'
- },
},
+ {
+ label: '到库区类型范围',
+ field: 'toAreaTypes',
+ dictType: DICT_TYPE.LOCATION_TYPE,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '到库区代码范围',
+ field: 'toAreaCodes',
+ sort: 'custom',
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
+]))
+//子表
+// 表单校验
+export const StockupDetailRecordRules = reactive({
+})
+
+export const StockupDetailRecord = useCrudSchemas(reactive([
{
label: '单据号',
field: 'number',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 180
+ },
},
{
- label: '业务类型',
- field: 'businessType',
+ label: '包装号',
+ field: 'packingNumber',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '批次',
+ field: 'batch',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '库存状态',
+ field: 'inventoryStatus',
+ dictType: DICT_TYPE.INVENTORY_STATUS,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '从货主代码',
+ field: 'fromOwnerCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '从器具号',
+ field: 'fromContainerNumber',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '从库位代码',
+ field: 'fromLocationCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '从库位组代码',
+ field: 'fromLocationGroupCode',
sort: 'custom',
isSearch: true,
- form: {
- component: 'SelectV2'
- },
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '从库区代码',
+ field: 'fromAreaCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '到货主代码',
+ field: 'toOwnerCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '到器具号',
+ field: 'toContainerNumber',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '到库位代码',
+ field: 'toLocationCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '到库位组代码',
+ field: 'toLocationGroupCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '到库区代码',
+ field: 'toAreaCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '单价',
+ field: 'singlePrice',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '金额',
+ field: 'amount',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 150
+ },
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 150
+ },
},
{
label: '创建时间',
@@ -208,6 +442,9 @@ export const StockupMainRecord = useCrudSchemas(reactive([
sort: 'custom',
formatter: dateFormatter,
isSearch: true,
+ table: {
+ width: 180
+ },
search: {
component: 'DatePicker',
componentProps: {
@@ -219,46 +456,100 @@ export const StockupMainRecord = useCrudSchemas(reactive([
isForm: false,
},
{
- label: '扩展属性',
- field: 'extraProperties',
+ label: '物品代码',
+ field: 'itemCode',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 150
+ },
},
{
- label: '地点ID',
- field: 'siteId',
+ label: '物品名称',
+ field: 'itemName',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 150
+ },
},
{
- label: '代码',
- field: 'code',
+ label: '物品描述1',
+ field: 'itemDesc1',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 150
+ },
},
{
- label: '从库区类型范围',
- field: 'fromAreaTypes',
+ label: '物品描述2',
+ field: 'itemDesc2',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 150
+ },
},
{
- label: '从库区代码范围',
- field: 'fromAreaCodes',
+ label: '项目代码',
+ field: 'projectCode',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 150
+ },
},
{
- label: '到库区类型范围',
- field: 'toAreaTypes',
+ label: '数量',
+ field: 'qty',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 150
+ },
},
{
- label: '到库区代码范围',
- field: 'toAreaCodes',
+ label: '计量单位',
+ field: 'uom',
+ dictType: DICT_TYPE.UOM,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '接口类型',
+ field: 'interfaceType',
+ dictType: DICT_TYPE.INTERFACE_TYPE,
+ dictClass: 'string',
+ isTable: true,
sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '是否可用',
+ field: 'available',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
isSearch: true,
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ }
},
{
label: '操作',