From cc09d55d314391bd9f18505ed670f82be22bee3a Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 17 Nov 2023 08:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../labelManage/manufacturePackage/index.vue | 267 +++++++++++ .../manufacturePackage.data.ts} | 13 +- .../labelManage/purchasePackage/index.vue | 267 +++++++++++ .../purchasePackage/purchasePackage.data.ts | 420 ++++++++++++++++++ .../{package => utensilPackage}/index.vue | 4 +- .../utensilPackage/utensilPackage.data.ts | 420 ++++++++++++++++++ 6 files changed, 1388 insertions(+), 3 deletions(-) create mode 100644 src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue rename src/views/wms/basicDataManage/labelManage/{package/package.data.ts => manufacturePackage/manufacturePackage.data.ts} (96%) create mode 100644 src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue create mode 100644 src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts rename src/views/wms/basicDataManage/labelManage/{package => utensilPackage}/index.vue (98%) create mode 100644 src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts diff --git a/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue b/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue new file mode 100644 index 000000000..2d01395dc --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue @@ -0,0 +1,267 @@ + + + diff --git a/src/views/wms/basicDataManage/labelManage/package/package.data.ts b/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts similarity index 96% rename from src/views/wms/basicDataManage/labelManage/package/package.data.ts rename to src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts index 0d7b79689..c7d72ffcd 100644 --- a/src/views/wms/basicDataManage/labelManage/package/package.data.ts +++ b/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts @@ -7,7 +7,18 @@ export const PackageRules = reactive({ itemCode: [required], itemName: [required], }) - +export const Package2 = useCrudSchemas(reactive([ + { + label: '包装号', + field: 'number', + sort: 'custom', + isSearch: true, + table: { + width: 150, + fixed: 'left' + }, + }, +])) export const Package = useCrudSchemas(reactive([ { label: '包装号', diff --git a/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue b/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue new file mode 100644 index 000000000..661931d10 --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue @@ -0,0 +1,267 @@ + + + diff --git a/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts b/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts new file mode 100644 index 000000000..c7d72ffcd --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts @@ -0,0 +1,420 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PackageRules = reactive({ + number: [required], + itemCode: [required], + itemName: [required], +}) +export const Package2 = useCrudSchemas(reactive([ + { + label: '包装号', + field: 'number', + sort: 'custom', + isSearch: true, + table: { + width: 150, + fixed: 'left' + }, + }, +])) +export const Package = useCrudSchemas(reactive([ + { + label: '包装号', + field: 'number', + sort: 'custom', + isSearch: true, + table: { + width: 150, + fixed: 'left' + }, + }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150, + }, + }, + { + label: '物品名称', + field: 'itemName', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '物品描述1', + field: 'itemDesc1', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '物品描述2', + field: 'itemDesc2', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + table: { + width: 150, + }, + }, + { + label: '替代批次', + field: 'altBatch', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '生产日期', + field: 'produceDate', + sort: 'custom', + formatter: dateFormatter, + search: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + 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' + } + }, + table: { + width: 180, + }, + }, + { + label: '有效期(日)', + field: 'validityDays', + sort: 'custom', + form: { + component: 'InputNumber', + componentProps: { + min: 0 + }, + value: 0 + }, + table: { + width: 150, + }, + }, + { + label: '失效日期', + field: 'expireDate', + sort: 'custom', + formatter: dateFormatter, + search: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + 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' + } + }, + table: { + width: 180, + }, + }, + { + label: '计量单位', + field: 'uom', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + form: { + component: 'SelectV2' + }, + table: { + width: 150, + }, + }, + { + label: '数量', + field: 'qty', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '替代计量单位', + field: 'altUom', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + form: { + component: 'SelectV2' + }, + table: { + width: 150, + }, + }, + { + label: '替代数量', + field: 'altQty', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '转换率', + field: 'convertRate', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '标包数量', + field: 'stdPackQty', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '标包单位', + field: 'stdPackUnit', + sort: 'custom', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + form: { + component: 'SelectV2' + }, + table: { + width: 150, + }, + }, + { + label: '仓库代码', + field: 'toWarehouseCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '月台代码', + field: 'toDockCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '库位代码', + field: 'toLocationCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '供应商物品代码', + field: 'supplierItemCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '采购订单号', + field: 'poNumber', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '采购订单行', + field: 'poLine', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '采购计划单号', + field: 'rpNumber', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '发货单号', + field: 'asnNumber', + sort: 'custom', + table: { + width: 182, + }, + }, + { + label: '生产订单号', + field: 'woNumber', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '生产订单行', + field: 'woLine', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '生产线代码', + field: 'productionLineCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '班组代码', + field: 'teamCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '班次代码', + field: 'shiftCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '客户代码', + field: 'customerCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '客户月台代码', + field: 'customerDockCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '客户物品代码', + field: 'customerItemCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '销售订单号', + field: 'soNumber', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '销售订单行', + field: 'soLine', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '质量等级', + field: 'eqLevel', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '货主代码', + field: 'ownerCode', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '重量', + field: 'weight', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '面积', + field: 'area', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '体积', + field: 'volume', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/basicDataManage/labelManage/package/index.vue b/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue similarity index 98% rename from src/views/wms/basicDataManage/labelManage/package/index.vue rename to src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue index e61c0cd73..1bceae1e8 100644 --- a/src/views/wms/basicDataManage/labelManage/package/index.vue +++ b/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue @@ -61,11 +61,11 @@