审查视图

src/views/deploy/seller.vue 49.9 KB
1 2 3 4 5 6 7
<template>
    <el-row>
        <el-card  style="background-color: #F5F7FA">
            <!--            搜索区域-->
            <el-row :gutter="10" class="toolbar" style="height: auto;padding-bottom: 15px">
                <el-row>
                    <el-col :span="5">
8
                        <el-input v-model="queryInfo.seqno" prefix-icon="el-icon-search"
9 10 11 12 13
                                  placeholder="中心统一编号" clearable>
                            <template slot="prepend">统一编号</template>
                        </el-input>
                    </el-col>
                    <el-col :offset="1" :span="5">
14
                        <el-input v-model="queryInfo.putrecseqno" prefix-icon="el-icon-search"
15 16 17 18 19
                                  placeholder="备案序号" clearable>
                            <template slot="prepend">备案序号</template>
                        </el-input>
                    </el-col>
                    <el-col :offset="1"  :span="5">
20
                        <el-input v-model="queryInfo.gdecd" prefix-icon="el-icon-search"
21 22 23 24 25
                                  placeholder="商品编码" clearable>
                            <template slot="prepend">商品编码</template>
                        </el-input>
                    </el-col>
                    <el-col :offset="1"  :span="5">
26
                        <el-input v-model="queryInfo.gdebc" prefix-icon="el-icon-search"
27 28 29 30 31 32 33
                                  placeholder="商品简码" clearable>
                            <template slot="prepend">商品简码</template>
                        </el-input>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="5">
34
                        <el-input v-model="queryInfo.gdsmtno" prefix-icon="el-icon-search"
35 36 37 38 39
                                  placeholder="商品料号" clearable>
                            <template slot="prepend">商品料号</template>
                        </el-input>
                    </el-col>
                    <el-col :offset="1"  :span="5">
40
                        <el-input v-model="queryInfo.itemno" prefix-icon="el-icon-search"
41 42 43 44 45
                                  placeholder="项号" clearable>
                            <template slot="prepend">项&emsp;&emsp;号</template>
                        </el-input>
                    </el-col>
                    <el-col :offset="1"  :span="5">
朱兆平 authored
46
                        <el-button type="primary" icon="el-icon-search"  @click="getList()">
47 48
                            查询
                        </el-button>
朱兆平 authored
49
                        <el-button type="success" icon="el-icon-edit"  @click="applyAdd()">新增</el-button>
50 51 52 53 54 55 56 57 58 59 60
                    </el-col>
                </el-row>
            </el-row>
            <!--            列表区域-->
            <el-row>
                <template>
                    <el-table
                            :data="tableData"
                            border
                            :cell-style="{textAlign:'center'}"
                            style="border-radius: 10px 10px 0px 0px;line-height: 25px"
61
                            :header-cell-style="{background:'#6F8294',color:'#FFFFFF'}"
62 63 64 65 66
                    >
                        <el-table-column
                                fixed
                                prop="seqno"
                                label="中心统一编号"
小范 authored
67
                                width="140">
68 69 70 71
                        </el-table-column>
                        <el-table-column
                                prop="putrecseqno"
                                label="备案序号"
小范 authored
72 73 74 75 76
                                width="140">
                        </el-table-column>
                        <el-table-column
                                prop="gdsnm"
                                label="商品名称"
77 78 79 80 81
                                width="120">
                        </el-table-column>
                        <el-table-column
                                prop="gdecd"
                                label="商品编码"
小范 authored
82
                                width="140">
83 84 85 86
                        </el-table-column>
                        <el-table-column
                                prop="gdebc"
                                label="商品简码"
小范 authored
87
                                width="140">
88 89 90 91
                        </el-table-column>
                        <el-table-column
                                prop="gdsmtno"
                                label="商品料号"
小范 authored
92
                                width="140">
93 94 95 96 97 98 99 100 101 102 103 104 105
                        </el-table-column>
<!--                        <el-table-column-->
<!--                                prop="ismeta"-->
<!--                                label="是否虚拟仓库"-->
<!--                                width="100">-->
<!--                            <template slot-scope="scope">-->
<!--                                <span v-if="scope.row.ismeta ==='0'">否</span>-->
<!--                                <span v-if="scope.row.ismeta ==='1'">是</span>-->
<!--                            </template>-->
<!--                        </el-table-column>-->
                        <el-table-column
                                prop="itemno"
                                label="项号"
