审查视图

src/views/nav3/Way.vue 194.5 KB
小范 authored
1
<template>
小范 authored
2 3 4 5 6 7 8 9 10 11 12 13 14
    <el-card>
        <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="生成主单" name="first">
                <div style="height: 850px;overflow: scroll;margin-left: 25px;background-color: rgb(255,255,255)">
                    <el-form  :model="form" label-width="0px" :rules="apply_formRules" ref="apply_formRef">
                        <el-row style="margin-left: 40%">
                        <span style="font-size: 24px;margin-bottom: 25px">
                        新增主运单
                    </span>
                        </el-row>
                        <el-row>
                            <el-col :span="4">
                                <el-form-item label-width="30px" label=" " prop="bill.waybillNum">
朱兆平 authored
15
                                    <el-input v-model="form.bill.waybillNum" auto-complete="off" placeholder="主运单号(必填)" @input="handleInput"></el-input>
小范 authored
16 17 18 19
                                </el-form-item>
                            </el-col>
                            <el-col style="margin-left: 30px" :span="2">
                                <el-form-item>
朱兆平 authored
20
                                    <el-input
朱兆平 authored
21
                                        minlength="3" maxlength="3" oninput="this.value=this.value.toUpperCase()"
朱兆平 authored
22 23
                                        @keyup.native="form.bill.origin.replace(/[^A-Za-z]/g,'')"
                                        v-model="form.bill.origin" auto-complete="off" placeholder="起始站" size="mini"></el-input>
小范 authored
24 25
                                </el-form-item>
                            </el-col>
小范 authored
26 27 28
                            <el-col style="margin-left: 30px" :span="2">
                                <el-button type="warning" plain @click="cancleBtn">清空</el-button>
                            </el-col>
29 30 31 32 33 34 35 36 37
                            <el-col :span="2">
                                <el-upload
                                        action=""
                                        :on-change="handleChange"
                                        :auto-upload="false"
                                        :show-file-list="false">
                                    <el-button slot="trigger" type="primary">Excel文件</el-button>
                                </el-upload>
                            </el-col>
小范 authored
38 39 40 41 42 43 44 45 46 47
                        </el-row>
                        <!--                    发货人信息-->
                        <el-row>
                            <el-col :span="12" style="border: 1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
                        Shipper's Name and Address
                        <el-button type="primary" plain size="mini" style="margin-left: 15px;margin-top: 5px" @click="getShpFwb()">发货人</el-button>
                        <!--                        <el-button type="success" plain size="mini">保&nbsp;&nbsp;&nbsp;存</el-button>-->
                    </span>
                                <el-row>
小范 authored
48
                                    <el-col style="width: 38%">
小范 authored
49
                                        <el-form-item>
小范 authored
50 51
                                            <el-input   minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
                                                        @keyup.native="form.shp.shp_name=form.shp.shp_name.replace(/[^A-Za-z0-9_\s]/g,'')" v-model="form.shp.shp_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
小范 authored
52 53
                                        </el-form-item>
                                    </el-col>
小范 authored
54
                                    <el-col style="width: 40%;margin-left:5px">
小范 authored
55
                                        <el-form-item>
小范 authored
56
                                            <el-input  minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
57 58
                                                       @keyup.native="shp_contact.contact_number=shp_contact.contact_number.replace(/[^0-9]/g,'')"
                                                       v-model="shp_contact.contact_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
小范 authored
59 60 61 62 63 64 65 66 67 68
                                            <!--                                        <el-select v-model="form.shp.shp_detail_number" placeholder="电话/传真">-->
                                            <!--                                            <el-option label="电话" value="2"></el-option>-->
                                            <!--                                            <el-option label="传真" value="3"></el-option>-->
                                            <!--                                        </el-select>-->
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 25%">
                                        <el-form-item>
小范 authored
69 70
                                            <el-input  minlength="1" maxlength="9" onkeyup="this.value=this.value.toUpperCase()"
                                                    v-model="form.shp.shp_postcode" auto-complete="off" placeholder="邮编"></el-input>
小范 authored
71 72 73 74
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 25%;margin-left: 10px">
                                        <el-form-item>
小范 authored
75 76 77
                                            <el-input  minlength="1" maxlength="17" onkeyup="this.value=this.value.toUpperCase()"
                                                    @keyup.native="form.shp.shp_loc_place=form.shp.shp_loc_place.replace(/[^A-Za-z0-9_\s]/g,'')"
                                                      v-model="form.shp.shp_loc_place" auto-complete="off" placeholder="城市"></el-input>
小范 authored
78 79 80 81
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 25%;margin-left: 10px">
                                        <el-form-item>
小范 authored
82 83
                                            <el-input  minlength="2" maxlength="2" onkeyup="this.value=this.value.toUpperCase()"
                                                    v-model="form.shp.shp_country" auto-complete="off" placeholder="国家代码"></el-input>
小范 authored
84 85 86 87 88 89
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 80%">
                                        <el-form-item>
小范 authored
90
                                            <el-input  minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
小范 authored
91 92
                                                    @keyup.native="form.shp.shp_adr=form.shp.shp_adr.replace(/[^A-Za-z0-9_\s]/g,'')"
                                                       v-model="form.shp.shp_adr" auto-complete="off" placeholder="地址"></el-input>
小范 authored
93 94 95 96 97 98
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row style="margin-bottom: -5px">
                                    <el-col style="width: 80%">
                                        <el-form-item>
小范 authored
99 100
                                            <el-input minlength="1" maxlength="65" onkeyup="this.value=this.value.toUpperCase()"
                                                      @keyup.native="shp_oci.oci_csrc_info=shp_oci.oci_csrc_info.replace(/[^A-Za-z0-9_\s]/g,'')"
101
                                                      v-model="shp_oci.oci_csrc_info" auto-complete="off" placeholder="企业编码"></el-input>
小范 authored
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
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-top:1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                                <el-row style="margin-bottom: 10px">
                                    <el-col style="width: 20%">
                            <span style="font-size: 12px">
                        Air Waybill
                        </span>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 20%">
                            <span style="font-size: 12px">
                        lssued by
                        </span>
                                    </el-col>
                                    <el-col  style="width: 70%">
                                        <el-form-item>
                                            <el-input  type="textarea" :autosize="{ minRows: 2, maxRows: 4}"
                                                       auto-complete="off" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                        <span style="font-size: 12px">
                        Copies 1,2and3 of this Air Waybill are originals and have the same validity(Not Negotiable)
                        </span>
                                </el-row>
                            </el-col>
                        </el-row>
                        <!--                    收货人信息-->
                        <el-row style="padding-top: 10px">
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
                        Consignee's Name and Address
                        <el-button type="primary" plain size="mini" style="margin-top: 5px" @click="getCneFwb()">收货人</el-button>
                    </span>
                                <el-row>
小范 authored
142
                                    <el-col style="width: 38%">
小范 authored
143
                                        <el-form-item>
小范 authored
144 145 146
                                            <el-input  minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
                                                       @keyup.native="form.cne.cne_name=form.cne.cne_name.replace(/[^A-Za-z0-9_\s]/g,'')"
                                                       v-model="form.cne.cne_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
小范 authored
147 148
                                        </el-form-item>
                                    </el-col>
小范 authored
149
                                    <el-col style="width: 40%;margin-left: 5px">
小范 authored
150
                                        <el-form-item>
小范 authored
151
                                            <el-input  minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
小范 authored
152
                                                       @keyup.native="cne_contact.contact_number=cne_contact.contact_number.replace(/[^0-9]/g,'')"
小范 authored
153
                                                       v-model="cne_contact.contact_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
小范 authored
154 155 156 157 158 159
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 25%">
                                        <el-form-item>
小范 authored
160 161
                                            <el-input   minlength="1" maxlength="9" onkeyup="this.value=this.value.toUpperCase()"
                                                    v-model="form.cne.cne_postcode" auto-complete="off" placeholder="邮编"></el-input>
小范 authored
162 163 164 165
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 25%;margin-left: 10px">
                                        <el-form-item>
小范 authored
166 167 168
                                            <el-input  minlength="1" maxlength="17" onkeyup="this.value=this.value.toUpperCase()"
                                                       @keyup.native="form.cne.cne_loc_place=form.cne.cne_loc_place.replace(/[^A-Za-z0-9_\s]/g,'')"
                                                      v-model="form.cne.cne_loc_place" auto-complete="off" placeholder="城市"></el-input>
小范 authored
169 170 171 172
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 25%;margin-left: 10px">
                                        <el-form-item>
小范 authored
173 174
                                            <el-input  minlength="2" maxlength="2" onkeyup="this.value=this.value.toUpperCase()"
                                                    v-model="form.cne.cne_country" auto-complete="off" placeholder="国家代码"></el-input>
小范 authored
175 176 177 178 179 180
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 80%">
                                        <el-form-item>
小范 authored
181 182 183
                                            <el-input  minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
                                                       @keyup.native="form.cne.cne_adr=form.cne.cne_adr.replace(/[^A-Z0-9_\s]/g,'')"
                                                      v-model="form.cne.cne_adr" auto-complete="off" placeholder="地址"></el-input>
小范 authored
184 185 186 187 188 189
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row style="margin-bottom: -5px">
                                    <el-col style="width: 80%">
                                        <el-form-item>
小范 authored
190 191
                                            <el-input  minlength="1" maxlength="65" onkeyup="this.value=this.value.toUpperCase()"
                                                       @keyup.native="cne_oci.oci_csrc_info=cne_oci.oci_csrc_info.replace(/[^A-Za-z0-9_\s]/g,'')"
192
                                                      v-model="cne_oci.oci_csrc_info" auto-complete="off" placeholder="企业编码"></el-input>
小范 authored
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                    <span  style="font-size: 12px">
                        It is agreed that the goods described herein are accepted for carriage in apparent good order and condition (except as noted) and SUBJECT TO THE CONDITION OF CONTRACT ON THE REVERSE HEREOF. ALL GOODS MAY BE CARRIED BY ANY OTHER MEANS INCLUDING ROAD OR ANY OTHER CARRIER UNLESS SPECIFIC CONTRARY IS DRAWN TO THE NOTICE CONCERNING CARRIER'S LIMITATION OF LIABILITY. Shipper may increase such limitation of liability by declaring higher value for carriage and paying a supplemental charge if required.
                    </span>
                            </el-col>
                        </el-row>
                        <!--                    代理人信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;;border-left:1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
                        Issuing Carrier's Agent Name and City
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 30%">
                                        <el-form-item>
小范 authored
212
                                            <el-input disabled v-model="form.agt.agt_name" auto-complete="off" placeholder="代理人名称" size="mini"></el-input>
小范 authored
213 214 215 216
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 30%;margin-left: 30px">
                                        <el-form-item>
小范 authored
217
                                            <el-input disabled v-model="form.agt.agt_ADR" auto-complete="off" placeholder="代理人地址" size="mini"></el-input>
小范 authored
218 219 220 221 222 223
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
朱兆平 authored
224
                        Accounting information content
小范 authored
225 226 227 228
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 90%">
                                        <el-form-item>
小范 authored
229 230
                                            <el-input  minlength="1" maxlength="34" onkeyup="this.value=this.value.toUpperCase()"
                                                    v-model="acc_info.acc_info" auto-complete="off" placeholder="财务信息内容" size="mini"></el-input>
小范 authored
231 232 233 234 235 236 237 238 239 240 241 242 243
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
                            <span style="font-size: 12px">
                        Agent's IATA Code
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 65%">
                                        <el-form-item>
小范 authored
244
                                            <el-input disabled v-model="form.agt.agt_IATA_number" auto-complete="off" placeholder="IATA代码" size="mini"></el-input>
小范 authored
245 246 247 248 249 250 251 252 253 254 255
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                            <span style="font-size: 12px">
                        Agent's Account Number
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 65%">
                                        <el-form-item>
小范 authored
256
                                            <el-input disabled v-model="form.agt.agt_account_number" auto-complete="off" placeholder="代理人账号" size="mini"></el-input>
小范 authored
257 258 259 260 261 262 263
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>

                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
朱兆平 authored
264
                       Accounting Information Identification
小范 authored
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 90%">
                                        <el-form-item>
                                            <el-input v-model="acc_info.acc_info_id" auto-complete="off" placeholder="财务信息标识" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <!--                    航班信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
                            <span style="font-size: 12px">
                        Airport of Departure (Addr. of First Carrier) and Requested Routing
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
284
                                            <el-input  disabled auto-complete="off" placeholder="出发机场(第一承运人地址)" size="mini"></el-input>
小范 authored
285 286 287 288 289 290 291 292 293 294 295
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Currency
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
296 297
                                            <el-input  minlength="3" maxlength="3"
                                                       oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
小范 authored
298
                                                    v-model="form.cvd.cvd_currency_code" auto-complete="off" placeholder="货币单位" size="mini"></el-input>
小范 authored
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
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        GHGS Code
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input  v-model="form.cvd.cvd_charge_code" auto-complete="off" placeholder="收费代码" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        WT/VAL(PPD)&Other(PPD)
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 90%">
                                        <el-form-item>
                                            <el-input v-model="form.cvd.cvd_charge_prepaid" auto-complete="off" placeholder="付费方式" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
<!--                                    <el-col style="width: 45%;margin-left: 5px">-->
<!--                                        <el-form-item>-->
<!--                                            <el-input v-model="form.companyName" auto-complete="off" placeholder="" size="mini"></el-input>-->
<!--                                        </el-form-item>-->
<!--                                    </el-col>-->
                                </el-row>
                            </el-col>
<!--                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">-->
<!--                            <span style="font-size: 12px">-->
<!--                        Other(PPD)-->
<!--                    </span>-->
<!--                                <el-row  style="margin-bottom: -5px">-->
<!--                                    <el-col style="width: 90%">-->
<!--                                        <el-form-item>-->
<!--                                            <el-input v-model="form.cvd.cvd_charge_prepaid" auto-complete="off" placeholder="付费方式" size="mini"></el-input>-->
<!--                                        </el-form-item>-->
<!--                                    </el-col>-->
<!--&lt;!&ndash;                                    <el-col style="width: 45%;margin-left: 5px">&ndash;&gt;-->
<!--&lt;!&ndash;                                        <el-form-item>&ndash;&gt;-->
<!--&lt;!&ndash;                                            <el-input v-model="form.companyName" auto-complete="off" placeholder="" size="mini"></el-input>&ndash;&gt;-->
<!--&lt;!&ndash;                                        </el-form-item>&ndash;&gt;-->
<!--&lt;!&ndash;                                    </el-col>&ndash;&gt;-->
<!--                                </el-row>-->
<!--                            </el-col>-->
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
朱兆平 authored
353
                                To1
