OnceDeclaration.vue
19.6 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
<template>
<div class="app-container">
<el-row style="" class="titleRow">
<el-col :span="12" >
<el-button size="mini" type="primary" plain>新增</el-button>
<el-button size="mini" type="primary" plain>暂存</el-button>
<el-button size="mini" type="primary" plain>复制</el-button>
<el-button size="mini" type="primary" plain>打印</el-button>
<el-button size="mini" type="primary" plain>删除</el-button>
<el-button size="mini" type="primary" plain>备录</el-button>
</el-col>
<el-col :span="8">
<el-checkbox v-model="headType.card"><span style="color: red">涉证</span></el-checkbox>
<el-checkbox v-model="headType.checked"><span style="color: red">涉检</span></el-checkbox>
<el-checkbox v-model="headType.tax"><span style="color: red">涉税</span></el-checkbox>
</el-col>
<span style="float: right">
<el-button size="mini" type="primary" icon="el-icon-star-off">申报</el-button>
</span>
</el-row>
<div class="divContent">
<div class="divBox leftDiv">
<div class="divBoxTopDiv">
<p class="titleSpan">概要申报基本信息</p>
<el-form ref="" :model="outLintModel" :rules="outLintRules" size="mini">
<table class="divTable">
<tr>
<td class="tableLabel">申报地海关</td>
<td colspan="3">
<el-form-item prop="custom">
<el-input type="text" v-model="outLintModel.custom" @click=""></el-input>
</el-form-item>
</td>
<td class="tableLabel">申报日期</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">申报状态</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td class="tableLabel">统一编号</td>
<td colspan="3">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">海关编号</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">进境关别</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td class="tableLabel">境内收发货人</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text" placeholder="18位社会信用信用代码"></el-input>
</el-form-item>
</td>
<td>
<el-form-item prop="custom">
<el-input type="text" placeholder="10位海关代码"></el-input>
</el-form-item>
</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text" placeholder="10位检验检疫编码"></el-input>
</el-form-item>
</td>
<td colspan="3">
<el-form-item prop="custom">
<el-input type="text" placeholder="企业名称(中文)"></el-input>
</el-form-item>
</td>
</tr>
<tr v-if="headType.card">
<td class="tableLabel">消费使用单位</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text" placeholder="18位社会信用信用代码"></el-input>
</el-form-item>
</td>
<td>
<el-form-item prop="custom">
<el-input type="text" placeholder="10位海关代码"></el-input>
</el-form-item>
</td>
<td colspan="2">
<el-form-item>
<el-input type="text" placeholder="10位检验检疫编码" style="background-color: #fff"></el-input>
</el-form-item>
</td>
<td colspan="3">
<el-form-item prop="custom">
<el-input type="text" placeholder="企业名称(中文)"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td class="tableLabel">申报单位</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text" placeholder="18位社会信用信用代码"></el-input>
</el-form-item>
</td>
<td>
<el-form-item prop="custom">
<el-input type="text" placeholder="10位海关代码"></el-input>
</el-form-item>
</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text" placeholder="10位检验检疫编码"></el-input>
</el-form-item>
</td>
<td colspan="3">
<el-form-item prop="custom">
<el-input type="text" placeholder="企业名称(中文)"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td class="tableLabel">运输方式</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">运输工具名称</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">航次号</td>
<td colspan="3">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td class="tableLabel">提运单号</td>
<td colspan="4">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">监管方式</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">毛重(KG)</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr v-if="headType.card">
<td class="tableLabel">许可证号</td>
<td colspan="4">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td colspan="4"></td>
</tr>
</table>
</el-form>
</div>
<div class="divBoxMidDiv">
<p class="titleSpan">概要申报商品信息</p>
<el-table border style="width: 100%" height="360"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="60px" align="center"></el-table-column>
<el-table-column prop="" label="项号" align="center"></el-table-column>
<el-table-column prop="" label="商品编号" align="center"></el-table-column>
<el-table-column prop="" label="商品名称" align="center"></el-table-column>
<el-table-column prop="" label="检验检疫名称" align="center" v-if="headType.checked"></el-table-column>
<el-table-column prop="" label="成交数量" align="center"></el-table-column>
<el-table-column prop="" label="成交计量单位" align="center"></el-table-column>
<el-table-column prop="" label="总价" align="center"></el-table-column>
<el-table-column prop="" label="币值" align="center"></el-table-column>
<el-table-column prop="" label="原产国(地区)" align="center"></el-table-column>
<el-table-column prop="" label="监管要求" align="center" v-if="headType.checked"></el-table-column>
<el-table-column prop="" label="操作" align="center">
<template slot-scope="scope">
<el-button type="danger" size="mini" @click="handleDelete(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
<div class="divBoxBtm">
<el-form ref="" :model="outLintGoods">
<table class="divTable">
<tr>
<td class="tableLabel">项号</td>
<td colspan="2">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">商品编号</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">商品名称</td>
<td colspan="3">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td class="tableLabel">成交数量</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">成交计量单位</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">总价</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">币值</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td class="tableLabel">原产国(地区)</td>
<td colspan="4">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td colspan="4"></td>
</tr>
<tr v-if="headType.checked">
<td class="tableLabel">检验检疫名称</td>
<td colspan="4">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">法定第一计量数量</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">法定第一计量单位</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr v-if="headType.checked">
<td class="tableLabel">货物属性</td>
<td colspan="4">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">用途</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
<td class="tableLabel">产品资质</td>
<td colspan="3">
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
</table>
</el-form>
<div style="margin:5px; float: right; ">
<el-button type="primary" size="small" @click="createOutLint()" plain>新增商品信息</el-button>
</div>
</div>
</div>
<div class="divBox rightDiv">
<div class="rightDivTop" :class="{table100Height:!headType.card,rightDivTopHeight:headType.card }">
<div>
<el-table border @selection-change="handleSelectContainer"
:class="{table100Height:!headType.card,table50Height:headType.card }">
<el-table-column type="selection" width="60px" align="center"></el-table-column>
<el-table-column prop="" label="集装箱号" align="center"></el-table-column>
<el-table-column label="操作" width="100px" align="center">
<template slot-scope="scope">
<el-button type="danger" size="mini">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-form ref="" :model="containerModel">
<table class="divTable">
<tr>
<td class="tableLabel">集装箱号</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr v-if="headType.card">
<td class="tableLabel">商品项号关系</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
</table>
<div style="float: right; margin-top: 5px">
<el-button type="primary" size="small" plain>新增集装箱</el-button>
</div>
</el-form>
</div>
<div>
</div>
</div>
<div v-if="headType.card" class="rightDivBtm">
<el-table border @selection-change="handleSelectDocument" height="350px">
<el-table-column type="selection" width="60px" align="center"></el-table-column>
<el-table-column prop="" label="单证代码" align="center"></el-table-column>
<el-table-column prop="" label="单证编号" align="center"></el-table-column>
<el-table-column label="操作" width="100px" align="center">
<template slot-scope="scope">
<el-button type="danger" size="mini">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-form ref="" :model="billModel">
<table class="divTable">
<tr>
<td class="tableLabel">随附单证代码</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td class="tableLabel">随附单证编号</td>
<td>
<el-form-item prop="custom">
<el-input type="text"></el-input>
</el-form-item>
</td>
</tr>
</table>
</el-form>
<div style="float: right;margin-top: 5px">
<el-button type="primary" size="small" plain>新增单证</el-button>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "OnceDeclaration",
data() {
const validateCustomCode = (rule, value, callback) => {
if (!value) {
this.$message.error('海关没填')
}
callback();
};
return {
headType: {
card: false,
checked: false,
tax: false
},
outLintForm: {},
outLintModel: {
custom: '4604'
},
outLintRules: {
custom: [{validator: validateCustomCode, target: 'blur'}]
},
outLintGoods: {},
containerModel: {},
billModel:{},
}
},
watch: {
'headType.card': function (newVal, oldVal) {
console.log('headType.card newVal: ' + newVal)
console.log(oldVal)
},
'headType.checked': function (newVal, oldVal) {
console.log('headType.checked newVal: ' + newVal)
console.log(oldVal)
},
'headType.tax': function (newVal, oldVal) {
console.log('headType.tax newVal: ' + newVal)
console.log(oldVal)
}
},
methods: {
/**
* 多选商品信息
*/
handleSelectionChange() {
},
/**
* 删除商品信息
*/
handleDelete() {
},
/**
* 新增概要商品信息
*/
createOutLint() {
},
/**
* 多选集装箱
*/
handleSelectContainer() {
},
/**
* 多选单证编号
*/
handleSelectDocument() {
}
}
}
</script>
<style>
.app-container .el-form-item {
margin-bottom: 0px;
}
.titleRow{
background-color: #e3effd;
height:35px;
line-height: 35px;
}
.divTable .el-form-item__content {
line-height: 20px;
height: 20px;
}
.divTable .el-input__inner {
border: none;
border-radius: 0px;
background-color: #fafafa;
color: #000;
line-height: 20px;
height: 20px;
}
.titleSpan {
margin-top: 5px;
margin-bottom: 5px;
color: #44acfd;
}
.app-container .leftDiv {
float: left;
width: 75%;
height: 830px;
}
.app-container .divBox .divBoxTopDiv {
height: 30%;
}
.app-container .divTable {
border: #31abff 1px solid;
border-collapse: collapse;
font-size: 13px;
}
.app-container .divTable tr {
line-height: 25px;
}
.app-container .tableLabel {
text-align: right;
padding-right: 10px;
}
.app-container .tableInput {
width: 100%;
height: 100%;
border: none;
background-color: #f7f7f7;
outline: none;
}
.divTable td {
width: 8%;
border: #bfcbd9 1px solid;
}
.app-container .divBox .divBoxMidDiv {
height: 47%;
}
.app-container .divBox .divBoxBtm {
height: 20%;
}
.app-container .rightDiv {
float: right;
width: 25%;
height: 830px;
}
.rightDivTop {
height: 100%;
}
.table100Height {
height: 710px;
}
.rightDivTopHeight {
height: 46%;
}
.table50Height {
height: 290px;
}
.rightDivBtm {
height: 50%;
}
</style>