小范 authored
106
                                width="140">
107
                        </el-table-column>
小范 authored
108 109 110 111 112 113 114 115 116 117
<!--                        <el-table-column-->
<!--                                prop="asdutyrate"-->
<!--                                label="反补贴税率"-->
<!--                                width="120">-->
<!--                        </el-table-column>-->
<!--                        <el-table-column-->
<!--                                prop="atdutyrate"-->
<!--                                label="反倾销税率"-->
<!--                                width="120">-->
<!--                        </el-table-column>-->
118 119 120 121 122
                        <el-table-column
                                prop="bondedtype"
                                label="保税类别"
                                width="120">
                        </el-table-column>
小范 authored
123 124 125 126 127
<!--                        <el-table-column-->
<!--                                prop="cofno"-->
<!--                                label="原产地证书"-->
<!--                                width="120">-->
<!--                        </el-table-column>-->
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
                        <el-table-column
                                fixed="right"
                                label="操作"
                                width="200">
                            <template slot-scope="scope">
                                <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>
                                <el-button type="danger" size="mini" @click="applyDel(scope.$index,scope.row)">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </template>
            </el-row>
            <el-row style="margin-top: 10px" class="toolbar">
                <el-pagination
                        @size-change="handleSizeChange"
                        @current-change="handleCurrentChange"
                        :current-page="queryInfo.pageNum"
                        :page-size="queryInfo.pageSize"
                        :page-sizes="[10, 50, 100, 500]"
                        layout="total, sizes, prev, pager, next, jumper"
                        :total="total">
                </el-pagination>
            </el-row>
            <el-row>
小范 authored
152
                <el-dialog :title="dialogMap[dialogApply]" :visible.sync="apply_dialog.addDialog" width="80%" v-dialog-drag>
153
                    <el-form  :model="addForm"  :rules="rules" ref="addForm">
小范 authored
154
                        <el-divider content-position="center"> 商品管理必填信息 </el-divider>
155 156
                        <el-row>
                            <el-col :span="6">
小范 authored
157
                                <el-form-item label=" " :label-width="formLabelWidth" prop="gdsnm">
朱兆平 authored
158
                                    <el-input v-model="addForm.gdsnm" autocomplete="off" placeholder="商品中文名称">
小范 authored
159
                                        <template slot="prepend">商品名称</template>
160 161 162 163
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
164
                                <el-form-item label=" " :label-width="formLabelWidth"  prop="gdetype">
朱兆平 authored
165
                                    <el-input v-model="addForm.gdetype" autocomplete="off" >
小范 authored
166
                                        <template slot="prepend">商品类型</template>
167 168 169 170
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
171
                                <el-form-item label=" " :label-width="formLabelWidth"  prop="gdebc">
朱兆平 authored
172
                                    <el-input v-model="addForm.gdebc" autocomplete="off" >
173 174 175 176 177
                                        <template slot="prepend">商品简码</template>
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
178
                                <el-form-item label=" " :label-width="formLabelWidth" prop="gdecd">
朱兆平 authored
179
                                    <el-input v-model="addForm.gdecd" autocomplete="off" >
180 181 182 183 184 185 186
                                        <template slot="prepend">商品编码</template>
                                    </el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="6">
小范 authored
187
                                <el-form-item label=" " :label-width="formLabelWidth" prop="itemno">
朱兆平 authored
188
                                    <el-input v-model="addForm.itemno" autocomplete="off" >
小范 authored
189
                                        <template slot="prepend">项&emsp;&emsp;号</template>
190 191 192 193
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
194
                                <el-form-item label=" " :label-width="formLabelWidth"  prop="gdsmtno">
朱兆平 authored
195
                                    <el-input v-model="addForm.gdsmtno" autocomplete="off" >
196 197 198 199 200
                                        <template slot="prepend">商品料号</template>
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
201
                                <el-form-item label=" " :label-width="formLabelWidth" prop="skucd">
朱兆平 authored
202
                                    <el-input v-model="addForm.skucd" autocomplete="off" >
小范 authored
203
                                        <template slot="prepend">SKU编码</template>