小范 authored
354 355 356 357
                            </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
358
                                            <el-input minlength="3" maxlength="3" oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
朱兆平 authored
359
                                                    v-model="form.rtg.destinationAirport" auto-complete="off" placeholder="到达站" size="mini"></el-input>
小范 authored
360 361 362 363 364 365 366 367 368 369 370
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        First Carrier
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
371 372
                                            <el-input  minlength="2" maxlength="2" oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
                                                    v-model="form.rtg.destinationCarrier" auto-complete="off" placeholder="承运人" size="mini"></el-input>
小范 authored
373 374 375 376 377 378 379 380 381 382 383
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        To
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
384 385 386
                                            <el-input  v-model="form.rtg.onwardAirport"
                                                       minlength="3" maxlength="3" oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
                                                       auto-complete="off" placeholder="到达站1" size="mini"></el-input>
小范 authored
387 388 389 390 391 392 393 394 395 396 397
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        By
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
398 399 400
                                            <el-input  v-model="form.rtg.onwardCarrier"
                                                       minlength="2" maxlength="2" oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
                                                       auto-complete="off" placeholder="承运人1" size="mini"></el-input>
小范 authored
401 402 403 404 405 406 407 408 409 410 411
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        To
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
412 413 414
                                            <el-input v-model="form.rtg.onwardAirport3"
                                                      minlength="3" maxlength="3" oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
                                                      auto-complete="off" placeholder="到达站2" size="mini"></el-input>
小范 authored
415 416 417 418 419 420 421 422 423 424 425
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        By
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
426 427 428
                                            <el-input v-model="form.rtg.onwardCarrier3"
                                                      minlength="2" maxlength="2" oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
                                                      auto-complete="off" placeholder="承运人2" size="mini"></el-input>
小范 authored
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
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        Declared Value for Carriage
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="form.cvd.cvd_value_for_carriage" auto-complete="off" placeholder="运输声明价值" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        Declared Value for Customs
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="form.cvd.cvd_value_for_customs" auto-complete="off" placeholder="海关声明价值" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
朱兆平 authored
460 461 462
                              <span style="font-size: 12px">
                                Airport of Destination
                              </span>
小范 authored
463 464 465
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
466 467 468
                                            <el-input disabled minlength="3" maxlength="3"
                                                      oninput="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase();"
                                                      auto-complete="off" placeholder="目的地机场" size="mini">
朱兆平 authored
469 470

                                            </el-input>
小范 authored
471 472 473 474
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
朱兆平 authored
475
                            <el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
小范 authored
476 477 478 479 480
                            <span style="font-size: 12px">
                        Requested Flight/Date
                    </span>
                                <el-row>
                                    <el-col style="width: 38%">
朱兆平 authored
481 482 483
                                        <el-form-item prop="flightNumber">
                                            <el-input v-model="flightNumber"
                                                      auto-complete="off" placeholder="航班号"></el-input>
小范 authored
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 58%;margin-left: 5px">
                                        <el-form-item>
                                            <el-date-picker
                                                    v-model="form.flt.day"
                                                    type="date" style="width: auto"
                                                    size="mini"
                                                    format="dd"
                                                    value-format="dd"
                                                    placeholder="选择日期">
                                            </el-date-picker>
                                            <!--                                <el-input v-model="form.companyName" auto-complete="off" placeholder="航班日期" size="mini"></el-input>-->
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
朱兆平 authored
501 502 503 504 505 506
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Requested Flight/Date
                    </span>
                            <el-row>
                              <el-col style="width: 38%">
朱兆平 authored
507 508 509 510
                                <el-form-item prop="flightNumber2">
                                  <el-input v-model="flightNumber2"
                                            oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
                                            auto-complete="off" placeholder="航班号" ></el-input>
朱兆平 authored
511 512 513 514 515
                                </el-form-item>
                              </el-col>
                              <el-col style="width: 58%;margin-left: 5px">
                                <el-form-item>
                                  <el-date-picker
朱兆平 authored
516
                                      v-model="form.flt.day2"
朱兆平 authored
517 518 519 520 521 522 523 524 525 526 527
                                      type="date" style="width: auto"
                                      size="mini"
                                      format="dd"
                                      value-format="dd"
                                      placeholder="选择日期">
                                  </el-date-picker>
                                  <!--                                <el-input v-model="form.companyName" auto-complete="off" placeholder="航班日期" size="mini"></el-input>-->
                                </el-form-item>
                              </el-col>
                            </el-row>
                          </el-col>
小范 authored
528 529 530 531 532 533 534 535 536 537 538 539
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        Amount of Insurance
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="form.cvd.cvd_amount_of_insurance" auto-complete="off" placeholder="保险金额" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
朱兆平 authored
540 541 542 543
                            <el-col :span="7" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                              <span style="font-size: 12px">
                                  INSURANCE —— If carrier offers insurance, and such insurance is requested in accordance with the conditions thereof, indicate amount to be insured in figures in box marked "Amount of Insurance".
                              </span>
小范 authored
544 545
                            </el-col>
                        </el-row>
朱兆平 authored
546 547
                      <!--                    收货人信息-->
                      <el-row style="padding-top: 10px">
朱兆平 authored
548
                        <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
朱兆平 authored
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 581 582 583 584 585 586 587 588 589 590 591
                    <span style="font-size: 12px">
                        Notify Name and Address
                        <el-button type="primary" plain size="mini" style="margin-top: 5px" @click="getCneFwb()">通知人</el-button>
                    </span>
                          <el-row>
                            <el-col style="width: 38%">
                              <el-form-item>
                                <el-input  minlength="1" maxlength="35"
                                           oninput="this.value=this.value.replace(/[^A-Za-z0-9_\S]/g,'').toUpperCase();"
                                           v-model="form.nfy.nfy_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
                              </el-form-item>
                            </el-col>
                            <el-col style="width: 40%;margin-left: 5px">
                              <el-form-item>
                                <el-input  minlength="1" maxlength="25"
                                           oninput="this.value=this.value.replace(/[^0-9]/g,'');"
                                           v-model="nfy_contact.contact_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
                              </el-form-item>
                            </el-col>
                          </el-row>
                          <el-row>
                            <el-col style="width: 25%">
                              <el-form-item>
                                <el-input   minlength="1" maxlength="9"
                                            oninput="this.value=this.value.replace(/[^0-9]/g,'');"
                                            v-model="form.nfy.nfy_postcode" auto-complete="off" placeholder="邮编"></el-input>
                              </el-form-item>
                            </el-col>
                            <el-col style="width: 25%;margin-left: 10px">
                              <el-form-item>
                                <el-input  minlength="1" maxlength="17"
                                           oninput="this.value=this.value.replace(/[^A-Za-z0-9_\s]/g,'').toUpperCase();"
                                           v-model="form.nfy.nfy_LOC_city" auto-complete="off" placeholder="城市"></el-input>
                              </el-form-item>
                            </el-col>
                            <el-col style="width: 25%;margin-left: 10px">
                              <el-form-item>
                                <el-input  minlength="2" maxlength="2"
                                           oninput="this.value=this.value.replace(/[^A-Z]/g,'').toUpperCase();"
                                           v-model="form.nfy.nfy_country" auto-complete="off" placeholder="国家代码"></el-input>
                              </el-form-item>
                            </el-col>
                          </el-row>
朱兆平 authored
592
                          <el-row style="margin-bottom: -5px">
朱兆平 authored
593 594 595 596 597 598 599 600
                            <el-col style="width: 80%">
                              <el-form-item>
                                <el-input  minlength="1" maxlength="35"
                                           oninput="this.value=this.value.replace(/[^A-Z0-9_\s]/g,'').toUpperCase();"
                                           v-model="form.nfy.nfy_ADR" auto-complete="off" placeholder="地址"></el-input>
                              </el-form-item>
                            </el-col>
                          </el-row>
朱兆平 authored
601 602 603
                        </el-col>
                        <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
                            Also Notify Area
朱兆平 authored
604 605
                        </el-col>
                      </el-row>
小范 authored
606 607 608 609 610 611 612 613 614 615
                        <!--                    处理信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="22" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding: 5px">
                            <span style="font-size: 12px">

Handling Information
                    </span>
                                <el-row style="margin-bottom: -2px">
                                    <el-col style="width: 100%">
                                        <el-form-item>
朱兆平 authored
616 617 618 619 620 621 622
<!--                                            每行65个字符-->
                                            <el-input
                                                      v-model="ssr_content"
                                                      show-word-limit
                                                      maxlength="195"
                                                      type="textarea"
                                                      :autosize="{ minRows: 2, maxRows: 4}"
小范 authored
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 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678
                                                      auto-complete="off" placeholder="被通知人信息" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <span style="font-size: 10px">
                             (For USA only) These commodities Licensed by U.S. for ultimate destination.Diversion contrary to U.S. law is prohibited.
                    </span>
                            </el-col>
                        </el-row>
                        <!--                    件重计费信息-->
                        <!--                    表头信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 2px">
                            <span style="font-size: 12px">
                        No. of Pieces RCP
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                            <span style="font-size: 12px">
                        Gross Weight
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                    <span style="font-size: 12px">
                        kg lb
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 2px">
                                <span style="font-size: 12px">Rate Class</span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                            <span style="font-size: 12px">
                        Commodity Item No.
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                    <span style="font-size: 12px">
                        Chargeable Weight
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                                <span style="font-size: 12px">Rate / Charge</span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                                <span style="font-size: 12px">Total</span>
                            </el-col>
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                                <span style="font-size: 12px">Nature and Quantity of Goods (incl. Dimensions or Volume)</span>
                            </el-col>
                        </el-row>
                        <!--                    输入信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
679 680 681
                                            <el-input v-model="form.bill.quantity_picecs"
                                                      oninput="this.value=this.value.replace(/[^0-9]/g,'').trim();"
                                                      auto-complete="off" placeholder="件数1" size="mini"></el-input>
小范 authored
682 683 684 685 686 687 688 689
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
690 691 692
                                            <el-input v-model="form.bill.quantity_weight"
                                                      oninput="this.value=this.value.replace(/[^0-9\.]/g,'');"
                                                      auto-complete="off" placeholder="重量(KG)" size="mini"></el-input>
小范 authored
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="form.bill.quantity_weight_code" auto-complete="off" placeholder="计量单位" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-select v-model="form.rtd.rtd_rate_class" placeholder="运价种类">
                                                <el-option label="Q" value="Q"></el-option>
                                                <el-option label="C" value="C"></el-option>
                                                <el-option label="M" value="M"></el-option>
                                                <el-option label="N" value="N"></el-option>
                                                <el-option label="S" value="S"></el-option>
                                                <el-option label="R" value="R"></el-option>
                                            </el-select>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
726
                                            <el-input disabled v-model="form.rtd.rtd_commodity_NUM" auto-complete="off" placeholder="商品代号" size="mini"></el-input>
小范 authored
727 728 729 730 731 732 733 734
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
735 736 737
                                            <el-input v-model="form.rtd.rtd_charge_weight"
                                                      oninput="this.value=this.value.replace(/[^0-9\.]/g,'');"
                                                      auto-complete="off" placeholder="计费重量" size="mini"></el-input>
小范 authored
738 739 740 741 742 743 744 745
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
746 747 748
                                            <el-input v-model="form.rtd.rtd_rate_charge"
                                                      oninput="this.value=this.value.replace(/[^0-9\.]/g,'');"
                                                      auto-complete="off" placeholder="费率" size="mini"></el-input>
小范 authored
749 750 751 752 753 754 755 756
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
757 758 759
                                            <el-input v-model="form.rtd.rtd_total"
                                                      oninput="this.value=this.value.replace(/[^0-9\.]/g,'');"
                                                      auto-complete="off" placeholder="总计" size="mini"></el-input>
小范 authored
760 761 762 763 764 765 766 767
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
768 769 770
                                            <el-input  minlength="1" maxlength="20" onkeyup="this.value=this.value.toUpperCase()"
                                                       @keyup.native="form.rtd.rtd_goods_DES.replace(/[^A-Za-z0-9\s]/g,'')"
                                                    v-model="form.rtd.rtd_goods_DES" auto-complete="off" placeholder="货物品名" size="mini"></el-input>
小范 authored
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 801 802 803 804 805 806 807 808 809 810
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-button type="primary" plain size="mini" style="width: 100%;text-align: left" @click="dialogTableVisible = true">尺寸</el-button>
                                            <!--                                <el-input v-model="form.companyName" auto-complete="off" placeholder="尺寸(长*宽*高*件数)" size="mini"></el-input>-->
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="form.bill.quantity_volume" auto-complete="off" placeholder="体积" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input auto-complete="off" placeholder="其他" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <!--                    付款信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5">
                                <el-row style="border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                    <el-col :span="16"  style="font-size: 12px">
                                        <el-radio v-model="form.cvd.cvd_charge_prepaid" label="PP" value="PP">预付 Prepaid</el-radio>
                                    </el-col>
                                    <el-col :span="4" style="font-size: 12px;margin-left: 25px">
                                        <el-radio v-model="form.cvd.cvd_charge_prepaid" label="CC" value="CC">到付 Collect</el-radio>
                                    </el-col>
                                </el-row>
                                <el-row style="padding-top: 20px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
小范 authored
811
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_weight_amount" auto-complete="off" placeholder="货重金额" size="mini"></el-input>
小范 authored
812 813 814 815 816 817 818
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Weight Charge
                            </span>
                                    </el-col>
                                    <el-col :span="7">
小范 authored
819
                                        <el-input  :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_weight_amount" auto-complete="off" placeholder="货重金额" size="mini"></el-input>
