UNPKG

flexbiz-server

Version:

Flexible Server

1,360 lines 9.66 MB
exports.data = [ { "_id": "677bd4723e2bba891dd7edaf", "postinfos": [], "create_model": false, "not_need_right": false, "require_id_app": true, "view_tabs": [], "form_size": "md", "is_dashboard_item": false, "dashboard_default": true, "status": true, "user_created": "invncur@gmail.com", "user_updated": "anh@goodapp.vn", "fields": [ { "stt": 0, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": true, "index": true, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1631447683740, "_id": "5ec138d12bed80562f9d9967", "header2": "", "form": "", "name": "tk", "header": "Tài khoản", "required": true, "unique": true, "maxlength": 32 }, { "stt": 1, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1, "_id": "5ec138d12bed80562f9d9968", "header2": "", "form": "", "name": "ten_tk", "header": "Tên tài khoản", "html_variant_display": "title", "html_component_display": "h4", "maxlength": 1024 }, { "stt": 2, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 2, "_id": "5ec138d12bed80562f9d9969", "header2": "", "form": "", "name": "tk_me", "header": "TK mẹ", "ref_model": "account", "ref_field": "tk", "ref_label": "ten_tk", "ref_label_as": "ten_tk_me", "html_component_input": "autocomplete", "maxlength": 32 }, { "stt": 5, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": true, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 3, "_id": "5ec138d12bed80562f9d996a", "header2": "", "form": "", "name": "ma_nt", "header": "Ngoại tệ", "default": "\"VND\"", "required": true, "ref_model": "currency", "ref_field": "ma_nt", "ref_label": "ten_nt", "not_display": "", "maxlength": 32, "html_component_input": "picker" }, { "stt": 6, "stt_col": 0, "type": "Boolean", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 4, "_id": "5ec138d12bed80562f9d996b", "header2": "", "form": "", "name": "tk_cn", "header": "TK công nợ", "not_display": "true" }, { "stt": 7, "stt_col": 0, "type": "Boolean", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 5, "_id": "5ec138d12bed80562f9d996c", "header2": "", "form": "", "name": "tk_cp_yn", "header": "Yêu cầu mã phí", "not_display": "true" }, { "stt": 8, "stt_col": 0, "type": "Boolean", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 6, "_id": "5ec138d12bed80562f9d996d", "header2": "", "form": "", "name": "tk_dt_yn", "header": "Yêu cầu mã đối tượng", "not_display": "" }, { "stt": 9, "stt_col": 0, "type": "Boolean", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1634217326886, "_id": "61682da13d8d390646e53ad9", "header2": "", "form": "", "name": "tk_hd_yn", "header": "Yêu cầu hợp đồng", "not_display": "true" }, { "stt": 10, "stt_col": 0, "type": "Boolean", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1634217362074, "_id": "61682da13d8d390646e53ada", "header2": "", "form": "", "name": "not_du_co_yn", "header": "Không cho phép dư bên có", "not_display": "true", "handle_value_changed": "if(master.not_du_co_yn) master.not_du_no_yn =false" }, { "stt": 10, "stt_col": 0, "type": "Boolean", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1634217374659, "_id": "61682da13d8d390646e53adb", "header2": "", "form": "", "name": "not_du_no_yn", "header": "Không cho phép dư bên nợ", "not_display": "true", "handle_value_changed": "if(master.not_du_no_yn) master.not_du_co_yn = false" } ], "date_created": "2020-05-17T13:14:57.221Z", "date_updated": "2025-05-02T02:35:16.776Z", "code": "account", "title": "Danh mục tài khoản", "exfields": {}, "collection_name": "listinfo", "stt_sorted": 0, "approve_data": [], "name_user_updated": "Admin", "name_user_created": "Van Truong" }, { "_id": "677bd4723e2bba891dd7edbb", "postinfos": [], "create_model": true, "not_need_right": false, "require_id_app": true, "view_tabs": [], "form_size": "md", "is_dashboard_item": false, "dashboard_default": false, "status": true, "user_created": "invncur@gmail.com", "user_updated": "anh@goodapp.vn", "fields": [ { "stt": 0, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": true, "index": true, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1689324666743, "_id": "64b10c9bf9d654347bd10bed", "maxlength": 4000, "required": true, "unique": true, "multiple": false, "name": "ma_ct", "header": "Mã chức năng", "not_display": "return !context.appInfo.appAdmin", "not_input": "return !context.appInfo.appAdmin" }, { "stt": 1, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": true, "index": true, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1689324610354, "_id": "64b10c9bf9d654347bd10bee", "maxlength": 4000, "required": true, "unique": true, "multiple": false, "name": "code", "header": "Mã hoạt động" }, { "stt": 2, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1689324623377, "_id": "64b10c9bf9d654347bd10bef", "maxlength": 4000, "required": true, "unique": false, "multiple": false, "name": "title", "header": "Tiêu đề" } ], "date_created": "2023-07-14T08:51:39.966Z", "date_updated": "2025-01-16T07:54:55.618Z", "show_view_tabs_on_grid": false, "private_data": false, "dashboard_stt": 0, "code": "activity", "title": "Hoạt động", "exfields": {}, "collection_name": "listinfo", "stt_sorted": 1, "approve_data": [], "name_user_updated": "Admin", "name_user_created": "Van Truong" }, { "_id": "677bd4723e2bba891dd7edc0", "postinfos": [], "create_model": false, "not_need_right": false, "require_id_app": true, "view_tabs": [], "form_size": "md", "is_dashboard_item": false, "dashboard_default": true, "status": true, "user_created": "leemeenhee1994@gmail.com", "user_updated": "anh@goodapp.vn", "fields": [ { "stt": 1, "stt_col": 0, "type": "Date", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1596506740745, "_id": "6597a1a38ea80472ea570ccb", "header2": "", "maxlength": 0, "required": true, "unique": false, "multiple": false, "name": "tu_ngay", "header": "Từ ngày", "default": "Moment().startOf(\"month\").toDate()", "grid_configs": "{md:4,lg:4}" }, { "stt": 2, "stt_col": 0, "type": "Date", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1596506766154, "_id": "6597a1a38ea80472ea570ccc", "header2": "", "maxlength": 0, "required": true, "unique": false, "multiple": false, "name": "den_ngay", "header": "Đến ngày", "default": "Moment().endOf(\"month\").toDate()", "grid_configs": "{md:4,lg:4}" }, { "stt": 3, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1692331560463, "_id": "6597a1a38ea80472ea570ccd", "header2": "", "maxlength": 0, "required": false, "unique": false, "multiple": false, "header": "Nhân viên", "name": "user_hoa_hong", "ref_model": "participant", "ref_field": "email", "ref_label": "name", "grid_configs": "{md:4,lg:4}", "ref_label_as": "name_user_hoa_hong", "ref_condition": "{groups:{$or:[{is_employee_group:true}, {is_partner_group:true}]}}", "default": "return context.userInfo.email", "not_input": "" }, { "stt": 3, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1596506936272, "_id": "6597a1a38ea80472ea570cce", "header2": "", "maxlength": 0, "required": false, "unique": false, "multiple": true, "name": "ma_kho", "header": "Kho", "ref_model": "dmkho", "ref_field": "ma_kho", "ref_label": "ten_kho", "grid_configs": "{md:12,lg:12}" }, { "stt": 4, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1596510816456, "_id": "6597a1a38ea80472ea570ccf", "header2": "", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "ma_kh", "header": "Khách hàng", "ref_model": "customer", "ref_field": "ma_kh", "ref_label": "ten_kh" }, { "stt": 4, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1684467629968, "_id": "6597a1a38ea80472ea570cd0", "header2": "", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "nh_kh", "header": "let kieu = await API.asyncGetData(context.userInfo.token,\"groupkind\",{group_kind:1,group_type:'CUSTOMER'});\nif(kieu) return kieu.group_kind_name;\nreturn \"Nhóm khách hàng\"", "ref_model": "dmnhkh", "ref_field": "_id", "ref_label": "group_name", "ref_condition": "{\"group_type\":\"CUSTOMER\",\"group_kind\":1}", "ref_label_as": "ten_nh_kh", "api_description": "Nhóm khách hàng 1", "ref_api": "" }, { "stt": 4, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1684467647229, "_id": "6597a1a38ea80472ea570cd1", "header2": "", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "nh_kh2", "header": "let kieu = await API.asyncGetData(context.userInfo.token,\"groupkind\",{group_kind:2,group_type:'CUSTOMER'});\nif(kieu) return kieu.group_kind_name;\nreturn \"Nhóm khách hàng 2\"", "ref_model": "dmnhkh", "ref_field": "_id", "ref_label": "group_name", "ref_condition": "{\"group_type\":\"CUSTOMER\",\"group_kind\":2}", "ref_label_as": "ten_nh_kh2", "api_description": "Nhóm khách hàng 2", "ref_api": "" }, { "stt": 4, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1684467660043, "_id": "6597a1a38ea80472ea570cd2", "header2": "", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "nh_kh3", "header": "let kieu = await API.asyncGetData(context.userInfo.token,\"groupkind\",{group_kind:3,group_type:'CUSTOMER'});\nif(kieu) return kieu.group_kind_name;\nreturn \"Nhóm khách hàng 3\"", "ref_model": "dmnhkh", "ref_field": "_id", "ref_label": "group_name", "ref_condition": "{\"group_type\":\"CUSTOMER\",\"group_kind\":3}", "ref_label_as": "ten_nh_kh3", "api_description": "Nhóm khách hàng 3", "ref_api": "" }, { "stt": 4, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1684467674541, "_id": "6597a1a38ea80472ea570cd3", "header2": "", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "nh_kh4", "header": "let kieu = await API.asyncGetData(context.userInfo.token,\"groupkind\",{group_kind:4,group_type:'CUSTOMER'});\nif(kieu) return kieu.group_kind_name;\nreturn \"Nhóm khách hàng 4\"", "ref_model": "dmnhkh", "ref_field": "_id", "ref_label": "group_name", "ref_condition": "{\"group_type\":\"CUSTOMER\",\"group_kind\":4}", "ref_label_as": "ten_nh_kh4", "api_description": "Nhóm khách hàng 4", "ref_api": "" }, { "stt": 5, "stt_col": 0, "type": "String", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1639397898888, "_id": "6597a1a38ea80472ea570cd4", "header2": "", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "ma_ct", "header": "Mã chứng từ", "ref_model": "[{ma:\"PBL\",ten:\"Phiếu bán lẻ\"},{ma:\"SO1\",ten:\"Đơn hàng online\"},{ma:\"HD2\",ten:\"Bán sỉ\"},{ten:\"Tất cả\"}]", "ref_field": "ma", "ref_label": "ten", "ref_label_as": "ten_ct" } ], "date_created": "2024-01-05T06:28:51.219Z", "date_updated": "2025-02-11T01:09:34.602Z", "code": "admin_dtbanletheokh", "title": "Dùng Cho Quản lý: Doanh thu bán hàng theo khách hàng", "dashboard_stt": 0, "exfields": {}, "collection_name": "listinfo", "stt_sorted": 2, "approve_data": [], "name_user_updated": "Admin" }, { "_id": "677bd4723e2bba891dd7edcc", "postinfos": [], "create_model": false, "not_need_right": false, "require_id_app": true, "view_tabs": [], "form_size": "md", "is_dashboard_item": false, "dashboard_default": false, "status": true, "user_created": "invncur@gmail.com", "user_updated": "anh@goodapp.vn", "fields": [ { "stt": 0, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": true, "on_view": true, "min_width_display": 80, "line": 1706159924055, "_id": "65b1ef3518df853d30c81a15", "maxlength": 4000, "required": false, "unique": false, "multiple": false, "name": "user_created", "header": "User", "grid_configs": "{md:12,lg:12}", "not_input": "true", "not_display": "" }, { "stt": 0, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": true, "on_view": true, "min_width_display": 80, "line": 1712026060216, "_id": "660b71cd6a52685b1b122502", "maxlength": 4000, "required": false, "unique": false, "multiple": false, "name": "name_user_created", "header": "Tên user", "grid_configs": "{md:12,lg:12}", "not_input": "true", "not_display": "" }, { "stt": 1, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": true, "on_view": true, "min_width_display": 80, "line": 1706146472737, "_id": "65b1bb9518df853d30c582cf", "maxlength": 4000, "required": true, "unique": false, "multiple": false, "name": "title", "header": "Tiêu đề", "grid_configs": "{md:12,lg:12,render: (mediaQueryMatches?\"`<div style='font-size:18px;font-weight:bold;margin-top:5px;padding-top:5px;padding-bottom:5px;'>${data.title}</div>`\":undefined)}" }, { "stt": 2, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146497961, "_id": "65b1bb9518df853d30c582d0", "maxlength": 4000, "required": true, "unique": false, "multiple": false, "name": "page_link", "header": "Liên kết tới trang ", "grid_configs": "{md:12,lg:12}", "not_display": "true" }, { "stt": 3, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146557987, "_id": "65b1bb9518df853d30c582d1", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "aff_link", "header": "Liên kết affiliate", "grid_configs": "{md:12,lg:12,readOnly:true}", "not_input": "!master._id", "bold": false, "default": "", "not_display": "return mediaQueryMatches" }, { "stt": 4, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146621047, "_id": "65b1bb9518df853d30c582d2", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "da_truy_cap", "bold": false, "header": "Số lần truy cập", "not_input": "!master._id", "grid_configs": "{readOnly:true}" }, { "stt": 4, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146640236, "_id": "65b1bb9518df853d30c582d3", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "da_dat_hang", "bold": false, "header": "Số lần đặt hàng", "not_input": "!master._id", "grid_configs": "{readOnly:true}" }, { "stt": 6, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146651105, "_id": "65b1bb9518df853d30c582d4", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "da_hoan_thanh", "bold": false, "header": "Đã hoàn thành", "not_input": "!master._id", "grid_configs": "{readOnly:true}" }, { "stt": 7, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706762300077, "_id": "65bb203d341e053948abb451", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "da_tra_lai", "bold": false, "header": "Đã trả lại", "not_input": "!master._id", "grid_configs": "{readOnly:true}" }, { "stt": 99, "stt_col": 0, "type": "Action", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706152648195, "_id": "65b1d39618df853d30c72d46", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "btn_share", "bold": false, "header": "Chia sẻ", "not_input": "true", "grid_configs": "{color:\"primary\",size:\"large\",style:{margin:5,marginTop:15}}", "default": "const shareData = {\n title: \"Viet Thien Partners\",\n url:master.aff_link\n};\ntry {\n await navigator.share(shareData);\n} catch (err) {\n //context.alert(`Error: ${err}`,null,\"red\");\n}\n", "not_display": "return !mediaQueryMatches" }, { "stt": 99, "stt_col": 0, "type": "Action", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706153124037, "_id": "65b1d4f918df853d30c761df", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "btn_copy", "bold": false, "header": "Sao chép", "not_input": "true", "grid_configs": "{color:\"primary\",size:\"large\",style:{margin:5,marginTop:15}}", "default": "await navigator.clipboard.writeText(master.aff_link);\ncontext.toast(\"Đã sao chép link affiliate\");", "not_display": "return !mediaQueryMatches" } ], "date_created": "2024-01-25T01:38:29.849Z", "date_updated": "2025-02-24T03:07:58.026Z", "private_data": false, "dashboard_stt": 0, "code": "afflink", "title": "Affiliate link", "not_delete": true, "not_edit": true, "not_copy": true, "options": { "props": "return { \n \"readOnly\":false,\n \"hideSearch\":true,\n \"hideActionsBar\":false,\n \"multiSel\":false,\n \"cache_local\":true,\n \"grid\":{\"xs\":12,\"sm\":12,\"md\":2,\"lg\":2}\n}" }, "exfields": {}, "collection_name": "listinfo", "stt_sorted": 3, "approve_data": [], "name_user_updated": "Admin", "name_user_created": "Van Truong" }, { "_id": "677bd4723e2bba891dd7edd9", "postinfos": [], "create_model": false, "not_need_right": false, "require_id_app": true, "view_tabs": [], "form_size": "md", "is_dashboard_item": false, "dashboard_default": false, "status": true, "user_created": "invncur@gmail.com", "user_updated": "anh@goodapp.vn", "fields": [ { "stt": 0, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": true, "on_view": true, "min_width_display": 80, "line": 1706159924055, "_id": "660b70c86a52685b1b122456", "maxlength": 4000, "required": false, "unique": false, "multiple": false, "name": "user_created", "header": "User", "grid_configs": "{md:12,lg:12}", "not_input": "true", "not_display": "true" }, { "stt": 1, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": true, "on_view": true, "min_width_display": 80, "line": 1706146472737, "_id": "660b70c86a52685b1b122457", "maxlength": 4000, "required": true, "unique": false, "multiple": false, "name": "title", "header": "Tiêu đề", "grid_configs": "{md:12,lg:12,render: (mediaQueryMatches?\"`<div style='font-size:18px;font-weight:bold;margin-top:5px;padding-top:5px;padding-bottom:5px;'>${data.title}</div>`\":undefined)}" }, { "stt": 2, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146497961, "_id": "660b70c86a52685b1b122458", "maxlength": 4000, "required": true, "unique": false, "multiple": false, "name": "page_link", "header": "Liên kết tới trang ", "grid_configs": "{md:12,lg:12}", "not_display": "true" }, { "stt": 3, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146557987, "_id": "660b70c86a52685b1b122459", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "aff_link", "header": "Liên kết affiliate", "grid_configs": "{md:12,lg:12,readOnly:true}", "not_input": "!master._id", "bold": false, "default": "", "not_display": "return mediaQueryMatches" }, { "stt": 4, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146621047, "_id": "660b70c86a52685b1b12245a", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "da_truy_cap", "bold": false, "header": "Số lần truy cập", "not_input": "!master._id", "grid_configs": "{readOnly:true}" }, { "stt": 4, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146640236, "_id": "660b70c86a52685b1b12245b", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "da_dat_hang", "bold": false, "header": "Số lần đặt hàng", "not_input": "!master._id", "grid_configs": "{readOnly:true}" }, { "stt": 6, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146651105, "_id": "660b70c86a52685b1b12245c", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "da_hoan_thanh", "bold": false, "header": "Đã hoàn thành", "not_input": "!master._id", "grid_configs": "{readOnly:true}" }, { "stt": 7, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706762300077, "_id": "660b70c86a52685b1b12245d", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "da_tra_lai", "bold": false, "header": "Đã trả lại", "not_input": "!master._id", "grid_configs": "{readOnly:true}" }, { "stt": 99, "stt_col": 0, "type": "Action", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706152648195, "_id": "660b70c86a52685b1b12245e", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "btn_share", "bold": false, "header": "Chia sẻ", "not_input": "true", "grid_configs": "{color:\"primary\",size:\"large\",style:{margin:5,marginTop:15}}", "default": "const shareData = {\n title: \"Viet Thien Partners\",\n url:master.aff_link\n};\ntry {\n await navigator.share(shareData);\n} catch (err) {\n //context.alert(`Error: ${err}`,null,\"red\");\n}\n", "not_display": "return !mediaQueryMatches" }, { "stt": 99, "stt_col": 0, "type": "Action", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706153124037, "_id": "660b70c86a52685b1b12245f", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "btn_copy", "bold": false, "header": "Sao chép", "not_input": "true", "grid_configs": "{color:\"primary\",size:\"large\",style:{margin:5,marginTop:15}}", "default": "await navigator.clipboard.writeText(master.aff_link);\ncontext.toast(\"Đã sao chép link affiliate\");", "not_display": "return !mediaQueryMatches" } ], "date_created": "2024-04-02T02:43:20.278Z", "date_updated": "2025-01-16T07:54:55.861Z", "private_data": false, "dashboard_stt": 0, "code": "afflink_agent", "title": "Affiliate link", "not_delete": true, "not_edit": true, "not_copy": true, "options": { "props": "return { \n \"readOnly\":false,\n \"hideSearch\":true,\n \"hideActionsBar\":true,\n \"multiSel\":false,\n \"cache_local\":true,\n \"grid\":{\"xs\":12,\"sm\":12,\"md\":2,\"lg\":2},\n \"requiredCondition\":{\n \"user_created\":context.userInfo.email\n }\n}" }, "api_code": "afflink", "exfields": {}, "collection_name": "listinfo", "stt_sorted": 4, "approve_data": [], "name_user_updated": "Admin", "name_user_created": "Van Truong" }, { "_id": "677bd4723e2bba891dd7ede5", "postinfos": [], "create_model": false, "not_need_right": false, "require_id_app": true, "view_tabs": [], "form_size": "md", "is_dashboard_item": false, "dashboard_default": false, "status": true, "user_created": "invncur@gmail.com", "user_updated": "anh@goodapp.vn", "fields": [ { "stt": 1, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146472737, "_id": "65b1d67018df853d30c79cfe", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "title", "header": "Tiêu đề", "grid_configs": "{md:12,lg:12}" }, { "stt": 2, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1706146497961, "_id": "65b1d67018df853d30c79cff", "maxlength": 0, "required": false, "unique": false, "multiple": false, "name": "page_link", "header": "Liên kết tới trang ", "grid_configs": "{md:12,lg:12}", "not_display": "true" } ], "date_created": "2024-01-25T03:33:04.466Z", "date_updated": "2025-01-16T07:54:55.930Z", "private_data": false, "dashboard_stt": 0, "code": "afflink_options", "title": "Affiliate link options", "not_delete": true, "not_edit": true, "not_copy": true, "exfields": {}, "collection_name": "listinfo", "stt_sorted": 5, "approve_data": [], "name_user_updated": "Admin", "name_user_created": "Van Truong" }, { "_id": "677bd4723e2bba891dd7ede9", "postinfos": [], "create_model": true, "not_need_right": false, "require_id_app": false, "view_tabs": [], "form_size": "md", "is_dashboard_item": false, "dashboard_default": false, "status": true, "user_created": "invncur@gmail.com", "user_updated": "anh@goodapp.vn", "fields": [ { "stt": 1, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": false, "min_width_display": 80, "line": 1655264138792, "_id": "62c5317c1b3f8c35fdaa83e6", "maxlength": 4000, "required": false, "unique": false, "multiple": false, "name": "delivery_status", "header": "trạng thái đơn hàng", "bold": false }, { "stt": 2, "stt_col": 0, "type": "String", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1657096706522, "_id": "62c54a1d61f42635fc9b1fb4", "maxlength": 4000, "required": false, "unique": false, "multiple": false, "name": "cancell_message", "header": "Lý do thất bại" }, { "stt": 3, "stt_col": 0, "type": "Number", "header2": "", "lowercase": false, "uppercase": false, "index": false, "is_tmp": false, "is_title": false, "on_view": true, "min_width_display": 80, "line": 1657096725992, "_id": "62c54a1d61f42635fc9b1fb5", "maxlength": 4000, "required": false, "unique": false, "multiple": false, "name": "order_code", "header": "mã vận đơn.", "bold": false } ], "date_created": "2022-07-06T06:53:48.692Z", "date_updated": "2025-01-16T07:54:55.994Z", "show_view_tabs_on_grid": false, "private_data": false, "dashboard_stt": 0, "code": "ahamove", "title": "Webhook ahamove", "allow_users": "phuongbao90@gmail.com", "handle_oncreated_server": "const so1 = await getModel(\"so1\").findOne({\n ma_van_don: obj.order_code,\n});\n\nif (!so1) return next(\"Khong tim thay don hang nay\");\n\nconst ecomstatus_delivery_item = await getModel(\"ecomstatus_delivery\").findOne({\n code: obj.delivery_status,\n carrier_code: \"zenapp_vc\",\n});\n\nso1.trang_thai_giao_hang = ecomstatus_delivery_item.code;\n// if (obj.cancell_message) so1.ly_do_that_bai = obj.cancell_message;\n\nif (\n obj.delivery_status === \"assigning\" ||\n obj.delivery_status === \"accepted\" ||\n obj.delivery_status === \"in process\"\n) {\n so1.ngay_giao_hang = obj.date_created;\n}\nif (obj.delivery_status === \"completed\") so1.ngay_hoan_thanh = obj.date_created;\nif (obj.delivery_status === \"cancelled\") {\n // so1.ngay_tra_lai = obj.date_created;\n so1.ly_do_that_bai = obj.cancell_message;\n}\nif (obj.delivery_status === \"failed\") {\n // so1.ngay_tra_lai = obj.date_created;\n so1.ly_do_huy = obj.cancell_message;\n}\n\nif (ecomstatus_delivery_item && ecomstatus_delivery_item.trang_thai_so1) {\n so1.trang_thai = ecomstatus_delivery_item.trang_thai_so1;\n}\n\nso1\n .save()\n .then((updatedSo1) => {\n let ctrlSO1 = global.controllers[\"so1\".toUpperCase()];\n controller.postData(updatedSo1, ctrlSO1, (e) => {\n