正在显示
1 个修改的文件
包含
90 行增加
和
211 行删除
@@ -2384,75 +2384,80 @@ Handling Information | @@ -2384,75 +2384,80 @@ Handling Information | ||
2384 | /*进行表单的预验证*/ | 2384 | /*进行表单的预验证*/ |
2385 | this.$refs.apply_addFormRef.validate(valid => { | 2385 | this.$refs.apply_addFormRef.validate(valid => { |
2386 | // 未通过,表单预校验 | 2386 | // 未通过,表单预校验 |
2387 | - if (!valid) return; | ||
2388 | - fhl(this.addForm).then((response) => { | ||
2389 | - let res = response.data; | ||
2390 | - //添加调度记录信息,失败 | ||
2391 | - if (res.code !== '200'){ | ||
2392 | - return this.$message.error(res.msg); | ||
2393 | - } | ||
2394 | - this.$message.success(res.msg); | ||
2395 | - Object.assign(this.$data, this.$options.data()); | ||
2396 | - // this.addForm = { | ||
2397 | - // fhl:{ | ||
2398 | - // waybillNum:'', | ||
2399 | - // quantity_weight_code:'', | ||
2400 | - // quantity_weight:'', | ||
2401 | - // quantity_picecs:'', | ||
2402 | - // origin:'', | ||
2403 | - // destination:'', | ||
2404 | - // }, | ||
2405 | - // shp:{ | ||
2406 | - // shp_detail_identifier:'TE', | ||
2407 | - // shp_nam_name:'', | ||
2408 | - // shp_loc_place:'', | ||
2409 | - // shp_location_post:'', | ||
2410 | - // shp_location_iso:'', | ||
2411 | - // shp_detail_number:'', | ||
2412 | - // shp_adr_street:'' | ||
2413 | - // }, | ||
2414 | - // cne:{ | ||
2415 | - // cne_detail_identifier:'TE', | ||
2416 | - // cne_nam_name:'', | ||
2417 | - // cne_loc_place:'', | ||
2418 | - // cne_location_post:'', | ||
2419 | - // cne_location_iso:'', | ||
2420 | - // cne_detail_number:'', | ||
2421 | - // cne_adr_street:'', | ||
2422 | - // cne_loc_province:'', | ||
2423 | - // shp_loc_province:'', | ||
2424 | - // shp_detail_identifier:'' | ||
2425 | - // }, | ||
2426 | - // cvd:{ | ||
2427 | - // cvd_value_for_carriage:'NVD', | ||
2428 | - // cvd_value_for_customs:'NCV', | ||
2429 | - // cvd_amount_of_insurance:'XXX', | ||
2430 | - // cvd_charge_prepaid:'PP', | ||
2431 | - // cvd_charge_code:'', | ||
2432 | - // cvd_currency_code:'', | ||
2433 | - // }, | ||
2434 | - // hbs:{ | ||
2435 | - // hbs_origin:'', | ||
2436 | - // hbs_destination:'', | ||
2437 | - // hbs_manifest_description:'', | ||
2438 | - // hbs_pieces:'', | ||
2439 | - // hbs_serial_number:'', | ||
2440 | - // hbs_weight:'', | ||
2441 | - // hbs_weight_code:'', | ||
2442 | - // hbs_slac:'' | ||
2443 | - // }, | ||
2444 | - // txt:{ | ||
2445 | - // txt_free_text:'' | ||
2446 | - // }, | ||
2447 | - // hts:{ | ||
2448 | - // hts_commodity_code:'' | ||
2449 | - // }, | ||
2450 | - // oci:[], | ||
2451 | - // }; | ||
2452 | - }).catch(error => { | 2387 | + if (valid) { |
2388 | + fhl(this.addForm).then((response) => { | ||
2389 | + let res = response.data; | ||
2390 | + //添加调度记录信息,失败 | ||
2391 | + if (res.code !== '200'){ | ||
2392 | + return this.$message.error(res.msg); | ||
2393 | + } | ||
2394 | + this.$message.success(res.msg); | ||
2395 | + Object.assign(this.$data, this.$options.data()); | ||
2396 | + // this.addForm = { | ||
2397 | + // fhl:{ | ||
2398 | + // waybillNum:'', | ||
2399 | + // quantity_weight_code:'', | ||
2400 | + // quantity_weight:'', | ||
2401 | + // quantity_picecs:'', | ||
2402 | + // origin:'', | ||
2403 | + // destination:'', | ||
2404 | + // }, | ||
2405 | + // shp:{ | ||
2406 | + // shp_detail_identifier:'TE', | ||
2407 | + // shp_nam_name:'', | ||
2408 | + // shp_loc_place:'', | ||
2409 | + // shp_location_post:'', | ||
2410 | + // shp_location_iso:'', | ||
2411 | + // shp_detail_number:'', | ||
2412 | + // shp_adr_street:'' | ||
2413 | + // }, | ||
2414 | + // cne:{ | ||
2415 | + // cne_detail_identifier:'TE', | ||
2416 | + // cne_nam_name:'', | ||
2417 | + // cne_loc_place:'', | ||
2418 | + // cne_location_post:'', | ||
2419 | + // cne_location_iso:'', | ||
2420 | + // cne_detail_number:'', | ||
2421 | + // cne_adr_street:'', | ||
2422 | + // cne_loc_province:'', | ||
2423 | + // shp_loc_province:'', | ||
2424 | + // shp_detail_identifier:'' | ||
2425 | + // }, | ||
2426 | + // cvd:{ | ||
2427 | + // cvd_value_for_carriage:'NVD', | ||
2428 | + // cvd_value_for_customs:'NCV', | ||
2429 | + // cvd_amount_of_insurance:'XXX', | ||
2430 | + // cvd_charge_prepaid:'PP', | ||
2431 | + // cvd_charge_code:'', | ||
2432 | + // cvd_currency_code:'', | ||
2433 | + // }, | ||
2434 | + // hbs:{ | ||
2435 | + // hbs_origin:'', | ||
2436 | + // hbs_destination:'', | ||
2437 | + // hbs_manifest_description:'', | ||
2438 | + // hbs_pieces:'', | ||
2439 | + // hbs_serial_number:'', | ||
2440 | + // hbs_weight:'', | ||
2441 | + // hbs_weight_code:'', | ||
2442 | + // hbs_slac:'' | ||
2443 | + // }, | ||
2444 | + // txt:{ | ||
2445 | + // txt_free_text:'' | ||
2446 | + // }, | ||
2447 | + // hts:{ | ||
2448 | + // hts_commodity_code:'' | ||
2449 | + // }, | ||
2450 | + // oci:[], | ||
2451 | + // }; | ||
2452 | + }).catch(error => { | ||
2453 | + this.addForm.oci=[]; | ||
2454 | + this.$message.error(error.toString()); | ||
2455 | + }); | ||
2456 | + }else{ | ||
2453 | this.addForm.oci=[]; | 2457 | this.addForm.oci=[]; |
2454 | - this.$message.error(error.toString()); | ||
2455 | - }); | 2458 | + return false; |
2459 | + } | ||
2460 | + | ||
2456 | }) | 2461 | }) |
2457 | }, | 2462 | }, |
2458 | //新增主运单 | 2463 | //新增主运单 |
@@ -2477,150 +2482,24 @@ Handling Information | @@ -2477,150 +2482,24 @@ Handling Information | ||
2477 | /*进行表单的预验证*/ | 2482 | /*进行表单的预验证*/ |
2478 | this.$refs.apply_formRef.validate(valid => { | 2483 | this.$refs.apply_formRef.validate(valid => { |
2479 | // 未通过,表单预校验 | 2484 | // 未通过,表单预校验 |
2480 | - if (!valid) return; | ||
2481 | - fwb(this.form).then((response) => { | ||
2482 | - let res = response.data; | ||
2483 | - //添加调度记录信息,失败 | ||
2484 | - if (res.code !== '200'){ | ||
2485 | - return this.$message.error(res.msg); | ||
2486 | - } | ||
2487 | - this.$message.success(res.msg); | ||
2488 | - Object.assign(this.$data, this.$options.data()); | ||
2489 | - // this.form = { | ||
2490 | - // acc:[], | ||
2491 | - // agt:{ | ||
2492 | - // agt_ADR:'', | ||
2493 | - // agt_IATA_number:'', | ||
2494 | - // agt_account_number:'', | ||
2495 | - // agt_name:'', | ||
2496 | - // agt_participant_id:'', | ||
2497 | - // }, | ||
2498 | - // bill:{ | ||
2499 | - // destination:'', | ||
2500 | - // origin:'', | ||
2501 | - // quantity_density:'', | ||
2502 | - // quantity_picecs:'', | ||
2503 | - // //体积 | ||
2504 | - // quantity_volume:'', | ||
2505 | - // quantity_volume_code:'MC', | ||
2506 | - // quantity_weight:'', | ||
2507 | - // quantity_weight_code:'K', | ||
2508 | - // waybillNum:'', | ||
2509 | - // }, | ||
2510 | - // cne:{ | ||
2511 | - // cne_contacts:[], | ||
2512 | - // cne_account_number:'', | ||
2513 | - // cne_adr:'', | ||
2514 | - // cne_country:'', | ||
2515 | - // cne_loc_place:'', | ||
2516 | - // cne_loc_province:'', | ||
2517 | - // cne_name:'', | ||
2518 | - // cne_postcode:'', | ||
2519 | - // }, | ||
2520 | - // cvd:{ | ||
2521 | - // cvd_amount_of_insurance:'XXX', | ||
2522 | - // cvd_charge_code:'', | ||
2523 | - // cvd_charge_prepaid:'PP', | ||
2524 | - // cvd_currency_code:'', | ||
2525 | - // cvd_value_for_carriage:'NVD', | ||
2526 | - // cvd_value_for_customs:'NCV', | ||
2527 | - // }, | ||
2528 | - // flt:{ | ||
2529 | - // cariier:'', | ||
2530 | - // day:'', | ||
2531 | - // flightNumber:'', | ||
2532 | - // }, | ||
2533 | - // isu:{ | ||
2534 | - // isu_day_mounth_year:'', | ||
2535 | - // isu_place_or_airport_code:'', | ||
2536 | - // isu_signature:'', | ||
2537 | - // }, | ||
2538 | - // nfy:{ | ||
2539 | - // nfy_contacts:[], | ||
2540 | - // nfy_ADR:'', | ||
2541 | - // nfy_LOC_city:'', | ||
2542 | - // nfy_LOC_province:'', | ||
2543 | - // nfy_country:'', | ||
2544 | - // nfy_name:'', | ||
2545 | - // nfy_postcode:'' | ||
2546 | - // }, | ||
2547 | - // oci:[ | ||
2548 | - // // { | ||
2549 | - // // oci_country_code:'', | ||
2550 | - // // oci_csrc_id:'', | ||
2551 | - // // oci_csrc_info:'', | ||
2552 | - // // oci_information_id:'' | ||
2553 | - // // } | ||
2554 | - // ], | ||
2555 | - // osi:[{ | ||
2556 | - // osi_text:[], | ||
2557 | - // }], | ||
2558 | - // oth:{ | ||
2559 | - // oth_amount:'', | ||
2560 | - // oth_charge_code:'', | ||
2561 | - // oth_charges:'', | ||
2562 | - // oth_entitlement_code:'' | ||
2563 | - // }, | ||
2564 | - // ppd:{ | ||
2565 | - // ppd_charge_summary_total:'', | ||
2566 | - // ppd_other_charges_due_agent:'', | ||
2567 | - // ppd_other_charges_due_carrier:'', | ||
2568 | - // ppd_taxes_amount:'', | ||
2569 | - // ppd_valuation_amount:'', | ||
2570 | - // ppd_weight_amount:'', | ||
2571 | - // }, | ||
2572 | - // ref:{ | ||
2573 | - // ref_address:'CGOFDEE', | ||
2574 | - // ref_file_reference:'', | ||
2575 | - // ref_participant_airport:'', | ||
2576 | - // ref_participant_code:'', | ||
2577 | - // ref_participant_id:'', | ||
2578 | - // }, | ||
2579 | - // rtd: | ||
2580 | - // { | ||
2581 | - // dimensions:[], | ||
2582 | - // rtd_charge_weight:'', | ||
2583 | - // rtd_combination_point:'', | ||
2584 | - // rtd_commodity_NUM:'', | ||
2585 | - // rtd_goods_DES:'', | ||
2586 | - // rtd_goods_consol_DES:'', | ||
2587 | - // rtd_gross_weight:'', | ||
2588 | - // rtd_number_pieces:'', | ||
2589 | - // rtd_rate_charge:'', | ||
2590 | - // rtd_rate_class:'Q', | ||
2591 | - // rtd_total:'', | ||
2592 | - // //体积 | ||
2593 | - // rtd_volume:'', | ||
2594 | - // rtd_volume_code:'MC', | ||
2595 | - // } | ||
2596 | - // , | ||
2597 | - // rtg:{ | ||
2598 | - // destinationAirport:'', | ||
2599 | - // destinationCarrier:'', | ||
2600 | - // onwardAirport:'', | ||
2601 | - // onwardCarrier:'', | ||
2602 | - // }, | ||
2603 | - // shp:{ | ||
2604 | - // shp_contacts:[], | ||
2605 | - // shp_account_number:'', | ||
2606 | - // shp_adr:'', | ||
2607 | - // shp_country:'', | ||
2608 | - // shp_loc_place:'', | ||
2609 | - // shp_loc_province:'', | ||
2610 | - // shp_name:'', | ||
2611 | - // shp_postcode:'', | ||
2612 | - // }, | ||
2613 | - // ssr:{ | ||
2614 | - // ssr_request_content:[], | ||
2615 | - // }, | ||
2616 | - // cer:{ | ||
2617 | - // cer_signature:'' | ||
2618 | - // } | ||
2619 | - // }; | ||
2620 | - }).catch(error => { | 2485 | + if (valid) { |
2486 | + fwb(this.form).then((response) => { | ||
2487 | + let res = response.data; | ||
2488 | + //添加调度记录信息,失败 | ||
2489 | + if (res.code !== '200'){ | ||
2490 | + return this.$message.error(res.msg); | ||
2491 | + } | ||
2492 | + this.$message.success(res.msg); | ||
2493 | + Object.assign(this.$data, this.$options.data()); | ||
2494 | + | ||
2495 | + }).catch(error => { | ||
2496 | + this.form.oci=[]; | ||
2497 | + this.$message.error(error.toString()); | ||
2498 | + }); | ||
2499 | + }else{ | ||
2621 | this.form.oci=[]; | 2500 | this.form.oci=[]; |
2622 | - this.$message.error(error.toString()); | ||
2623 | - }); | 2501 | + return false; |
2502 | + } | ||
2624 | }) | 2503 | }) |
2625 | }, | 2504 | }, |
2626 | //获取主运单信息 | 2505 | //获取主运单信息 |
-
请 注册 或 登录 后发表评论