{"version":3,"sources":["webpack:///./node_modules/primeng/tooltip.js","webpack:///./src/app/app-secured/request-detail/request-detail.component.html","webpack:///./src/app/app-secured/request-detail/request-detail.component.ts","webpack:///./src/app/services/generalInfo.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AACa;AACb;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D,SAAS,mBAAO,CAAC,0FAA8B,G;;;;;;;;;;;ACN/C,wGAAwG,4DAA4D,yYAAyY,k8BAAk8B,ieAAie,0BAA0B,sUAAsU,6BAA6B,yMAAyM,yNAAyN,wIAAwI,oPAAoP,oSAAoS,yEAAyE,oTAAoT,wBAAwB,uWAAuW,8BAA8B,2VAA2V,0BAA0B,mMAAmM,qBAAqB,oQAAoQ,+BAA+B,iQAAiQ,2BAA2B,kQAAkQ,+BAA+B,8NAA8N,mEAAmE,wOAAwO,iFAAiF,6PAA6P,0BAA0B,8LAA8L,yBAAyB,gOAAgO,0BAA0B,qOAAqO,kNAAkN,qOAAqO,2JAA2J,oOAAoO,6DAA6D,kOAAkO,6BAA6B,kOAAkO,2DAA2D,gOAAgO,yEAAyE,6PAA6P,0BAA0B,+LAA+L,2BAA2B,gOAAgO,4BAA4B,qOAAqO,0MAA0M,qOAAqO,qJAAqJ,oOAAoO,yDAAyD,kOAAkO,8BAA8B,kOAAkO,uDAAuD,gOAAgO,qEAAqE,8KAA8K,82D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAvhX;AACZ;AACqB;AACI;AACnB;AACwB;AAET;AACb;AACa;AAC7B;AAOzC;IAA4C,0CAAa;IAOvD,gCAAmB,UAAsB,EAAU,kBAAsC,EAAY,cAA8B,EACzH,eAAgC,EAAU,sBAA8C,EAAS,iBAAoC,EAAS,MAAc;QADtK,YAEE,kBAAM,cAAc,EAAE,iBAAiB,EAAE,MAAM,CAAC,SACjD;QAHkB,gBAAU,GAAV,UAAU,CAAY;QAAU,wBAAkB,GAAlB,kBAAkB,CAAoB;QA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C,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;YAChC,KAAK,CAAC,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC;YAC7C,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC;IA1BU,kBAAkB;QAD9B,gEAAU,EAAE;yCAE2B,uFAAc,EAAwB,+DAAU,EAAgC,sEAAkB;OAD7H,kBAAkB,CA2B9B;IAAD,yBAAC;CAAA,CA3BuC,+DAAc,GA2BrD;AA3B8B","file":"default~app-secured-app-secured-module~new-pickup-management-new-pickup-management-module.js","sourcesContent":["/* Shorthand */\n\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./components/tooltip/tooltip\"));","module.exports = \"
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n

Tra cứu yêu cầu

\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n  \\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n

Thông tin chung

\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n {{shipmentData.shipmentNumber}}\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n {{(shipmentData.requestShipment) ? shipmentData.requestShipment.shipmentNumber\\r\\n : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n \\r\\n
 
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n {{(shipmentData.shipmentStatus) ? shipmentData.shipmentStatus.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n {{shipmentData.orderDate}}\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n {{shipmentData.endDeliveryTime}}\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n

Thông tin hàng

\\r\\n
\\r\\n Trọng lượng: \\r\\n {{shipmentData.weight}} g\\r\\n
\\r\\n
\\r\\n HTTT: \\r\\n {{shipmentData.paymentType.name}}\\r\\n
\\r\\n
\\r\\n Dịch vụ: \\r\\n {{shipmentData.service.name}}\\r\\n
\\r\\n
\\r\\n DVGT: \\r\\n {{shipmentData.serviceDVGT.name}}\\r\\n
\\r\\n
\\r\\n COD: \\r\\n {{(shipmentData.cod) ? shipmentData.cod.toLocaleString('vi-VN') : 0}}\\r\\n
\\r\\n
\\r\\n Tổng cước phí: \\r\\n {{(shipmentData.totalPrice) ? shipmentData.totalPrice.toLocaleString('vi-VN') : 0}}\\r\\n
\\r\\n
\\r\\n
\\r\\n

Thông tin bên gửi

\\r\\n
\\r\\n Tên: \\r\\n {{shipmentData.senderName}}\\r\\n
\\r\\n
\\r\\n Số ĐT: \\r\\n {{shipmentData.senderPhone}}\\r\\n
\\r\\n
\\r\\n Tỉnh thành: \\r\\n {{(shipmentData.fromWard && shipmentData.fromWard.district && shipmentData.fromWard.district.province)\\r\\n ? shipmentData.fromWard?.district?.province?.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n Quận huyện: \\r\\n {{(shipmentData.fromWard && shipmentData.fromWard.district) ? shipmentData.fromWard.district.name\\r\\n : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n Phường xã: \\r\\n {{(shipmentData.fromWard) ? shipmentData.fromWard.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n Địa chỉ: \\r\\n {{shipmentData.pickingAddress}}\\r\\n
\\r\\n
\\r\\n TT/CN/T: \\r\\n {{(shipmentData.fromHub) ? shipmentData.fromHub.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n Tuyến: \\r\\n {{(shipmentData.fromHubRouting) ? shipmentData.fromHubRouting.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n
\\r\\n

Thông tin bên nhận

\\r\\n
\\r\\n Tên: \\r\\n {{shipmentData.receiverName}}\\r\\n
\\r\\n
\\r\\n Số ĐT: \\r\\n {{shipmentData.receiverPhone}}\\r\\n
\\r\\n
\\r\\n Tỉnh thành: \\r\\n {{(shipmentData.toWard && shipmentData.toWard.district && shipmentData.toWard.district.province)\\r\\n ? shipmentData.toWard?.district?.province?.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n Quận huyện: \\r\\n {{(shipmentData.toWard && shipmentData.toWard.district) ? shipmentData.toWard.district.name\\r\\n : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n Phường xã: \\r\\n {{(shipmentData.toWard) ? shipmentData.toWard.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n Địa chỉ: \\r\\n {{shipmentData.shippingAddress}}\\r\\n
\\r\\n
\\r\\n TT/CN/T: \\r\\n {{(shipmentData.toHub) ? shipmentData.toHub.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n Tuyến: \\r\\n {{(shipmentData.toHubRouting) ? shipmentData.toHubRouting.name : \\\"\\\"}}\\r\\n
\\r\\n
\\r\\n
 
\\r\\n
\\r\\n
\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\"","import { Component, OnInit, ViewChild } from '@angular/core';\r\nimport { BsModalRef } from 'ngx-bootstrap/modal';\r\nimport { PersistenceService, StorageType } from 'angular-persistence';\r\nimport { MessageService } from 'primeng/components/common/messageservice';\r\nimport { Shipment } from '../../models/shipment.model';\r\nimport { ShipmentService, RequestShipmentService } from '../../services/index';\r\nimport { LadingSchesule } from '../../models/index';\r\nimport { BaseComponent } from '../../shared/components/baseComponent';\r\nimport { Constant } from '../../infrastructure/constant';\r\nimport { PermissionService } from '../../services/permission.service';\r\nimport { Router } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'app-request-detail',\r\n templateUrl: 'request-detail.component.html',\r\n styles: []\r\n})\r\nexport class RequestDetailComponent extends BaseComponent implements OnInit {\r\n\r\n shipmentNumber: string;\r\n selectedShipmentType: string = \"2\";\r\n shipmentData: Shipment = new Shipment();\r\n shipmentLadingSchedule: LadingSchesule[] = [];\r\n\r\n constructor(public bsModalRef: BsModalRef, private persistenceService: PersistenceService, protected messageService: MessageService,\r\n private shipmentService: ShipmentService, private requestShipmentService: RequestShipmentService, public permissionService: PermissionService, public router: Router) {\r\n super(messageService, permissionService, router);\r\n }\r\n\r\n ngOnInit() {\r\n\r\n }\r\n\r\n resetData() {\r\n this.shipmentData = new Shipment;\r\n this.shipmentLadingSchedule = [];\r\n }\r\n\r\n loadData(shipment: Shipment) {\r\n this.shipmentData = shipment;\r\n this.shipmentLadingSchedule = this.shipmentData.ladingSchedules;\r\n }\r\n\r\n onEnterSearchGBDetail() {\r\n if (this.shipmentNumber) {\r\n this.resetData();\r\n // console.log(this.selectedShipmentType);\r\n let includes = [\r\n Constant.classes.includes.shipment.fromHub,\r\n Constant.classes.includes.shipment.toHub,\r\n Constant.classes.includes.shipment.fromWard,\r\n Constant.classes.includes.shipment.fromDistrict,\r\n Constant.classes.includes.shipment.fromProvince,\r\n Constant.classes.includes.shipment.fromHub,\r\n Constant.classes.includes.shipment.toWard,\r\n Constant.classes.includes.shipment.toDistrict,\r\n Constant.classes.includes.shipment.toProvince,\r\n Constant.classes.includes.shipment.shipmentStatus,\r\n Constant.classes.includes.shipment.paymentType,\r\n Constant.classes.includes.shipment.service,\r\n Constant.classes.includes.shipment.serviceDVGT,\r\n ];\r\n\r\n if (this.selectedShipmentType === \"1\") {\r\n this.shipmentService.trackingShort(this.shipmentNumber.trim(), includes).subscribe(\r\n x => {\r\n if (!super.isValidResponse(x)) return;\r\n this.loadData(x.data as Shipment);\r\n }\r\n );\r\n } else if (this.selectedShipmentType === \"2\") {\r\n this.requestShipmentService.trackingShort(this.shipmentNumber.trim(), includes).subscribe(\r\n x => {\r\n if (!super.isValidResponse(x)) return;\r\n this.loadData(x.data as Shipment);\r\n }\r\n );\r\n }\r\n }\r\n this.shipmentNumber = null;\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from \"@angular/common/http\";\r\nimport { GeneralService } from './general.service';\r\nimport { environment } from '../../environments/environment';\r\nimport { PersistenceService } from 'angular-persistence';\r\nimport { GeneralInfoModel } from '../models/generalInfo.model';\r\nimport { MessageService } from 'primeng/components/common/messageservice';\r\n\r\n@Injectable()\r\nexport class GeneralInfoService extends GeneralService {\r\n constructor(protected messageService: MessageService, protected httpClient: HttpClient, protected persistenceService: PersistenceService) {\r\n super(messageService, httpClient, persistenceService, environment.apiGeneralUrl, \"generalInfo\");\r\n }\r\n\r\n get() {\r\n return super.getCustomApiPaging(\"get\");\r\n }\r\n\r\n async getAsync(): Promise {\r\n const res = await this.get().toPromise();\r\n if(!this.isValidResponse(res)) return;\r\n const data = res.data as GeneralInfoModel;\r\n return data;\r\n }\r\n\r\n getGenerlInfo() {\r\n return this.get().map(x => {\r\n let general = x.data as GeneralInfoModel;\r\n let model: any = [];\r\n model.companyName = general.companyName.toLocaleUpperCase();\r\n model.logoUrl = general.logoUrl;\r\n model.hotLine = general.hotLine;\r\n model.centerHubAddress = general.addressMain;\r\n return model;\r\n });\r\n }\r\n}"],"sourceRoot":""}