小范 authored
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
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Other Charges
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="form.oth.oth_charges" auto-complete="off" placeholder="其他费用" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5">
                                <el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 15px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_valuation_amount" auto-complete="off" placeholder="附加费" size="mini"></el-input>
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Valuation Charge
                            </span>
                                    </el-col>
                                    <el-col :span="7">
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_valuation_amount" auto-complete="off" placeholder="附加费" size="mini"></el-input>
                                    </el-col>
                                </el-row>
                                <el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 30px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_taxes_amount" auto-complete="off" placeholder="税款" size="mini"></el-input>
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Tax
                            </span>
                                    </el-col>
                                    <el-col :span="7">
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_taxes_amount" auto-complete="off" placeholder="税款" size="mini"></el-input>
                                    </el-col>
                                </el-row>
                                <el-row  style="border-bottom: 1px solid #a5a5a5;margin-top: 30px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_other_charges_due_agent" auto-complete="off" placeholder="其他应付代理人合计" size="mini"></el-input>
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Total other Charge Due Agent
                            </span>
                                    </el-col>
                                    <el-col :span="7">
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_other_charges_due_agent" auto-complete="off" placeholder="其他应付代理人合计" size="mini"></el-input>
                                    </el-col>
                                </el-row>
                                <el-row style="margin-top: 30px;margin-bottom: 2px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_other_charges_due_carrier" auto-complete="off" placeholder="其他应付承运人合计" size="mini"></el-input>
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Total other Charge Due Carrier
                            </span>
                                    </el-col>
                                    <el-col :span="7">
                                        <el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_other_charges_due_carrier" auto-complete="off" placeholder="其他应付承运人合计" size="mini"></el-input>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: 15px">
                                    <el-col style="width: 98%">
                            <span style="font-size: 12px">
                                Shipper certifies that the particulars on the face hereof are correct and that insofar as any part of the consignment contains dangerous goods, such part is properly described by name and is in proper condition for carriage by air according to the applicable Dangerous Goods Regulations.
                            </span>
                                    </el-col>
                                </el-row>
                                <el-row  style="margin-bottom: -12px">
                                    <el-col :span="10">
                            <span style="font-size: 12px">
                                Signature of shipper or His Agent
                            </span>
                                    </el-col>
                                    <el-col :span="14">
                                        <el-form-item>
朱兆平 authored
907
                                            <el-input v-model="form.cer.cer_signature" maxlength="20" style="width: 95%"  auto-complete="off" placeholder="托运人或其代理人签字" size="mini"></el-input>
小范 authored
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 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Total prepaid
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input :disabled="form.cvd.cvd_charge_prepaid=='CC'" v-model="form.ppd.ppd_charge_summary_total" auto-complete="off" placeholder="预付总计" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px;text-align: center">
                            <span style="font-size: 12px">
                        Currency Conversion Rate
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="form.cvd.cvd_currency_code" auto-complete="off" placeholder="货币兑换率" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="3"  style="border-bottom:1px solid #a5a5a5;padding-left: 5px;border-right: 1px solid #a5a5a5">
                            <span style="font-size: 12px">
                        Total Collect
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_charge_summary_total" auto-complete="off" placeholder="到付费用总额" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>

                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row style="margin-top: -2px">
                                    <el-col :span="6">
                            <span style="font-size: 12px">
                        Executed on(Date)
                    </span>
                                    </el-col>
                                    <el-col :span="5">
                            <span style="font-size: 12px">
                        At(place)
                    </span>
                                    </el-col>
                                    <el-col  :span="12">
                            <span style="font-size: 12px">
                        Signature of Issuing Carrier or Its Agent
                    </span>
                                    </el-col>
                                </el-row>
                                <el-row style="margin-top: 31px;margin-bottom: -8px">
                                    <el-col :span="6">
                                        <el-form-item>
                                            <el-date-picker
                                                    v-model="form.isu.isu_day_mounth_year"
                                                    type="date" style="width: auto"
                                                    size="mini"
                                                    format="yyyy-MM-dd"
                                                    value-format="yyyy-MM-dd"
                                                    placeholder="选择日期">
                                            </el-date-picker>
                                        </el-form-item>
                                    </el-col>
                                    <el-col :span="5" style="margin-left: 10px">
                                        <el-form-item>
朱兆平 authored
984 985
                                            <el-input  minlength="1" maxlength="17"
                                                       oninput="this.value=this.value.toUpperCase();"
小范 authored
986
                                                    v-model="form.isu.isu_place_or_airport_code" auto-complete="off" placeholder="签署地址" size="mini"></el-input>
小范 authored
987 988 989 990
                                        </el-form-item>
                                    </el-col>
                                    <el-col  :span="12" style="margin-left: 10px">
                                        <el-form-item>
朱兆平 authored
991
                                            <el-input  minlength="0" maxlength="20" oninput="this.value=this.value.toUpperCase()"
小范 authored
992
                                                    v-model="form.isu.isu_signature" auto-complete="off" placeholder="签署人或其代理人签字,盖章" size="mini"></el-input>
小范 authored
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        CC charges in Dest. Currency
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input  auto-complete="off" placeholder="目的地CC费用。通货" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2"  style="border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        For Carrie's Use Only at Destination
                    </span>
                            </el-col>
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Charges at Destination
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input auto-complete="off" placeholder="目的地收费" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px;padding-right: 5px">
                            <span style="font-size: 12px">
                        Total Collection Charges
                    </span>
                                <el-row style="margin-bottom: -8px">
                                    <el-form-item>
                                        <el-input auto-complete="off" placeholder="总收款费用" size="mini"></el-input>
                                    </el-form-item>
                                </el-row>
                            </el-col>
                            <el-col :span="8" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">

                            </el-col>
                        </el-row>
小范 authored
1042
                        <el-row style="margin-top: 40px;margin-left: 40%">
小范 authored
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059
                            <el-form-item>
                                <el-button type="primary" @click="addFwb">提交</el-button>
                            </el-form-item>
                        </el-row>
                    </el-form>
                </div>
            </el-tab-pane>
            <el-tab-pane label="生成分单" name="second">
                <div style="height: 850px;overflow: scroll;margin-left: 25px;background-color: rgb(255,255,255)">
                    <el-form  :model="addForm" label-width="0px" :rules="apply_addFormRules" ref="apply_addFormRef">
                        <el-row style="margin-left: 40%">
                        <span style="font-size: 24px;margin-bottom: 25px">
                        新增分运单
                    </span>
                        </el-row>
                        <el-row>
                            <el-col :span="4">
小范 authored
1060
                                <el-form-item label-width="30px" prop="fhl.waybillNum">
朱兆平 authored
1061 1062 1063
                                    <el-input v-model="addForm.fhl.waybillNum"
                                              oninput="this.value=this.value.replace(/[^0-9\-]/g,'').toUpperCase();"
                                              auto-complete="off" placeholder="主运单号(必填)"
1064
                                              @blur="blur"></el-input>
小范 authored
1065 1066 1067
                                </el-form-item>
                            </el-col>
                            <el-col :span="4">
小范 authored
1068
                                <el-form-item label-width="40px" prop="hbs.hbs_serial_number">
朱兆平 authored
1069 1070 1071
                                    <el-input v-model="addForm.hbs.hbs_serial_number"
                                              oninput="this.value=this.value.replace(/[^A-Za-z0-9]/g,'').toUpperCase();"
                                              auto-complete="off" placeholder="分运单号(必填)"
小范 authored
1072 1073
                                              onkeyup="this.value=this.value.toUpperCase()"
                                    ></el-input>
小范 authored
1074 1075 1076
                                </el-form-item>
                            </el-col>
                            <el-col style="margin-left: 30px" :span="2">
小范 authored
1077 1078 1079 1080
                                <el-form-item prop="hbs.hbs_origin">
                                    <el-input v-model="addForm.hbs.hbs_origin" auto-complete="off" placeholder="起始站" size="mini"
                                              minlength="3" maxlength="3" onkeyup="this.value=this.value.toUpperCase()"
                                              @keyup.native="addForm.hbs.hbs_origin.replace(/[^A-Za-z]/g,'')"></el-input>
小范 authored
1081 1082
                                </el-form-item>
                            </el-col>
小范 authored
1083 1084 1085
                            <el-col style="margin-left: 30px" :span="2">
                                <el-button type="warning" plain @click="cancleBtn">清空</el-button>
                            </el-col>
小范 authored
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095
                        </el-row>
                        <!--                    发货人信息-->
                        <el-row>
                            <el-col :span="12" style="border: 1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
                        Shipper's Name and Address
                        <el-button type="primary" plain size="mini" style="margin-left: 15px;margin-top: 5px" @click="getShp()">发货人</el-button>
                        <!--                        <el-button type="success" plain size="mini">保&nbsp;&nbsp;&nbsp;存</el-button>-->
                    </span>
                                <el-row>
小范 authored
1096
                                    <el-col style="width: 38%">
小范 authored
1097
                                        <el-form-item label=" " prop="shp.shp_nam_name">
小范 authored
1098 1099
                                            <el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
                                                    @keyup.native="addForm.shp.shp_nam_name=addForm.shp.shp_nam_name.replace(/[^A-Za-z0-9_\s]/g,'')" v-model="addForm.shp.shp_nam_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
小范 authored
1100 1101
                                        </el-form-item>
                                    </el-col>
小范 authored
1102
                                    <el-col style="width: 40%;margin-left:5px">
小范 authored
1103
                                        <el-form-item>
小范 authored
1104
                                            <el-input minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
小范 authored
1105
                                                    @keyup.native="addForm.shp.shp_detail_number=addForm.shp.shp_detail_number.replace(/[^0-9]/g,'')" v-model="addForm.shp.shp_detail_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
小范 authored
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115
                                            <!--                                        <el-select v-model="addForm.shp.shp_detail_number" placeholder="电话/传真">-->
                                            <!--                                            <el-option label="电话" value="2"></el-option>-->
                                            <!--                                            <el-option label="传真" value="3"></el-option>-->
                                            <!--                                        </el-select>-->
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 25%">
                                        <el-form-item>
小范 authored
1116 1117
                                            <el-input minlength="1" maxlength="9" onkeyup="this.value=this.value.toUpperCase()"
                                                    v-model="addForm.shp.shp_location_post" auto-complete="off" placeholder="邮编"></el-input>
小范 authored
1118 1119 1120 1121
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 25%;margin-left: 10px">
                                        <el-form-item>
小范 authored
1122 1123 1124
                                            <el-input minlength="1" maxlength="17" onkeyup="this.value=this.value.toUpperCase()"
                                                    @keyup.native="addForm.shp.shp_loc_place=addForm.shp.shp_loc_place.replace(/[^A-Za-z0-9_\s]/g,'')"
                                                      v-model="addForm.shp.shp_loc_place" auto-complete="off" placeholder="城市"></el-input>
小范 authored
1125 1126 1127 1128
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 25%;margin-left: 10px">
                                        <el-form-item>
小范 authored
1129 1130 1131
                                            <el-input minlength="2" maxlength="2" onkeyup="this.value=this.value.toUpperCase()"
                                                    v-model="addForm.shp.shp_location_iso" auto-complete="off" placeholder="国家代码"
                                                      @keyup.native="addForm.shp.shp_location_iso.replace(/[^A-Za-z]/g,'')"></el-input>
小范 authored
1132 1133 1134 1135 1136 1137
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 80%">
                                        <el-form-item>
小范 authored
1138 1139 1140
                                            <el-input  minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
                                                    @keyup.native="addForm.shp.shp_adr_street=addForm.shp.shp_adr_street.replace(/[^A-Za-z0-9_\s]/g,'')"
                                                       v-model="addForm.shp.shp_adr_street" auto-complete="off" placeholder="地址"></el-input>
小范 authored
1141 1142 1143 1144 1145 1146
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row style="margin-bottom: -5px">
                                    <el-col style="width: 80%">
                                        <el-form-item>
小范 authored
1147 1148
                                            <el-input  minlength="1" maxlength="65" onkeyup="this.value=this.value.toUpperCase()"
                                                    @keyup.native="shp_aeo.oci_supplementary=shp_aeo.oci_supplementary.replace(/[^A-Za-z0-9_\s]/g,'')"
1149
                                                       v-model="shp_aeo.oci_supplementary" auto-complete="off" placeholder="企业编码"></el-input>
小范 authored
1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-top:1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                                <el-row style="margin-bottom: 10px">
                                    <el-col style="width: 20%">
                            <span style="font-size: 12px">
                        Air Waybill
                        </span>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 20%">
                            <span style="font-size: 12px">
                        lssued by
                        </span>
                                    </el-col>
                                    <el-col  style="width: 70%">
                                        <el-form-item>
小范 authored
1170
                                            <el-input disabled type="textarea" :autosize="{ minRows: 2, maxRows: 4}"
小范 authored
1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190
                                                        auto-complete="off" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                        <span style="font-size: 12px">
                        Copies 1,2and3 of this Air Waybill are originals and have the same validity(Not Negotiable)
                        </span>
                                </el-row>
                            </el-col>
                        </el-row>
                        <!--                    收货人信息-->
                        <el-row style="padding-top: 10px">
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
                        Consignee's Name and Address
                        <el-button type="primary" plain size="mini" style="margin-top: 5px" @click="getCne()">收货人</el-button>
                        <!--                        <el-button type="success" plain size="mini">保&nbsp;&nbsp;&nbsp;存</el-button>-->
                    </span>
                                <el-row>
小范 authored
1191
                                    <el-col style="width: 38%">
小范 authored
1192
                                        <el-form-item>
小范 authored
1193 1194
                                            <el-input minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
                                                    @keyup.native="addForm.cne.cne_nam_name=addForm.cne.cne_nam_name.replace(/[^A-Za-z0-9_\s]/g,'')" v-model="addForm.cne.cne_nam_name" auto-complete="off" placeholder="名称" size="mini"></el-input>
小范 authored
1195 1196
                                        </el-form-item>
                                    </el-col>
小范 authored
1197
                                    <el-col style="width: 40%;margin-left: 5px">
小范 authored
1198
                                        <el-form-item>
小范 authored
1199
                                            <el-input minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
小范 authored
1200
                                                    @keyup.native="addForm.cne.cne_detail_number=addForm.cne.cne_detail_number.replace(/[^0-9]/g,'')" v-model="addForm.cne.cne_detail_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
小范 authored
1201 1202 1203 1204 1205 1206 1207 1208 1209 1210
                                            <!--                                        <el-select v-model="addForm.cne.cne_detail_number" placeholder="电话/传真">-->
                                            <!--                                            <el-option label="电话" value="2"></el-option>-->
                                            <!--                                            <el-option label="传真" value="3"></el-option>-->
                                            <!--                                        </el-select>-->
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 25%">
                                        <el-form-item>
