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"
>
-
+
{{ row.itemCode }}
-
+
-
+ :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