204 205 206 207
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
208 209 210
                                <el-form-item label=" " :label-width="formLabelWidth"  prop="bondedtype">
                                    <div class="my-text-area">
                                        <div class="el-input-group__prepend prepand">保税类别</div>
朱兆平 authored
211
                                        <el-select v-model="addForm.bondedtype" placeholder="是否保税商品" style="width: 150px">
小范 authored
212 213 214 215
                                            <el-option label="保税" value="100"></el-option>
                                            <el-option label="非保税" value="101"></el-option>
                                        </el-select>
                                    </div>
216
                                </el-form-item>
小范 authored
217
<!--                                <el-form-item label="" :label-width="formLabelWidth"  prop="bondedtype">-->
朱兆平 authored
218
<!--                                    <el-input v-model="addForm.bondedtype" autocomplete="off" >-->
小范 authored
219 220 221
<!--                                        <template slot="prepend">保税类别</template>-->
<!--                                    </el-input>-->
<!--                                </el-form-item>-->
222 223 224 225
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="6">
小范 authored
226
                                <el-form-item label=" " :label-width="formLabelWidth" prop="newwt">
朱兆平 authored
227
                                    <el-input v-model="addForm.newwt" autocomplete="off" >
小范 authored
228
                                        <template slot="prepend">净&emsp;&emsp;重</template>
229 230 231 232
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
233
                                <el-form-item label=" " :label-width="formLabelWidth"  prop="dclunitcd">
朱兆平 authored
234
                                    <el-input v-model="addForm.dclunitcd" autocomplete="off" >
小范 authored
235
                                        <template slot="prepend">单&emsp;&emsp;位</template>
236 237 238 239
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
240
                                <el-form-item label=" " :label-width="formLabelWidth" prop="dcluprcamt">
朱兆平 authored
241
                                    <el-input v-model="addForm.dcluprcamt" autocomplete="off" >
小范 authored
242
                                        <template slot="prepend">单&emsp;&emsp;价</template>
243 244 245 246
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
247
                                <el-form-item label=" " :label-width="formLabelWidth"  prop="dclurrcd">
朱兆平 authored
248
                                    <el-input v-model="addForm.dclurrcd" autocomplete="off" >
小范 authored
249
                                        <template slot="prepend">单价单位</template>
250 251 252 253 254 255
                                    </el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="6">
小范 authored
256
                                <el-form-item label=" " :label-width="formLabelWidth" prop="cofgdsno">
朱兆平 authored
257
                                    <el-input v-model="addForm.cofgdsno" autocomplete="off" placeholder="对应原产地证书项目编号">
小范 authored
258
                                        <template slot="prepend">项目编号</template>
259 260 261 262
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
263
                                <el-form-item label=" " :label-width="formLabelWidth"  prop="asdutyrate">
朱兆平 authored
264
                                    <el-input v-model="addForm.asdutyrate" autocomplete="off" >
小范 authored
265
                                        <template slot="prepend">反补贴税率</template>
266 267 268 269
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
270
                                <el-form-item label=" " :label-width="formLabelWidth" prop="atdutyrate">
朱兆平 authored
271
                                    <el-input v-model="addForm.atdutyrate" autocomplete="off" >
小范 authored
272
                                        <template slot="prepend">反倾销税率</template>
273 274 275
                                    </el-input>
                                </el-form-item>
                            </el-col>
朱兆平 authored
276 277 278 279 280 281 282
                            <el-col :span="6">
                                <el-form-item label="" :label-width="formLabelWidth"  prop="seqno">
                                    <el-input v-model="addForm.seqno" autocomplete="off" placeholder="中心统一编号">
                                        <template slot="prepend">统一编号</template>
                                    </el-input>
                                </el-form-item>
                            </el-col>
283
                        </el-row>
小范 authored
284 285
                        <el-divider content-position="center"> 商品管理其他非必填信息 </el-divider>
                        <el-divider content-position="left"> 商品基础信息 </el-divider>
286 287
                        <el-row>
                            <el-col :span="6">
小范 authored
288
                                <el-form-item label="" :label-width="formLabelWidth"  prop="stuff">
朱兆平 authored
289
                                    <el-input v-model="addForm.stuff" autocomplete="off" >
小范 authored
290
                                        <template slot="prepend">成&emsp;&emsp;份</template>
