From 6416a680b5d93308786f2f3cf2ff4d6b0e4ec48b Mon Sep 17 00:00:00 2001 From: chenfang Date: Thu, 14 Mar 2024 15:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=BA=93=E5=8C=BA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=AE=A1=E7=90=86=E4=B8=BB=E5=AD=90=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/itemarea/index.vue | 195 ++++++++++++------ .../itemManage/itemarea/itemarea.data.ts | 50 +++-- 2 files changed, 159 insertions(+), 86 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/itemarea/index.vue b/src/views/wms/basicDataManage/itemManage/itemarea/index.vue index 4ff27d7ea..9be383b88 100644 --- a/src/views/wms/basicDataManage/itemManage/itemarea/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itemarea/index.vue @@ -28,58 +28,71 @@ v-model:sort="tableObject.sort" > - + :detailButtonIsShowAdd="true" + :detailButtonIsShowDelete="true" + @detailOpenForm="detailOpenForm" + /> - + - diff --git a/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts b/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts index c693b29fe..61b173455 100644 --- a/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts @@ -322,13 +322,31 @@ export const Itemarea = useCrudSchemas(reactive([ label: '出库后剩余库存自动转换为出库包装规格', field: 'surplusToOutpackunit', sort: 'custom', - isSearch: false, + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + form: { + component: 'Switch', + value: 'FALSE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '超过高储是否允许叫料', field: 'allowIssueRequest', sort: 'custom', - isSearch: false, + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + form: { + component: 'Switch', + value: 'FALSE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '优先空库位', @@ -618,19 +636,14 @@ export const ItemareaRules = reactive({ */ export const ItemareaDetail = useCrudSchemas(reactive([ { - label: 'id', - field: 'id', + label: '库位组', + field: 'locationGroup', sort: 'custom', - isForm: false, }, { - label: '主表ID', - field: 'masterId', + label: '库位代码', + field: 'locationCode', sort: 'custom', - form: { - component: 'InputNumber', - value: 0 - }, }, { label: '备注', @@ -663,16 +676,6 @@ export const ItemareaDetail = useCrudSchemas(reactive([ sort: 'custom', isForm: false, }, - { - label: '库位组', - field: 'locationGroup', - sort: 'custom', - }, - { - label: '库位代码', - field: 'locationCode', - sort: 'custom', - }, { label: '操作', field: 'action', @@ -683,3 +686,8 @@ export const ItemareaDetail = useCrudSchemas(reactive([ } } ])) + +// 表单校验 +export const ItemareaDetailRules = reactive({ + +}) \ No newline at end of file