正在显示
1 个修改的文件
包含
12 行增加
和
133 行删除
| @@ -2384,7 +2384,7 @@ Handling Information | @@ -2384,7 +2384,7 @@ Handling Information | ||
| 2384 | /*进行表单的预验证*/ | 2384 | /*进行表单的预验证*/ |
| 2385 | this.$refs.apply_addFormRef.validate(valid => { | 2385 | this.$refs.apply_addFormRef.validate(valid => { |
| 2386 | // 未通过,表单预校验 | 2386 | // 未通过,表单预校验 |
| 2387 | - if (!valid) return; | 2387 | + if (valid) { |
| 2388 | fhl(this.addForm).then((response) => { | 2388 | fhl(this.addForm).then((response) => { |
| 2389 | let res = response.data; | 2389 | let res = response.data; |
| 2390 | //添加调度记录信息,失败 | 2390 | //添加调度记录信息,失败 |
| @@ -2453,6 +2453,11 @@ Handling Information | @@ -2453,6 +2453,11 @@ Handling Information | ||
| 2453 | this.addForm.oci=[]; | 2453 | this.addForm.oci=[]; |
| 2454 | this.$message.error(error.toString()); | 2454 | this.$message.error(error.toString()); |
| 2455 | }); | 2455 | }); |
| 2456 | + }else{ | ||
| 2457 | + this.addForm.oci=[]; | ||
| 2458 | + return false; | ||
| 2459 | + } | ||
| 2460 | + | ||
| 2456 | }) | 2461 | }) |
| 2457 | }, | 2462 | }, |
| 2458 | //新增主运单 | 2463 | //新增主运单 |
| @@ -2477,7 +2482,7 @@ Handling Information | @@ -2477,7 +2482,7 @@ Handling Information | ||
| 2477 | /*进行表单的预验证*/ | 2482 | /*进行表单的预验证*/ |
| 2478 | this.$refs.apply_formRef.validate(valid => { | 2483 | this.$refs.apply_formRef.validate(valid => { |
| 2479 | // 未通过,表单预校验 | 2484 | // 未通过,表单预校验 |
| 2480 | - if (!valid) return; | 2485 | + if (valid) { |
| 2481 | fwb(this.form).then((response) => { | 2486 | fwb(this.form).then((response) => { |
| 2482 | let res = response.data; | 2487 | let res = response.data; |
| 2483 | //添加调度记录信息,失败 | 2488 | //添加调度记录信息,失败 |
| @@ -2486,141 +2491,15 @@ Handling Information | @@ -2486,141 +2491,15 @@ Handling Information | ||
| 2486 | } | 2491 | } |
| 2487 | this.$message.success(res.msg); | 2492 | this.$message.success(res.msg); |
| 2488 | Object.assign(this.$data, this.$options.data()); | 2493 | 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 | - // }; | 2494 | + |
| 2620 | }).catch(error => { | 2495 | }).catch(error => { |
| 2621 | this.form.oci=[]; | 2496 | this.form.oci=[]; |
| 2622 | this.$message.error(error.toString()); | 2497 | this.$message.error(error.toString()); |
| 2623 | }); | 2498 | }); |
| 2499 | + }else{ | ||
| 2500 | + this.form.oci=[]; | ||
| 2501 | + return false; | ||
| 2502 | + } | ||
| 2624 | }) | 2503 | }) |
| 2625 | }, | 2504 | }, |
| 2626 | //获取主运单信息 | 2505 | //获取主运单信息 |
-
请 注册 或 登录 后发表评论