291 292 293 294
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
295
                                <el-form-item label="" :label-width="formLabelWidth" prop="grosswt">
朱兆平 authored
296
                                    <el-input v-model="addForm.grosswt" autocomplete="off" >
小范 authored
297
                                        <template slot="prepend">毛&emsp;&emsp;重</template>
298 299 300 301
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
302
                                <el-form-item label="" :label-width="formLabelWidth" prop="stocknum">
朱兆平 authored
303
                                    <el-input v-model="addForm.stocknum" autocomplete="off" >
小范 authored
304
                                        <template slot="prepend">库存数量</template>
305 306 307 308
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
309
                                <el-form-item label="" :label-width="formLabelWidth"  prop="picture">
朱兆平 authored
310
                                    <el-input v-model="addForm.picture" autocomplete="off" >
小范 authored
311
                                        <template slot="prepend">图&emsp;&emsp;片</template>
312 313 314 315 316 317
                                    </el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="6">
小范 authored
318
                                <el-form-item label="" :label-width="formLabelWidth" prop="gdsbrand">
朱兆平 authored
319
                                    <el-input v-model="addForm.gdsbrand" autocomplete="off" >
小范 authored
320 321
                                        <template slot="prepend">商品品牌</template>
                                    </el-input>
322 323 324
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
325
                                <el-form-item label="" :label-width="formLabelWidth"  prop="gdsspcfmodeldesc">
朱兆平 authored
326
                                    <el-input v-model="addForm.gdsspcfmodeldesc" autocomplete="off" >
小范 authored
327
                                        <template slot="prepend">型号规格</template>
328 329 330 331
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
332
                                <el-form-item label="" :label-width="formLabelWidth" prop="gdsupplier">
朱兆平 authored
333
                                    <el-input v-model="addForm.gdsupplier" autocomplete="off" >
小范 authored
334
                                        <template slot="prepend">商品供应商</template>
335 336 337 338
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
339
                                <el-form-item label="" :label-width="formLabelWidth"  prop="goodsattr">
朱兆平 authored
340
                                    <el-input v-model="addForm.goodsattr" autocomplete="off" >
小范 authored
341
                                        <template slot="prepend">货物属性代码</template>
342 343 344 345 346 347
                                    </el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="6">
小范 authored
348
                                <el-form-item label="" :label-width="formLabelWidth" prop="gdsmaster">
朱兆平 authored
349
                                    <el-input v-model="addForm.gdsmaster" autocomplete="off" >
小范 authored
350
                                        <template slot="prepend">货&emsp;&emsp;主</template>
351 352 353 354
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
355
                                <el-form-item label="" :label-width="formLabelWidth"  prop="status">
朱兆平 authored
356
                                    <el-input v-model="addForm.status" autocomplete="off"  disabled>
小范 authored
357
                                        <template slot="prepend">状&emsp;&emsp;态</template>
358 359 360 361
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
362
                                <el-form-item label="" :label-width="formLabelWidth" prop="costprice">
朱兆平 authored
363
                                    <el-input v-model="addForm.costprice" autocomplete="off" >
小范 authored
364
                                        <template slot="prepend">采&emsp;购&emsp;价</template>
365 366 367 368 369 370 371
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
                                <el-form-item label="" :label-width="formLabelWidth" prop="fitprcpromise">
                                    <div class="my-text-area">
                                        <div class="el-input-group__prepend prepand">价格承诺</div>
朱兆平 authored
372
                                        <el-select v-model="addForm.fitprcpromise" placeholder="是否符合价格承诺"  style="width: 150px">
小范 authored
373 374
                                            <el-option label="否" value='0'></el-option>
                                            <el-option label="是" value='1'></el-option>
375 376 377 378
                                        </el-select>
                                    </div>
                                </el-form-item>
                            </el-col>
小范 authored
379 380

381 382
                        </el-row>
                        <el-row>
小范 authored
383 384 385 386 387
                            <el-divider content-position="left"> 商品生产信息 </el-divider>
                            <el-row>

                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth" prop="producer">
朱兆平 authored
388
                                        <el-input v-model="addForm.producer" autocomplete="off" >
小范 authored
389 390 391 392 393 394
                                            <template slot="prepend">生产商&emsp;</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth" prop="prodbatchno">
朱兆平 authored
395
                                        <el-input v-model="addForm.prodbatchno" autocomplete="off" >