小范 authored
1211 1212
                                            <el-input minlength="1" maxlength="9" onkeyup="this.value=this.value.toUpperCase()"
                                                    v-model="addForm.cne.cne_location_post" auto-complete="off" placeholder="邮编"></el-input>
小范 authored
1213 1214 1215 1216
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 25%;margin-left: 10px">
                                        <el-form-item>
小范 authored
1217 1218
                                            <el-input minlength="1" maxlength="17" onkeyup="this.value=this.value.toUpperCase()"
                                                    @keyup.native="addForm.cne.cne_loc_place=addForm.cne.cne_loc_place.replace(/[^A-Z0-9_\s]/g,'')" v-model="addForm.cne.cne_loc_place" auto-complete="off" placeholder="城市"></el-input>
小范 authored
1219 1220 1221 1222
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 25%;margin-left: 10px">
                                        <el-form-item>
小范 authored
1223 1224 1225
                                            <el-input  minlength="2" maxlength="2" onkeyup="this.value=this.value.toUpperCase()"
                                                       @keyup.native="addForm.cne.cne_location_iso.replace(/[^A-Za-z]/g,'')"
                                                    v-model="addForm.cne.cne_location_iso" auto-complete="off" placeholder="国家代码"></el-input>
小范 authored
1226 1227 1228 1229 1230 1231
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col style="width: 80%">
                                        <el-form-item>
小范 authored
1232 1233
                                            <el-input  minlength="1" maxlength="35" onkeyup="this.value=this.value.toUpperCase()"
                                                    @keyup.native="addForm.cne.cne_adr_street=addForm.cne.cne_adr_street.replace(/[^A-Z0-9_\s]/g,'')" v-model="addForm.cne.cne_adr_street" auto-complete="off" placeholder="地址"></el-input>
小范 authored
1234 1235 1236 1237 1238 1239
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row style="margin-bottom: -5px">
                                    <el-col style="width: 80%">
                                        <el-form-item>
小范 authored
1240
                                            <el-input  minlength="1" maxlength="65" onkeyup="this.value=this.value.toUpperCase()"
1241
                                                    @keyup.native="cne_aeo.oci_supplementary=cne_aeo.oci_supplementary.replace(/[^A-Z0-9_\s]/g,'')" v-model="cne_aeo.oci_supplementary" auto-complete="off" placeholder="企业编码"></el-input>
小范 authored
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                    <span  style="font-size: 12px">
                        It is agreed that the goods described herein are accepted for carriage in apparent good order and condition (except as noted) and SUBJECT TO THE CONDITION OF CONTRACT ON THE REVERSE HEREOF. ALL GOODS MAY BE CARRIED BY ANY OTHER MEANS INCLUDING ROAD OR ANY OTHER CARRIER UNLESS SPECIFIC CONTRARY IS DRAWN TO THE NOTICE CONCERNING CARRIER'S LIMITATION OF LIABILITY. Shipper may increase such limitation of liability by declaring higher value for carriage and paying a supplemental charge if required.
                    </span>
                            </el-col>
                        </el-row>
                        <!--                    代理人信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;;border-left:1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
                        Issuing Carrier's Agent Name and City
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 30%">
                                        <el-form-item>
小范 authored
1261
                                            <el-input disabled auto-complete="off" placeholder="代理人名称" size="mini"></el-input>
小范 authored
1262 1263 1264 1265
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 30%;margin-left: 30px">
                                        <el-form-item>
小范 authored
1266
                                            <el-input disabled auto-complete="off" placeholder="代理人地址" size="mini"></el-input>
小范 authored
1267 1268 1269 1270 1271 1272
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
朱兆平 authored
1273
                        Accounting information content
小范 authored
1274 1275 1276 1277
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 90%">
                                        <el-form-item>
小范 authored
1278
                                            <el-input disabled v-model="addForm.acc_info" auto-complete="off" placeholder="财务信息内容" size="mini"></el-input>
小范 authored
1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
                            <span style="font-size: 12px">
                        Agent's IATA Code
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 65%">
                                        <el-form-item>
小范 authored
1292
                                            <el-input disabled auto-complete="off" placeholder="IATA代码" size="mini"></el-input>
小范 authored
1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                            <span style="font-size: 12px">
                        Agent's Account Number
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 65%">
                                        <el-form-item>
小范 authored
1304
                                            <el-input disabled auto-complete="off" placeholder="代理人账号" size="mini"></el-input>
小范 authored
1305 1306 1307 1308 1309 1310 1311
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>

                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 25px">
                    <span style="font-size: 12px">
朱兆平 authored
1312
                        Accounting Information Identification
小范 authored
1313 1314 1315 1316
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 90%">
                                        <el-form-item>
小范 authored
1317
                                            <el-input disabled auto-complete="off" placeholder="财务信息标识" size="mini"></el-input>
小范 authored
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <!--                    航班信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 25px">
                            <span style="font-size: 12px">
                        Airport of Departure (Addr. of First Carrier) and Requested Routing
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1332
                                            <el-input disabled auto-complete="off" placeholder="出发机场(第一承运人地址)" size="mini"></el-input>
小范 authored
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Currency
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
1344 1345
                                            <el-input minlength="3" maxlength="3"
                                                      @input.native="value => addForm.cvd.cvd_currency_code.replace(/[^A-Za-z]/g,'').toUpperCase()"
小范 authored
1346
                                                    v-model="addForm.cvd.cvd_currency_code" auto-complete="off" placeholder="货币单位" size="mini"></el-input>
小范 authored
1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        GHGS Code
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
1358
                                            <el-input v-model="addForm.cvd.cvd_charge_code" disabled auto-complete="off" placeholder="收费代码" size="mini"></el-input>
小范 authored
1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        WT/VAL(PPD)&Other(PPD)
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 90%">
                                        <el-form-item>
                                            <el-input v-model="addForm.cvd.cvd_charge_prepaid" auto-complete="off" placeholder="付费方式" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
<!--                                    <el-col style="width: 45%;margin-left: 5px">-->
<!--                                        <el-form-item>-->
<!--                                            <el-input  auto-complete="off" placeholder="COLL" size="mini"></el-input>-->
<!--                                        </el-form-item>-->
<!--                                    </el-col>-->
                                </el-row>
                            </el-col>
<!--                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">-->
<!--                            <span style="font-size: 12px">-->
<!--                        Other(PPD)-->
<!--                    </span>-->
<!--                                <el-row  style="margin-bottom: -5px">-->
<!--                                    <el-col style="width: 90%">-->
<!--                                        <el-form-item>-->
<!--                                            <el-input auto-complete="off" placeholder="付费方式" size="mini"></el-input>-->
<!--                                        </el-form-item>-->
<!--                                    </el-col>-->
<!--&lt;!&ndash;                                    <el-col style="width: 45%;margin-left: 5px">&ndash;&gt;-->
<!--&lt;!&ndash;                                        <el-form-item>&ndash;&gt;-->
<!--&lt;!&ndash;                                            <el-input  auto-complete="off" placeholder="COLL" size="mini"></el-input>&ndash;&gt;-->
<!--&lt;!&ndash;                                        </el-form-item>&ndash;&gt;-->
<!--&lt;!&ndash;                                    </el-col>&ndash;&gt;-->
<!--                                </el-row>-->
<!--                            </el-col>-->
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                                To
                            </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
1406 1407
                                            <el-input minlength="3" maxlength="3"
                                                      @input.native="value => addForm.hbs.hbs_destination = value.replace(/[^A-Za-z]/g, '').toUpperCase()"
小范 authored
1408
                                                    v-model="addForm.hbs.hbs_destination" auto-complete="off" placeholder="到达站" size="mini"></el-input>
小范 authored
1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        First Carrier
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1420
                                            <el-input disabled auto-complete="off" placeholder="承运人" size="mini"></el-input>
小范 authored
1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        To
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1432
                                            <el-input disabled auto-complete="off" placeholder="到达站" size="mini"></el-input>
小范 authored
1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        By
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1444
                                            <el-input disabled auto-complete="off" placeholder="承运人" size="mini"></el-input>
小范 authored
1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        To
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1456
                                            <el-input disabled auto-complete="off" placeholder="到达站" size="mini"></el-input>
小范 authored
1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        By
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1468
                                            <el-input disabled auto-complete="off" placeholder="承运人" size="mini"></el-input>
小范 authored
1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        Declared Value for Carriage
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="addForm.cvd.cvd_value_for_carriage" auto-complete="off" placeholder="运输声明价值" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="5" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        Declared Value for Customs
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="addForm.cvd.cvd_value_for_customs" auto-complete="off" placeholder="海关声明价值" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Airport of Destination
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1506
                                            <el-input disabled auto-complete="off" placeholder="目的地机场" size="mini"></el-input>
小范 authored
1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Requested Flight/Date
                    </span>
                                <el-row>
                                    <el-col style="width: 38%">
                                        <el-form-item>
小范 authored
1518
                                            <el-input disabled auto-complete="off" placeholder="航班号" size="mini"></el-input>
小范 authored
1519 1520 1521 1522
                                        </el-form-item>
                                    </el-col>
                                    <el-col style="width: 58%;margin-left: 5px">
                                        <el-form-item>
小范 authored
1523
                                            <el-date-picker disabled
小范 authored
1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562
                                                    type="date" style="width: auto"
                                                    size="mini"
                                                    format="dd"
                                                    value-format="dd"
                                                    placeholder="选择日期">
                                            </el-date-picker>
                                            <!--                                <el-input  auto-complete="off" placeholder="航班日期" size="mini"></el-input>-->
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                    <span style="font-size: 12px">
                        Amount of Insurance
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="addForm.cvd.cvd_amount_of_insurance" auto-complete="off" placeholder="保险金额" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                    <span style="font-size: 12px">
                        INSURANCE —— If carrier offers insurance, and such insurance is requested in accordance with the conditions thereof, indicate amount to be insured in figures in box marked "Amount of Insurance".
                    </span>
                            </el-col>
                        </el-row>
                        <!--                    处理信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="22" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding: 5px">
                            <span style="font-size: 12px">

Handling Information
                    </span>
                                <el-row style="margin-bottom: -2px">
                                    <el-col style="width: 100%">
                                        <el-form-item>
朱兆平 authored
1563 1564 1565 1566
                                            <el-input v-model="addForm.txt.txt_free_text"
                                                      maxlength="585"
                                                      type="textarea" :autosize="{ minRows: 1, maxRows: 9}"
                                                       auto-complete="off" placeholder="处理信息-Free Text"></el-input>
小范 authored
1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <span style="font-size: 10px">
                             (For USA only) These commodities Licensed by U.S. for ultimate destination.Diversion contrary to U.S. law is prohibited.
                    </span>
                            </el-col>
                        </el-row>
                        <!--                    件重计费信息-->
                        <!--                    表头信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 2px">
                            <span style="font-size: 12px">
                        No. of Pieces RCP
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                            <span style="font-size: 12px">
                        Gross Weight
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                    <span style="font-size: 12px">
                        kg lb
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 2px">
                                <span style="font-size: 12px">Rate Class</span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                            <span style="font-size: 12px">
                        Commodity Item No.
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                    <span style="font-size: 12px">
                        Chargeable Weight
                    </span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                                <span style="font-size: 12px">Rate / Charge</span>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                                <span style="font-size: 12px">Total</span>
                            </el-col>
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 2px">
                                <span style="font-size: 12px">Nature and Quantity of Goods (incl. Dimensions or Volume)</span>
                            </el-col>
                        </el-row>
                        <!--                    输入信息-->
                        <el-row  style="padding-top: 10px">
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="addForm.hbs.hbs_pieces" auto-complete="off" placeholder="件数" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="addForm.hbs.hbs_weight" auto-complete="off" placeholder="重量(KG)" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-input v-model="addForm.hbs.hbs_weight_code" auto-complete="off" placeholder="最大总重量" size="mini"></el-input>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-select v-model="addForm.companyName1" placeholder="运价种类">
                                                <el-option label="Q" value="Q"></el-option>
                                                <el-option label="C" value="C"></el-option>
                                                <el-option label="M" value="M"></el-option>
                                                <el-option label="N" value="N"></el-option>
                                                <el-option label="S" value="S"></el-option>
                                                <el-option label="R" value="R"></el-option>
                                            </el-select>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1665
                                            <el-input disabled auto-complete="off" placeholder="商品代号" size="mini"></el-input>
小范 authored
1666 1667 1668 1669 1670 1671 1672 1673
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1674
                                            <el-input disabled v-model="addForm.hbs.hbs_weight" auto-complete="off" placeholder="计费重量" size="mini"></el-input>
小范 authored
1675 1676 1677 1678 1679 1680 1681 1682
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1683
                                            <el-input disabled auto-complete="off" placeholder="费率" size="mini"></el-input>
小范 authored
1684 1685 1686 1687 1688 1689 1690 1691
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1692
                                            <el-input disabled auto-complete="off" placeholder="总计" size="mini"></el-input>
小范 authored
1693 1694 1695 1696 1697 1698 1699 1700
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="6" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1701 1702
                                            <el-input minlength="1" maxlength="20" onkeyup="this.value=this.value.toUpperCase()"
                                                      @keyup.native="addForm.hbs.hbs_manifest_description.replace(/[^A-Za-z0-9\s]/g,'')"
1703 1704
                                                      :max-length="15"
                                                      @paste.native="handlePaste($event, 15)"
小范 authored
1705
                                                    v-model="addForm.hbs.hbs_manifest_description" auto-complete="off" placeholder="货物品名" size="mini"></el-input>
小范 authored
1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
                                            <el-button disabled type="primary" plain size="mini" style="width: 100%;text-align: left">尺寸</el-button>
                                            <!--                                <el-input  auto-complete="off" placeholder="尺寸(长*宽*高*件数)" size="mini"></el-input>-->
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1720
                                            <el-input disabled auto-complete="off" placeholder="体积" size="mini"></el-input>
小范 authored
1721 1722 1723 1724 1725 1726
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
朱兆平 authored
1727
                                            <el-input  v-model="addForm.hbs.hbs_slac" auto-complete="off" placeholder="SLAC"></el-input>
小范 authored
1728 1729 1730 1731 1732 1733
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <!--                    付款信息-->
小范 authored
1734
                        <el-row style="padding-top: 10px">
