1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
import { doFetch } from "@/utils/doFetch";
import {
factorySelect,
shopSelectByFactory,
StoreAreaselection,
storeselectionBoxAll,
} from "@/services/system";
export default {
storePositionCode: {
value: null,
type: "input",
title: "库位编码",
name: ["storePositionCode"],
required: true,
},
storePositionName: {
value: null,
type: "input",
title: "库位名称",
name: ["storePositionName"],
required: true,
},
factoryId: {
value: null,
type: "select",
title: "所属工厂",
name: ["factoryId"],
required: true,
options: {
database: factorySelect,
params: {},
},
linked: true,
},
storeId: {
value: null,
type: "select",
title: "所属仓库",
name: ["storeId"],
required: true,
linked: true,
belinked: {
options: {
database: storeselectionBoxAll,
params: {
factoryId: "linked",
},
},
},
},
storeAreaId: {
value: null,
type: "select",
title: "所属库区",
name: ["storeAreaId"],
required: true,
belinked: {
options: {
database: StoreAreaselection,
params: {
storeId: "linked",
},
},
},
linked: true,
},
status: {
value: 1,
type: "select",
name: ["status"],
title: "库位状态",
required: false,
options: [
{
label: "启用",
value: 1,
},
{
label: "停用",
value: 2,
},
],
},
/* `isMovePosition` 是对象中表示表单字段的属性。它的类型为“radio”,这意味着它将在表单中呈现为单选按钮组。用户可以选择“是”(是)或“否”(否)作为该字段的值。 */
/* `isMovePosition` 是对象中表示表单字段的属性。它的类型为“radio”,这意味着它将在表单中呈现为单选按钮组。用户可以选择“是”(是)或“否”(否)作为该字段的值。 */
isMovePosition: {
value: 1,
type: "select",
name: ["isMovePosition"],
title: "是否为移库库位",
required: false,
options: [
{
label: "是",
value: 1,
},
{
label: "否",
value: 0,
},
],
},
wzpz: {
type: "split",
title: "位置配置",
name: ["wzpz"],
col: { span: 24 },
},
row: {
value: null,
type: "input",
title: "排",
name: ["row"],
required: false,
},
line: {
value: null,
type: "input",
title: "列",
name: ["line"],
required: false,
},
level: {
value: null,
type: "input",
title: "层",
name: ["level"],
required: false,
allowHalf: true,
},
roadway: {
value: null,
type: "input",
title: "巷道",
name: ["roadway"],
required: false,
allowHalf: true,
},
remark: {
value: null,
type: "textarea",
title: "备注",
name: ["remark"],
required: false,
col: { span: 24 },
},
};