小范 authored
396 397 398 399 400 401
                                            <template slot="prepend">生产批号</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth"  prop="mnufctrregname">
朱兆平 authored
402
                                        <el-input v-model="addForm.mnufctrregname" autocomplete="off" >
小范 authored
403 404 405 406 407 408
                                            <template slot="prepend">生产单位名称</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth" prop="mnufctrregno">
朱兆平 authored
409
                                        <el-input v-model="addForm.mnufctrregno" autocomplete="off" >
小范 authored
410 411 412 413 414 415 416 417
                                            <template slot="prepend">生产单位注册号</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                            </el-row>
                            <el-row>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth"  prop="producedate">
朱兆平 authored
418
                                        <el-input v-model="addForm.producedate" autocomplete="off" >
小范 authored
419 420 421 422 423 424
                                            <template slot="prepend">生产日期</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth" prop="prodqgp">
朱兆平 authored
425
                                        <el-input v-model="addForm.prodqgp" autocomplete="off" >
小范 authored
426 427 428 429 430 431
                                            <template slot="prepend">产品保质期</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth"  prop="prodvaliddt">
朱兆平 authored
432
                                        <el-input v-model="addForm.prodvaliddt" autocomplete="off" >
小范 authored
433 434 435 436 437 438
                                            <template slot="prepend">产品有效期</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth" prop="declgoodsename">
朱兆平 authored
439
                                        <el-input v-model="addForm.declgoodsename" autocomplete="off" >
小范 authored
440 441 442 443 444 445 446 447
                                            <template slot="prepend">商品英文名称</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                            </el-row>
                            <el-row>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth"  prop="natcd">
朱兆平 authored
448
                                        <el-input v-model="addForm.natcd" autocomplete="off" >
小范 authored
449 450 451 452 453 454
                                            <template slot="prepend">原产国&emsp;</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth"  prop="cofno">
朱兆平 authored
455
                                        <el-input v-model="addForm.cofno" autocomplete="off" >
小范 authored
456 457 458 459 460 461
                                            <template slot="prepend">原产地证书</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth"  prop="destinationnatcd">
朱兆平 authored
462
                                        <el-input v-model="addForm.destinationnatcd" autocomplete="off" >
小范 authored
463 464 465 466 467 468
                                            <template slot="prepend">最终目的国</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth"  prop="putrecseqno">
朱兆平 authored
469
                                        <el-input v-model="addForm.putrecseqno" autocomplete="off" >
小范 authored
470 471 472 473 474 475 476 477
                                            <template slot="prepend">备案序号</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                            </el-row>
                            <el-row>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth"  prop="ofcnname">
朱兆平 authored
478
                                        <el-input v-model="addForm.ofcnname" autocomplete="off" >
小范 authored
479 480 481 482 483 484
                                            <template slot="prepend">原厂商中文名称</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth" prop="ofenname">
朱兆平 authored
485
                                        <el-input v-model="addForm.ofenname" autocomplete="off" >
小范 authored
486 487 488 489 490 491
                                            <template slot="prepend">原厂商英文名称</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                            </el-row>
                            <el-divider content-position="left"> 商品危险品信息 </el-divider>
492 493
                        <el-row>
                            <el-col :span="6">
小范 authored
494
                                <el-form-item label="" :label-width="formLabelWidth" prop="dangpackspec">
朱兆平 authored
495
                                    <el-input v-model="addForm.dangpackspec" autocomplete="off" >
小范 authored
496
                                        <template slot="prepend">危险品规格</template>
497 498 499 500
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
501
                                <el-form-item label="" :label-width="formLabelWidth"  prop="dangpacktype">
朱兆平 authored
502
                                    <el-input v-model="addForm.dangpacktype" autocomplete="off" >
小范 authored
503
                                        <template slot="prepend">危险品类别</template>
504 505 506 507
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
508 509 510 511 512 513 514
                                <el-form-item label="" :label-width="formLabelWidth" prop="dangunno">
                                    <el-input v-model="addForm.dangunno" autocomplete="off" placeholder="联合国危险品编码">
                                        <template slot="prepend">联合国编号</template>
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
515 516 517
                                <el-form-item label="" :label-width="formLabelWidth"  prop="dangmark">
                                    <div class="my-text-area">
                                        <div class="el-input-group__prepend prepand">危险品标志</div>
