作者 小范

清空表单

@@ -2293,62 +2293,63 @@ Handling Information @@ -2293,62 +2293,63 @@ Handling Information
2293 return this.$message.error('新增分运单,失败'); 2293 return this.$message.error('新增分运单,失败');
2294 } 2294 }
2295 this.$message.success('新增分运单,成功'); 2295 this.$message.success('新增分运单,成功');
2296 - this.addForm = {  
2297 - fhl:{  
2298 - waybillNum:'',  
2299 - quantity_weight_code:'',  
2300 - quantity_weight:'',  
2301 - quantity_picecs:'',  
2302 - origin:'',  
2303 - destination:'',  
2304 - },  
2305 - shp:{  
2306 - shp_detail_identifier:'TE',  
2307 - shp_nam_name:'',  
2308 - shp_loc_place:'',  
2309 - shp_location_post:'',  
2310 - shp_location_iso:'',  
2311 - shp_detail_number:'',  
2312 - shp_adr_street:''  
2313 - },  
2314 - cne:{  
2315 - cne_detail_identifier:'TE',  
2316 - cne_nam_name:'',  
2317 - cne_loc_place:'',  
2318 - cne_location_post:'',  
2319 - cne_location_iso:'',  
2320 - cne_detail_number:'',  
2321 - cne_adr_street:'',  
2322 - cne_loc_province:'',  
2323 - shp_loc_province:'',  
2324 - shp_detail_identifier:''  
2325 - },  
2326 - cvd:{  
2327 - cvd_value_for_carriage:'NVD',  
2328 - cvd_value_for_customs:'NCV',  
2329 - cvd_amount_of_insurance:'XXX',  
2330 - cvd_charge_prepaid:'PP',  
2331 - cvd_charge_code:'',  
2332 - cvd_currency_code:'',  
2333 - },  
2334 - hbs:{  
2335 - hbs_origin:'',  
2336 - hbs_destination:'',  
2337 - hbs_manifest_description:'',  
2338 - hbs_pieces:'',  
2339 - hbs_serial_number:'',  
2340 - hbs_weight:'',  
2341 - hbs_weight_code:'',  
2342 - hbs_slac:''  
2343 - },  
2344 - txt:{  
2345 - txt_free_text:''  
2346 - },  
2347 - hts:{  
2348 - hts_commodity_code:''  
2349 - },  
2350 - oci:[],  
2351 - }; 2296 + Object.assign(this.$data, this.$options.data());
  2297 + // this.addForm = {
  2298 + // fhl:{
  2299 + // waybillNum:'',
  2300 + // quantity_weight_code:'',
  2301 + // quantity_weight:'',
  2302 + // quantity_picecs:'',
  2303 + // origin:'',
  2304 + // destination:'',
  2305 + // },
  2306 + // shp:{
  2307 + // shp_detail_identifier:'TE',
  2308 + // shp_nam_name:'',
  2309 + // shp_loc_place:'',
  2310 + // shp_location_post:'',
  2311 + // shp_location_iso:'',
  2312 + // shp_detail_number:'',
  2313 + // shp_adr_street:''
  2314 + // },
  2315 + // cne:{
  2316 + // cne_detail_identifier:'TE',
  2317 + // cne_nam_name:'',
  2318 + // cne_loc_place:'',
  2319 + // cne_location_post:'',
  2320 + // cne_location_iso:'',
  2321 + // cne_detail_number:'',
  2322 + // cne_adr_street:'',
  2323 + // cne_loc_province:'',
  2324 + // shp_loc_province:'',
  2325 + // shp_detail_identifier:''
  2326 + // },
  2327 + // cvd:{
  2328 + // cvd_value_for_carriage:'NVD',
  2329 + // cvd_value_for_customs:'NCV',
  2330 + // cvd_amount_of_insurance:'XXX',
  2331 + // cvd_charge_prepaid:'PP',
  2332 + // cvd_charge_code:'',
  2333 + // cvd_currency_code:'',
  2334 + // },
  2335 + // hbs:{
  2336 + // hbs_origin:'',
  2337 + // hbs_destination:'',
  2338 + // hbs_manifest_description:'',
  2339 + // hbs_pieces:'',
  2340 + // hbs_serial_number:'',
  2341 + // hbs_weight:'',
  2342 + // hbs_weight_code:'',
  2343 + // hbs_slac:''
  2344 + // },
  2345 + // txt:{
  2346 + // txt_free_text:''
  2347 + // },
  2348 + // hts:{
  2349 + // hts_commodity_code:''
  2350 + // },
  2351 + // oci:[],
  2352 + // };
