{"version":3,"sources":["webpack:///./node_modules/core-js/modules/_array-methods.js","webpack:///./src/moduleApi/TourApi.js","webpack:///./node_modules/core-js/modules/es6.array.find.js","webpack:///./src/views/admin/Tour/TourModel.js"],"names":["ctx","IObject","toObject","toLength","asc","module","exports","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","create","$this","callbackfn","that","val","res","O","self","f","length","index","result","undefined","push","moduleApi","moduleName","dataForm","api","type","value","ApiService","update","list","dataFilter","delete","id","findById","importKhachDuLich","listKhachDuLich","tourId","params","message","success","error","updateFinished","getTourCountByTourGuideIds","viewAction","hdv_ids","removeKhachDuLich","userId","checkActiveSoThe","soThe","addKhachDuLichBySoThe","cardCode","$export","$find","KEY","forced","Array","P","F","find","this","arguments","model","da_hoan_thanh","ten_tour","ten_doan","dia_diem","province_id","lng","lat","hanh_trinh","thoi_gian_bat_dau","thoi_gian_ket_thuc","so_luong_khach","so_luong","nguoi_lon","tre_5_15","tre_duoi_5","truong_doan","truong_doan_id","ngay_sinh","ngay","thang","nam","dien_thoai","scan","thong_tin_dieu_tour","ho_so_tour","oto","bien_so_xe","tai_xe","ho_ten","khach_san","nha_hang","anh","anh_dai_dien","anh_tour","noi_dung","khach_du_lich_cho_xac_nhan_ids","huong_dan_vien_ids","danh_sach_khach_du_lich_khong_tai_khoan","validForm","ValidService","required","checkSpaceString","requiredChange","pattern","modelDefault","district_id","dia_diem_dich","tieu_de","ten","ten_nguoi_quan_ly","dia_chi","dataFormOther","validFormOther","phieu_dieu_tour_id","excelKhachDuLich","formModel","email","so_the","gioi_tinh","giay_to","loai_giay_to","so_giay_to","noi_cap","ngay_cap","ngay_het_han","quoc_tich","quoc_tich_id","ten_quoc_tich","province_name","district_name","configIndex","code","name","tableRules","data","lengthMenu","allowPaging","allowSorting","allowSelect","showFormSearch","showUrl","total","page","limit","offset","sort","defaultSort","filters","recordSelected","dataSearch","valid","operator"],"mappings":"qGAOA,IAAIA,EAAM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CAACV,OAAaC,SAAUD,OAAaE,iBAAmBF,OAAaI,QAAQ,0JAA2J,mBAC3PO,QAAS,CACPA,QAAS,GACT9C,YAAa,GACbC,IAAK,GACLC,IAAK,MAKXP,EAAMuD,iBAAmB,CACvBC,UAAW,CAET3B,OAAQ,CACNA,YAAQvE,GAEVmG,WAAOnG,EACPgE,gBAAYhE,EACZoG,YAAQpG,EACRqG,eAAWrG,EACX4D,UAAW,CACTC,UAAM7D,EACN8D,WAAO9D,EACP+D,SAAK/D,EACL4D,eAAW5D,GAEbsG,QAAS,CACP,CACEC,kBAAcvG,EACdwG,gBAAYxG,EACZyG,aAASzG,EACT0G,cAAU1G,EACV2G,kBAAc3G,IAGlB4G,UAAW,CACTC,kBAAc7G,EACd8G,mBAAe9G,GAEjB6F,QAAS,CACP9C,iBAAa/C,EACb+G,mBAAe/G,EACfwF,iBAAaxF,EACbgH,mBAAehH,EACf6F,aAAS7F,IAObiH,YACE,CACE,CACEnH,MAAO,EACPoH,KAAM,YACNC,KAAM,OAER,CACErH,MAAO,EACPoH,KAAM,eACNC,KAAM,mBAER,CACErH,MAAO,EACPoH,KAAM,mBACNC,KAAM,iBAER,CACErH,MAAO,EACPoH,KAAM,cACNC,KAAM,SAER,CACErH,MAAO,EACPoH,KAAM,cACNC,KAAM,SAER,CACErH,MAAO,EACPoH,KAAM,kBACNC,KAAM,aAER,CACErH,MAAO,EACPoH,KAAM,kBACNC,KAAM,aAER,CACErH,MAAO,EACPoH,KAAM,mBACNC,KAAM,cAER,CACErH,MAAO,EACPoH,KAAM,iBACNC,KAAM,YAER,CACErH,MAAO,EACPoH,KAAM,gBACNC,KAAM,WAER,CACErH,MAAO,GACPoH,KAAM,sBACNC,KAAM,kBAER,CACErH,MAAO,GACPoH,KAAM,sBACNC,KAAM,aAER,CACErH,MAAO,GACPoH,KAAM,qBACNC,KAAM,gBAER,CACErH,MAAO,GACPoH,KAAM,mBACNC,KAAM,cAER,CACErH,MAAO,GACPoH,KAAM,gBACNC,KAAM,WAER,CACErH,MAAO,GACPoH,KAAM,iBACNC,KAAM,YAER,CACErH,MAAO,GACPoH,KAAM,kBACNC,KAAM,aAER,CACErH,MAAO,GACPoH,KAAM,gBACNC,KAAM,WAER,CACErH,MAAO,GACPoH,KAAM,qBACNC,KAAM,gBAER,CACErH,MAAO,GACPoH,KAAM,sBACNC,KAAM,iBAER,CACErH,MAAO,GACPoH,KAAM,oBACNC,KAAM,iBAMdzE,EAAM0E,WAAa,CACjBC,KAAM,GACNC,WAAY,CAAC,GAAI,GAAI,GAAI,IAAK,KAC9BC,aAAa,EACbC,cAAc,EACdC,aAAa,EACbC,gBAAgB,EAChBC,SAAS,EACTC,MAAO,EACPC,KAAM,EACNC,MAAO,GACPC,OAAQ,EACRC,KAAM,GACNC,YAAa,CAAC,oBAAqB,cACnCC,QAAS,GACTC,eAAgB,GAChBC,WAAY,CACV7H,MAAO,CACLqC,SAAU,GACVC,SAAU,IAEZwF,MAAO,CACLzF,SAAU,GACVC,SAAU,IAEZyF,SAAU,CACR1F,SAAU,YACVC,SAAU,YACVM,kBAAmB,gBACnBC,mBAAoB,mBAMXV","file":"js/chunk-ed157f48.26a58bfc.js","sourcesContent":["// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","import ApiService from '../service/ApiService';\r\n\r\nlet moduleApi = {};\r\nlet moduleName = \"tour\";\r\n\r\nmoduleApi.create = (dataForm) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"create\",\r\n value: dataForm\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.update = (dataForm) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"partialUpdate\",\r\n value: dataForm\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.list = (dataFilter) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"list\",\r\n value: dataFilter\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.delete = (id) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"delete\",\r\n value: { id: id }\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.findById = (id) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"findById\",\r\n value: { id: id }\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.importKhachDuLich = (listKhachDuLich, tourId) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"importTourists\",\r\n value: listKhachDuLich,\r\n params: {\r\n tourId: tourId\r\n },\r\n message: {\r\n success: \"Thêm mới khách du lịch thành công\", //string | null | comment\r\n error: \"Thêm mới khách du lịch không thành công\", //string | null | comment\r\n }\r\n\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.updateFinished = (dataForm) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"partialUpdate\",\r\n value: dataForm,\r\n message: {\r\n success: \"Chuyển trạng thái tour thành công\", //string | null | comment\r\n error: \"\", //string | null | comment\r\n },\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.getTourCountByTourGuideIds = (id) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"views\",\r\n viewAction: \"getTourCountByTourGuideIds\",\r\n value: { hdv_ids: id }\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.removeKhachDuLich = (tourId, userId) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"removeKhachDuLich\",\r\n params: {\r\n tourId: tourId,\r\n userId: userId\r\n },\r\n message: {\r\n success: \"Xóa khách du lịch thành công\", //string | null | comment\r\n error: \"Xóa khách du lịch không thành công\", //string | null | comment\r\n },\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.checkActiveSoThe = (soThe) => {\r\n let api = {\r\n module: \"$auth\",\r\n type: \"checkActive\",\r\n value: soThe,\r\n message: {\r\n success: \"hidden\", //string | null | comment\r\n error: \"Tìm kiếm không thành công\", //string | null | comment\r\n },\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.addKhachDuLichBySoThe = (tourId, soThe) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"addTouristByCardCode\",\r\n params: {\r\n tourId: tourId,\r\n cardCode: soThe\r\n }\r\n // message: {\r\n // success: \"Xóa khách du lịch thành công\", //string | null | comment\r\n // error: \"Xóa khách du lịch không thành công\", //string | null | comment\r\n // },\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nexport default moduleApi;\r\n","'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","import ValidService from \"../../../service/ValidService\";\r\nlet model = {};\r\n\r\n// dữ liệu form\r\nmodel.dataForm = {\r\n // id: undefined, //AutoId, optional // Mã tự sinh\r\n da_hoan_thanh: undefined, //boolean, optional // Cho biết tour đã hoàn thành hay chưa, mặc đinh là chưa\r\n ten_tour: undefined, //string, required // Tên tour\r\n ten_doan: undefined,//string, optional // Tên đoàn\r\n dia_diem: {\r\n dia_diem: undefined, //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: undefined, //IdRef, optional // Mã tỉnh\r\n lng: undefined, //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: undefined, //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Thông tin địa điểm của tour\r\n\r\n hanh_trinh: [\r\n /* {\r\n thoi_gian_bat_dau: undefined, //datetime, optional // Từ ngày/thời điểm\r\n thoi_gian_ket_thuc: undefined, //datetime, optional // Đến ngày/thời điểm\r\n dia_diem: {\r\n dia_diem: undefined, //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: undefined, //IdRef, optional // Mã tỉnh\r\n district_id: undefined, //IdRef, optional // Mã huyện\r\n lng: undefined, //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: undefined, //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa điểm diễn ra hoặc địa điểm khởi đầu (nếu dia_diem_dich bằng undefined)\r\n\r\n dia_diem_dich: {\r\n dia_diem: undefined, //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: undefined, //IdRef, optional // Mã tỉnh\r\n district_id: undefined, //IdRef, optional // Mã huyện\r\n lng: undefined, //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: undefined, //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa điểm địa điểm đích\r\n\r\n tieu_de: undefined, //string, optional // Tiêu đề\r\n noi_dung: undefined, //string, optional // Nội dung\r\n } */ //optional // Hành trình\r\n ],\r\n\r\n thoi_gian_bat_dau: undefined, //datetime, optional // Thời gian bắt đầu\r\n thoi_gian_ket_thuc: undefined, //datetime, optional // Thời gian kết thúc\r\n so_luong_khach: {\r\n so_luong: undefined, //integer, optional, min: 0 // Tổng số lượng khách\r\n nguoi_lon: undefined, //integer, optional, min: 0 // Số người lớn\r\n tre_5_15: undefined, //integer, optional, min: 0 // Số trẻ từ 5 đến 15 tuổi\r\n tre_duoi_5: undefined, //integer, optional, min: 0 // Số trẻ dưới 5 tuổi\r\n }, //optional // Số lượng khách\r\n\r\n truong_doan: {\r\n truong_doan_id: undefined, //IdRef, optional // Mã trưởng đoàn\r\n ngay_sinh: {\r\n ngay: undefined, //integer, optional, min: 1, max: 31 // Ngày\r\n thang: undefined, //integer, optional, min: 1, max: 12 // Tháng\r\n nam: undefined, //integer, optional // Năm\r\n ngay_sinh: undefined, //datetime, optional // Ngày sinh\r\n }, //optional // Ngày tháng năm sinh\r\n\r\n dien_thoai: undefined, //string, optional // Số điện thoại\r\n }, //optional // Thông tin trưởng đoàn\r\n\r\n scan: {\r\n thong_tin_dieu_tour: [], //of IdRef, optional // Scan các ảnh chụp thông tin điều tour\r\n ho_so_tour: [] //of IdRef, optional // Các file đính kèm về hồ sơ Tour\r\n }, //optional // Các ảnh scan\r\n\r\n oto: {\r\n bien_so_xe: undefined, //string, optional // Biển số xe\r\n tai_xe: {\r\n ho_ten: undefined, //string, optional // Họ tên tài xế\r\n dien_thoai: undefined, //string, optional // Số điện thoại tài xế\r\n } //optional // Thông tin tài xế\r\n\r\n }, //optional // Thông tin ô tô\r\n\r\n khach_san: [\r\n /* {\r\n ten: undefined, //string, optional // Tên khách sạn\r\n dien_thoai: undefined, //string, optional // Số điện thoại người phụ trách\r\n} */\r\n ], //optional // Danh sách Khách sạn\r\n\r\n nha_hang: [\r\n /* {\r\n ten: undefined, //string, optional // Tên Nhà hàng\r\n dien_thoai: undefined, //string, optional // Số điện thoại người phụ trách\r\n} */\r\n ], //optional // Danh sách Nhà hàng\r\n\r\n anh: {\r\n anh_dai_dien: undefined,//IdRef, optional // Mã ảnh đại diện của tour (thường là ảnh vuông)\r\n anh_tour: [], //array of IdRef, optional // Danh sách ảnh chụp của tour\r\n }, //optional // Các thể loại ảnh của tour\r\n\r\n noi_dung: undefined, //string, optional // Nội dung thông tin tour\r\n khach_du_lich_cho_xac_nhan_ids: [], //IdRef, optional // Danh sách khách du lịch\r\n huong_dan_vien_ids: [], //IdRef, optional // Danh sách hướng dẫn viên\r\n // khach_du_lich_ids\r\n // huong_dan_vien_ids\r\n danh_sach_khach_du_lich_khong_tai_khoan:[],\r\n};\r\n\r\n// validation form\r\nmodel.validForm = {\r\n da_hoan_thanh: [], //boolean, optional // Cho biết tour đã hoàn thành hay chưa, mặc đinh là chưa\r\n ten_tour: [ValidService.required, ValidService.checkSpaceString], //string, required // Tên tour\r\n ten_doan: [ValidService.required, ValidService.checkSpaceString],//string, optional // Tên đoàn\r\n dia_diem: {\r\n dia_diem: [ValidService.required, ValidService.checkSpaceString], //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: [ValidService.requiredChange], //IdRef, optional // Mã tỉnh\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Thông tin địa điểm của tour\r\n\r\n // hanh_trinh: [{\r\n // thoi_gian_bat_dau: [], //datetime, optional // Từ ngày/thời điểm\r\n // thoi_gian_ket_thuc: [], //datetime, optional // Đến ngày/thời điểm\r\n // dia_diem: {\r\n // dia_diem: [], //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n // province_id: [], //IdRef, optional // Mã tỉnh\r\n // district_id: [], //IdRef, optional // Mã huyện\r\n // lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n // lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n // }, //optional // Địa điểm diễn ra hoặc địa điểm khởi đầu (nếu dia_diem_dich bằng undefined)\r\n\r\n // dia_diem_dich: {\r\n // dia_diem: [], //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n // province_id: [], //IdRef, optional // Mã tỉnh\r\n // district_id: [], //IdRef, optional // Mã huyện\r\n // lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n // lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n // }, //optional // Địa điểm địa điểm đích\r\n\r\n // tieu_de: [], //string, optional // Tiêu đề\r\n // noi_dung: [], //string, optional // Nội dung\r\n // } //optional // Hành trình\r\n // ],\r\n\r\n thoi_gian_bat_dau: [ValidService.required], //datetime, optional // Thời gian bắt đầu\r\n thoi_gian_ket_thuc: [ValidService.required], //datetime, optional // Thời gian kết thúc\r\n so_luong_khach: {\r\n so_luong: [ValidService.required], //integer, optional, min: 0 // Tổng số lượng khách\r\n nguoi_lon: [], //integer, optional, min: 0 // Số người lớn\r\n tre_5_15: [], //integer, optional, min: 0 // Số trẻ từ 5 đến 15 tuổi\r\n tre_duoi_5: [], //integer, optional, min: 0 // Số trẻ dưới 5 tuổi\r\n }, //optional // Số lượng khách\r\n\r\n truong_doan: {\r\n truong_doan_id: [], //IdRef, optional // Mã trưởng đoàn\r\n ngay_sinh: {\r\n ngay: [], //integer, optional, min: 1, max: 31 // Ngày\r\n thang: [], //integer, optional, min: 1, max: 12 // Tháng\r\n nam: [], //integer, optional // Năm\r\n ngay_sinh: [], //datetime, optional // Ngày sinh\r\n }, //optional // Ngày tháng năm sinh\r\n\r\n dien_thoai: [], //string, optional // Số điện thoại\r\n }, //optional // Thông tin trưởng đoàn\r\n\r\n scan: {\r\n thong_tin_dieu_tour: [], //of IdRef, optional // Scan các ảnh chụp thông tin điều tour\r\n ho_so_tour: [] //of IdRef, optional // Các file đính kèm về hồ sơ Tour\r\n }, //optional // Các ảnh scan\r\n\r\n oto: {\r\n bien_so_xe: [ValidService.pattern(/^[0-9a-zA-Z. -]*$/, 'Biển số xe không hợp lệ! Chỉ chấp nhận chữ số, chữ cái, dấu trừ, dấu chấm, dấu cách.')], //string, optional // Biển số xe\r\n tai_xe: {\r\n ho_ten: [ValidService.pattern(/^[A-Za-z \\-\\:ÀÁÂÃÈÉÊÌÍÒÓÔÕÙÚĂĐĨŨƠàáâãèéêìíòóôõùúăđĩũơƯĂẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼỀỀỂưăạảấầẩẫậắằẳẵặẹẻẽềềểếỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪễệỉịọỏốồổỗộớờởỡợụủứừỬỮỰỲỴÝỶỸửữựỳỵỷỹ]*$/, 'Tên không đúng')], //string, optional // Họ tên tài xế\r\n dien_thoai: [ValidService.pattern(/^0\\d{9,10}$/, 'Số điện thoại không đúng')], //string, optional // Số điện thoại tài xế\r\n } //optional // Thông tin tài xế\r\n\r\n }, //optional // Thông tin ô tô\r\n\r\n // khach_san: [{\r\n // ten: [], //string, optional // Tên khách sạn\r\n // dien_thoai: [], //string, optional // Số điện thoại người phụ trách\r\n // ten_nguoi_quan_ly: [], //string, optional // Tên người quản lý\r\n // dia_chi: {\r\n // dia_chi: [], //string, optional // Địa chỉ khách sạn\r\n // province_id: [], //IdRef, optional // Mã tỉnh\r\n // lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n // lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n // }, //optional // Địa chỉ khách sạn\r\n // }], //optional // Danh sách Khách sạn\r\n\r\n // nha_hang: [{\r\n // ten: [], //string, optional // Tên Nhà hàng\r\n // dien_thoai: [], //string, optional // Số điện thoại người phụ trách\r\n // ten_nguoi_quan_ly: [], //string, optional // Tên người quản lý\r\n // dia_chi: {\r\n // dia_chi: [], //string, optional // Địa chỉ nhà hàng\r\n // province_id: [], //IdRef, optional // Mã tỉnh\r\n // lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n // lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n // }, //optional // Địa chỉ nhà hàng\r\n // }], //optional // Danh sách Nhà hàng\r\n\r\n anh: {\r\n anh_dai_dien: undefined,//IdRef, optional // Mã ảnh đại diện của tour (thường là ảnh vuông)\r\n anh_tour: [], //array of IdRef, optional // Danh sách ảnh chụp của tour\r\n }, //optional // Các thể loại ảnh của tour\r\n noi_dung: [], //string, optional // Nội dung thông tin tour\r\n khach_du_lich_cho_xac_nhan_ids: [], //IdRef, optional // Danh sách khách du lịch\r\n huong_dan_vien_ids: [], //IdRef, optional // Danh sách hướng dẫn viên\r\n\r\n modelDefault: {\r\n hanh_trinh: {\r\n thoi_gian_bat_dau: [], //datetime, optional // Từ ngày/thời điểm\r\n thoi_gian_ket_thuc: [], //datetime, optional // Đến ngày/thời điểm\r\n dia_diem: {\r\n dia_diem: [], //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: [], //IdRef, optional // Mã tỉnh\r\n district_id: [], //IdRef, optional // Mã huyện\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa điểm diễn ra hoặc địa điểm khởi đầu (nếu dia_diem_dich bằng undefined)\r\n\r\n dia_diem_dich: {\r\n dia_diem: [], //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: [], //IdRef, optional // Mã tỉnh\r\n district_id: [], //IdRef, optional // Mã huyện\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa điểm địa điểm đích\r\n\r\n tieu_de: [], //string, optional // Tiêu đề\r\n noi_dung: [], //string, optional // Nội dung\r\n },\r\n khach_san: {\r\n ten: [], //string, optional // Tên khách sạn\r\n dien_thoai: [ValidService.pattern(/(84|0[3|5|7|8|9])+([0-9]{8})\\b/, 'Số điện thoại không đúng')], //string, optional // Số điện thoại người phụ trách\r\n ten_nguoi_quan_ly: [], //string, optional // Tên người quản lý\r\n dia_chi: {\r\n dia_chi: [], //string, optional // Địa chỉ khách sạn\r\n province_id: [], //IdRef, optional // Mã tỉnh\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa chỉ khách sạn\r\n },\r\n nha_hang: {\r\n ten: [], //string, optional // Tên Nhà hàng\r\n dien_thoai: [ValidService.pattern(/(84|0[3|5|7|8|9])+([0-9]{8})\\b/, 'Số điện thoại không đúng')], //string, optional // Số điện thoại người phụ trách\r\n ten_nguoi_quan_ly: [], //string, optional // Tên người quản lý\r\n dia_chi: {\r\n dia_chi: [], //string, optional // Địa chỉ nhà hàng\r\n province_id: [], //IdRef, optional // Mã tỉnh\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa chỉ nhà hàng\r\n }\r\n }\r\n\r\n};\r\n\r\n// dữ liệu mẫu các form khác\r\nmodel.dataFormOther = {\r\n hanh_trinh: {\r\n thoi_gian_bat_dau: undefined, //datetime, optional // Từ ngày/thời điểm\r\n thoi_gian_ket_thuc: undefined, //datetime, optional // Đến ngày/thời điểm\r\n dia_diem: {\r\n dia_diem: undefined, //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: undefined, //IdRef, optional // Mã tỉnh\r\n district_id: undefined, //IdRef, optional // Mã huyện\r\n lng: undefined, //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: undefined, //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa điểm diễn ra hoặc địa điểm khởi đầu (nếu dia_diem_dich bằng undefined)\r\n\r\n dia_diem_dich: {\r\n dia_diem: undefined, //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: undefined, //IdRef, optional // Mã tỉnh\r\n district_id: undefined, //IdRef, optional // Mã huyện\r\n lng: undefined, //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: undefined, //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa điểm địa điểm đích\r\n\r\n tieu_de: undefined, //string, optional // Tiêu đề\r\n noi_dung: undefined, //string, optional // Nội dung\r\n },\r\n khach_san: {\r\n ten: undefined, //string, optional // Tên khách sạn\r\n ten_nguoi_quan_ly: undefined, //string, optional // Tên người quản lý\r\n dien_thoai: undefined, //string, optional // Số điện thoại người phụ trách\r\n dia_chi: {\r\n dia_chi: undefined, //string, optional // Địa chỉ khách sạn\r\n province_id: undefined, //IdRef, optional // Mã tỉnh\r\n lng: undefined, //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: undefined, //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa chỉ khách sạn\r\n },\r\n nha_hang: {\r\n ten: undefined, //string, optional // Tên Nhà hàng\r\n ten_nguoi_quan_ly: undefined, //string, optional // Tên người quản lý\r\n dien_thoai: undefined, //string, optional // Số điện thoại người phụ trách\r\n dia_chi: {\r\n dia_chi: undefined, //string, optional // Địa chỉ nhà hàng\r\n province_id: undefined, //IdRef, optional // Mã tỉnh\r\n lng: undefined, //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: undefined, //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa chỉ nhà hàng\r\n }\r\n\r\n};\r\n\r\n// validation các form khác\r\nmodel.validFormOther = {\r\n hanh_trinh: {\r\n thoi_gian_bat_dau: [ValidService.required], //datetime, optional // Từ ngày/thời điểm\r\n thoi_gian_ket_thuc: [ValidService.required], //datetime, optional // Đến ngày/thời điểm\r\n dia_diem: {\r\n dia_diem: [ValidService.required, ValidService.checkSpaceString], //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: [], //IdRef, optional // Mã tỉnh\r\n district_id: [], //IdRef, optional // Mã huyện\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa điểm diễn ra hoặc địa điểm khởi đầu (nếu dia_diem_dich bằng undefined\r\n\r\n dia_diem_dich: {\r\n dia_diem: [], //string, optional // Địa điểm diễn ra hoặc địa điểm khởi đầu\r\n province_id: [], //IdRef, optional // Mã tỉnh\r\n district_id: [], //IdRef, optional // Mã huyện\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa điểm địa điểm đích\r\n\r\n tieu_de: [ValidService.required, ValidService.checkSpaceString], //string, optional // Tiêu đề\r\n noi_dung: [ValidService.required, ValidService.checkSpaceString], //string, optional // Nội dung\r\n phieu_dieu_tour_id: [] //IdRef, optional // Mã phiếu điều tour\r\n },\r\n khach_san: {\r\n ten: [ValidService.required, ValidService.checkSpaceString], //string, optional // Tên khách sạn\r\n dien_thoai: [ValidService.required, ValidService.pattern(/(84|0[3|5|7|8|9])+([0-9]{8})\\b/, 'Số điện thoại không đúng')], //string, optional // Số điện thoại người phụ trách\r\n ten_nguoi_quan_ly: [ValidService.required, ValidService.checkSpaceString , ValidService.pattern(/^[A-Za-z \\-\\:ÀÁÂÃÈÉÊÌÍÒÓÔÕÙÚĂĐĨŨƠàáâãèéêìíòóôõùúăđĩũơƯĂẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼỀỀỂưăạảấầẩẫậắằẳẵặẹẻẽềềểỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪễệỉịọỏốồổỗộớờởỡợụủứừỬỮỰỲỴÝỶỸửữựỳỵỷỹ]*$/, 'Tên không đúng')], //string, optional // Tên người quản lý\r\n dia_chi: {\r\n dia_chi: [], //string, optional // Địa chỉ khách sạn\r\n province_id: [], //IdRef, optional // Mã tỉnh\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa chỉ khách sạn\r\n },\r\n nha_hang: {\r\n ten: [ValidService.required, ValidService.checkSpaceString], //string, optional // Tên Nhà hàng\r\n dien_thoai: [ValidService.required, ValidService.pattern(/(84|0[3|5|7|8|9])+([0-9]{8})\\b/, 'Số điện thoại không đúng')], //string, optional // Số điện thoại người phụ trách\r\n ten_nguoi_quan_ly: [ValidService.required, ValidService.checkSpaceString , ValidService.pattern(/^[A-Za-z \\-\\:ÀÁÂÃÈÉÊÌÍÒÓÔÕÙÚĂĐĨŨƠàáâãèéêìíòóôõùúăđĩũơƯĂẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼỀỀỂưăạảấầẩẫậắằẳẵặẹẻẽềềểỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪễệỉịọỏốồổỗộớờởỡợụủứừỬỮỰỲỴÝỶỸửữựỳỵỷỹ]*$/, 'Tên không đúng')], //string, optional // Tên người quản lý\r\n dia_chi: {\r\n dia_chi: [], //string, optional // Địa chỉ nhà hàng\r\n province_id: [], //IdRef, optional // Mã tỉnh\r\n lng: [], //double, optional, min: -180, max: 180 // Kinh độ (longitude)\r\n lat: [], //double, optional, min: -90, max: 90 // Vĩ độ (latitude)\r\n }, //optional // Địa chỉ nhà hàng\r\n }\r\n};\r\n\r\nmodel.excelKhachDuLich = {\r\n formModel: {\r\n //so_the: undefined, // string, optional // Mã thẻ\r\n ho_ten: { // object, optional\r\n ho_ten: undefined, // string, optional // Họ tên đầy đủ\r\n },\r\n email: undefined, // string, optional // Email\r\n dien_thoai: undefined, // string, optional // Số điện thoại\r\n so_the: undefined, //Số thẻ/Mã MS - mới bổ sung\r\n gioi_tinh: undefined, // integer, optional // Giới tính: 1 - Nữ, 2 - Nam, 3 - Chưa có thông tin, 4 - Khác\r\n ngay_sinh: { // object, optional // Ngày tháng năm sinh\r\n ngay: undefined, // integer, optional // Ngày\r\n thang: undefined, // integer, optional // Tháng\r\n nam: undefined, // integer, optional // Năm\r\n ngay_sinh: undefined, // datetime, optional // Ngày sinh\r\n },\r\n giay_to: [\r\n {\r\n loai_giay_to: undefined, //string, optional // Loại giấy tờ\r\n so_giay_to: undefined, //string, optional // Số giấy tờ\r\n noi_cap: undefined, //string, optional // Nơi cấp\r\n ngay_cap: undefined, //datetime, optional // Ngày cấp\r\n ngay_het_han: undefined, //datetime, optional // Ngày hết hạn\r\n }\r\n ], //array of object, optional // Giấy tờ, ví dụ: CMT, CCCD, Họ chiếu\r\n quoc_tich: { //object, optional // Quốc tịch\r\n quoc_tich_id: undefined, // IdRef, optional // Mã quốc tịch\r\n ten_quoc_tich: undefined, // string, optional // Tên quốc tịch\r\n },\r\n dia_chi: { // object, optional // Địa chỉ\r\n province_id: undefined, // IdRef, optional // Mã tỉnh/TP\r\n province_name: undefined, // string, optional // Tên tỉnh/TP\r\n district_id: undefined, // IdRef, optional // Mã quận/huyện\r\n district_name: undefined, // string, optional // Tên quận/huyện\r\n dia_chi: undefined, // string, optional // Địa chỉ đầy đủ\r\n },\r\n //avatar_id: undefined, // IdRef, optional // Mã ảnh đại diện\r\n },\r\n\r\n\r\n //Thay đổi thứ tự config với file excel bằng trường index, trường code phải sửa cả template, name không dùng tới\r\n configIndex:\r\n [\r\n {\r\n index: 0,\r\n code: \"excel_stt\",\r\n name: \"STT\"\r\n },\r\n {\r\n index: 1,\r\n code: \"excel_ho_ten\",\r\n name: \"Họ và tên khách\"\r\n },\r\n {\r\n index: 2,\r\n code: \"excel_dien_thoai\",\r\n name: \"Số điện thoại\"\r\n },\r\n {\r\n index: 3,\r\n code: \"excel_ma_ms\",\r\n name: \"Mã MS\"\r\n },\r\n {\r\n index: 4,\r\n code: \"excel_email\",\r\n name: \"Email\"\r\n },\r\n {\r\n index: 5,\r\n code: \"excel_gioi_tinh\",\r\n name: \"Giới tính\"\r\n },\r\n {\r\n index: 6,\r\n code: \"excel_ngay_sinh\",\r\n name: \"Ngày sinh\"\r\n },\r\n {\r\n index: 7,\r\n code: \"excel_thang_sinh\",\r\n name: \"Tháng sinh\"\r\n },\r\n {\r\n index: 8,\r\n code: \"excel_nam_sinh\",\r\n name: \"Năm sinh\"\r\n },\r\n {\r\n index: 9,\r\n code: \"excel_dia_chi\",\r\n name: \"Địa chỉ\"\r\n },\r\n {\r\n index: 10,\r\n code: \"excel_province_name\",\r\n name: \"Tỉnh/Thành phố\"\r\n },\r\n {\r\n index: 11,\r\n code: \"excel_ten_quoc_tich\",\r\n name: \"Quốc tịch\"\r\n },\r\n {\r\n index: 12,\r\n code: \"excel_loai_giay_to\",\r\n name: \"Loại giấy tờ\"\r\n },\r\n {\r\n index: 13,\r\n code: \"excel_so_giay_to\",\r\n name: \"Số giấy tờ\"\r\n },\r\n {\r\n index: 14,\r\n code: \"excel_noi_cap\",\r\n name: \"Nơi cấp\"\r\n },\r\n {\r\n index: 15,\r\n code: \"excel_ngay_cap\",\r\n name: \"Ngày cấp\"\r\n },\r\n {\r\n index: 16,\r\n code: \"excel_thang_cap\",\r\n name: \"Tháng cấp\"\r\n },\r\n {\r\n index: 17,\r\n code: \"excel_nam_cap\",\r\n name: \"Năm cấp\"\r\n },\r\n {\r\n index: 18,\r\n code: \"excel_ngay_het_han\",\r\n name: \"Ngày hết hạn\"\r\n },\r\n {\r\n index: 19,\r\n code: \"excel_thang_het_han\",\r\n name: \"Tháng hết hạn\"\r\n },\r\n {\r\n index: 20,\r\n code: \"excel_nam_het_han\",\r\n name: \"Năm hết hạn\"\r\n },\r\n ]\r\n};\r\n\r\n\r\nmodel.tableRules = {\r\n data: [],\r\n lengthMenu: [10, 20, 50, 100, 500],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowSelect: false,\r\n showFormSearch: false,\r\n showUrl: true,\r\n total: 0,\r\n page: 1,\r\n limit: 10,\r\n offset: 0,\r\n sort: \"\",\r\n defaultSort: [\"thoi_gian_bat_dau\", \"descending\"],\r\n filters: \"\",\r\n recordSelected: [],\r\n dataSearch: {\r\n value: {\r\n ten_tour: \"\",\r\n ten_doan: \"\"\r\n },\r\n valid: {\r\n ten_tour: [],\r\n ten_doan: []\r\n },\r\n operator: {\r\n ten_tour: \":regex_i:\", //:regex:, $vn_text=Viêt nam\r\n ten_doan: \":regex_i:\",\r\n thoi_gian_bat_dau: \":in_that_day:\",\r\n thoi_gian_ket_thuc: \":in_that_day:\"\r\n }\r\n }\r\n // so_sao:[]\r\n};\r\n\r\nexport default model;\r\n"],"sourceRoot":""}