朱兆平 authored
518
                                        <el-select v-model="addForm.dangmark" placeholder="请选择是否虚拟仓库"  style="width: 150px">
小范 authored
519 520 521 522
                                            <el-option label="否" value='0'></el-option>
                                            <el-option label="是" value='1'></el-option>
                                        </el-select>
                                    </div>
523 524 525
                                </el-form-item>
                            </el-col>
                        </el-row>
小范 authored
526
                        <el-divider content-position="left"> 商品扩展信息 </el-divider>
527 528
                        <el-row>
                            <el-col :span="6">
小范 authored
529
                                <el-form-item label="" :label-width="formLabelWidth" prop="uncode">
朱兆平 authored
530
                                    <el-input v-model="addForm.uncode" autocomplete="off" >
小范 authored
531
                                        <template slot="prepend">UN编码</template>
532 533 534 535
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
536
                                <el-form-item label="" :label-width="formLabelWidth" prop="ptacode">
朱兆平 authored
537
                                    <el-input v-model="addForm.ptacode" autocomplete="off" >
小范 authored
538
                                        <template slot="prepend">优惠贸易协定代码</template>
539 540 541 542 543 544
                                    </el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="6">
小范 authored
545
                                <el-form-item label="" :label-width="formLabelWidth" prop="domintcir">
朱兆平 authored
546
                                    <el-input v-model="addForm.domintcir" autocomplete="off" >
小范 authored
547
                                        <template slot="prepend">国内国际流转</template>
548 549 550 551
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
552
                                <el-form-item label="" :label-width="formLabelWidth"  prop="esdutyrate">
朱兆平 authored
553
                                    <el-input v-model="addForm.esdutyrate" autocomplete="off" >
小范 authored
554
                                        <template slot="prepend">保障措施税率</template>
555 556 557 558
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
559
                                <el-form-item label="" :label-width="formLabelWidth"  prop="usafeermvmapk">
朱兆平 authored
560
                                    <el-input v-model="addForm.usafeermvmapk" autocomplete="off" >
小范 authored
561
                                        <template slot="prepend">对美加征排除标志</template>
562 563 564 565
                                    </el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
小范 authored
566
                        <el-divider content-position="left"> 商品其他信息 </el-divider>
567 568
                        <el-row>
                            <el-col :span="6">
小范 authored
569
                                <el-form-item label="" :label-width="formLabelWidth" prop="createdby">
朱兆平 authored
570
                                    <el-input v-model="addForm.createdby" autocomplete="off"  disabled>
小范 authored
571
                                        <template slot="prepend">创建人&emsp;</template>
572 573 574 575
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
576
                                <el-form-item label="" :label-width="formLabelWidth"  prop="createdat">
朱兆平 authored
577
                                    <el-input v-model="addForm.createdat" autocomplete="off"  disabled>
小范 authored
578
                                        <template slot="prepend">创建日期</template>
579 580 581 582
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
583
                                <el-form-item label="" :label-width="formLabelWidth" prop="updatedby">
朱兆平 authored
584
                                    <el-input v-model="addForm.updatedby" autocomplete="off"  disabled>
小范 authored
585
                                        <template slot="prepend">更新人&emsp;</template>
586 587 588 589
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="6">
小范 authored
590
                                <el-form-item label="" :label-width="formLabelWidth"  prop="updatedat">
朱兆平 authored
591
                                    <el-input v-model="addForm.updatedat" autocomplete="off"  disabled>
小范 authored
592
                                        <template slot="prepend">更新日期</template>
593 594 595 596
                                    </el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
小范 authored
597 598 599
                            <el-row>
                                <el-col :span="6">
                                    <el-form-item label="" :label-width="formLabelWidth" prop="rmk">
朱兆平 authored
600
                                        <el-input v-model="addForm.rmk" autocomplete="off" >
小范 authored
601 602 603 604 605
                                            <template slot="prepend">备&emsp;&emsp;注</template>
                                        </el-input>
                                    </el-form-item>
                                </el-col>
                            </el-row>
606 607 608
                        </el-row>
                    </el-form>
                    <div slot="footer" class="dialog-footer">