小范 authored
1735 1736 1737
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5">
                                <el-row style="border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                    <el-col :span="16"  style="font-size: 12px">
小范 authored
1738
                                        <el-radio  disabled v-model="addForm.cvd.cvd_charge_prepaid" label="PP" value="PP">预付 Prepaid</el-radio>
小范 authored
1739 1740
                                    </el-col>
                                    <el-col :span="4" style="font-size: 12px;margin-left: 25px">
小范 authored
1741
                                        <el-radio disabled v-model="addForm.cvd.cvd_charge_prepaid" label="CC" value="CC">到付 Collect</el-radio>
小范 authored
1742 1743 1744 1745
                                    </el-col>
                                </el-row>
                                <el-row style="padding-top: 20px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
小范 authored
1746
                                        <el-input  disabled v-model="addForm.hbs.hbs_weight" auto-complete="off" placeholder="计费重量" size="mini"></el-input>
小范 authored
1747 1748 1749 1750 1751 1752 1753
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Weight Charge
                            </span>
                                    </el-col>
                                    <el-col :span="7">
小范 authored
1754
                                        <el-input  disabled v-model="addForm.hbs.hbs_weight" auto-complete="off" placeholder="计费重量" size="mini"></el-input>
小范 authored
1755 1756 1757 1758 1759 1760 1761 1762 1763 1764
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Other Charges
                    </span>
                                <el-row  style="margin-bottom: -5px">
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1765
                                            <el-input  disabled auto-complete="off" placeholder="其他费用" size="mini"></el-input>
小范 authored
1766 1767 1768 1769 1770 1771 1772 1773 1774
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="10" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5">
                                <el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 15px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
小范 authored
1775
                                        <el-input   disabled auto-complete="off" placeholder="附加费" size="mini"></el-input>
小范 authored
1776 1777 1778 1779 1780 1781 1782
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Valuation Charge
                            </span>
                                    </el-col>
                                    <el-col :span="7">
小范 authored
1783
                                        <el-input   disabled auto-complete="off" placeholder="附加费" size="mini"></el-input>
小范 authored
1784 1785 1786 1787
                                    </el-col>
                                </el-row>
                                <el-row style="border-bottom: 1px solid #a5a5a5;margin-top: 30px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
小范 authored
1788
                                        <el-input  disabled auto-complete="off" placeholder="税款" size="mini"></el-input>
小范 authored
1789 1790 1791 1792 1793 1794 1795
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Tax
                            </span>
                                    </el-col>
                                    <el-col :span="7">
小范 authored
1796
                                        <el-input   disabled auto-complete="off" placeholder="税款" size="mini"></el-input>
小范 authored
1797 1798 1799 1800
                                    </el-col>
                                </el-row>
                                <el-row  style="border-bottom: 1px solid #a5a5a5;margin-top: 30px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5">
小范 authored
1801
                                        <el-input   disabled auto-complete="off" placeholder="其他应付代理人合计" size="mini"></el-input>
小范 authored
1802 1803 1804 1805 1806 1807 1808
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Total other Charge Due Agent
                            </span>
                                    </el-col>
                                    <el-col :span="7">
小范 authored
1809
                                        <el-input  disabled auto-complete="off" placeholder="其他应付代理人合计" size="mini"></el-input>
小范 authored
1810 1811 1812 1813
                                    </el-col>
                                </el-row>
                                <el-row style="margin-top: 30px;margin-bottom: -2px">
                                    <el-col :span="7" style="border-right:  1px solid #a5a5a5;margin-bottom: 2px">
小范 authored
1814
                                        <el-input   disabled auto-complete="off" placeholder="其他应付承运人合计" size="mini"></el-input>
小范 authored
1815 1816 1817 1818 1819 1820 1821
                                    </el-col>
                                    <el-col :span="10"  style="border-right:  1px solid #a5a5a5;text-align: center">
                            <span style="font-size: 12px">
                                Total other Charge Due Carrier
                            </span>
                                    </el-col>
                                    <el-col :span="7">
小范 authored
1822
                                        <el-input  disabled auto-complete="off" placeholder="其他应付承运人合计" size="mini"></el-input>
小范 authored
1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row  style="margin-bottom: 15px">
                                    <el-col style="width: 98%">
                            <span style="font-size: 12px">
                                Shipper certifies that the particulars on the face hereof are correct and that insofar as any part of the consignment contains dangerous goods, such part is properly described by name and is in proper condition for carriage by air according to the applicable Dangerous Goods Regulations.
                            </span>
                                    </el-col>
                                </el-row>
                                <el-row  style="margin-bottom: -12px">
                                    <el-col :span="10">
                            <span style="font-size: 12px">
                                Signature of shipper or His Agent
                            </span>
                                    </el-col>
                                    <el-col :span="14">
                                        <el-form-item>
小范 authored
1842
                                            <el-input disabled style="width: 95%"  auto-complete="off" placeholder="托运人或其代理人签字" size="mini"></el-input>
小范 authored
1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
                        <el-row  style="padding-top: 10px">
                            <el-col :span="3" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Total prepaid
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1856
                                            <el-input   disabled auto-complete="off" placeholder="预付总计" size="mini"></el-input>
小范 authored
1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px;text-align: center">
                            <span style="font-size: 12px">
                        Currency Conversion Rate
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1868
                                            <el-input  disabled auto-complete="off" placeholder="货币兑换率" size="mini"></el-input>
小范 authored
1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="3"  style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Total Collect
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1880
                                            <el-input  disabled auto-complete="off" placeholder="到付费用总额" size="mini"></el-input>
小范 authored
1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>

                            <el-col :span="12" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">
                                <el-row style="margin-top: -2px">
                                    <el-col :span="6">
                            <span style="font-size: 12px">
                        Executed on(Date)
                    </span>
                                    </el-col>
                                    <el-col :span="5">
                            <span style="font-size: 12px">
                        At(place)
                    </span>
                                    </el-col>
                                    <el-col  :span="12">
                            <span style="font-size: 12px">
                        Signature of Issuing Carrier or Its Agent
                    </span>
                                    </el-col>
                                </el-row>
                                <el-row style="margin-top: 31px;margin-bottom: -8px">
                                    <el-col :span="6">
                                        <el-form-item>
小范 authored
1907
                                            <el-date-picker  disabled
小范 authored
1908 1909 1910 1911 1912 1913 1914 1915 1916 1917
                                                    type="date" style="width: auto"
                                                    size="mini"
                                                    format="yyyy-MM-dd"
                                                    value-format="yyyy-MM-dd"
                                                    placeholder="选择日期">
                                            </el-date-picker>
                                        </el-form-item>
                                    </el-col>
                                    <el-col :span="5" style="margin-left: 10px">
                                        <el-form-item>
小范 authored
1918
                                            <el-input  disabled auto-complete="off" placeholder="签署地址" size="mini"></el-input>
小范 authored
1919 1920 1921 1922
                                        </el-form-item>
                                    </el-col>
                                    <el-col  :span="12" style="margin-left: 10px">
                                        <el-form-item>
小范 authored
1923
                                            <el-input  disabled auto-complete="off" placeholder="签署人或其代理人签字,盖章" size="mini"></el-input>
小范 authored
1924 1925 1926 1927 1928
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                        </el-row>
小范 authored
1929
                        <el-row style="padding-top: 10px">
小范 authored
1930 1931 1932 1933 1934 1935 1936
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        CC charges in Dest. Currency
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1937
                                            <el-input  disabled auto-complete="off" placeholder="目的地CC费用。通货" size="mini"></el-input>
小范 authored
1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="2"  style="border-bottom:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        For Carrie's Use Only at Destination
                    </span>
                            </el-col>
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;border-left:1px solid #a5a5a5;padding-left: 5px">
                            <span style="font-size: 12px">
                        Charges at Destination
                    </span>
                                <el-row>
                                    <el-col style="width: 95%">
                                        <el-form-item>
小范 authored
1954
                                            <el-input  disabled auto-complete="off" placeholder="目的地收费" size="mini"></el-input>
小范 authored
1955 1956 1957 1958 1959 1960 1961 1962 1963 1964
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                            </el-col>
                            <el-col :span="4" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px;padding-right: 5px">
                            <span style="font-size: 12px">
                        Total Collection Charges
                    </span>
                                <el-row style="margin-bottom: -8px">
                                    <el-form-item>
小范 authored
1965
                                        <el-input  disabled auto-complete="off" placeholder="总收款费用" size="mini"></el-input>
小范 authored
1966 1967 1968 1969 1970 1971 1972
                                    </el-form-item>
                                </el-row>
                            </el-col>
                            <el-col :span="8" style="border-right: 1px solid #a5a5a5;border-bottom:1px solid #a5a5a5;padding-left: 5px">

                            </el-col>
                        </el-row>
小范 authored
1973
                        <el-row style="margin-top: 40px;margin-left: 40%">
小范 authored
1974 1975 1976 1977 1978 1979 1980 1981 1982
                            <el-form-item>
                                <el-button type="primary" @click="addFhl">提交</el-button>
                            </el-form-item>
                        </el-row>
                    </el-form>
                </div>
            </el-tab-pane>
        </el-tabs>
<!--        主单获取尺寸信息-->
小范 authored
1983
        <el-dialog title="尺寸信息" :visible.sync="dialogTableVisible" width="80%" v-dialog-drag>
1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035
            <el-row :gutter="10">
                <el-col :span="18">
                    <el-table :data="gridData" :cell-style="{textAlign:'center'}" show-summary
                              :summary-method="getSummaries"
                              style="border-radius: 10px 10px 0px 0px;line-height: 25px" border
                              :header-cell-style="{background:'#6F8294',color:'#FFFFFF',textAlign:'center'}">
                        <el-table-column label="长(CM)" width="" prop="long">
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.long" placeholder="" @input="handleEdit(scope.$index, scope.row)"/>
                            </template>
                        </el-table-column>
                        <el-table-column label="宽(CM)" width="" prop="wide">
                            <template slot-scope="scope">
                                <el-input  v-model="scope.row.wide" placeholder="" @input="handleEdit(scope.$index, scope.row)"/>
                            </template>
                        </el-table-column>
                        <el-table-column label="高(CM)" prop="height">
                            <template slot-scope="scope">
                                <el-input  v-model="scope.row.height" placeholder="" @input="handleEdit(scope.$index, scope.row)"/>
                            </template>
                        </el-table-column>
                        <el-table-column label="件数" width="" prop="pic">
                            <template slot-scope="scope">
                                <el-input  v-model="scope.row.pic" placeholder="" @input="handleEdit(scope.$index, scope.row)"/>
                            </template>
                        </el-table-column>
                        <el-table-column label="体积(M³)" width="" prop="vol">
                            <template slot-scope="scope">
                                <el-input  v-model="scope.row.vol" placeholder="" :disabled="true"/>
                            </template>
                        </el-table-column>
                        <el-table-column label="重量" prop="weight">
                            <template slot-scope="scope">
                                <el-input  v-model="scope.row.weight" placeholder=""/>
                            </template>
                        </el-table-column>
                        <el-table-column fixed="right"  label="操作">
                            <template slot-scope="scope">
                                <!--                        v-if="scope.$index < gridData.length - 1"-->
                                <el-button type="danger"  plain @click="deleteRows(scope)">删 除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                    <div align="center" style="margin: 10px">
                        <el-button @click="addRows()" size="mini" plain style="width: 100%">+添 加</el-button>
                    </div>
                    <div align="center" style="margin: 15px">
                        <el-button type="primary" size="small"  @click="dialogTableVisible = false">取 消</el-button>
                        <el-button type="success" size="small"  @click="addVol()">保 存</el-button>
                    </div>
                </el-col>
                <el-col :span="6">
朱兆平 authored
2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047
                    <el-tooltip class="item" effect="dark"  placement="top-start">
                      <div slot="content">可以将整体的尺寸信息复制进来,一行一个尺寸信息,系统会自动识别,如:
                        <br/>
                        10x20x30x40
                        <br/>
                        10X20X30X40
                        <br/>
                        10x20x30/40
                        <br/>
                        10*20*30*40
                      </div>
2048
                        <el-input
小范 authored
2049
                                :autosize="{ minRows: 7, maxRows: 20}"
2050 2051
                                resize = "vertical"
                                type="textarea"
朱兆平 authored
2052
                                placeholder="快速尺寸信息录入生成,每行一条如:10x20x30x40或10x20x30/40或10*20*30*40"
2053 2054 2055 2056 2057 2058 2059 2060 2061 2062
                                v-model="dimension_textarea"
                                @change="convertAndCalculateVolume"
                        >
                        </el-input>
                    </el-tooltip>

                </el-col>
            </el-row>
            <el-row>&nbsp; </el-row>
小范 authored
2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079
        </el-dialog>
        <!--            列表区域  获取发货人-->
        <el-dialog :visible.sync="dialogVisible" width="70%">
            <Consigner
                    ref="consigner"
                    v-on:consigerrow="consigerSelect"
            ></Consigner>
        </el-dialog>
        <!--            列表区域   获取收货人-->
        <el-dialog :visible.sync="dialogVisible1" width="70%">
            <Consignee
                    ref="consignee"
                    v-on:consigeerow="consigeeSelect"
            ></Consignee>
        </el-dialog>

    </el-card>
小范 authored
2080 2081 2082
</template>

<script>
小范 authored
2083
    import {fhl, fwb, selectawabByid, selectByKey, selectList} from '../../api/remote_interface/byont_import';
小范 authored
2084 2085
    import Consigner from "../consigner/consigner"
    import Consignee from "../consigner/consignee"
2086 2087
    import {loginedUserInfo} from "../../api/user";
    import {getList} from "../../api/consigner/consigner";
小范 authored
2088
    import jsutil from "@/common/js/util";
