From 7880748df391004e4779f2ae96471bbd7b72058e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 10 Oct 2023 19:56:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E8=A3=85=E4=BF=A1=E6=81=AF=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/disposition/tableColumns.ts | 125 +++++++++ src/views/wms/itempackaging/index.vue | 376 +++++++------------------- 2 files changed, 217 insertions(+), 284 deletions(-) diff --git a/src/utils/disposition/tableColumns.ts b/src/utils/disposition/tableColumns.ts index e16066b89..dde413872 100644 --- a/src/utils/disposition/tableColumns.ts +++ b/src/utils/disposition/tableColumns.ts @@ -284,6 +284,131 @@ export const ItemBasicRules = reactive({ ], }) +/** + * @returns {Array} 基础包装信息 + */ +export const Itempackaging = useCrudSchemas(reactive([ + { + label: '物品代码', + field: 'itemCode', + table: { + width: 150 + } + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '包装单位', + field: 'stdPackUnit', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '包装数量', + field: 'stdPackQty' + }, + { + label: '替代包装单位', + field: 'altPackUnit1', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '替代包装量', + field: 'altPackQty1' + }, + { + label: '替代包装单位', + field: 'altPackUnit1', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '替代包装量', + field: 'altPackQty2' + }, + { + label: '替代包装单位', + field: 'altPackUnit3', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '替代包装量', + field: 'altPackQty3' + }, + { + label: '替代包装单位', + field: 'altPackUnit4', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string' + }, + { + label: '替代包装量', + field: 'altPackQty4' + }, + { + label: '是否可用', + field: 'available', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string' + }, + { + label: '生效时间', + field: 'activeTime', + isTable: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '失效时间', + field: 'expireTime', + isTable: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '创建时间', + field: 'createTime', + isTable: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + table: { + width: 150 + } + } +])) + + /** * @returns {Array} 基础质量信息 */ diff --git a/src/views/wms/itempackaging/index.vue b/src/views/wms/itempackaging/index.vue index 99b8457b9..7fc1c337a 100644 --- a/src/views/wms/itempackaging/index.vue +++ b/src/views/wms/itempackaging/index.vue @@ -1,243 +1,47 @@