朱兆平 authored
609 610
                        <el-button @click="apply_dialog.addDialog = false" >取 消</el-button>
                        <el-button type="primary" @click="dialogApply==='create'?add():edit()" >提 交</el-button>
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
                    </div>
                </el-dialog>
            </el-row>
        </el-card>
    </el-row>
</template>

<script>
    import {selectGoodsManagement,delGoods,addGoods,ediGoods} from '../../api/consigner/station';

    export default {
        name: "seller",
        data() {
            return {
                queryInfo: {
                    seqno:'',
                    putrecseqno:'',
                    gdecd:'',
                    gdebc:'',
                    gdsmtno:'',
                    itemno:'',
                    // 当前页数
                    pageNum: 1,
                    // 每页大小
                    pageSize: 10,
                },
                total: 0,
                tableData:[],
                dialogMap: {
                    update: '编辑',
                    create: '新增'
                },
                dis: undefined,
                dialogApply: 'create',
                apply_dialog: {
                    // 添加对话框
                    addDialog: false,
                    // 编辑对话框
                    editDialog: false
                },
                addForm: {
                    asdutyrate: '',
                    atdutyrate: '',
                    bondedtype: '',
                    cofgdsno: '',
                    cofno: '',
                    costprice: '',
                    createdat: '',
                    createdby: '',
小范 authored
660
                    dangmark: '0',
661 662 663 664 665 666 667 668 669 670
                    dangpackspec: '',
                    dangpacktype: '',
                    dangunno: '',
                    dclunitcd:'',
                    dcluprcamt:'',
                    dclurrcd:'',
                    declgoodsename:'',
                    destinationnatcd: '',
                    domintcir: '',
                    esdutyrate: '',
小范 authored
671
                    fitprcpromise: '0',
672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713
                    gdebc: '',
                    gdecd: '',
                    gdetype: '',
                    gdsbrand: '',
                    gdsmaster: '',
                    gdsmtno: '',
                    gdsnm: '',
                    gdsspcfmodeldesc: '',
                    gdsupplier:'',
                    goodsattr:'',
                    grosswt:'',
                    id:'',
                    itemno: '',
                    mnufctrregname: '',
                    mnufctrregno: '',
                    natcd: '',
                    newwt: '',
                    ofcnname: '',
                    ofenname: '',
                    picture: '',
                    prodbatchno: '',
                    prodqgp: '',
                    producedate: '',
                    producer: '',
                    prodvaliddt:'',
                    ptacode:'',
                    putrecseqno:'',
                    rmk:'',
                    seqno: '',
                    skucd: '',
                    status: '',
                    stocknum: '',
                    stuff: '',
                    uncode: '',
                    updatedat: '',
                    updatedby: '',
                    usafeermvmapk: '',
                },
                loading:false,
                formLabelWidth: '20px',
                dialogVisible:false,
                rules: {
小范 authored
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758
                    gdsnm: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    gdetype: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    gdebc: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    gdecd: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    itemno: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    gdsmtno: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    skucd: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    bondedtype: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    newwt: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    dclunitcd: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    dcluprcamt: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    dclurrcd: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    cofgdsno: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    asdutyrate: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
                    atdutyrate: [
                        { required: true, message: '该项为必填项', trigger: 'blur' }
                    ],
759
                },
小范 authored
760
761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800
            }
        },
        methods: {
            handleSizeChange(val) {
                this.queryInfo.pageSize = val
                this.getList()
            },
            handleCurrentChange(val) {
                this.queryInfo.pageNum = val
                this.getList()
            },
            getList() {
                const _this = this
                selectGoodsManagement(this.queryInfo).then((response) => {
                    const res = response.data
                    console.log(response.data)
                    if (res.code !== '200') {
                        return _this.$message.error('获取消息收发记录,失败!')
                    }
                    // 获取列表数据
                    _this.tableData = res.data.list
                    // 获取列表的总记录数
                    _this.total = res.data.total
                    _this.$message.success('获取消息收发记录,成功!')
                }).catch(error => {
                    // 关闭加载
                    _this.$message.error(error.toString())
                })
            },
            // 添加对话框,打开事件
            applyAdd() {
                this.addForm = {
                    asdutyrate: '',
                    atdutyrate: '',
                    bondedtype: '',
                    cofgdsno: '',
                    cofno: '',
                    costprice: '',
                    createdat: '',
                    createdby: '',
小范 authored
801
                    dangmark: '0',
802 803 804 805 806 807 808 809 810 811
                    dangpackspec: '',
                    dangpacktype: '',
                    dangunno: '',
                    dclunitcd:'',
                    dcluprcamt:'',
                    dclurrcd:'',
                    declgoodsename:'',
                    destinationnatcd: '',
                    domintcir: '',
                    esdutyrate: '',
小范 authored
812
                    fitprcpromise: '0',
813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947
                    gdebc: '',
                    gdecd: '',
                    gdetype: '',
                    gdsbrand: '',
                    gdsmaster: '',
                    gdsmtno: '',
                    gdsnm: '',
                    gdsspcfmodeldesc: '',
                    gdsupplier:'',
                    goodsattr:'',
                    grosswt:'',
                    id:'',
                    itemno: '',
                    mnufctrregname: '',
                    mnufctrregno: '',
                    natcd: '',
                    newwt: '',
                    ofcnname: '',
                    ofenname: '',
                    picture: '',
                    prodbatchno: '',
                    prodqgp: '',
                    producedate: '',
                    producer: '',
                    prodvaliddt:'',
                    ptacode:'',
                    putrecseqno:'',
                    rmk:'',
                    seqno: '',
                    skucd: '',
                    status: '',
                    stocknum: '',
                    stuff: '',
                    uncode: '',
                    updatedat: '',
                    updatedby: '',
                    usafeermvmapk: '',
                };
                this.dialogApply= 'create';
                this.dis= 'create';
                this.apply_dialog.addDialog = true;
            },
            // 添加功能
            add() {
                this.$refs.addForm.validate(valid => {
                    // 未通过,表单预校验
                    if (!valid) return;
                    addGoods(this.addForm).then((response) => {
                        let res = response.data;
                        // 添加失败
                        if (res.code !== '200') {
                            return this.$message.error(res.msg);
                        }
                        // 添加,成功
                        this.$message.success(res.msg);
                        // 隐藏对话框
                        this.apply_dialog.addDialog = false;
                        // 刷新列表
                        this.getList();
                    }).catch(error => {
                        this.$message.error(error.toString());
                    });
                })
            },
// 打开编辑
            applyEdit(row) {
                this.apply_dialog.addDialog = true;
                this.dialogApply = 'update';
                this.dis= 'update';
                this.addForm=row;
            },
            // 编辑功能
            edit() {
                // 进行表单的预验证
                this.$refs.addForm.validate(valid => {
                    // 未通过,表单预校验
                    if (!valid) return
                    ediGoods(this.addForm).then((response) => {
                        // console.log(row)
                        const res = response.data
                        if (res.code != '200') {
                            return this.$message.error(res.msg)
                        }
                        this.$message.success(res.msg)
                        // 隐藏对话框
                        this.apply_dialog.addDialog = false
                        // 刷新列表
                        this.getList()
                    }).catch(error => {
                        this.$message.error(error.toString())
                    })
                })
            },
            // 删除
            applyDel(index, row) {
                // 弹框询问是否删除?
                this.$confirm('此操作永久删除该消息收发记录, 是否继续?', '警告', {
                        confirmButtonText: '确定删除',
                        cancelButtonText: '取消',
                        type: 'warning'
                    }
                ).then(() => {
                    // console.log(row);
                    delGoods({id:row.id}).then((response) => {
                        // console.log(row)
                        const res = response.data
                        this.$message.success(res.msg)
                        this.getList()
                    }).catch(error => {
                        this.$message.error(res.msg)
                    })
                }).catch(() => {
                })
            },
        },
        mounted() {
            this.getList();

        }

    }
</script>

<style scoped>
    .toolbar{
        height: 60px;
        background-color: white;
        /*line-height: 60px;*/
        vertical-align: middle;
        border-radius: 5px 5px 5px 5px;
        padding: 15px 0 0 20px;
        box-shadow: 0px 5px 5px #e5e8eb;
    }
    .my-text-area .prepand{
        float: left;
948
        width:110px;
949 950 951 952 953 954 955 956 957 958 959 960 961
        height: 28px;
        font-size: 12px;
        line-height: 28px;
    }
</style>
<style>
    .my-text-area .el-textarea__inner{
        min-height: 28px;
        height: 28px;
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
    }
</style>