|
@@ -17,14 +17,10 @@ |
|
@@ -17,14 +17,10 @@ |
17
|
width="120">
|
17
|
width="120">
|
18
|
</el-table-column>
|
18
|
</el-table-column>
|
19
|
<el-table-column
|
19
|
<el-table-column
|
20
|
- prop="vol"
|
|
|
21
|
- label="体积"
|
|
|
22
|
- width="60">
|
|
|
23
|
- </el-table-column>
|
|
|
24
|
- <el-table-column
|
|
|
25
|
- prop="weight"
|
|
|
26
|
- label="重量"
|
|
|
27
|
- width="60">
|
20
|
+ fixed
|
|
|
21
|
+ prop="billfhl"
|
|
|
22
|
+ label="分单号"
|
|
|
23
|
+ width="120">
|
28
|
</el-table-column>
|
24
|
</el-table-column>
|
29
|
<el-table-column
|
25
|
<el-table-column
|
30
|
prop="pcs"
|
26
|
prop="pcs"
|
|
@@ -33,14 +29,29 @@ |
|
@@ -33,14 +29,29 @@ |
33
|
</el-table-column>
|
29
|
</el-table-column>
|
34
|
<el-table-column
|
30
|
<el-table-column
|
35
|
prop="billweight"
|
31
|
prop="billweight"
|
36
|
- label="计费重量"
|
32
|
+ label="入库重量"
|
37
|
width="70">
|
33
|
width="70">
|
38
|
</el-table-column>
|
34
|
</el-table-column>
|
39
|
<el-table-column
|
35
|
<el-table-column
|
40
|
- prop="area"
|
|
|
41
|
- label="库区"
|
36
|
+ prop="feeweight"
|
|
|
37
|
+ label="收费重量"
|
|
|
38
|
+ width="70">
|
|
|
39
|
+ </el-table-column>
|
|
|
40
|
+ <el-table-column
|
|
|
41
|
+ prop="goodssize"
|
|
|
42
|
+ label="尺寸"
|
|
|
43
|
+ width="140">
|
|
|
44
|
+ </el-table-column>
|
|
|
45
|
+ <el-table-column
|
|
|
46
|
+ prop="goodsvol"
|
|
|
47
|
+ label="体积"
|
42
|
width="60">
|
48
|
width="60">
|
43
|
</el-table-column>
|
49
|
</el-table-column>
|
|
|
50
|
+<!-- <el-table-column-->
|
|
|
51
|
+<!-- prop="area"-->
|
|
|
52
|
+<!-- label="库区"-->
|
|
|
53
|
+<!-- width="60">-->
|
|
|
54
|
+<!-- </el-table-column>-->
|
44
|
<el-table-column
|
55
|
<el-table-column
|
45
|
prop="location"
|
56
|
prop="location"
|
46
|
label="库位"
|
57
|
label="库位"
|
|
@@ -51,55 +62,55 @@ |
|
@@ -51,55 +62,55 @@ |
51
|
label="流水号"
|
62
|
label="流水号"
|
52
|
width="160">
|
63
|
width="160">
|
53
|
</el-table-column>
|
64
|
</el-table-column>
|
54
|
- <el-table-column
|
|
|
55
|
- prop="station"
|
|
|
56
|
- label="出入库场站"
|
|
|
57
|
- width="100">
|
|
|
58
|
- </el-table-column>
|
|
|
59
|
- <el-table-column
|
|
|
60
|
- prop="status"
|
|
|
61
|
- label="状态"
|
|
|
62
|
- width="80">
|
|
|
63
|
- <template slot-scope="scope">
|
|
|
64
|
- <span v-if="scope.row.status ==='0'">失败</span>
|
|
|
65
|
- <span v-if="scope.row.status ==='1'">成功</span>
|
|
|
66
|
- </template>
|
|
|
67
|
- </el-table-column>
|
|
|
68
|
- <el-table-column
|
|
|
69
|
- prop="transcar"
|
|
|
70
|
- label="运输车辆信息"
|
|
|
71
|
- width="100">
|
|
|
72
|
- </el-table-column>
|
|
|
73
|
- <el-table-column
|
|
|
74
|
- prop="transtype"
|
|
|
75
|
- label="交易类型"
|
|
|
76
|
- width="100">
|
|
|
77
|
- </el-table-column>
|
|
|
78
|
- <el-table-column
|
|
|
79
|
- prop="custel"
|
|
|
80
|
- label="客户联系电话"
|
|
|
81
|
- width="140">
|
|
|
82
|
- </el-table-column>
|
|
|
83
|
- <el-table-column
|
|
|
84
|
- prop="customer"
|
|
|
85
|
- label="联系人姓名"
|
|
|
86
|
- width="100">
|
|
|
87
|
- </el-table-column>
|
|
|
88
|
- <el-table-column
|
|
|
89
|
- prop="customername"
|
|
|
90
|
- label="客户名称"
|
|
|
91
|
- width="80">
|
|
|
92
|
- </el-table-column>
|
|
|
93
|
- <el-table-column
|
|
|
94
|
- prop="goodstype"
|
|
|
95
|
- label="货物类型"
|
|
|
96
|
- width="80">
|
|
|
97
|
- </el-table-column>
|
|
|
98
|
- <el-table-column
|
|
|
99
|
- prop="house"
|
|
|
100
|
- label="出入库仓库"
|
|
|
101
|
- width="100">
|
|
|
102
|
- </el-table-column>
|
65
|
+<!-- <el-table-column-->
|
|
|
66
|
+<!-- prop="station"-->
|
|
|
67
|
+<!-- label="出入库场站"-->
|
|
|
68
|
+<!-- width="100">-->
|
|
|
69
|
+<!-- </el-table-column>-->
|
|
|
70
|
+<!-- <el-table-column-->
|
|
|
71
|
+<!-- prop="status"-->
|
|
|
72
|
+<!-- label="状态"-->
|
|
|
73
|
+<!-- width="80">-->
|
|
|
74
|
+<!-- <template slot-scope="scope">-->
|
|
|
75
|
+<!-- <span v-if="scope.row.status ==='0'">失败</span>-->
|
|
|
76
|
+<!-- <span v-if="scope.row.status ==='1'">成功</span>-->
|
|
|
77
|
+<!-- </template>-->
|
|
|
78
|
+<!-- </el-table-column>-->
|
|
|
79
|
+<!-- <el-table-column-->
|
|
|
80
|
+<!-- prop="transcar"-->
|
|
|
81
|
+<!-- label="运输车辆信息"-->
|
|
|
82
|
+<!-- width="100">-->
|
|
|
83
|
+<!-- </el-table-column>-->
|
|
|
84
|
+<!-- <el-table-column-->
|
|
|
85
|
+<!-- prop="transtype"-->
|
|
|
86
|
+<!-- label="交易类型"-->
|
|
|
87
|
+<!-- width="100">-->
|
|
|
88
|
+<!-- </el-table-column>-->
|
|
|
89
|
+<!-- <el-table-column-->
|
|
|
90
|
+<!-- prop="custel"-->
|
|
|
91
|
+<!-- label="客户联系电话"-->
|
|
|
92
|
+<!-- width="140">-->
|
|
|
93
|
+<!-- </el-table-column>-->
|
|
|
94
|
+<!-- <el-table-column-->
|
|
|
95
|
+<!-- prop="customer"-->
|
|
|
96
|
+<!-- label="联系人姓名"-->
|
|
|
97
|
+<!-- width="100">-->
|
|
|
98
|
+<!-- </el-table-column>-->
|
|
|
99
|
+<!-- <el-table-column-->
|
|
|
100
|
+<!-- prop="customername"-->
|
|
|
101
|
+<!-- label="客户名称"-->
|
|
|
102
|
+<!-- width="80">-->
|
|
|
103
|
+<!-- </el-table-column>-->
|
|
|
104
|
+<!-- <el-table-column-->
|
|
|
105
|
+<!-- prop="goodstype"-->
|
|
|
106
|
+<!-- label="货物类型"-->
|
|
|
107
|
+<!-- width="80">-->
|
|
|
108
|
+<!-- </el-table-column>-->
|
|
|
109
|
+<!-- <el-table-column-->
|
|
|
110
|
+<!-- prop="house"-->
|
|
|
111
|
+<!-- label="出入库仓库"-->
|
|
|
112
|
+<!-- width="100">-->
|
|
|
113
|
+<!-- </el-table-column>-->
|
103
|
<el-table-column
|
114
|
<el-table-column
|
104
|
prop="ietype"
|
115
|
prop="ietype"
|
105
|
label="类型"
|
116
|
label="类型"
|
|
@@ -111,21 +122,22 @@ |
|
@@ -111,21 +122,22 @@ |
111
|
</el-table-column>
|
122
|
</el-table-column>
|
112
|
<el-table-column
|
123
|
<el-table-column
|
113
|
prop="opter"
|
124
|
prop="opter"
|
114
|
- label="出入库经办人"
|
125
|
+ label="入库经办人"
|
115
|
width="100">
|
126
|
width="100">
|
116
|
</el-table-column>
|
127
|
</el-table-column>
|
117
|
<el-table-column
|
128
|
<el-table-column
|
118
|
prop="opttime"
|
129
|
prop="opttime"
|
119
|
- label="出入库时间"
|
130
|
+ label="入库时间"
|
120
|
width="140">
|
131
|
width="140">
|
121
|
</el-table-column>
|
132
|
</el-table-column>
|
122
|
<el-table-column
|
133
|
<el-table-column
|
123
|
fixed="right"
|
134
|
fixed="right"
|
124
|
label="操作"
|
135
|
label="操作"
|
125
|
- width="160">
|
136
|
+ width="120">
|
126
|
<template slot-scope="scope">
|
137
|
<template slot-scope="scope">
|
127
|
- <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>
|
|
|
128
|
- <el-button type="danger" size="mini" @click="applyDel(scope.$index,scope.row)">删除</el-button>
|
138
|
+ <el-button type="success" size="mini" @click="outBound(scope.row)">出库</el-button>
|
|
|
139
|
+<!-- <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>-->
|
|
|
140
|
+<!-- <el-button type="danger" size="mini" @click="applyDel(scope.$index,scope.row)">删除</el-button>-->
|
129
|
</template>
|
141
|
</template>
|
130
|
</el-table-column>
|
142
|
</el-table-column>
|
131
|
</el-table>
|
143
|
</el-table>
|
|
@@ -142,12 +154,215 @@ |
|
@@ -142,12 +154,215 @@ |
142
|
:total="total">
|
154
|
:total="total">
|
143
|
</el-pagination>
|
155
|
</el-pagination>
|
144
|
</el-row>
|
156
|
</el-row>
|
|
|
157
|
+ <el-row>
|
|
|
158
|
+ <el-dialog :title="dialogMap[dialogApply]" :visible.sync="apply_dialog.addDialog" width="80%" >
|
|
|
159
|
+ <el-form :model="addForm" :rules="rules" ref="addForm" style="margin-top: 40px">
|
|
|
160
|
+ <el-row>
|
|
|
161
|
+ <el-col :span="7">
|
|
|
162
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="waybill">
|
|
|
163
|
+ <el-input v-model="addForm.waybill" autocomplete="off" size="small" style="width: 300px">
|
|
|
164
|
+ <template slot="prepend">货物单号</template>
|
|
|
165
|
+ </el-input>
|
|
|
166
|
+ </el-form-item>
|
|
|
167
|
+ </el-col>
|
|
|
168
|
+ <el-col :span="8">
|
|
|
169
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="weight">
|
|
|
170
|
+ <el-input v-model="addForm.weight" autocomplete="off" size="small" style="width: 300px">
|
|
|
171
|
+ <template slot="prepend">重  量</template>
|
|
|
172
|
+ </el-input>
|
|
|
173
|
+ </el-form-item>
|
|
|
174
|
+ </el-col>
|
|
|
175
|
+ <el-col :span="8">
|
|
|
176
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="vol">
|
|
|
177
|
+ <el-input v-model="addForm.vol" autocomplete="off" size="small" style="width: 300px">
|
|
|
178
|
+ <template slot="prepend">体  积</template>
|
|
|
179
|
+ </el-input>
|
|
|
180
|
+ </el-form-item>
|
|
|
181
|
+ </el-col>
|
|
|
182
|
+ </el-row>
|
|
|
183
|
+ <el-row>
|
|
|
184
|
+ <el-col :span="7">
|
|
|
185
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="pcs">
|
|
|
186
|
+ <el-input v-model="addForm.pcs" autocomplete="off" size="small" style="width: 300px">
|
|
|
187
|
+ <template slot="prepend">件  数</template>
|
|
|
188
|
+ </el-input>
|
|
|
189
|
+ </el-form-item>
|
|
|
190
|
+ </el-col>
|
|
|
191
|
+ <el-col :span="8">
|
|
|
192
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="billweight">
|
|
|
193
|
+ <el-input v-model="addForm.billweight" autocomplete="off" size="small" style="width: 300px">
|
|
|
194
|
+ <template slot="prepend">计费重量</template>
|
|
|
195
|
+ </el-input>
|
|
|
196
|
+ </el-form-item>
|
|
|
197
|
+ </el-col>
|
|
|
198
|
+ <el-col :span="8">
|
|
|
199
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="area">
|
|
|
200
|
+ <el-input v-model="addForm.area" autocomplete="off" size="small" style="width: 300px">
|
|
|
201
|
+ <template slot="prepend">库  区</template>
|
|
|
202
|
+ </el-input>
|
|
|
203
|
+ </el-form-item>
|
|
|
204
|
+ </el-col>
|
|
|
205
|
+ </el-row>
|
|
|
206
|
+ <el-row>
|
|
|
207
|
+ <el-col :span="7">
|
|
|
208
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="location">
|
|
|
209
|
+ <el-input v-model="addForm.location" autocomplete="off" size="small" style="width: 300px">
|
|
|
210
|
+ <template slot="prepend">库  位</template>
|
|
|
211
|
+ </el-input>
|
|
|
212
|
+ </el-form-item>
|
|
|
213
|
+ </el-col>
|
|
|
214
|
+ <el-col :span="8">
|
|
|
215
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="serialnumber">
|
|
|
216
|
+ <el-input v-model="addForm.serialnumber" autocomplete="off" size="small" style="width: 300px">
|
|
|
217
|
+ <template slot="prepend">流水 号</template>
|
|
|
218
|
+ </el-input>
|
|
|
219
|
+ </el-form-item>
|
|
|
220
|
+ </el-col>
|
|
|
221
|
+ <el-col :span="8">
|
|
|
222
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="transtype">
|
|
|
223
|
+ <div class="my-text-area">
|
|
|
224
|
+ <div class="el-input-group__prepend prepand">交易类型</div>
|
|
|
225
|
+ <el-select v-model="addForm.transtype" placeholder="请选择交易类型" autocomplete="off" size="small" style="width: 210px">
|
|
|
226
|
+ <el-option
|
|
|
227
|
+ v-for="item in options1"
|
|
|
228
|
+ :key="item.value"
|
|
|
229
|
+ :label="item.label"
|
|
|
230
|
+ :value="item.value">
|
|
|
231
|
+ </el-option>
|
|
|
232
|
+ </el-select>
|
|
|
233
|
+ </div>
|
|
|
234
|
+ </el-form-item>
|
|
|
235
|
+ </el-col>
|
|
|
236
|
+ </el-row>
|
|
|
237
|
+ <el-row>
|
|
|
238
|
+ <el-col :span="7">
|
|
|
239
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="house">
|
|
|
240
|
+ <el-input v-model="addForm.house" autocomplete="off" size="small" style="width: 300px">
|
|
|
241
|
+ <template slot="prepend">出入库仓库</template>
|
|
|
242
|
+ </el-input>
|
|
|
243
|
+ </el-form-item>
|
|
|
244
|
+ </el-col>
|
|
|
245
|
+ <el-col :span="8">
|
|
|
246
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="opttime">
|
|
|
247
|
+ <div class="my-text-area">
|
|
|
248
|
+ <div class="el-input-group__prepend prepand">交易类型</div>
|
|
|
249
|
+ <el-date-picker
|
|
|
250
|
+ v-model="addForm.opttime"
|
|
|
251
|
+ type="datetime" size="mini"
|
|
|
252
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
253
|
+ format="yyyy-MM-dd HH:mm:ss"
|
|
|
254
|
+ style="width:210px"
|
|
|
255
|
+ placeholder="选择出入库时间">
|
|
|
256
|
+ </el-date-picker>
|
|
|
257
|
+ </div>
|
|
|
258
|
+ </el-form-item>
|
|
|
259
|
+ </el-col>
|
|
|
260
|
+
|
|
|
261
|
+ <el-col :span="8">
|
|
|
262
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="station">
|
|
|
263
|
+ <el-input v-model="addForm.station" autocomplete="off" size="small" style="width: 300px">
|
|
|
264
|
+ <template slot="prepend">出入库场站</template>
|
|
|
265
|
+ </el-input>
|
|
|
266
|
+ </el-form-item>
|
|
|
267
|
+ </el-col>
|
|
|
268
|
+ </el-row>
|
|
|
269
|
+ <el-row>
|
|
|
270
|
+ <el-col :span="7">
|
|
|
271
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="goodstype">
|
|
|
272
|
+ <div class="my-text-area">
|
|
|
273
|
+ <div class="el-input-group__prepend prepand">交易类型</div>
|
|
|
274
|
+ <el-select v-model="addForm.goodstype" placeholder="请选择出入库货物类型" autocomplete="off" size="small" style="width: 170px">
|
|
|
275
|
+ <el-option
|
|
|
276
|
+ v-for="item in options"
|
|
|
277
|
+ :key="item.value"
|
|
|
278
|
+ :label="item.label"
|
|
|
279
|
+ :value="item.value">
|
|
|
280
|
+ </el-option>
|
|
|
281
|
+ </el-select>
|
|
|
282
|
+ </div>
|
|
|
283
|
+ </el-form-item>
|
|
|
284
|
+ </el-col>
|
|
|
285
|
+ <el-col :span="8">
|
|
|
286
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="ietype">
|
|
|
287
|
+ <div class="my-text-area">
|
|
|
288
|
+ <div class="el-input-group__prepend prepand">出入库类型</div>
|
|
|
289
|
+ <el-select v-model="addForm.ietype" placeholder="出入库类型" size="mini" style="width: 210px">
|
|
|
290
|
+ <el-option label="出入库类型-进" value="I"></el-option>
|
|
|
291
|
+ <el-option label="出入库类型-出" value="E"></el-option>
|
|
|
292
|
+ </el-select>
|
|
|
293
|
+ </div>
|
|
|
294
|
+ </el-form-item>
|
|
|
295
|
+ </el-col>
|
|
|
296
|
+ <el-col :span="8">
|
|
|
297
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="status">
|
|
|
298
|
+ <div class="my-text-area">
|
|
|
299
|
+ <div class="el-input-group__prepend prepand">状  态</div>
|
|
|
300
|
+ <el-select v-model="addForm.status" placeholder="请选择状态" size="mini" style="width: 210px">
|
|
|
301
|
+ <el-option label="状态-失败" value="0"></el-option>
|
|
|
302
|
+ <el-option label="状态-成功" value="1"></el-option>
|
|
|
303
|
+ </el-select>
|
|
|
304
|
+ </div>
|
|
|
305
|
+ </el-form-item>
|
|
|
306
|
+ </el-col>
|
|
|
307
|
+ </el-row>
|
|
|
308
|
+ <el-row>
|
|
|
309
|
+ <el-col :span="7">
|
|
|
310
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="transcar">
|
|
|
311
|
+ <el-input v-model="addForm.transcar" autocomplete="off" size="small" style="width: 300px">
|
|
|
312
|
+ <template slot="prepend">运输车辆信息</template>
|
|
|
313
|
+ </el-input>
|
|
|
314
|
+ </el-form-item>
|
|
|
315
|
+ </el-col>
|
|
|
316
|
+ <el-col :span="8">
|
|
|
317
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="opter">
|
|
|
318
|
+ <el-input v-model="addForm.opter" autocomplete="off" size="small" style="width: 300px">
|
|
|
319
|
+ <template slot="prepend">出入库经办人</template>
|
|
|
320
|
+ </el-input>
|
|
|
321
|
+ </el-form-item>
|
|
|
322
|
+ </el-col>
|
|
|
323
|
+ <el-col :span="8">
|
|
|
324
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="customername">
|
|
|
325
|
+ <el-input v-model="addForm.customername" autocomplete="off" size="small" style="width: 300px">
|
|
|
326
|
+ <template slot="prepend">出入库客户名称</template>
|
|
|
327
|
+ </el-input>
|
|
|
328
|
+ </el-form-item>
|
|
|
329
|
+ </el-col>
|
|
|
330
|
+ </el-row>
|
|
|
331
|
+ <el-row>
|
|
|
332
|
+ <el-col :span="7">
|
|
|
333
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="custel">
|
|
|
334
|
+ <el-input v-model="addForm.custel" autocomplete="off" size="small" style="width: 300px">
|
|
|
335
|
+ <template slot="prepend">出入库客户联系电话</template>
|
|
|
336
|
+ </el-input>
|
|
|
337
|
+ </el-form-item>
|
|
|
338
|
+ </el-col>
|
|
|
339
|
+ <el-col :span="10">
|
|
|
340
|
+ <el-form-item label="" :label-width="formLabelWidth" prop="customer">
|
|
|
341
|
+ <el-input v-model="addForm.customer" autocomplete="off" size="small" style="width: 300px">
|
|
|
342
|
+ <template slot="prepend">出入库客户联系人姓名</template>
|
|
|
343
|
+ </el-input>
|
|
|
344
|
+ </el-form-item>
|
|
|
345
|
+ </el-col>
|
|
|
346
|
+ </el-row>
|
|
|
347
|
+ </el-form>
|
|
|
348
|
+ <div slot="footer" class="dialog-footer">
|
|
|
349
|
+ <el-button @click="apply_dialog.addDialog = false" size="small">取 消</el-button>
|
|
|
350
|
+ <el-button type="primary" @click="dialogApply==='create'?add():edit()" size="small">提 交</el-button>
|
|
|
351
|
+ <el-button disabled type="primary" @click="zancun()" size="small">暂存</el-button>
|
|
|
352
|
+ </div>
|
|
|
353
|
+ </el-dialog>
|
|
|
354
|
+ </el-row>
|
145
|
</div>
|
355
|
</div>
|
146
|
|
356
|
|
147
|
</template>
|
357
|
</template>
|
148
|
|
358
|
|
149
|
<script>
|
359
|
<script>
|
150
|
- import {selectNewInventroyrecords} from "../../api/consigner/station";
|
360
|
+ import {
|
|
|
361
|
+ delInventoryrecord,
|
|
|
362
|
+ ediInventroyrecord,
|
|
|
363
|
+ ExtNewinventroyrecord,
|
|
|
364
|
+ selectNewInventroyrecords
|
|
|
365
|
+ } from "../../api/consigner/station";
|
151
|
|
366
|
|
152
|
export default {
|
367
|
export default {
|
153
|
name: "Tabulation",
|
368
|
name: "Tabulation",
|
|
@@ -157,7 +372,88 @@ |
|
@@ -157,7 +372,88 @@ |
157
|
data(){
|
372
|
data(){
|
158
|
return {
|
373
|
return {
|
159
|
tableData: [],
|
374
|
tableData: [],
|
160
|
- total: 0
|
375
|
+ total: 0,
|
|
|
376
|
+ dialogMap: {
|
|
|
377
|
+ update: '编辑',
|
|
|
378
|
+ create: '新增'
|
|
|
379
|
+ },
|
|
|
380
|
+ dialogApply: 'create',
|
|
|
381
|
+ apply_dialog: {
|
|
|
382
|
+ // 添加对话框
|
|
|
383
|
+ addDialog: false,
|
|
|
384
|
+ // 编辑对话框
|
|
|
385
|
+ editDialog: false
|
|
|
386
|
+ },
|
|
|
387
|
+ addForm: {
|
|
|
388
|
+ area: '',
|
|
|
389
|
+ billweight: '',
|
|
|
390
|
+ custel: '',
|
|
|
391
|
+ customer: '',
|
|
|
392
|
+ customername: '',
|
|
|
393
|
+ goodstype: '',
|
|
|
394
|
+ house:'',
|
|
|
395
|
+ ietype:'',
|
|
|
396
|
+ location:'',
|
|
|
397
|
+ opter:'',
|
|
|
398
|
+ opttime: '',
|
|
|
399
|
+ pcs: '',
|
|
|
400
|
+ serialnumber: '',
|
|
|
401
|
+ station: '',
|
|
|
402
|
+ status: '',
|
|
|
403
|
+ transcar: '',
|
|
|
404
|
+ transtype:'',
|
|
|
405
|
+ vol:'',
|
|
|
406
|
+ waybill:'',
|
|
|
407
|
+ weight:'',
|
|
|
408
|
+ remark:'',
|
|
|
409
|
+ remark1:'',
|
|
|
410
|
+ remark2:'',
|
|
|
411
|
+ remark3:'',
|
|
|
412
|
+ remark4:'',
|
|
|
413
|
+ remark5:'',
|
|
|
414
|
+ },
|
|
|
415
|
+ options: [
|
|
|
416
|
+ {
|
|
|
417
|
+ value: '板箱',
|
|
|
418
|
+ label: '货物类型-板箱'
|
|
|
419
|
+ }, {
|
|
|
420
|
+ value: '运单',
|
|
|
421
|
+ label: '货物类型-运单'
|
|
|
422
|
+ }, {
|
|
|
423
|
+ value: '托盘',
|
|
|
424
|
+ label: '货物类型-托盘'
|
|
|
425
|
+ }],
|
|
|
426
|
+ options1: [{
|
|
|
427
|
+ value: '采购入库',
|
|
|
428
|
+ label: '交易类型-采购入库'
|
|
|
429
|
+ }, {
|
|
|
430
|
+ value: '生产入库',
|
|
|
431
|
+ label: '交易类型-生产入库'
|
|
|
432
|
+ }, {
|
|
|
433
|
+ value: '销售入库',
|
|
|
434
|
+ label: '交易类型-销售入库'
|
|
|
435
|
+ }],
|
|
|
436
|
+ zancundata:[],
|
|
|
437
|
+ formLabelWidth: '80px',
|
|
|
438
|
+ rules: {
|
|
|
439
|
+ userName: [
|
|
|
440
|
+ // { required: true, message: '请输入申请人', trigger: 'blur' },
|
|
|
441
|
+ // // { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
|
|
|
442
|
+ // ],
|
|
|
443
|
+ // applyTime: [
|
|
|
444
|
+ // { required: true, message: '请选择时间', trigger: 'change' }
|
|
|
445
|
+ // ],
|
|
|
446
|
+ // needCount: [
|
|
|
447
|
+ // { required: true, message: '请输入需要车辆数量', trigger: 'blur' },
|
|
|
448
|
+ // ],
|
|
|
449
|
+ // orginStation: [
|
|
|
450
|
+ // { required: true, message: '请输入起始场站', trigger: 'blur' },
|
|
|
451
|
+ // ],
|
|
|
452
|
+ // endStation: [
|
|
|
453
|
+ // { required: true, message: '请输入目的场站', trigger: 'blur' },
|
|
|
454
|
+ // ],
|
|
|
455
|
+ ],
|
|
|
456
|
+ },
|
161
|
}
|
457
|
}
|
162
|
},
|
458
|
},
|
163
|
methods:{
|
459
|
methods:{
|
|
@@ -187,6 +483,75 @@ |
|
@@ -187,6 +483,75 @@ |
187
|
this.tabulationInfo.pageNum = val
|
483
|
this.tabulationInfo.pageNum = val
|
188
|
this.getList()
|
484
|
this.getList()
|
189
|
},
|
485
|
},
|
|
|
486
|
+ //出库
|
|
|
487
|
+ outBound(row) {
|
|
|
488
|
+ this.$confirm('是否确认出库?', {
|
|
|
489
|
+ confirmButtonText: '确定',
|
|
|
490
|
+ cancelButtonText: '取消',
|
|
|
491
|
+ type: 'warning'
|
|
|
492
|
+ }
|
|
|
493
|
+ ).then(() => {
|
|
|
494
|
+ // console.log(row);
|
|
|
495
|
+ ExtNewinventroyrecord({serialnumber:row.serialnumber}).then((response) => {
|
|
|
496
|
+ console.log(row)
|
|
|
497
|
+ const res = response.data
|
|
|
498
|
+ this.$message.success(res.msg)
|
|
|
499
|
+ this.getList()
|
|
|
500
|
+ }).catch(error => {
|
|
|
501
|
+ this.$message.error(res.msg)
|
|
|
502
|
+ })
|
|
|
503
|
+ }).catch(() => {
|
|
|
504
|
+ })
|
|
|
505
|
+ },
|
|
|
506
|
+ // 删除
|
|
|
507
|
+ applyDel(index, row) {
|
|
|
508
|
+ // 弹框询问是否删除?
|
|
|
509
|
+ this.$confirm('此操作永久删除该消息收发记录, 是否继续?', '警告', {
|
|
|
510
|
+ confirmButtonText: '确定删除',
|
|
|
511
|
+ cancelButtonText: '取消',
|
|
|
512
|
+ type: 'warning'
|
|
|
513
|
+ }
|
|
|
514
|
+ ).then(() => {
|
|
|
515
|
+ // console.log(row);
|
|
|
516
|
+ delInventoryrecord({uuid:row.uuid}).then((response) => {
|
|
|
517
|
+ // console.log(row)
|
|
|
518
|
+ const res = response.data
|
|
|
519
|
+ this.$message.success(res.msg)
|
|
|
520
|
+ this.getList()
|
|
|
521
|
+ }).catch(error => {
|
|
|
522
|
+ this.$message.error(res.msg)
|
|
|
523
|
+ })
|
|
|
524
|
+ }).catch(() => {
|
|
|
525
|
+ })
|
|
|
526
|
+ },
|
|
|
527
|
+ // 打开编辑
|
|
|
528
|
+ applyEdit(row) {
|
|
|
529
|
+ this.apply_dialog.addDialog = true;
|
|
|
530
|
+ this.dialogApply = 'update';
|
|
|
531
|
+ this.addForm=row;
|
|
|
532
|
+ },
|
|
|
533
|
+ // 编辑功能
|
|
|
534
|
+ edit() {
|
|
|
535
|
+ // 进行表单的预验证
|
|
|
536
|
+ this.$refs.addForm.validate(valid => {
|
|
|
537
|
+ // 未通过,表单预校验
|
|
|
538
|
+ if (!valid) return
|
|
|
539
|
+ ediInventroyrecord(this.addForm).then((response) => {
|
|
|
540
|
+ console.log(row)
|
|
|
541
|
+ const res = response.data
|
|
|
542
|
+ if (res.code != '200') {
|
|
|
543
|
+ return this.$message.error(res.msg)
|
|
|
544
|
+ }
|
|
|
545
|
+ this.$message.success(res.msg)
|
|
|
546
|
+ // 隐藏对话框
|
|
|
547
|
+ this.apply_dialog.addDialog = false
|
|
|
548
|
+ // 刷新列表
|
|
|
549
|
+ this.getList()
|
|
|
550
|
+ }).catch(error => {
|
|
|
551
|
+ this.$message.error(error.toString())
|
|
|
552
|
+ })
|
|
|
553
|
+ })
|
|
|
554
|
+ },
|
190
|
|
555
|
|
191
|
},
|
556
|
},
|
192
|
mounted() {
|
557
|
mounted() {
|
|
@@ -202,5 +567,28 @@ |
|
@@ -202,5 +567,28 @@ |
202
|
</script>
|
567
|
</script>
|
203
|
|
568
|
|
204
|
<style scoped>
|
569
|
<style scoped>
|
205
|
-
|
570
|
+ .toolbar{
|
|
|
571
|
+ height: 60px;
|
|
|
572
|
+ background-color: white;
|
|
|
573
|
+ /*line-height: 60px;*/
|
|
|
574
|
+ vertical-align: middle;
|
|
|
575
|
+ border-radius: 5px 5px 5px 5px;
|
|
|
576
|
+ padding: 15px 0 0 20px;
|
|
|
577
|
+ box-shadow: 0px 5px 5px #e5e8eb;
|
|
|
578
|
+ }
|
|
|
579
|
+ .my-text-area .prepand{
|
|
|
580
|
+ float: left;
|
|
|
581
|
+ width:89px;
|
|
|
582
|
+ height: 28px;
|
|
|
583
|
+ font-size: 12px;
|
|
|
584
|
+ line-height: 28px;
|
|
|
585
|
+ }
|
|
|
586
|
+</style>
|
|
|
587
|
+<style>
|
|
|
588
|
+ .my-text-area .el-textarea__inner{
|
|
|
589
|
+ min-height: 28px;
|
|
|
590
|
+ height: 28px;
|
|
|
591
|
+ border-bottom-left-radius: 0;
|
|
|
592
|
+ border-top-left-radius: 0;
|
|
|
593
|
+ }
|
206
|
</style> |
594
|
</style> |