2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138
    import XLSX from 'xlsx';
    function cleanString(str, maxLength = 20) {
        return str.replace(/[^a-zA-Z0-9\s]/g, '').slice(0, maxLength);
    }

    /*function parseCustomDate(dateStr) {
        if (typeof dateStr !== 'string') {
            return '无效日期';
        }

        // 自定义日期格式正则表达式
        const regex = /(\d{1,2})\/([a-zA-Z]{3})\/(\d{4})/;
        const match = dateStr.match(regex);

        if (match) {
            const day = match[1];
            const month = match[2];
            const year = match[3];

            // 月份缩写映射
            const monthMap = {
                Jan: '01', Feb: '02', Mar: '03', Apr: '04',
                May: '05', Jun: '06', Jul: '07', Aug: '08',
                Sep: '09', Oct: '10', Nov: '11', Dec: '12'
            };

            const formattedMonth = monthMap[month.toUpperCase()];
            if (formattedMonth) {
                return `${year}-${formattedMonth}-${day.padStart(2, '0')}`;
            }
        }

        return '无效日期';
    }*/

    function formatAF23(value) {
        if (typeof value !== 'string') {
            return '无效值';
        }

        // 删除 DIMS: 行和 VOL: 行
        const cleanedValue = value.replace(/DIMS:\s*/gi, '').replace(/VOL:\s*\d+\.\d+\s*CBM/gi, '');

        // 将剩余内容按行分割,并去除空行
        const lines = cleanedValue.split('\n').filter(line => line.trim() !== '');

        // 将非空行重新组合成字符串,并用换行符分隔
        return lines.join('\n').trim();
    }
