From a41dce66f7de7ffb905f4b6f9692277bffa9a5db Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 24 Jul 2024 14:55:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BA=8B=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../transaction/transaction.data.ts | 296 +++++++++--------- 1 file changed, 153 insertions(+), 143 deletions(-) diff --git a/src/views/wms/inventoryManage/transaction/transaction.data.ts b/src/views/wms/inventoryManage/transaction/transaction.data.ts index 739f17ec6..ab50926b2 100644 --- a/src/views/wms/inventoryManage/transaction/transaction.data.ts +++ b/src/views/wms/inventoryManage/transaction/transaction.data.ts @@ -21,19 +21,6 @@ export const Transaction = useCrudSchemas(reactive([ width: 150 }, }, - { - label: '库存动作', - field: 'inventoryAction', - dictType: DICT_TYPE.INVENTORY_ACTION, - dictClass: 'string', - isTable: true, - isSearch: true, - sort: 'custom', - table: { - width: 150 - }, - }, - { label: '业务类型', field: 'businessType', @@ -43,7 +30,7 @@ export const Transaction = useCrudSchemas(reactive([ }, }, { - label: '记录号', + label: '业务记录号', field: 'recordNumber', sort: 'custom', isTable: true, @@ -53,90 +40,81 @@ export const Transaction = useCrudSchemas(reactive([ }, }, { - label: '物料代码', - field: 'itemCode', - sort: 'custom', - table: { - width: 150 + label: '操作时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' }, - isSearch: true, - }, - { - label: '数量', - field: 'qty', sort: 'custom', table: { - width: 150 + width: 180 }, form: { - component: 'InputNumber', - } + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + isForm: false }, { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - isTable: true, + label: '操作人', + field: 'worker', sort: 'custom', table: { width: 150 }, }, { - label: '库区类型', - field: 'areaType', - sort: 'custom', - dictType: DICT_TYPE.AREA_TYPE, + label: '库存动作', + field: 'inventoryAction', + dictType: DICT_TYPE.INVENTORY_ACTION, dictClass: 'string', isTable: true, - table: { - width: 150 - }, - }, - { - label: '包装规格', - field: 'packUnit', - sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '包装数量', - field: 'packQty', + isSearch: true, sort: 'custom', table: { width: 150 }, }, { - label: '单价', - field: 'singlePrice', + label: '库位代码', + field: 'locationCode', sort: 'custom', table: { width: 150 }, }, { - label: '金额', - field: 'amount', + label: '物料代码', + field: 'itemCode', sort: 'custom', table: { width: 150 }, + isSearch: true, }, { - label: '包装号', - field: 'packingNumber', + label: '数量', + field: 'qty', sort: 'custom', table: { width: 150 }, + form: { + component: 'InputNumber', + } }, { - label: '器具号', - field: 'containerNumber', + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, sort: 'custom', table: { width: 150 @@ -152,8 +130,8 @@ export const Transaction = useCrudSchemas(reactive([ isSearch: true, }, { - label: '库位代码', - field: 'locationCode', + label: '包装号', + field: 'packingNumber', sort: 'custom', table: { width: 150 @@ -172,16 +150,16 @@ export const Transaction = useCrudSchemas(reactive([ }, }, { - label: '仓库代码', - field: 'warehouseCode', + label: '包装规格', + field: 'packUnit', sort: 'custom', table: { width: 150 }, }, { - label: '库区代码', - field: 'areaCode', + label: '包装数量', + field: 'packQty', sort: 'custom', table: { width: 150 @@ -196,19 +174,19 @@ export const Transaction = useCrudSchemas(reactive([ }, }, { - label: 'ERP库位代码', - field: 'erpLocationCode', - dictType: DICT_TYPE.ERP_LOCATION, + label: '库区类型', + field: 'areaType', + sort: 'custom', + dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', isTable: true, - sort: 'custom', table: { width: 150 }, }, { - label: '替代批次', - field: 'altBatch', + label: '仓库代码', + field: 'warehouseCode', sort: 'custom', table: { width: 150 @@ -307,78 +285,110 @@ export const Transaction = useCrudSchemas(reactive([ width: 150 }, }, - { - label: '操作员', - field: 'worker', - sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '创建时间', - field: 'createTime', - 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 - }, - { - label: '创建者', - field: 'creator', - sort: 'custom', - table: { - width: 150 - }, - isForm: 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 - }, + + + + + + + + + // { + // label: '单价', + // field: 'singlePrice', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, + // { + // label: '金额', + // field: 'amount', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, + + // { + // label: '器具号', + // field: 'containerNumber', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, + // { + // label: '库区代码', + // field: 'areaCode', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, + + // { + // label: 'ERP库位代码', + // field: 'erpLocationCode', + // dictType: DICT_TYPE.ERP_LOCATION, + // dictClass: 'string', + // isTable: true, + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, + // { + // label: '替代批次', + // field: 'altBatch', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, + + // { + // label: '创建者', + // field: 'creator', + // sort: 'custom', + // table: { + // width: 150 + // }, + // isForm: 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 + // }, ])) // 表单校验