From 1ee24dd649e710add30a954c1a2ab86c4fd6c027 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com>
Date: Sun, 17 Mar 2024 11:53:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E4=BD=8D=E6=A0=87=E7=AD=BE=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../labelManage/locationLabel/index.vue | 203 ++++++++++++++++++
.../locationLabel/locationLabel.data.ts | 103 +++++++++
.../manufacturePackage.data.ts | 10 +-
.../utensilPackage/utensilPackage.data.ts | 20 +-
4 files changed, 321 insertions(+), 15 deletions(-)
create mode 100644 src/views/wms/basicDataManage/labelManage/locationLabel/index.vue
create mode 100644 src/views/wms/basicDataManage/labelManage/locationLabel/locationLabel.data.ts
diff --git a/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue b/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue
new file mode 100644
index 000000000..3ba42a031
--- /dev/null
+++ b/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue
@@ -0,0 +1,203 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wms/basicDataManage/labelManage/locationLabel/locationLabel.data.ts b/src/views/wms/basicDataManage/labelManage/locationLabel/locationLabel.data.ts
new file mode 100644
index 000000000..43008e207
--- /dev/null
+++ b/src/views/wms/basicDataManage/labelManage/locationLabel/locationLabel.data.ts
@@ -0,0 +1,103 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+
+// 表单校验
+export const PackageRules = reactive({
+ number: [required],
+ itemCode: [required],
+ itemName: [required],
+})
+export const Package = useCrudSchemas(reactive([
+ {
+ label: '标签号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ fixed: 'left'
+ }
+ },
+ {
+ label: '标签类型',
+ field: 'type',
+ sort: 'custom',
+ isSearch: true,
+ dictType: DICT_TYPE.LABEL_TYPE,
+ dictClass: 'string'
+ },
+ // {
+ // label: '标签模板',
+ // field: 'template',
+ // sort: 'custom',
+ // },
+ {
+ label: '标签状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: true,
+ dictType: DICT_TYPE.LABEL_STATUS,
+ dictClass: 'string'
+ },
+ {
+ label: '关联号',
+ field: 'relateNumber',
+ sort: 'custom',
+ },
+ {
+ label: '标签条码字符串',
+ field: 'barcodeString',
+ sort: 'custom',
+ table: {
+ width: 170,
+ }
+ },
+ {
+ label: '打印次数',
+ field: 'printTimes',
+ sort: 'custom',
+ form: {
+ component: 'InputNumber',
+ componentProps: {
+ min: 0
+ },
+ value: 0
+ },
+ },
+ {
+ label: '最后打印时间',
+ field: 'lastPrintTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ style: {width:'100%'},
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x',
+ }
+ },
+ },
+ {
+ label: '最后打印人ID',
+ field: 'lastPrintUserId',
+ sort: 'custom'
+ },
+ {
+ label: '最后打印人用户名',
+ field: 'lastPrintUserName',
+ sort: 'custom',
+ table: {
+ width: 170,
+ }
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
+]))
diff --git a/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts b/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
index 296e93f68..0e64f1e11 100644
--- a/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
+++ b/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
@@ -35,11 +35,11 @@ export const Package = useCrudSchemas(reactive([
dictType: DICT_TYPE.LABEL_TYPE,
dictClass: 'string'
},
- {
- label: '标签模板',
- field: 'template',
- sort: 'custom',
- },
+ // {
+ // label: '标签模板',
+ // field: 'template',
+ // sort: 'custom',
+ // },
{
label: '标签状态',
field: 'status',
diff --git a/src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts b/src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts
index d82ab1f4d..143b0e831 100644
--- a/src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts
+++ b/src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts
@@ -37,11 +37,11 @@ export const Package = useCrudSchemas(reactive([
dictType: DICT_TYPE.LABEL_TYPE,
dictClass: 'string'
},
- {
- label: '标签模板',
- field: 'template',
- sort: 'custom',
- },
+ // {
+ // label: '标签模板',
+ // field: 'template',
+ // sort: 'custom',
+ // },
{
label: '标签状态',
field: 'status',
@@ -50,11 +50,11 @@ export const Package = useCrudSchemas(reactive([
dictType: DICT_TYPE.LABEL_STATUS,
dictClass: 'string'
},
- {
- label: '关联号',
- field: 'relateNumber',
- sort: 'custom',
- },
+ // {
+ // label: '关联号',
+ // field: 'relateNumber',
+ // sort: 'custom',
+ // },
{
label: '标签条码字符串',
field: 'barcodeString',