小范 authored
2139
小范 authored
2140
    export default {
小范 authored
2141 2142 2143 2144 2145 2146 2147 2148
        components: {
            Consigner,Consignee
        },
        data(){
            return {
                hidden: ['a1', 'a2', 'a3', 'a4', 'a5','a6'],
                // 主单
                activeName: 'first',
2149
                dimension_textarea: '',
小范 authored
2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160
                form:{
                    acc:[],
                    agt:{
                        agt_ADR:'',
                        agt_IATA_number:'',
                        agt_account_number:'',
                        agt_name:'',
                        agt_participant_id:'',
                    },
                    bill:{
                        destination:'',
朱兆平 authored
2161
                        origin:'CGO',
小范 authored
2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182
                        quantity_density:'',
                        quantity_picecs:'',
                        //体积
                        quantity_volume:'',
                        quantity_volume_code:'MC',
                        quantity_weight:'',
                        quantity_weight_code:'K',
                        waybillNum:'',
                    },
                    cne:{
                        cne_contacts:[],
                        cne_account_number:'',
                        cne_adr:'',
                        cne_country:'',
                        cne_loc_place:'',
                        cne_loc_province:'',
                        cne_name:'',
                        cne_postcode:'',
                    },
                    cvd:{
                        cvd_amount_of_insurance:'XXX',
朱兆平 authored
2183
                        cvd_charge_code:'PP',
小范 authored
2184
                        cvd_charge_prepaid:'PP',
2185
                        cvd_currency_code:'CNY',
小范 authored
2186 2187 2188 2189
                        cvd_value_for_carriage:'NVD',
                        cvd_value_for_customs:'NCV',
                    },
                    flt:{
朱兆平 authored
2190
                        cariier:"HQ",
2191
                        day:'08',
朱兆平 authored
2192 2193
                        flightNumber:'405',
                        cariier2:"HQ",
2194
                        day2:'08',
朱兆平 authored
2195
                        flightNumber2:'4055',
朱兆平 authored
2196 2197 2198
                        cariier3:"",
                        day3:'',
                        flightNumber3:'',
小范 authored
2199 2200
                    },
                    isu:{
2201
                        isu_day_mounth_year:'2024-11-07',
朱兆平 authored
2202 2203
                        isu_place_or_airport_code:'ZHENGZHOU',
                        isu_signature:'CHINA',
小范 authored
2204 2205 2206
                    },
                    nfy:{
                        nfy_contacts:[],
xudada authored
2207 2208
                        nfy_ADR:'',
                        nfy_LOC_city:'',
小范 authored
2209
                        nfy_LOC_province:'',
xudada authored
2210 2211 2212
                        nfy_country:'',
                        nfy_name:'',
                        nfy_postcode:''
小范 authored
2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239
                    },
                    oci:[
                        // {
                        //     oci_country_code:'',
                        //     oci_csrc_id:'',
                        //     oci_csrc_info:'',
                        //     oci_information_id:''
                        // }
                    ],
                    osi:[{
                        osi_text:[],
                    }],
                    oth:{
                        oth_amount:'',
                        oth_charge_code:'',
                        oth_charges:'',
                        oth_entitlement_code:''
                    },
                    ppd:{
                        ppd_charge_summary_total:'',
                        ppd_other_charges_due_agent:'',
                        ppd_other_charges_due_carrier:'',
                        ppd_taxes_amount:'',
                        ppd_valuation_amount:'',
                        ppd_weight_amount:'',
                    },
                    ref:{
朱兆平 authored
2240
                        ref_address:'CGOFD1E',
小范 authored
2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251
                        ref_file_reference:'',
                        ref_participant_airport:'',
                        ref_participant_code:'',
                        ref_participant_id:'',
                    },
                    rtd:
                        {
                            dimensions:[],
                            rtd_charge_weight:'',
                            rtd_combination_point:'',
                            rtd_commodity_NUM:'',
2252
                            rtd_goods_DES:'CONSOLIDATED CARGO',
小范 authored
2253 2254 2255
                            rtd_goods_consol_DES:'',
                            rtd_gross_weight:'',
                            rtd_number_pieces:'',
2256
                            rtd_rate_charge:'42.66',
小范 authored
2257 2258 2259 2260 2261 2262 2263 2264
                            rtd_rate_class:'Q',
                            rtd_total:'',
                            //体积
                            rtd_volume:'',
                            rtd_volume_code:'MC',
                        }
                    ,
                    rtg:{
朱兆平 authored
2265 2266 2267 2268
                        destinationAirport:'SOF',
                        destinationCarrier:'HQ',
                        onwardAirport:'LGG',
                        onwardCarrier:'HQ',
朱兆平 authored
2269 2270
                        onwardAirport3:'',
                        onwardCarrier3:'',
小范 authored
2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282
                    },
                    shp:{
                        shp_contacts:[],
                        shp_account_number:'',
                        shp_adr:'',
                        shp_country:'',
                        shp_loc_place:'',
                        shp_loc_province:'',
                        shp_name:'',
                        shp_postcode:'',
                    },
                    ssr:{
朱兆平 authored
2283
                        ssr_request_content:["BUP DO NOT BREAKDOWN"],
小范 authored
2284 2285
                    },
                    cer:{
2286
                        cer_signature:' DHL GLOBAL'
小范 authored
2287 2288
                    }
                },
2289
                ssr_content:"NO SOLID WOODEN PACKING MATERIALS",
小范 authored
2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314
                cne_contact:{
                    contact_id:'TE',
                    contact_number:'',
                },
                shp_contact:{
                    contact_id:'TE',
                    contact_number:'',
                },
                nfy_contact:{
                    contact_id:'TE',
                    contact_number:''
                },
                shp_oci:{
                    oci_country_code: "",
                    oci_csrc_id: "T",
                    oci_information_id: "SHP",
                    oci_csrc_info: ""
                },
                cne_oci:{
                    oci_country_code: "",
                    oci_csrc_id: "T",
                    oci_information_id: "CNE",
                    oci_csrc_info: ""
                },
                acc_info:{
朱兆平 authored
2315
                    acc_info:'FREIGHT PREPAID',
小范 authored
2316 2317 2318 2319 2320 2321
                    acc_info_id:'GEN',
                },
                apply_formRules:{
                    bill:{
                        waybillNum: [
                            { required: true, message: '请输入主运单号', trigger: 'blur' },
朱兆平 authored
2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333
                            // 新增的格式校验规则
                            {
                              validator: (rule, value, callback) => {
                                const reg = /^\d{3}-\d{8}$/; // 定义正则表达式
                                if (value && !reg.test(value)) {
                                  callback(new Error('主运单号格式不正确,应为3位数字-后跟8位数字')); // 如果格式不正确,则返回错误信息
                                } else {
                                  callback(); // 如果格式正确或值为空,则通过校验
                                }
                              },
                              trigger: 'blur'
                            }
小范 authored
2334 2335
                        ],
                    },
朱兆平 authored
2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363
                  flt:{
                    flightNumber:[
                      {
                        validator: (rule, value, callback) => {
                          const reg = /^[A-Z0-9]{0,2}[0-9]{3}\d?[A-Z0-9]?$/; // 定义正则表达式
                          if (value && !reg.test(value)) {
                            callback(new Error('航班格式不正确')); // 如果格式不正确,则返回错误信息
                          } else {
                            callback(); // 如果格式正确或值为空,则通过校验
                          }
                        },
                        trigger: 'blur'
                      }
                    ],
                    flightNumber2:[
                      {
                        validator: (rule, value, callback) => {
                          const reg = /^[A-Z0-9]{0,2}[0-9]{3}\d?[A-Z0-9]?$/; // 定义正则表达式
                          if (value && !reg.test(value)) {
                            callback(new Error('航班格式不正确')); // 如果格式不正确,则返回错误信息
                          } else {
                            callback(); // 如果格式正确或值为空,则通过校验
                          }
                        },
                        trigger: 'blur'
                      }
                    ]
                  }
小范 authored
2364 2365 2366
                },
                // 分单
                addForm:{
2367
                    companyName1:'Q',
小范 authored
2368
                    fhl:{
2369 2370 2371 2372 2373 2374
                        waybillNum:'',
                        quantity_weight_code:'',
                        quantity_weight:'',
                        quantity_picecs:'',
                        origin:'',
                        destination:'',
小范 authored
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402
                    },
                    shp:{
                        shp_detail_identifier:'TE',
                        shp_nam_name:'',
                        shp_loc_place:'',
                        shp_location_post:'',
                        shp_location_iso:'',
                        shp_detail_number:'',
                        shp_adr_street:''
                    },
                    cne:{
                        cne_detail_identifier:'TE',
                        cne_nam_name:'',
                        cne_loc_place:'',
                        cne_location_post:'',
                        cne_location_iso:'',
                        cne_detail_number:'',
                        cne_adr_street:'',
                        cne_loc_province:'',
                        shp_loc_province:'',
                        shp_detail_identifier:''
                    },
                    cvd:{
                        cvd_value_for_carriage:'NVD',
                        cvd_value_for_customs:'NCV',
                        cvd_amount_of_insurance:'XXX',
                        cvd_charge_prepaid:'PP',
                        cvd_charge_code:'',
2403
                        cvd_currency_code:'USD',
小范 authored
2404 2405
                    },
                    hbs:{
朱兆平 authored
2406
                        hbs_origin:'CGO',
2407 2408
                        hbs_destination:'AMS',
                        hbs_manifest_description:'CELL PHONE',
小范 authored
2409 2410 2411
                        hbs_pieces:'',
                        hbs_serial_number:'',
                        hbs_weight:'',
小范 authored
2412
                        hbs_weight_code:'K',
小范 authored
2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443
                        hbs_slac:''
                    },
                    txt:{
                        txt_free_text:''
                    },
                    hts:{
                        hts_commodity_code:''
                    },
                    oci:[],
                },
                shp_aeo:{
                    oci_country_code: "",
                    oci_customs: "T",
                    oci_information_identifier: "SHP",
                    oci_supplementary: ""
                },
                cne_aeo:{
                    oci_country_code: "",
                    oci_customs: "T",
                    oci_information_identifier: "CNE",
                    oci_supplementary: ""
                },
                apply_addFormRules:{
                    fhl:{
                        waybillNum: [
                            { required: true, message: '请输入主运单号', trigger: 'blur' },
                        ],
                    },
                    hbs:{
                        hbs_serial_number: [
                            { required: true, message: '请输入分运单号', trigger: 'blur' },
小范 authored
2444 2445
                            { min: 1, max: 12, message: '长度是1-13个字符', trigger: 'blur' }
                        ],
小范 authored
2446
小范 authored
2447 2448 2449 2450 2451 2452
                    },
                },
                dialogTableVisible:false,
                gridData:[],
                dialogVisible:false,
                dialogVisible1:false,
2453 2454
                fileContent: null,
                currentDate:new Date(),
小范 authored
2455 2456 2457
            }
        },
        methods:{
2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483
            handlePaste(event, maxLength) {
                // 阻止默认的粘贴行为
                event.preventDefault();
                // 获取粘贴的内容
                let pasteData = (event.clipboardData || window.clipboardData).getData('text').toUpperCase();
                // 获取当前输入框的内容
                let currentValue = this.addForm.hbs.hbs_manifest_description;
                // 计算总长度
                let totalLength = currentValue.length + pasteData.length;
                if (totalLength > 15) {
                    // 如果总长度超过15,只粘贴允许的部分
                    pasteData = pasteData.slice(0, 15 - currentValue.length);
                }
                // 更新输入框的内容
                this.addForm.hbs.hbs_manifest_description += pasteData;
                // 再次限制总长度
                this.addForm.hbs.hbs_manifest_description = this.limitInputLength(this.addForm.hbs.hbs_manifest_description);
            },

            limitInputLength(value, maxLength) {
                // 如果输入值的长度超过15,则截取前15个字符
                if (value.length > 15) {
                    return value.slice(0, 15);
                }
                return value;
            },
朱兆平 authored
2484 2485 2486 2487
            handleInput(value) {
              // 这里可以进一步处理输入值,例如去空格等
              this.form.bill.waybillNum = value.trim();
            },
小范 authored
2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498
            //标签页
            handleClick(tab, event) {
                console.log(tab, event);
            },
            //添加行
            addRows() {
                const circle = this.gridData[0];
                const newObj = {};
                for (let key in circle) { //把第一个对象的属性都赋值给新对象newObj  然后每个属性的值都设置为空;
                    newObj[key] = '';
                }
小范 authored
2499 2500
                // this.gridData.splice(this.gridData.length - 1, 0, newObj);
                this.gridData.push(newObj);
小范 authored
2501 2502 2503 2504
            },
            //删除行
            deleteRows(scope) {
                this.gridData.splice(scope.$index, 1);
朱兆平 authored
2505
                this.form.rtd.dimensions.splice(scope.$index,1);
小范 authored
2506 2507 2508
            },
            //求体积
            handleEdit(index, row) {
小范 authored
2509
                console.log("index="+index)
小范 authored
2510 2511 2512 2513 2514 2515 2516 2517 2518 2519
                if(row.long && row.wide && row.height && row.pic){
                    row.vol = Number(row.long)*Number(row.wide)*Number(row.height)*Number(row.pic)/1000000
                    let measurement_info = {
                        dim_measurement_code:'CMT',
                        //尺寸信息
                        dim_measurement_info:"" + row.long + "-" + row.wide + "-" + row.height + "/" + row.pic,
                        dim_weight:'',
                        dim_weightcode:'',
                    };
                    this.form.rtd.dimensions[index] = measurement_info;
小范 authored
2520 2521 2522 2523
                    // console.log(this.form.rtd.dimensions);
                    console.log("DIM数组加入了新的行数据>>"+JSON.stringify(this.form.rtd.dimensions))
                }else {
                    console.error("DIM数组没加数据-ERRRRRR")
小范 authored
2524
                }
小范 authored
2525
小范 authored
2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541
            },
            //合计体积
            getSummaries(param) {
                const {columns, data} = param
                const sums = []
                columns.forEach((column, index) => {
                    if (index === 0) {
                        sums[index] = '合计:'
                    }
                    else if (index == 4 ) {
                        const values = data.map(item => Number(item[column.property]))
                        if (!values.every(value => isNaN(value))) {
                            sums[index] = values.reduce((prev, curr) => {
                                const value = Number(curr)
                                if (!isNaN(value)) {
                                    // 保存了两位小数点
2542
                                    return Math.round((prev + curr) * 100) / 100;
小范 authored
2543 2544 2545

                                } else {
                                    // 保存了两位小数点
2546
                                    return Math.round(prev * 100) / 100;
小范 authored
2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567
                                }
                            }, 0)
                            sums[index] += '';
                        } else {
                            sums[index] = '0'
                        }
                    } else {
                        // sums[index] = ''
                    }
                })
                this.form.bill.quantity_volume = sums[4];
                return sums;
            },
            //保存尺寸   关闭弹框
            addVol(){
                this.dialogTableVisible = false;
            },
            // 主单
            // 获取发货人信息
            getShpFwb() {
                this.dialogVisible = true;
2568
                this.$refs.consigner.getConsignee();
小范 authored
2569 2570 2571 2572
            },
            // 获取收货人信息
            getCneFwb() {
                this.dialogVisible1 = true;
2573
                this.$refs.consignee.getConsignee();
小范 authored
2574 2575 2576 2577 2578
            },
            // 分单
            // 获取发货人信息
            getShp() {
                this.dialogVisible = true;
2579
                this.$refs.consigner.getConsignee();
小范 authored
2580 2581 2582 2583
            },
            // 获取收货人信息
            getCne() {
                this.dialogVisible1 = true;
2584
                this.$refs.consignee.getConsignee();
小范 authored
2585 2586 2587 2588 2589 2590 2591 2592 2593 2594
            },
            //发货人选中事件处理方法
            consigerSelect(row){
                if (this.activeName=='first'){
                    this.form.shp.shp_name = row.companyName;
                    this.form.shp.shp_contacts.contact_number = row.conPhone;
                    this.form.shp.shp_postcode = row.conPostcode;
                    this.form.shp.shp_loc_place = row.conCity;
                    this.form.shp.shp_country = row.country;
                    this.form.shp.shp_adr = row.conAddress;
2595
                    this.shp_oci.oci_csrc_info=row.enterprise;
小范 authored
2596
                    this.shp_oci.oci_country_code=row.country;
小范 authored
2597
                    // this.form.oci.push(this.shp_oci);
小范 authored
2598
                    this.shp_contact.contact_number=row.conPhone;
小范 authored
2599
                    // this.form.shp.shp_contacts.push(this.shp_contact);
2600
                    this.$refs.consigner.consigner_data();
小范 authored
2601 2602 2603 2604 2605 2606 2607 2608 2609
                    this.dialogVisible = false;
                }
                else if(this.activeName=='second'){
                    this.addForm.shp.shp_nam_name = row.companyName;
                    this.addForm.shp.shp_detail_number = row.conPhone;
                    this.addForm.shp.shp_location_post = row.conPostcode;
                    this.addForm.shp.shp_loc_place = row.conCity;
                    this.addForm.shp.shp_location_iso = row.country;
                    this.addForm.shp.shp_adr_street = row.conAddress;
2610
                    this.shp_aeo.oci_supplementary=row.enterprise;
小范 authored
2611
                    this.shp_aeo.oci_country_code=row.country;
小范 authored
2612
                    // this.addForm.oci.push(this.shp_aeo);
2613
                    this.$refs.consigner.consigner_data();
小范 authored
2614 2615 2616
                    this.dialogVisible = false;
                }
                else{
2617
                    this.$refs.consigner.consigner_data();
小范 authored
2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629
                    this.dialogVisible = false;
                }
            },
            //收货人选中事件处理方法
            consigeeSelect(row){
                if(this.activeName=='first'){
                    this.form.cne.cne_name = row.companyName;
                    this.form.cne.cne_contacts.contact_number = row.conPhone;
                    this.form.cne.cne_postcode = row.conPostcode;
                    this.form.cne.cne_loc_place = row.conCity;
                    this.form.cne.cne_country = row.country;
                    this.form.cne.cne_adr = row.conAddress;
2630
                    this.cne_oci.oci_csrc_info=row.enterprise;
小范 authored
2631
                    this.cne_oci.oci_country_code=row.country;
小范 authored
2632
                    // this.form.oci.push(this.cne_oci);
小范 authored
2633
                    this.cne_contact.contact_number=row.conPhone;
小范 authored
2634
                    // this.form.cne.cne_contacts.push(this.cne_contact);
2635
                    this.$refs.consignee.consignee_data();
小范 authored
2636 2637 2638 2639 2640 2641 2642 2643 2644
                    this.dialogVisible1 = false;
                }
                else if(this.activeName=='second'){
                    this.addForm.cne.cne_nam_name = row.companyName;
                    this.addForm.cne.cne_detail_number = row.conPhone;
                    this.addForm.cne.cne_location_post = row.conPostcode;
                    this.addForm.cne.cne_loc_place = row.conCity;
                    this.addForm.cne.cne_location_iso = row.country;
                    this.addForm.cne.cne_adr_street = row.conAddress;
2645
                    this.cne_aeo.oci_supplementary=row.enterprise;
小范 authored
2646
                    this.cne_aeo.oci_country_code=row.country;
小范 authored
2647
                    // this.addForm.oci.push(this.cne_aeo);
2648
                    this.$refs.consignee.consignee_data();
小范 authored
2649 2650 2651
                    this.dialogVisible1 = false;
                }
                else{
2652
                    this.$refs.consignee.consignee_data();
小范 authored
2653 2654 2655 2656 2657
                    this.dialogVisible1 = false;
                }
            },
            //新增分运单
            addFhl() {
2658 2659
                this.shp_aeo.oci_country_code=this.addForm.shp.shp_location_iso;
                this.cne_aeo.oci_country_code=this.addForm.cne.cne_location_iso;
小范 authored
2660 2661
                this.addForm.oci.push(this.shp_aeo);
                this.addForm.oci.push(this.cne_aeo);
小范 authored
2662 2663 2664
                /*进行表单的预验证*/
                this.$refs.apply_addFormRef.validate(valid => {
                    // 未通过,表单预校验
2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734
                    if (valid) {
                        fhl(this.addForm).then((response) => {
                            let res = response.data;
                            //添加调度记录信息,失败
                            if (res.code !== '200'){
                                return this.$message.error(res.msg);
                            }
                            this.$message.success(res.msg);
                            Object.assign(this.$data, this.$options.data());
                            // this.addForm = {
                            //     fhl:{
                            //         waybillNum:'',
                            //             quantity_weight_code:'',
                            //             quantity_weight:'',
                            //             quantity_picecs:'',
                            //             origin:'',
                            //             destination:'',
                            //     },
                            //     shp:{
                            //         shp_detail_identifier:'TE',
                            //             shp_nam_name:'',
                            //             shp_loc_place:'',
                            //             shp_location_post:'',
                            //             shp_location_iso:'',
                            //             shp_detail_number:'',
                            //             shp_adr_street:''
                            //     },
                            //     cne:{
                            //         cne_detail_identifier:'TE',
                            //             cne_nam_name:'',
                            //             cne_loc_place:'',
                            //             cne_location_post:'',
                            //             cne_location_iso:'',
                            //             cne_detail_number:'',
                            //             cne_adr_street:'',
                            //             cne_loc_province:'',
                            //             shp_loc_province:'',
                            //             shp_detail_identifier:''
                            //     },
                            //     cvd:{
                            //         cvd_value_for_carriage:'NVD',
                            //             cvd_value_for_customs:'NCV',
                            //             cvd_amount_of_insurance:'XXX',
                            //             cvd_charge_prepaid:'PP',
                            //             cvd_charge_code:'',
                            //             cvd_currency_code:'',
                            //     },
                            //     hbs:{
                            //         hbs_origin:'',
                            //             hbs_destination:'',
                            //             hbs_manifest_description:'',
                            //             hbs_pieces:'',
                            //             hbs_serial_number:'',
                            //             hbs_weight:'',
                            //             hbs_weight_code:'',
                            //             hbs_slac:''
                            //     },
                            //     txt:{
                            //         txt_free_text:''
                            //     },
                            //     hts:{
                            //         hts_commodity_code:''
                            //     },
                            //     oci:[],
                            // };
                        }).catch(error => {
                            this.addForm.oci=[];
                            this.$message.error(error.toString());
                        });
                    }else{
小范 authored
2735
                        this.addForm.oci=[];
2736 2737 2738
                        return false;
                    }
小范 authored
2739 2740 2741 2742 2743 2744 2745 2746
                })
            },
            //新增主运单
            addFwb() {
                this.form.rtd.rtd_gross_weight=this.form.bill.quantity_weight;
                this.form.rtd.rtd_number_pieces=this.form.bill.quantity_picecs;
                this.form.rtd.rtd_volume=this.form.bill.quantity_volume;
                this.form.ppd.ppd_weight_amount=this.form.ppd.ppd_charge_summary_total;
小范 authored
2747 2748 2749 2750
                this.form.acc=[];
                this.form.oci=[];
                this.form.shp.shp_contacts=[];
                this.form.cne.cne_contacts=[];
朱兆平 authored
2751
                this.form.nfy.nfy_contacts = [];
小范 authored
2752 2753
                this.shp_oci.oci_country_code=this.form.shp.shp_country;
                this.cne_oci.oci_country_code=this.form.cne.cne_country;
小范 authored
2754
                this.form.acc.push(this.acc_info);
小范 authored
2755 2756 2757 2758
                this.form.oci.push(this.shp_oci);
                this.form.shp.shp_contacts.push(this.shp_contact);
                this.form.oci.push(this.cne_oci);
                this.form.cne.cne_contacts.push(this.cne_contact);
朱兆平 authored
2759
                this.form.nfy.nfy_contacts.push(this.nfy_contact);
小范 authored
2760 2761 2762
                /*进行表单的预验证*/
                this.$refs.apply_formRef.validate(valid => {
                    // 未通过,表单预校验
2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777
                    if (valid) {
                        fwb(this.form).then((response) => {
                            let res = response.data;
                            //添加调度记录信息,失败
                            if (res.code !== '200'){
                                return this.$message.error(res.msg);
                            }
                            this.$message.success(res.msg);
                            Object.assign(this.$data, this.$options.data());

                        }).catch(error => {
                            this.form.oci=[];
                            this.$message.error(error.toString());
                        });
                    }else{
小范 authored
2778
                        this.form.oci=[];
2779 2780
                        return false;
                    }
小范 authored
2781 2782
                })
            },
2783 2784 2785 2786 2787 2788 2789 2790 2791 2792
            //获取主运单信息
            blur(){
                selectawabByid({id: this.addForm.fhl.waybillNum}).then((res) => {
                    if (res.data.code == '200'){
                        if(res.data.data != null&& res.data.data !=''){
                            this.addForm.fhl.quantity_weight = res.data.data.quantity_weight;
                            this.addForm.fhl.quantity_picecs = res.data.data.quantity_picecs;
                            this.addForm.fhl.origin = res.data.data.origin;
                            this.addForm.fhl.destination = res.data.data.destination;
                            this.addForm.fhl.quantity_weight_code = res.data.data.quantity_weight_code;
2793
                            this.addForm.hbs.hbs_origin=res.data.data.origin;
2794
                        }
小范 authored
2795
                        return this.$message.success(res.data.msg);
2796 2797 2798 2799 2800
                    }
                }).catch((error) => {
                    alert(error);
                });
            },
小范 authored
2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826
            getAWBA(){
                const _this = this
                selectByKey({id:this.$route.query.id}).then((response) => {
                    const res = response.data
                    // console.log(response.data)
                    if (res.code !== '200') {
                        return _this.$message.error('获取消息收发记录,失败!')
                    }
                    // 获取列表数据
                    _this.form = res.data
                    for (const i of res.data.shp.shp_contacts) {
                        _this.shp_contact=i
                    }
                    for (const i of res.data.cne.cne_contacts) {
                        _this.cne_contact=i
                    }
                    for (const i of res.data.oci) {
                        if(i.oci_information_id=="SHP"){
                            _this.shp_oci=i;
                        }else{
                            _this.cne_oci=i;
                        }
                    }
                    for (const i of res.data.acc) {
                        _this.acc_info=i
                    }
朱兆平 authored
2827 2828 2829 2830

                    // ssr 适配 使用 join 方法并传入换行符 \n 作为分隔符
                    _this.ssr_content = _this.form.ssr.ssr_request_content.join("\n");
小范 authored
2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860
                    //获取dmi数组
                    let dim = _this.form.rtd.dimensions
                    if (dim){
                        dim.forEach((item,index,arr)=>{
                            let dim_form = {
                                long:"",
                                wide:"",
                                height:"",
                                pic:"",
                                vol:"",
                                weight:""
                            };
                            dim_form.weight = item.dim_weight;
                            if(item.dim_measurement_info){
                                let measures =  item.dim_measurement_info.split("-");
                                if (measures.length>2){
                                    dim_form.long = measures[0];
                                    dim_form.wide = measures[1];
                                    let height_piece = measures[2];
                                    let h_p = height_piece.split("/");
                                    if(h_p.length>1){
                                        dim_form.height= h_p[0];
                                        dim_form.pic = h_p[1];
                                        dim_form.vol = dim_form.long*dim_form.wide*dim_form.height*dim_form.pic/1000000;
                                    }
                                    _this.gridData.push(dim_form)
                                }
                            }
                        })
                    }
小范 authored
2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888
                    _this.$message.success(res.msg)
                }).catch(error => {
                    // 关闭加载
                    _this.$message.error(error.toString())
                })
            },
            getAWBH(){
                const _this = this
                selectByKey({id:this.$route.query.id}).then((response) => {
                    const res = response.data
                    if (res.code !== '200') {
                        return _this.$message.error('获取消息收发记录,失败!')
                    }
                    // 获取列表数据
                    _this.addForm = res.data
                    for (const i of res.data.oci) {
                        if(i.oci_information_id=="SHP"){
                            _this.shp_aeo=i;
                        }else{
                            _this.cne_aeo=i;
                        }
                    }
                    _this.$message.success(res.msg)
                }).catch(error => {
                    // 关闭加载
                    _this.$message.error(error.toString())
                })
                // console.log("获取分单的方法执行了")
小范 authored
2889
            },
2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902
            //批量尺寸信息识别
            convertAndCalculateVolume() {
                let _this= this;
                this.$confirm('是否需要根据录入的尺寸信息生成详细的尺寸计算数据表,此操作会往表里面添加新的尺寸数据', '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    let text = this.dimension_textarea.trim().replaceAll("*","x");
                    text = text.replaceAll("CM","");
                    text = text.replaceAll("cm","");
                    text = text.replaceAll("X","x");
                    text = text.replaceAll("-","x");
朱兆平 authored
2903
                    text = text.replace(/\//g, 'x');
2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931
                    //去掉空白字符
                    text = text.replaceAll("/\s/g","");
                    const lines = text.split('\n');
                    let output = '';
                    let totalVolume = 0;

                    for (const line of lines) {
                        //正则校验每行格式
                        const regex = /^([\d\.]+)x([\d\.]+)x([\d\.]+)x([\d\.]+)$/;
                        let l = line.replace(/\s/g, "");
                        if (regex.test(l)) {
                            let dim_form = {
                                long:"",
                                wide:"",
                                height:"",
                                pic:"",
                                vol:"",
                                weight:""
                            };

                            const dimensions = l.trim().split('x');
                            dim_form.long = Number(dimensions[0]);
                            dim_form.wide = Number(dimensions[1]);
                            dim_form.height = Number(dimensions[2]);
                            dim_form.pic = Number(dimensions[3]);

                            dim_form.vol = dim_form.long * dim_form.wide * dim_form.height * dim_form.pic / 1000000;
朱兆平 authored
2932 2933 2934 2935 2936 2937 2938 2939 2940 2941
                            let measurement_info = {
                              dim_measurement_code:'CMT',
                              //尺寸信息
                              dim_measurement_info:"" + dim_form.long + "-" + dim_form.wide + "-" + dim_form.height + "/" + dim_form.pic,
                              dim_weight:'',
                              dim_weightcode:'',
                            };

                            _this.form.rtd.dimensions.push(measurement_info)
2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963
                            _this.gridData.push(dim_form)
                            totalVolume += dim_form.vol;

                            const formattedDimensions = `${dim_form.long}-${dim_form.wide}-${dim_form.height }/${dim_form.pic}`;

                            output += formattedDimensions + '\n';
                        } else {
                            this.$message({
                                type: 'error',
                                message: '行:'+ line +'尺寸格式错误! 录入信息支持 数字和Xx*- '
                            });
                            return ;
                        }
                    }
                    if (totalVolume>0){
                        totalVolume = Math.floor(totalVolume * 100) / 100;
                    }

                    return {
                        converted: output.trim(),
                        totalVolume: totalVolume
                    };
朱兆平 authored
2964
                }).catch((e) => {
2965
                    this.$message({
朱兆平 authored
2966 2967
                        type: 'error',
                        message: '已取消'+e.message
2968 2969 2970
                    });
                });
            },
小范 authored
2971 2972
            cancleBtn(){
                Object.assign(this.$data, this.$options.data());
2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079
            },
            handleChange(file, fileList) {
                const files = file.raw;
                const reader = new FileReader();
                reader.onload = (e) => {
                    const data = new Uint8Array(e.target.result);
                    const workbook = XLSX.read(data, { type: 'array' });
                    const worksheetName = '格式化打印'; // 指定工作表名称
                    const worksheet = workbook.Sheets[worksheetName];
                    if (worksheet) {
                        const AF1 = (worksheet['AF1'] && worksheet['AF1'].v) || '单元格不存在';
                        const A16 = (worksheet['A16'] && worksheet['A16'].v) || '单元格不存在';
                        const C16 = (worksheet['C16'] && worksheet['C16'].v) || '单元格不存在';
                        const K16 = (worksheet['K16'] && worksheet['K16'].v) || '单元格不存在';
                        const L16 = (worksheet['L16'] && worksheet['L16'].v) || '单元格不存在';
                        const S16 = (worksheet['S16'] && worksheet['S16'].v) || '单元格不存在';
                        const I18 = (worksheet['I18'] && worksheet['I18'].v) || '单元格不存在';
                        const M18 = (worksheet['M18'] && worksheet['M18'].v) || '单元格不存在';
                        const A20 = (worksheet['A20'] && worksheet['A20'].v) || '单元格不存在';
                        const A22 = (worksheet['A22'] && worksheet['A22'].v) || '单元格不存在';
                        const C22 = (worksheet['C22'] && worksheet['C22'].v) || '单元格不存在';
                        const K22 = (worksheet['K22'] && worksheet['K22'].v) || '单元格不存在';
                        const P22 = (worksheet['P22'] && worksheet['P22'].v) || '单元格不存在';
                        const U22 = (worksheet['U22'] && worksheet['U22'].v) || '单元格不存在';
                        const AF22 = (worksheet['AF22'] && worksheet['AF22'].v) || '单元格不存在';
                        const AF23 = (worksheet['AF23'] && worksheet['AF23'].v) || '单元格不存在';
                        const O34 = (worksheet['O34'] && worksheet['O34'].v) || '单元格不存在';
                        //const O38 = (worksheet['O38'] && worksheet['O38'].v) || '单元格不存在';
                        const X38 = (worksheet['X38'] && worksheet['X38'].v) || '单元格不存在';
                        const AF38 = (worksheet['AF38'] && worksheet['AF38'].v) || '单元格不存在';

                        const inFlightInfo = I18.split('/');
                        const outFlightInfo = M18.split('/');
                        const inFlightNumber = inFlightInfo[0];
                        const inFlightDate = inFlightInfo.length > 1 ? inFlightInfo[1].split(' ')[0] : '';
                        const outFlightNumber = outFlightInfo[0];
                        const outFlightDate = outFlightInfo.length > 1 ? outFlightInfo[1].split(' ')[0] : '';

                        const SSRInfo = A20.replace(/[^a-zA-Z0-9\s]/g, '');
                        //const signatureDate = parseCustomDate(O38);
                        const formattedAF23 = formatAF23(AF23);

                        this.fileContent = {
                            AF1: AF1,
                            A16: A16,
                            C16: C16,
                            K16: K16,
                            L16: L16,
                            S16: S16,
                            inFlightNumber: inFlightNumber,
                            inFlightDate: inFlightDate,
                            outFlightNumber: outFlightNumber,
                            outFlightDate: outFlightDate,
                            SSRInfo: SSRInfo,
                            A22: A22,
                            C22: C22,
                            K22: K22,
                            P22: P22,
                            U22: U22,
                            AF22: cleanString(AF22),
                            AF23: formattedAF23,
                            O34: cleanString(O34),
                            //signatureDate: signatureDate,
                            X38: X38,
                            AF38: cleanString(AF38),
                        };

                        this.form.bill.waybillNum=this.fileContent.AF1;
                        this.form.cvd.cvd_currency_code=this.fileContent.S16;
                        this.form.rtg.destinationAirport=this.fileContent.A16;
                        this.form.rtg.destinationCarrier=this.fileContent.C16;
                        this.form.rtg.onwardAirport=this.fileContent.K16;
                        this.form.rtg.onwardCarrier=this.fileContent.L16;
                        this.form.flt.cariier=this.fileContent.inFlightNumber.substring(0,2);
                        this.form.flt.day=this.fileContent.inFlightDate.substring(0,2);
                        this.form.flt.flightNumber=this.fileContent.inFlightNumber.substring(2);
                        this.form.flt.cariier2=this.fileContent.outFlightNumber.substring(0,2);
                        this.form.flt.day2=this.fileContent.outFlightDate.substring(0,2);
                        this.form.flt.flightNumber2=this.fileContent.outFlightNumber.substring(2);
                        this.ssr_content=this.fileContent.SSRInfo;
                        this.form.bill.quantity_picecs=this.fileContent.A22;
                        this.form.bill.quantity_weight=parseFloat(this.fileContent.K22).toFixed(2);
                        this.form.rtd.rtd_charge_weight=parseFloat(this.fileContent.C22).toFixed(2);
                        this.form.rtd.rtd_rate_charge=this.fileContent.P22;
                        this.form.rtd.rtd_total=parseFloat(this.fileContent.U22).toFixed(2);
                        this.form.rtd.rtd_goods_DES=this.fileContent.AF22;
                        this.form.ppd.ppd_weight_amount=parseFloat(this.fileContent.U22).toFixed(2);
                        this.form.ppd.ppd_charge_summary_total=parseFloat(this.fileContent.U22).toFixed(2);
                        this.form.cer.cer_signature=this.fileContent.O34;
                        this.form.isu.isu_signature=this.fileContent.AF38;
                        this.dimension_textarea=this.fileContent.AF23;
                        this.convertAndCalculateVolume();

                        this.form.isu.isu_day_mounth_year=this.formattedDate();
                    } else {
                        this.fileContent = { AF1: '工作表不存在' };
                    }
                };
                reader.readAsArrayBuffer(files);
            },
            formattedDate() {
                // 格式化日期为 yyyy-MM-dd
                const date = this.currentDate;
                const year = date.getFullYear();
                const month = String(date.getMonth() + 1).padStart(2, '0');
                const day = String(date.getDate()).padStart(2, '0');
                return `${year}-${month}-${day}`;
小范 authored
3080
            }
3081
        },
小范 authored
3082 3083 3084 3085 3086 3087 3088 3089 3090 3091
        activated(){
            if(jsutil.checkNull(this.$route.query.id)){
                if(this.$route.query.id.indexOf("AWBA")==0){
                    this.activeName='first';
                    this.getAWBA();
                }else{
                    this.activeName='second';
                    this.getAWBH();
                }
            }
朱兆平 authored
3092
        },
朱兆平 authored
3093 3094 3095 3096 3097 3098 3099 3100
        computed:{
          formattedSsrContent: {
            get() {
              return this.ssr_content;
            },
            set(value) {
              // 过滤掉所有非字母数字和中文字符以及换行符
              const filteredValue = value.replace(/[^A-Z1-9\n ]/g, '');
朱兆平 authored
3101
朱兆平 authored
3102 3103 3104
              const lines = value.split('\n');
              if (lines.length > 3) {
                this.$message.error('最多只能输入三行文本!');
朱兆平 authored
3105 3106 3107
                return;
              }
朱兆平 authored
3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118
              for (let line of lines) {
                if (line.length > 65) {
                  this.$message.error('每行不能超过65个字符!');
                  return;
                }
              }

              // 如果所有校验都通过了,更新 form.ssr.ssr_request_content
              this.form.ssr.ssr_request_content = lines;
              this.ssr_content = value; // 更新视图中的数据
            }
朱兆平 authored
3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144
          },
          flightNumber: {
            get() {
              // 返回拼接后的完整航班号
              return this.form.flt.cariier + this.form.flt.flightNumber;
            },
            set(value) {
              // 将输入值转换为大写并去除非法字符
              const cleanedValue = value.replace(/[^A-Za-z0-9]/g, '').toUpperCase();
              // 拆分航班号
              this.form.flt.cariier = cleanedValue.slice(0, 2);
              this.form.flt.flightNumber = cleanedValue.slice(2);
            }
          },
          flightNumber2: {
            get() {
              // 返回拼接后的完整航班号
              return this.form.flt.cariier2 + this.form.flt.flightNumber2;
            },
            set(value) {
              // 将输入值转换为大写并去除非法字符
              const cleanedValue = value.replace(/[^A-Za-z0-9]/g, '').toUpperCase();
              // 拆分航班号
              this.form.flt.cariier2 = cleanedValue.slice(0, 2);
              this.form.flt.flightNumber2 = cleanedValue.slice(2);
            }
3145
          },
朱兆平 authored
3146 3147 3148 3149 3150 3151 3152
        },
        watch:{
          ssr_content: {
            handler(newVal) {
              this.formattedSsrContent = newVal; // 触发计算属性的setter
            },
            immediate: true // 立即执行监听器
朱兆平 authored
3153 3154
          }
        }
小范 authored
3155 3156 3157 3158
    }
