Browse Source

库存事务

hella_online_20240829
wangyufei 2 months ago
parent
commit
a41dce66f7
  1. 294
      src/views/wms/inventoryManage/transaction/transaction.data.ts

294
src/views/wms/inventoryManage/transaction/transaction.data.ts

@ -21,19 +21,6 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '库存动作',
field: 'inventoryAction',
dictType: DICT_TYPE.INVENTORY_ACTION,
dictClass: 'string',
isTable: true,
isSearch: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '业务类型', label: '业务类型',
field: 'businessType', field: 'businessType',
@ -43,7 +30,7 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '记录号', label: '业务记录号',
field: 'recordNumber', field: 'recordNumber',
sort: 'custom', sort: 'custom',
isTable: true, isTable: true,
@ -53,90 +40,81 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '物料代码', label: '操作时间',
field: 'itemCode', field: 'createTime',
sort: 'custom', formatter: dateFormatter,
table: { detail: {
width: 150 dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
isSearch: true,
}, },
{
label: '数量',
field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
form: { form: {
component: 'InputNumber', component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
isForm: false
},
{ {
label: '计量单位', label: '操作人',
field: 'uom', field: 'worker',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '库区类型', label: '库存动作',
field: 'areaType', field: 'inventoryAction',
sort: 'custom', dictType: DICT_TYPE.INVENTORY_ACTION,
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
table: { isSearch: true,
width: 150
},
},
{
label: '包装规格',
field: 'packUnit',
sort: 'custom',
table: {
width: 150
},
},
{
label: '包装数量',
field: 'packQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '单价', label: '库位代码',
field: 'singlePrice', field: 'locationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '金额', label: '物料代码',
field: 'amount', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
}, },
{ {
label: '包装号', label: '数量',
field: 'packingNumber', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '器具号', label: '计量单位',
field: 'containerNumber', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -152,8 +130,8 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '库位代码', label: '包装号',
field: 'locationCode', field: 'packingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -172,16 +150,16 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '仓库代码', label: '包装规格',
field: 'warehouseCode', field: 'packUnit',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '库区代码', label: '包装数量',
field: 'areaCode', field: 'packQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -196,19 +174,19 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: 'ERP库位代码', label: '库区类型',
field: 'erpLocationCode', field: 'areaType',
dictType: DICT_TYPE.ERP_LOCATION, sort: 'custom',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '替代批次', label: '仓库代码',
field: 'altBatch', field: 'warehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -307,78 +285,110 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '操作员',
field: 'worker',
sort: 'custom',
table: {
width: 150
},
},
{ // {
label: '创建时间', // label: '单价',
field: 'createTime', // field: 'singlePrice',
formatter: dateFormatter, // sort: 'custom',
detail: { // table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' // width: 150
}, // },
sort: 'custom', // },
table: { // {
width: 180 // label: '金额',
}, // field: 'amount',
form: { // sort: 'custom',
component: 'DatePicker', // table: {
componentProps: { // width: 150
style: {width:'100%'}, // },
type: 'datetime', // },
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', // {
} // label: '器具号',
}, // field: 'containerNumber',
isForm: false // sort: 'custom',
}, // table: {
{ // width: 150
label: '创建者', // },
field: 'creator', // },
sort: 'custom', // {
table: { // label: '库区代码',
width: 150 // field: 'areaCode',
}, // sort: 'custom',
isForm: false // table: {
}, // width: 150
{ // },
label: '最后更新时间', // },
field: 'updateTime',
formatter: dateFormatter, // {
detail: { // label: 'ERP库位代码',
dateFormat: 'YYYY-MM-DD HH:mm:ss' // field: 'erpLocationCode',
}, // dictType: DICT_TYPE.ERP_LOCATION,
sort: 'custom', // dictClass: 'string',
table: { // isTable: true,
width: 180 // sort: 'custom',
}, // table: {
form: { // width: 150
component: 'DatePicker', // },
componentProps: { // },
style: {width:'100%'}, // {
type: 'datetime', // label: '替代批次',
dateFormat: 'YYYY-MM-DD HH:mm:ss', // field: 'altBatch',
valueFormat: 'x', // sort: 'custom',
} // table: {
}, // width: 150
isForm: false, // },
isTable: false // },
},
{ // {
label: '最后更新者', // label: '创建者',
field: 'updater', // field: 'creator',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isForm: false, // isForm: false
isTable: false // },
}, // {
// label: '最后更新时间',
// field: 'updateTime',
// formatter: dateFormatter,
// detail: {
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
// },
// sort: 'custom',
// table: {
// width: 180
// },
// form: {
// component: 'DatePicker',
// componentProps: {
// style: {width:'100%'},
// type: 'datetime',
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
// valueFormat: 'x',
// }
// },
// isForm: false,
// isTable: false
// },
// {
// label: '最后更新者',
// field: 'updater',
// sort: 'custom',
// table: {
// width: 150
// },
// isForm: false,
// isTable: false
// },
])) ]))
// 表单校验 // 表单校验

Loading…
Cancel
Save