2352 }).catch(error => { 2353 }).catch(error => {
2353 this.$message.error(error.toString()); 2354 this.$message.error(error.toString());
2354 }); 2355 });
@@ -2384,137 +2385,138 @@ Handling Information @@ -2384,137 +2385,138 @@ Handling Information
2384 return this.$message.error('新增主运单,失败'); 2385 return this.$message.error('新增主运单,失败');
2385 } 2386 }
2386 this.$message.success(res.msg); 2387 this.$message.success(res.msg);
2387 - this.form = {  
2388 - acc:[],  
2389 - agt:{  
2390 - agt_ADR:'',  
2391 - agt_IATA_number:'',  
2392 - agt_account_number:'',  
2393 - agt_name:'',  
2394 - agt_participant_id:'',  
2395 - },  
2396 - bill:{  
2397 - destination:'',  
2398 - origin:'',  
2399 - quantity_density:'',  
2400 - quantity_picecs:'',  
2401 - //体积  
2402 - quantity_volume:'',  
2403 - quantity_volume_code:'MC',  
2404 - quantity_weight:'',  
2405 - quantity_weight_code:'K',  
2406 - waybillNum:'',  
2407 - },  
2408 - cne:{  
2409 - cne_contacts:[],  
2410 - cne_account_number:'',  
2411 - cne_adr:'',  
2412 - cne_country:'',  
2413 - cne_loc_place:'',  
2414 - cne_loc_province:'',  
2415 - cne_name:'',  
2416 - cne_postcode:'',  
2417 - },  
2418 - cvd:{  
2419 - cvd_amount_of_insurance:'XXX',  
2420 - cvd_charge_code:'',  
2421 - cvd_charge_prepaid:'PP',  
2422 - cvd_currency_code:'',  
2423 - cvd_value_for_carriage:'NVD',  
2424 - cvd_value_for_customs:'NCV',  
2425 - },  
2426 - flt:{  
2427 - cariier:'',  
2428 - day:'',  
2429 - flightNumber:'',  
2430 - },  
2431 - isu:{  
2432 - isu_day_mounth_year:'',  
2433 - isu_place_or_airport_code:'',  
2434 - isu_signature:'',  
2435 - },  
2436 - nfy:{  
2437 - nfy_contacts:[],  
2438 - nfy_ADR:'',  
2439 - nfy_LOC_city:'',  
2440 - nfy_LOC_province:'',  
2441 - nfy_country:'',  
2442 - nfy_name:'',  
2443 - nfy_postcode:''  
2444 - },  
2445 - oci:[  
2446 - // {  
2447 - // oci_country_code:'',  
2448 - // oci_csrc_id:'',  
2449 - // oci_csrc_info:'',  
2450 - // oci_information_id:''  
2451 - // }  
2452 - ],  
2453 - osi:[{  
2454 - osi_text:[],  
2455 - }],  
2456 - oth:{  
2457 - oth_amount:'',  
2458 - oth_charge_code:'',  
2459 - oth_charges:'',  
2460 - oth_entitlement_code:''  
2461 - },  
2462 - ppd:{  
2463 - ppd_charge_summary_total:'',  
2464 - ppd_other_charges_due_agent:'',  
2465 - ppd_other_charges_due_carrier:'',  
2466 - ppd_taxes_amount:'',  
2467 - ppd_valuation_amount:'',  
2468 - ppd_weight_amount:'',  
2469 - },  
2470 - ref:{  
2471 - ref_address:'CGOFDEE',  
2472 - ref_file_reference:'',  
2473 - ref_participant_airport:'',  
2474 - ref_participant_code:'',  
2475 - ref_participant_id:'',  
2476 - },  
2477 - rtd:  
2478 - {  
2479 - dimensions:[],  
2480 - rtd_charge_weight:'',  
2481 - rtd_combination_point:'',  
2482 - rtd_commodity_NUM:'',  
2483 - rtd_goods_DES:'',  
2484 - rtd_goods_consol_DES:'',  
2485 - rtd_gross_weight:'',  
2486 - rtd_number_pieces:'',  
2487 - rtd_rate_charge:'',  
2488 - rtd_rate_class:'Q',  
2489 - rtd_total:'',  
2490 - //体积  
2491 - rtd_volume:'',  
2492 - rtd_volume_code:'MC',  
2493 - }  
2494 - ,  
2495 - rtg:{  
2496 - destinationAirport:'',  
2497 - destinationCarrier:'',  
2498 - onwardAirport:'',  
2499 - onwardCarrier:'',  
2500 - },  
2501 - shp:{  
2502 - shp_contacts:[],  
2503 - shp_account_number:'',  
2504 - shp_adr:'',  
2505 - shp_country:'',  
2506 - shp_loc_place:'',  
2507 - shp_loc_province:'',  
2508 - shp_name:'',  
2509 - shp_postcode:'',  
2510 - },  
2511 - ssr:{  
2512 - ssr_request_content:[],  
2513 - },  
2514 - cer:{  
2515 - cer_signature:''  
2516 - }  
2517 - }; 2388 + Object.assign(this.$data, this.$options.data());
  2389 + // this.form = {
  2390 + // acc:[],
  2391 + // agt:{
  2392 + // agt_ADR:'',
  2393 + // agt_IATA_number:'',
  2394 + // agt_account_number:'',
  2395 + // agt_name:'',
  2396 + // agt_participant_id:'',
  2397 + // },
  2398 + // bill:{
  2399 + // destination:'',
  2400 + // origin:'',
  2401 + // quantity_density:'',
  2402 + // quantity_picecs:'',
  2403 + // //体积
  2404 + // quantity_volume:'',
  2405 + // quantity_volume_code:'MC',
  2406 + // quantity_weight:'',
  2407 + // quantity_weight_code:'K',
  2408 + // waybillNum:'',
  2409 + // },
  2410 + // cne:{
  2411 + // cne_contacts:[],
  2412 + // cne_account_number:'',
  2413 + // cne_adr:'',
  2414 + // cne_country:'',
  2415 + // cne_loc_place:'',
  2416 + // cne_loc_province:'',
  2417 + // cne_name:'',
  2418 + // cne_postcode:'',
  2419 + // },
  2420 + // cvd:{
  2421 + // cvd_amount_of_insurance:'XXX',
  2422 + // cvd_charge_code:'',
  2423 + // cvd_charge_prepaid:'PP',
  2424 + // cvd_currency_code:'',
  2425 + // cvd_value_for_carriage:'NVD',
  2426 + // cvd_value_for_customs:'NCV',
  2427 + // },
  2428 + // flt:{
  2429 + // cariier:'',
  2430 + // day:'',
  2431 + // flightNumber:'',
  2432 + // },
  2433 + // isu:{
  2434 + // isu_day_mounth_year:'',
  2435 + // isu_place_or_airport_code:'',
  2436 + // isu_signature:'',
  2437 + // },
  2438 + // nfy:{
  2439 + // nfy_contacts:[],
  2440 + // nfy_ADR:'',
  2441 + // nfy_LOC_city:'',
  2442 + // nfy_LOC_province:'',
  2443 + // nfy_country:'',
  2444 + // nfy_name:'',
  2445 + // nfy_postcode:''
  2446 + // },
  2447 + // oci:[
  2448 + // // {
  2449 + // // oci_country_code:'',
  2450 + // // oci_csrc_id:'',
  2451 + // // oci_csrc_info:'',
  2452 + // // oci_information_id:''
  2453 + // // }
  2454 + // ],
  2455 + // osi:[{
  2456 + // osi_text:[],
  2457 + // }],
  2458 + // oth:{
  2459 + // oth_amount:'',
  2460 + // oth_charge_code:'',
  2461 + // oth_charges:'',
  2462 + // oth_entitlement_code:''
  2463 + // },
  2464 + // ppd:{
  2465 + // ppd_charge_summary_total:'',
  2466 + // ppd_other_charges_due_agent:'',
  2467 + // ppd_other_charges_due_carrier:'',
  2468 + // ppd_taxes_amount:'',
  2469 + // ppd_valuation_amount:'',
  2470 + // ppd_weight_amount:'',
  2471 + // },
  2472 + // ref:{
  2473 + // ref_address:'CGOFDEE',
  2474 + // ref_file_reference:'',
  2475 + // ref_participant_airport:'',
  2476 + // ref_participant_code:'',
  2477 + // ref_participant_id:'',
  2478 + // },
  2479 + // rtd:
  2480 + // {
  2481 + // dimensions:[],
  2482 + // rtd_charge_weight:'',
  2483 + // rtd_combination_point:'',
  2484 + // rtd_commodity_NUM:'',
  2485 + // rtd_goods_DES:'',
  2486 + // rtd_goods_consol_DES:'',
  2487 + // rtd_gross_weight:'',
  2488 + // rtd_number_pieces:'',
  2489 + // rtd_rate_charge:'',
  2490 + // rtd_rate_class:'Q',
  2491 + // rtd_total:'',
  2492 + // //体积
  2493 + // rtd_volume:'',
  2494 + // rtd_volume_code:'MC',
  2495 + // }
  2496 + // ,
  2497 + // rtg:{
  2498 + // destinationAirport:'',
  2499 + // destinationCarrier:'',
  2500 + // onwardAirport:'',
  2501 + // onwardCarrier:'',
  2502 + // },
  2503 + // shp:{
  2504 + // shp_contacts:[],
  2505 + // shp_account_number:'',
  2506 + // shp_adr:'',
  2507 + // shp_country:'',
  2508 + // shp_loc_place:'',
  2509 + // shp_loc_province:'',
  2510 + // shp_name:'',
  2511 + // shp_postcode:'',
  2512 + // },
  2513 + // ssr:{
  2514 + // ssr_request_content:[],
  2515 + // },
  2516 + // cer:{
  2517 + // cer_signature:''
  2518 + // }
  2519 + // };
2518 }).catch(error => { 2520 }).catch(error => {
2519 this.$message.error(error.toString()); 2521 this.$message.error(error.toString());
2520 }); 2522 });