|
@@ -1,197 +1,204 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div>
|
3
|
3
|
<d2-container>
|
4
|
|
- <template slot="header">
|
5
|
|
- <div class="title">
|
6
|
|
- <div class="titleLeft">首页/仓房详情</div>
|
7
|
|
- <div>
|
8
|
|
- <el-button
|
9
|
|
- type="primary"
|
10
|
|
- icon="el-icon-arrow-left"
|
11
|
|
- @click="goBack()"
|
12
|
|
- >返回</el-button
|
13
|
|
- >
|
14
|
|
- </div>
|
15
|
|
- </div>
|
16
|
|
- </template>
|
|
4
|
+ <!-- <template slot="header"
|
|
5
|
+ ><div class="nav">当前所在位置:首页>仓房信息</div></template
|
|
6
|
+ > -->
|
17
|
7
|
<div class="main">
|
18
|
|
- <div class="head">
|
19
|
|
- <div class="backImg"></div>
|
20
|
|
- <div>保管员信息</div>
|
21
|
|
- </div>
|
22
|
|
-
|
23
|
|
- <el-form :inline="true" :model="form" class="demo-form-inline">
|
24
|
|
- <div class="middle">
|
25
|
|
- <el-form-item label="姓名:">
|
26
|
|
- <el-select v-model="form.name" placeholder="请选择">
|
27
|
|
- <el-option
|
28
|
|
- v-for="item in nameList"
|
29
|
|
- :key="item.value"
|
30
|
|
- :label="item.label"
|
31
|
|
- :value="item.value"
|
32
|
|
- >
|
33
|
|
- </el-option>
|
34
|
|
- </el-select>
|
35
|
|
- </el-form-item>
|
36
|
|
- <el-form-item label="联系方式">
|
37
|
|
- <el-input v-model="form.lxfs"></el-input>
|
38
|
|
- </el-form-item>
|
39
|
|
- </div>
|
40
|
|
- <div class="head">
|
41
|
|
- <div class="backImg"></div>
|
42
|
|
- <div>仓房信息</div>
|
43
|
|
- </div>
|
44
|
|
- <div class="middle">
|
45
|
|
- <el-form-item label="仓房状态">
|
46
|
|
- <el-radio-group v-model="form.cfState">
|
47
|
|
- <el-radio :label="0">入库</el-radio>
|
48
|
|
- <el-radio :label="1">出库</el-radio>
|
49
|
|
- <el-radio :label="2">库存</el-radio>
|
50
|
|
- <el-radio :label="3">空仓</el-radio>
|
51
|
|
- </el-radio-group>
|
52
|
|
- </el-form-item>
|
53
|
|
- <el-row>
|
54
|
|
- <el-col :span="12">
|
55
|
|
- <el-form-item label="所属仓库:">
|
56
|
|
- <el-select v-model="form.warehouse" placeholder="请选择">
|
57
|
|
- <el-option label="区域一" value="shanghai"></el-option>
|
58
|
|
- <el-option label="区域二" value="beijing"></el-option>
|
59
|
|
- </el-select>
|
60
|
|
- </el-form-item>
|
61
|
|
- </el-col>
|
62
|
|
- <el-col :span="12">
|
63
|
|
- <el-form-item label="仓房名称:">
|
64
|
|
- <el-input v-model="form.cfName"></el-input>
|
65
|
|
- </el-form-item>
|
66
|
|
- </el-col>
|
67
|
|
- </el-row>
|
68
|
|
- <el-row>
|
69
|
|
- <el-col :span="12">
|
70
|
|
- <el-form-item label="仓房类型:">
|
71
|
|
- <el-select v-model="form.cfType" placeholder="请选择">
|
72
|
|
- <el-option label="区域一" value="shanghai"></el-option>
|
73
|
|
- <el-option label="区域二" value="beijing"></el-option>
|
|
8
|
+ <div class="right_main">
|
|
9
|
+ <!-- <div class="right_title">
|
|
10
|
+ <i
|
|
11
|
+ class="fa fa-university"
|
|
12
|
+ aria-hidden="true"
|
|
13
|
+ style="padding-right: 5px"
|
|
14
|
+ ></i
|
|
15
|
+ >仓房信息
|
|
16
|
+ </div> -->
|
|
17
|
+ <div class="right_table">
|
|
18
|
+ <div class="head">
|
|
19
|
+ <div class="backImg"></div>
|
|
20
|
+ <div>保管员信息</div>
|
|
21
|
+ </div>
|
|
22
|
+ <el-form :inline="true" :model="form" class="demo-form-inline">
|
|
23
|
+ <div class="middle">
|
|
24
|
+ <el-form-item label="姓名:">
|
|
25
|
+ <el-select v-model="form.name" placeholder="请选择">
|
|
26
|
+ <el-option
|
|
27
|
+ v-for="item in nameList"
|
|
28
|
+ :key="item.value"
|
|
29
|
+ :label="item.label"
|
|
30
|
+ :value="item.value"
|
|
31
|
+ >
|
|
32
|
+ </el-option>
|
74
|
33
|
</el-select>
|
75
|
34
|
</el-form-item>
|
76
|
|
- </el-col>
|
77
|
|
- <el-col :span="12">
|
78
|
|
- <el-form-item label="创建时间:">
|
79
|
|
- <el-input v-model="form.creatTime"></el-input>
|
80
|
|
- </el-form-item>
|
81
|
|
- </el-col>
|
82
|
|
- </el-row>
|
83
|
|
- <el-row>
|
84
|
|
- <el-col :span="12">
|
85
|
|
- <el-form-item label="装粮线高度:">
|
86
|
|
- <el-input v-model="form.sjcr">
|
87
|
|
- <template slot="append">米</template>
|
88
|
|
- </el-input>
|
|
35
|
+ <el-form-item label="联系方式:">
|
|
36
|
+ <el-input v-model="form.lxfs"></el-input>
|
89
|
37
|
</el-form-item>
|
90
|
|
- </el-col>
|
91
|
|
- <el-col :span="12">
|
92
|
|
- <el-form-item label="设计仓容:">
|
93
|
|
- <el-input v-model="form.sjcr">
|
94
|
|
- <template slot="append">吨</template>
|
95
|
|
- </el-input>
|
|
38
|
+ </div>
|
|
39
|
+ <div class="head">
|
|
40
|
+ <div class="backImg"></div>
|
|
41
|
+ <div>仓房信息</div>
|
|
42
|
+ </div>
|
|
43
|
+ <div class="middle">
|
|
44
|
+ <el-form-item label="仓房状态">
|
|
45
|
+ <el-radio-group v-model="form.cfState">
|
|
46
|
+ <el-radio :label="0">入库</el-radio>
|
|
47
|
+ <el-radio :label="1">出库</el-radio>
|
|
48
|
+ <el-radio :label="2">库存</el-radio>
|
|
49
|
+ <el-radio :label="3">空仓</el-radio>
|
|
50
|
+ </el-radio-group>
|
96
|
51
|
</el-form-item>
|
97
|
|
- </el-col>
|
98
|
|
- </el-row>
|
99
|
|
- <el-row>
|
100
|
|
- <el-col :span="12">
|
101
|
|
- <el-form-item label="长:">
|
102
|
|
- <el-input v-model="form.sjcr">
|
103
|
|
- <template slot="append">米</template>
|
104
|
|
- </el-input>
|
105
|
|
- </el-form-item>
|
106
|
|
- </el-col>
|
107
|
|
- <el-col :span="12">
|
108
|
|
- <el-form-item label="宽:">
|
109
|
|
- <el-input v-model="form.sjcr">
|
110
|
|
- <template slot="append">米</template>
|
111
|
|
- </el-input>
|
112
|
|
- </el-form-item>
|
113
|
|
- </el-col>
|
114
|
|
- </el-row>
|
|
52
|
+ <el-row>
|
|
53
|
+ <el-col :span="12">
|
|
54
|
+ <el-form-item label="所属仓库:">
|
|
55
|
+ <el-select v-model="form.warehouse" placeholder="请选择">
|
|
56
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
57
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
58
|
+ </el-select>
|
|
59
|
+ </el-form-item>
|
|
60
|
+ </el-col>
|
|
61
|
+ <el-col :span="12">
|
|
62
|
+ <el-form-item label="仓房名称:">
|
|
63
|
+ <el-input v-model="form.cfName"></el-input>
|
|
64
|
+ </el-form-item>
|
|
65
|
+ </el-col>
|
|
66
|
+ </el-row>
|
|
67
|
+ <el-row>
|
|
68
|
+ <el-col :span="12">
|
|
69
|
+ <el-form-item label="仓房类型:">
|
|
70
|
+ <el-select v-model="form.cfType" placeholder="请选择">
|
|
71
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
72
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
73
|
+ </el-select>
|
|
74
|
+ </el-form-item>
|
|
75
|
+ </el-col>
|
|
76
|
+ <el-col :span="12">
|
|
77
|
+ <el-form-item label="创建时间:">
|
|
78
|
+ <el-input v-model="form.creatTime"></el-input>
|
|
79
|
+ </el-form-item>
|
|
80
|
+ </el-col>
|
|
81
|
+ </el-row>
|
|
82
|
+ <el-row>
|
|
83
|
+ <el-col :span="12">
|
|
84
|
+ <el-form-item label="装粮线高度:">
|
|
85
|
+ <el-input v-model="form.sjcr">
|
|
86
|
+ <template slot="append">米</template>
|
|
87
|
+ </el-input>
|
|
88
|
+ </el-form-item>
|
|
89
|
+ </el-col>
|
|
90
|
+ <el-col :span="12">
|
|
91
|
+ <el-form-item label="设计仓容:">
|
|
92
|
+ <el-input v-model="form.sjcr">
|
|
93
|
+ <template slot="append">吨</template>
|
|
94
|
+ </el-input>
|
|
95
|
+ </el-form-item>
|
|
96
|
+ </el-col>
|
|
97
|
+ </el-row>
|
|
98
|
+ <el-row>
|
|
99
|
+ <el-col :span="12">
|
|
100
|
+ <el-form-item label="长:">
|
|
101
|
+ <el-input v-model="form.sjcr">
|
|
102
|
+ <template slot="append">米</template>
|
|
103
|
+ </el-input>
|
|
104
|
+ </el-form-item>
|
|
105
|
+ </el-col>
|
|
106
|
+ <el-col :span="12">
|
|
107
|
+ <el-form-item label="宽:">
|
|
108
|
+ <el-input v-model="form.sjcr">
|
|
109
|
+ <template slot="append">米</template>
|
|
110
|
+ </el-input>
|
|
111
|
+ </el-form-item>
|
|
112
|
+ </el-col>
|
|
113
|
+ </el-row>
|
115
|
114
|
|
116
|
|
- <el-row>
|
117
|
|
- <el-col :span="12">
|
118
|
|
- <el-form-item label="仓内体积:">
|
119
|
|
- <el-input v-model="form.sjcr">
|
120
|
|
- <template slot="append">立方米</template>
|
121
|
|
- </el-input>
|
122
|
|
- </el-form-item>
|
123
|
|
- </el-col>
|
124
|
|
- <el-col :span="12">
|
125
|
|
- <el-form-item label="最近一次修改时间:">
|
126
|
|
- <el-input v-model="form.sjcr"> </el-input>
|
127
|
|
- </el-form-item>
|
128
|
|
- </el-col>
|
129
|
|
- </el-row>
|
130
|
|
- </div>
|
131
|
|
- </el-form>
|
132
|
|
- <div class="bottom">
|
133
|
|
- <div class="bottomHead">
|
134
|
|
- <div class="backImg"></div>
|
135
|
|
- <div>粮食信息</div>
|
136
|
|
- </div>
|
137
|
|
- <div>
|
138
|
|
- <el-button type="primary" icon="el-icon-plus" @click="add()">添加</el-button>
|
139
|
|
- </div>
|
140
|
|
- </div>
|
141
|
|
- <el-table :data="lsxxList" border style="width: 100%; margin-top: 10px" :header-cell-style="{ background: '#0064b9', color: '#c9f5fa' }">
|
142
|
|
- <el-table-column prop="varieties" label="品种" align="center">
|
143
|
|
- <template slot-scope="scope">
|
144
|
|
- <el-select
|
145
|
|
- v-model="scope.row.varieties"
|
146
|
|
- placeholder="请选择"
|
147
|
|
- >
|
148
|
|
- <el-option label="小麦" value="xiaomai"></el-option>
|
149
|
|
- <el-option label="大豆" value="dadou"></el-option>
|
|
115
|
+ <el-row>
|
|
116
|
+ <el-col :span="12">
|
|
117
|
+ <el-form-item label="仓内体积:">
|
|
118
|
+ <el-input v-model="form.sjcr">
|
|
119
|
+ <template slot="append">立方米</template>
|
|
120
|
+ </el-input>
|
|
121
|
+ </el-form-item>
|
|
122
|
+ </el-col>
|
|
123
|
+ <el-col :span="12">
|
|
124
|
+ <el-form-item label="最近一次修改时间:">
|
|
125
|
+ <el-input v-model="form.sjcr"> </el-input>
|
|
126
|
+ </el-form-item>
|
|
127
|
+ </el-col>
|
|
128
|
+ </el-row>
|
|
129
|
+ </div>
|
|
130
|
+ </el-form>
|
|
131
|
+ <div class="bottom">
|
|
132
|
+ <div class="bottomHead">
|
|
133
|
+ <div class="backImg"></div>
|
|
134
|
+ <div>粮食信息</div>
|
|
135
|
+ </div>
|
|
136
|
+ <div>
|
|
137
|
+ <el-button type="primary" icon="el-icon-plus" @click="add()"
|
|
138
|
+ >添加</el-button
|
|
139
|
+ >
|
|
140
|
+ </div>
|
|
141
|
+ </div>
|
|
142
|
+ <el-table
|
|
143
|
+ id="table"
|
|
144
|
+ :data="lsxxList"
|
|
145
|
+ border
|
|
146
|
+ style="width: 100%; margin-top: 10px"
|
|
147
|
+ :header-cell-style="{ background: '#0064b9', color: '#c9f5fa' }"
|
|
148
|
+ >
|
|
149
|
+ <el-table-column prop="varieties" label="品种" align="center">
|
|
150
|
+ <template slot-scope="scope">
|
|
151
|
+ <el-select v-model="scope.row.varieties" placeholder="请选择" class="tableInput">
|
|
152
|
+ <el-option label="小麦" value="xiaomai"></el-option>
|
|
153
|
+ <el-option label="大豆" value="dadou"></el-option>
|
150
|
154
|
|
151
|
|
- <el-option label="粳稻" value="jingdao"></el-option>
|
152
|
|
- <el-option label="籼稻" value="xiandao"></el-option>
|
153
|
|
- <el-option label="玉米" value="yumi"></el-option>
|
154
|
|
- </el-select>
|
155
|
|
- </template>
|
156
|
|
- </el-table-column>
|
157
|
|
- <el-table-column
|
158
|
|
- prop="cnlsrz"
|
159
|
|
- label="仓内粮食容重(公斤/立方米)"
|
160
|
|
- align="center"
|
161
|
|
- >
|
162
|
|
- <template slot-scope="scope">
|
163
|
|
- <el-input v-model="scope.row.cnlsrz" placeholder="请输入"></el-input>
|
164
|
|
- </template>
|
165
|
|
- </el-table-column>
|
166
|
|
- <el-table-column prop="grade" label="等级" align="center">
|
167
|
|
- <template slot-scope="scope">
|
168
|
|
- <el-select
|
169
|
|
- v-model="scope.row.grade"
|
170
|
|
- placeholder="请选择"
|
|
155
|
+ <el-option label="粳稻" value="jingdao"></el-option>
|
|
156
|
+ <el-option label="籼稻" value="xiandao"></el-option>
|
|
157
|
+ <el-option label="玉米" value="yumi"></el-option>
|
|
158
|
+ </el-select>
|
|
159
|
+ </template>
|
|
160
|
+ </el-table-column>
|
|
161
|
+ <el-table-column
|
|
162
|
+ prop="cnlsrz"
|
|
163
|
+ label="仓内粮食容重(公斤/立方米)"
|
|
164
|
+ align="center"
|
171
|
165
|
>
|
172
|
|
- <el-option label="一等" value="first"></el-option>
|
173
|
|
- <el-option label="二等" value="second"></el-option>
|
|
166
|
+ <template slot-scope="scope">
|
|
167
|
+ <el-input
|
|
168
|
+ v-model="scope.row.cnlsrz"
|
|
169
|
+ placeholder="请输入"
|
|
170
|
+ class="tableInput"
|
|
171
|
+ ></el-input>
|
|
172
|
+ </template>
|
|
173
|
+ </el-table-column>
|
|
174
|
+ <el-table-column prop="grade" label="等级" align="center">
|
|
175
|
+ <template slot-scope="scope">
|
|
176
|
+ <el-select v-model="scope.row.grade" placeholder="请选择" class="tableInput">
|
|
177
|
+ <el-option label="一等" value="first"></el-option>
|
|
178
|
+ <el-option label="二等" value="second"></el-option>
|
174
|
179
|
|
175
|
|
- <el-option label="三等" value="third"></el-option>
|
176
|
|
- <el-option label="四等" value="fourth"></el-option>
|
177
|
|
- <el-option label="五等" value="fifth"></el-option>
|
178
|
|
- <el-option label="等外" value="other"></el-option>
|
179
|
|
- </el-select>
|
180
|
|
- </template>
|
181
|
|
- </el-table-column>
|
182
|
|
- <el-table-column prop="rksj" label="首次入库时间" align="center">
|
183
|
|
- </el-table-column>
|
184
|
|
- <el-table-column align="center" label="操作">
|
185
|
|
- <template slot-scope="scope">
|
186
|
|
- <el-button type="text" size="small" icon="el-icon-edit"
|
187
|
|
- >编辑</el-button
|
188
|
|
- >
|
189
|
|
- <el-button type="text" size="small" icon="el-icon-delete"
|
190
|
|
- >删除</el-button
|
191
|
|
- >
|
192
|
|
- </template>
|
193
|
|
- </el-table-column>
|
194
|
|
- </el-table>
|
|
180
|
+ <el-option label="三等" value="third"></el-option>
|
|
181
|
+ <el-option label="四等" value="fourth"></el-option>
|
|
182
|
+ <el-option label="五等" value="fifth"></el-option>
|
|
183
|
+ <el-option label="等外" value="other"></el-option>
|
|
184
|
+ </el-select>
|
|
185
|
+ </template>
|
|
186
|
+ </el-table-column>
|
|
187
|
+ <el-table-column prop="rksj" label="首次入库时间" align="center">
|
|
188
|
+ </el-table-column>
|
|
189
|
+ <el-table-column align="center" label="操作">
|
|
190
|
+ <template slot-scope="scope">
|
|
191
|
+ <el-button type="text" size="small" icon="el-icon-edit"
|
|
192
|
+ >编辑</el-button
|
|
193
|
+ >
|
|
194
|
+ <el-button type="text" size="small" icon="el-icon-delete"
|
|
195
|
+ >删除</el-button
|
|
196
|
+ >
|
|
197
|
+ </template>
|
|
198
|
+ </el-table-column>
|
|
199
|
+ </el-table>
|
|
200
|
+ </div>
|
|
201
|
+ </div>
|
195
|
202
|
</div>
|
196
|
203
|
</d2-container>
|
197
|
204
|
</div>
|
|
@@ -217,32 +224,25 @@ export default {
|
217
|
224
|
lxfs: "",
|
218
|
225
|
},
|
219
|
226
|
//粮食信息表格列表
|
220
|
|
- lsxxList:[
|
221
|
|
- {
|
222
|
|
- varieties:"",
|
223
|
|
- cnlsrz:"",
|
224
|
|
- grade:"",
|
225
|
|
- rksj:""
|
226
|
|
-
|
227
|
|
- }
|
228
|
|
- ]
|
229
|
|
-
|
|
227
|
+ lsxxList: [
|
|
228
|
+ {
|
|
229
|
+ varieties: "",
|
|
230
|
+ cnlsrz: "",
|
|
231
|
+ grade: "",
|
|
232
|
+ rksj: "",
|
|
233
|
+ },
|
|
234
|
+ ],
|
230
|
235
|
};
|
231
|
236
|
},
|
232
|
237
|
methods: {
|
233
|
|
- //返回按钮
|
|
238
|
+ //返回按钮
|
234
|
239
|
goBack() {
|
235
|
240
|
window.history.go(-1);
|
236
|
241
|
},
|
237
|
242
|
//粮食信息添加
|
238
|
|
- add(){
|
239
|
|
- this.lsxxList.push(
|
240
|
|
- {varieties:"",
|
241
|
|
- cnlsrz:"",
|
242
|
|
- grade:"",
|
243
|
|
- rksj:""}
|
244
|
|
- )
|
245
|
|
- }
|
|
243
|
+ add() {
|
|
244
|
+ this.lsxxList.push({ varieties: "", cnlsrz: "", grade: "", rksj: "" });
|
|
245
|
+ },
|
246
|
246
|
},
|
247
|
247
|
};
|
248
|
248
|
</script>
|
|
@@ -255,7 +255,7 @@ export default {
|
255
|
255
|
}
|
256
|
256
|
}
|
257
|
257
|
.main {
|
258
|
|
- color: #fff;
|
|
258
|
+color: #9bbbe3;
|
259
|
259
|
.head,
|
260
|
260
|
.bottomHead {
|
261
|
261
|
height: 25px;
|
|
@@ -264,9 +264,10 @@ export default {
|
264
|
264
|
display: flex;
|
265
|
265
|
|
266
|
266
|
.backImg {
|
267
|
|
- width: 10px;
|
268
|
|
- height: 20px;
|
269
|
|
- background: blue;
|
|
267
|
+ width: 5px;
|
|
268
|
+ height: 15px;
|
|
269
|
+ background: rgb(59, 103, 213);
|
|
270
|
+ border-radius:3px;
|
270
|
271
|
margin-right: 10px;
|
271
|
272
|
}
|
272
|
273
|
}
|
|
@@ -280,14 +281,29 @@ export default {
|
280
|
281
|
display: flex;
|
281
|
282
|
justify-content: space-between;
|
282
|
283
|
}
|
283
|
|
- ::v-deep .el-form--inline .el-form-item__label{
|
284
|
|
- width:130px;
|
285
|
|
- color:#fff
|
286
|
|
- }
|
287
|
|
- .el-select,.el-input{
|
288
|
|
- width: 300px;
|
289
|
|
-}
|
290
|
|
-
|
291
|
|
-}
|
292
|
|
-</style>
|
|
284
|
+ ::v-deep .el-form--inline .el-form-item__label {
|
|
285
|
+ width: 130px;
|
|
286
|
+ color: #9bbbe3;
|
|
287
|
+ }
|
|
288
|
+ .el-select,
|
|
289
|
+ .el-input {
|
|
290
|
+ width:300px;
|
|
291
|
+ }
|
|
292
|
+ ::v-deep .el-input__inner{
|
|
293
|
+ background:#1d3b6b;
|
|
294
|
+ border:1px solid #345684;
|
|
295
|
+ opacity: 12.5;
|
|
296
|
+ }
|
|
297
|
+ ::v-deep .el-input-group__append{
|
|
298
|
+ background:#1d3b6b;
|
|
299
|
+ border:1px solid #345684;
|
|
300
|
+ opacity: 12.5;
|
|
301
|
+ }
|
|
302
|
+ #table .tableInput{
|
|
303
|
+ width: 100%;
|
|
304
|
+
|
|
305
|
+ }
|
293
|
306
|
|
|
307
|
+
|
|
308
|
+}
|
|
309
|
+</style>
|