</script>

<style scoped>
小范 authored
3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171
    .el-input__inner{
        background-color: rgba(236,245,255,0.8) !important;
        border: 0px;
    }
    .el-textarea__inner{
        background-color: rgba(236,245,255,0.7)  !important;
        border-radius: 4px;
    }
    .el-row{
        margin-bottom: -20px;
        display: flex;
        flex-wrap: wrap
    }
小范 authored
3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200
    table {
        width: 90%;
    }
    tbody tr td{
        line-height: 14px;
    }
    tbody tr {
        height: 60px;

    }
    .tb{
        border-top: 0px;
        border-left: 1px solid;
        border-right: 1px solid;
        border-bottom: 1px solid;
    }
    .tl{
        border-top: none;
        border-left: 0px;
        border-right: 0px;
        border-bottom: 0px;
    }
    .tb1{
        border-top: 0px;
        border-left: 0px;
        border-right: 1px solid;
        border-bottom: 0px;
    }
    .tb3{
小范 authored
3201
        border: 0px;
小范 authored
3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215
    }
    .tb4{
        border-top: 0px;
        border-left:  1px solid;
        border-right:   1px solid;
        border-bottom:   1px solid;
    }
    .tb5{
        border-top: 0px;
        border-left:  1px solid;
        border-right: 1px solid;
        border-bottom: 0px;
    }
    .tx{
小范 authored
3216
        border-top: 25px solid white;
小范 authored
3217 3218 3219 3220 3221 3222 3223 3224
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        width: 180px;
        margin-top: -1px;
        display: inline-block;
        margin-left: 40px;
    }
</style>
小范 authored
3225