提交
This commit is contained in:
1 parent
1938a9b76a
commit
9da462fcba
36 files changed
+609614
-6945
No files matched your search
@@ -207,32 +207,41 @@
|
||||
"205": "loadDefaultCustomerOptions",
|
||||
"206": "contractType.ts",
|
||||
"207": "SettingDrawer.vue",
|
||||
"208": "syncStatsColumnWidths",
|
||||
"208": "index.vue",
|
||||
"209": "Community 209",
|
||||
"210": "Community 210",
|
||||
"211": "loadUserOptions",
|
||||
"212": "index.js",
|
||||
"213": "Community 213",
|
||||
"214": "Community 214",
|
||||
"215": "index.vue",
|
||||
"216": "zh_CN.js",
|
||||
"215": "SettingActions.vue",
|
||||
"216": "VoidDialog.vue",
|
||||
"217": "index.js",
|
||||
"218": "index.js",
|
||||
"219": "applyBrandSelectChange",
|
||||
"220": "detail.vue",
|
||||
"221": "index.vue",
|
||||
"221": "db.ts",
|
||||
"222": "index.vue",
|
||||
"223": "Community 223",
|
||||
"224": "Community 224",
|
||||
"225": "v2.4.2.1 - 2025-06-16",
|
||||
"226": "form.vue",
|
||||
"226": "contractType.ts",
|
||||
"227": "Community 227",
|
||||
"228": "Community 228",
|
||||
"229": "index.vue",
|
||||
"230": "syncStatsColumnWidths",
|
||||
"231": "index.vue",
|
||||
"232": "product.ts",
|
||||
"233": "Community 233",
|
||||
"234": "Community 234",
|
||||
"235": "index.vue",
|
||||
"238": "detail.vue",
|
||||
"239": "Community 239",
|
||||
"240": "form.vue",
|
||||
"241": "index.vue",
|
||||
"242": "Community 242",
|
||||
"243": "Community 243",
|
||||
"245": "index.js",
|
||||
"247": "Community 247",
|
||||
"248": "Community 248",
|
||||
"251": "handleDisburse",
|
||||
@@ -559,7 +568,6 @@
|
||||
"1278": "plugin.min.js",
|
||||
"1280": "plugin.js",
|
||||
"1281": "plugin.min.js",
|
||||
"1282": "index.js",
|
||||
"1283": "plugin.js",
|
||||
"1284": "plugin.min.js",
|
||||
"1287": "plugin.js",
|
||||
|
||||
@@ -207,28 +207,22 @@
|
||||
"205": "loadDefaultCustomerOptions",
|
||||
"206": "contractType.ts",
|
||||
"207": "SettingDrawer.vue",
|
||||
"208": "syncStatsColumnWidths",
|
||||
"209": "Community 209",
|
||||
"210": "Community 210",
|
||||
"211": "loadUserOptions",
|
||||
"212": "index.js",
|
||||
"213": "Community 213",
|
||||
"214": "Community 214",
|
||||
"215": "index.vue",
|
||||
"216": "zh_CN.js",
|
||||
"217": "index.js",
|
||||
"218": "index.js",
|
||||
"219": "applyBrandSelectChange",
|
||||
"220": "detail.vue",
|
||||
"221": "index.vue",
|
||||
"222": "index.vue",
|
||||
"223": "Community 223",
|
||||
"224": "Community 224",
|
||||
"225": "v2.4.2.1 - 2025-06-16",
|
||||
"226": "form.vue",
|
||||
"227": "Community 227",
|
||||
"228": "Community 228",
|
||||
"229": "zh_CN.js",
|
||||
"233": "Community 233",
|
||||
"234": "Community 234",
|
||||
"239": "Community 239",
|
||||
@@ -295,7 +289,6 @@
|
||||
"347": "Community 347",
|
||||
"349": "Community 349",
|
||||
"350": "Community 350",
|
||||
"354": "Community 354",
|
||||
"355": "Community 355",
|
||||
"362": "Community 362",
|
||||
"364": "Community 364",
|
||||
@@ -561,7 +554,6 @@
|
||||
"1278": "plugin.min.js",
|
||||
"1280": "plugin.js",
|
||||
"1281": "plugin.min.js",
|
||||
"1282": "index.js",
|
||||
"1283": "plugin.js",
|
||||
"1284": "plugin.min.js",
|
||||
"1287": "plugin.js",
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,825 @@
|
||||
{
|
||||
"0": "Community 0",
|
||||
"1": "Community 1",
|
||||
"2": "Community 2",
|
||||
"3": "Community 3",
|
||||
"4": "Community 4",
|
||||
"5": "Community 5",
|
||||
"6": "Community 6",
|
||||
"7": "Community 7",
|
||||
"8": "Community 8",
|
||||
"9": "Community 9",
|
||||
"10": "Community 10",
|
||||
"11": "Community 11",
|
||||
"12": "Community 12",
|
||||
"13": "Community 13",
|
||||
"14": "Community 14",
|
||||
"15": "Community 15",
|
||||
"16": "Community 16",
|
||||
"17": "Ha",
|
||||
"18": "Community 18",
|
||||
"19": "Community 19",
|
||||
"20": "Community 20",
|
||||
"21": "Community 21",
|
||||
"22": "Community 22",
|
||||
"23": "Community 23",
|
||||
"24": "Community 24",
|
||||
"25": "Community 25",
|
||||
"26": "theme.min.js",
|
||||
"27": "Community 27",
|
||||
"28": "useCommon",
|
||||
"29": "Community 29",
|
||||
"30": "loader.ts",
|
||||
"31": "RenewDialog.vue",
|
||||
"32": "index.vue",
|
||||
"33": "Community 33",
|
||||
"34": "main.ts",
|
||||
"35": "Community 35",
|
||||
"36": "VoidDialog.vue",
|
||||
"37": "pl-batch-print.ts",
|
||||
"38": "view-fields.ts",
|
||||
"39": "Community 39",
|
||||
"40": "Community 40",
|
||||
"41": "colors.ts",
|
||||
"42": "Community 42",
|
||||
"43": "Community 43",
|
||||
"44": "Community 44",
|
||||
"45": "Community 45",
|
||||
"46": "Community 46",
|
||||
"47": "fetchCustomerDetail",
|
||||
"48": "Community 48",
|
||||
"49": "Community 49",
|
||||
"50": "Community 50",
|
||||
"51": "price-letter-template.ts",
|
||||
"52": "Community 52",
|
||||
"53": "Community 53",
|
||||
"54": "Community 54",
|
||||
"55": "Community 55",
|
||||
"56": "Community 56",
|
||||
"57": "Community 57",
|
||||
"58": "Community 58",
|
||||
"59": "fetchData",
|
||||
"60": "index.vue",
|
||||
"61": "Community 61",
|
||||
"62": "highlight.ts",
|
||||
"63": "price-letter.ts",
|
||||
"64": "Community 64",
|
||||
"65": "detail.vue",
|
||||
"66": "Community 66",
|
||||
"67": "index.vue",
|
||||
"68": "Community 68",
|
||||
"69": "Community 69",
|
||||
"70": "Community 70",
|
||||
"71": "Community 71",
|
||||
"72": "Community 72",
|
||||
"73": "Community 73",
|
||||
"74": "Community 74",
|
||||
"75": "openEdit",
|
||||
"76": "handleSearch",
|
||||
"77": "loadUserOptions",
|
||||
"78": "customerPool.ts",
|
||||
"79": "Community 79",
|
||||
"80": "product.ts",
|
||||
"81": "Community 81",
|
||||
"82": "Community 82",
|
||||
"83": "useDictStore",
|
||||
"84": "Community 84",
|
||||
"85": "index.vue",
|
||||
"86": "Community 86",
|
||||
"87": "canDeleteByCreator",
|
||||
"88": "index.vue",
|
||||
"89": "detail.vue",
|
||||
"90": "theme.min.js",
|
||||
"91": "Community 91",
|
||||
"92": "Community 92",
|
||||
"93": "ArtUserMenu.vue",
|
||||
"94": "formatYmd",
|
||||
"95": "Community 95",
|
||||
"96": "Community 96",
|
||||
"97": "stringifyBody",
|
||||
"98": "index.vue",
|
||||
"99": "stringifyBody",
|
||||
"100": "v2.4.2.1 - 2025-06-16",
|
||||
"101": "price-letter.ts",
|
||||
"102": "price-letter-template.ts",
|
||||
"103": "SettingDrawer.vue",
|
||||
"104": "contractType.ts",
|
||||
"105": "index.vue",
|
||||
"106": "Community 106",
|
||||
"107": "Community 107",
|
||||
"108": "Community 108",
|
||||
"109": "Community 109",
|
||||
"110": "Community 110",
|
||||
"111": "format.ts",
|
||||
"112": "inventory.ts",
|
||||
"113": "Community 113",
|
||||
"114": "index.vue",
|
||||
"115": "useDictStore",
|
||||
"116": "Community 116",
|
||||
"117": "Community 117",
|
||||
"118": "zh_CN.js",
|
||||
"119": "Community 119",
|
||||
"120": "Community 120",
|
||||
"121": "chart.ts",
|
||||
"122": "handleDisburse",
|
||||
"123": "detail.vue",
|
||||
"124": "index.vue",
|
||||
"125": "Community 125",
|
||||
"126": "Community 126",
|
||||
"127": "selectContractRow",
|
||||
"128": "Community 128",
|
||||
"129": "Community 129",
|
||||
"130": "system.ts",
|
||||
"131": "index.vue",
|
||||
"132": "Community 132",
|
||||
"133": "Community 133",
|
||||
"134": "index.vue",
|
||||
"135": "detail.vue",
|
||||
"136": "Community 136",
|
||||
"137": "Community 137",
|
||||
"138": "FollowDialog.vue",
|
||||
"139": "useTableColumns.ts",
|
||||
"140": "Community 140",
|
||||
"141": "Community 141",
|
||||
"142": "Community 142",
|
||||
"143": "index.js",
|
||||
"144": "Community 144",
|
||||
"145": "api",
|
||||
"146": "price-letter-template.ts",
|
||||
"147": "contractType.ts",
|
||||
"148": "Community 148",
|
||||
"149": "fetchCustomerDetail",
|
||||
"150": "Community 150",
|
||||
"151": "Community 151",
|
||||
"152": "SettingDrawer.vue",
|
||||
"153": "index.vue",
|
||||
"154": "index.vue",
|
||||
"155": "error.ts",
|
||||
"156": "v2.4.2.1 - 2025-06-16",
|
||||
"157": "form.vue",
|
||||
"158": "removeProductsNotAllowedByHazard",
|
||||
"159": "detail.vue",
|
||||
"160": "index.vue",
|
||||
"161": "Community 161",
|
||||
"162": "Community 162",
|
||||
"163": "system.ts",
|
||||
"164": "Community 164",
|
||||
"165": "handleDisburse",
|
||||
"166": "Community 166",
|
||||
"167": "Community 167",
|
||||
"168": "crypto.ts",
|
||||
"169": "Community 169",
|
||||
"170": "Community 170",
|
||||
"171": "index.vue",
|
||||
"172": "index.js",
|
||||
"173": "index.vue",
|
||||
"174": "Community 174",
|
||||
"175": "handleEdit",
|
||||
"176": "fetchData",
|
||||
"177": "fetchCustomerDetail",
|
||||
"178": "Community 178",
|
||||
"179": "Community 179",
|
||||
"180": "index.vue",
|
||||
"181": "Community 181",
|
||||
"182": "Community 182",
|
||||
"183": "Ha",
|
||||
"184": "highlight.ts",
|
||||
"185": "handleConfirmApproval",
|
||||
"186": "StorageKeyManager",
|
||||
"187": "Community 187",
|
||||
"188": "Community 188",
|
||||
"189": "Community 189",
|
||||
"190": "error-handle.ts",
|
||||
"191": "formatYmd",
|
||||
"192": "prepareLineAliasAndBrandForSubmit",
|
||||
"193": "crm-product-display.ts",
|
||||
"194": "loadDefaultCustomerOptions",
|
||||
"195": "Community 195",
|
||||
"196": "Community 196",
|
||||
"197": "handleEdit",
|
||||
"198": "fetchData",
|
||||
"199": "price-letter-template.ts",
|
||||
"200": "index.js",
|
||||
"201": "Ha",
|
||||
"202": "Community 202",
|
||||
"203": "customerPool.ts",
|
||||
"204": "DbCrmCustomerSelect.vue",
|
||||
"205": "loadDefaultCustomerOptions",
|
||||
"206": "contractType.ts",
|
||||
"207": "SettingDrawer.vue",
|
||||
"208": "index.vue",
|
||||
"209": "Community 209",
|
||||
"210": "Community 210",
|
||||
"211": "loadUserOptions",
|
||||
"212": "index.js",
|
||||
"213": "Community 213",
|
||||
"214": "Community 214",
|
||||
"215": "SettingActions.vue",
|
||||
"216": "VoidDialog.vue",
|
||||
"217": "index.js",
|
||||
"218": "index.js",
|
||||
"219": "applyBrandSelectChange",
|
||||
"220": "detail.vue",
|
||||
"221": "db.ts",
|
||||
"222": "index.vue",
|
||||
"223": "Community 223",
|
||||
"224": "Community 224",
|
||||
"225": "v2.4.2.1 - 2025-06-16",
|
||||
"226": "contractType.ts",
|
||||
"227": "Community 227",
|
||||
"228": "Community 228",
|
||||
"229": "index.vue",
|
||||
"230": "syncStatsColumnWidths",
|
||||
"231": "index.vue",
|
||||
"232": "product.ts",
|
||||
"233": "Community 233",
|
||||
"234": "Community 234",
|
||||
"235": "index.vue",
|
||||
"236": "canDeleteByCreator",
|
||||
"237": "pickBxPageResult",
|
||||
"238": "detail.vue",
|
||||
"239": "Community 239",
|
||||
"240": "form.vue",
|
||||
"241": "index.vue",
|
||||
"242": "Community 242",
|
||||
"243": "Community 243",
|
||||
"244": "zh_CN.js",
|
||||
"245": "index.js",
|
||||
"247": "Community 247",
|
||||
"248": "Community 248",
|
||||
"251": "handleDisburse",
|
||||
"253": "Community 253",
|
||||
"255": "Community 255",
|
||||
"259": "Community 259",
|
||||
"260": "Community 260",
|
||||
"261": "Community 261",
|
||||
"265": "Community 265",
|
||||
"269": "Community 269",
|
||||
"270": "Community 270",
|
||||
"280": "Community 280",
|
||||
"283": "Community 283",
|
||||
"284": "Community 284",
|
||||
"285": "Community 285",
|
||||
"286": "Community 286",
|
||||
"292": "Community 292",
|
||||
"295": "Community 295",
|
||||
"296": "Community 296",
|
||||
"302": "Community 302",
|
||||
"303": "Community 303",
|
||||
"304": "Community 304",
|
||||
"305": "isIoPlanFrozen",
|
||||
"306": "handleArrange",
|
||||
"307": "Community 307",
|
||||
"308": "Community 308",
|
||||
"309": "Community 309",
|
||||
"310": "Community 310",
|
||||
"315": "Community 315",
|
||||
"316": "Community 316",
|
||||
"317": "Community 317",
|
||||
"318": "Community 318",
|
||||
"319": "Community 319",
|
||||
"320": "Community 320",
|
||||
"321": "Community 321",
|
||||
"322": "Community 322",
|
||||
"323": "Community 323",
|
||||
"324": "Community 324",
|
||||
"325": "Community 325",
|
||||
"326": "Community 326",
|
||||
"327": "Community 327",
|
||||
"328": "Community 328",
|
||||
"329": "Community 329",
|
||||
"330": "Community 330",
|
||||
"331": "Community 331",
|
||||
"332": "Community 332",
|
||||
"333": "Community 333",
|
||||
"334": "Community 334",
|
||||
"335": "Community 335",
|
||||
"336": "Community 336",
|
||||
"337": "Community 337",
|
||||
"338": "Community 338",
|
||||
"339": "Community 339",
|
||||
"340": "Community 340",
|
||||
"341": "Community 341",
|
||||
"342": "error-handle.ts",
|
||||
"344": "ArtException.vue",
|
||||
"346": "Community 346",
|
||||
"347": "Community 347",
|
||||
"349": "Community 349",
|
||||
"350": "Community 350",
|
||||
"355": "Community 355",
|
||||
"362": "Community 362",
|
||||
"364": "Community 364",
|
||||
"367": "Community 367",
|
||||
"372": "detail.vue",
|
||||
"377": "Community 377",
|
||||
"379": "Community 379",
|
||||
"380": "Community 380",
|
||||
"381": "Community 381",
|
||||
"391": "Community 391",
|
||||
"392": "Community 392",
|
||||
"393": "Community 393",
|
||||
"405": "zh_CN.js",
|
||||
"406": "Community 406",
|
||||
"408": "Community 408",
|
||||
"410": "Community 410",
|
||||
"412": "Community 412",
|
||||
"416": "Community 416",
|
||||
"417": "Community 417",
|
||||
"422": "Community 422",
|
||||
"423": "Community 423",
|
||||
"424": "Community 424",
|
||||
"425": "Community 425",
|
||||
"426": "Community 426",
|
||||
"427": "Community 427",
|
||||
"428": "Community 428",
|
||||
"435": "index.vue",
|
||||
"443": "index.vue",
|
||||
"444": "index.vue",
|
||||
"445": "Community 445",
|
||||
"459": "Community 459",
|
||||
"460": "Community 460",
|
||||
"462": "Community 462",
|
||||
"471": "Community 471",
|
||||
"472": "Community 472",
|
||||
"473": "Community 473",
|
||||
"474": "Community 474",
|
||||
"475": "Community 475",
|
||||
"476": "Community 476",
|
||||
"487": "Community 487",
|
||||
"488": "Community 488",
|
||||
"496": "Community 496",
|
||||
"499": "Community 499",
|
||||
"521": "Community 521",
|
||||
"522": "Community 522",
|
||||
"528": "Community 528",
|
||||
"534": "Community 534",
|
||||
"535": "Community 535",
|
||||
"536": "Community 536",
|
||||
"537": "Community 537",
|
||||
"539": "Community 539",
|
||||
"540": "Community 540",
|
||||
"550": "Community 550",
|
||||
"551": "Community 551",
|
||||
"552": "Community 552",
|
||||
"553": "Community 553",
|
||||
"555": "Community 555",
|
||||
"556": "Community 556",
|
||||
"557": "Community 557",
|
||||
"559": "Community 559",
|
||||
"560": "Community 560",
|
||||
"561": "Community 561",
|
||||
"562": "Community 562",
|
||||
"571": "Community 571",
|
||||
"572": "Community 572",
|
||||
"573": "Community 573",
|
||||
"574": "Community 574",
|
||||
"575": "Community 575",
|
||||
"576": "Community 576",
|
||||
"580": "Community 580",
|
||||
"581": "Community 581",
|
||||
"582": "Community 582",
|
||||
"583": "Community 583",
|
||||
"584": "Community 584",
|
||||
"585": "Community 585",
|
||||
"586": "Community 586",
|
||||
"597": "Community 597",
|
||||
"598": "Community 598",
|
||||
"599": "Community 599",
|
||||
"600": "Community 600",
|
||||
"601": "Community 601",
|
||||
"602": "Community 602",
|
||||
"603": "Community 603",
|
||||
"604": "Community 604",
|
||||
"607": "Community 607",
|
||||
"608": "Community 608",
|
||||
"609": "Community 609",
|
||||
"610": "Community 610",
|
||||
"611": "Community 611",
|
||||
"612": "Community 612",
|
||||
"613": "Community 613",
|
||||
"614": "Community 614",
|
||||
"615": "Community 615",
|
||||
"630": "Community 630",
|
||||
"631": "Community 631",
|
||||
"632": "Community 632",
|
||||
"633": "Community 633",
|
||||
"634": "Community 634",
|
||||
"635": "Community 635",
|
||||
"636": "Community 636",
|
||||
"637": "Community 637",
|
||||
"638": "Community 638",
|
||||
"639": "Community 639",
|
||||
"640": "Community 640",
|
||||
"641": "Community 641",
|
||||
"642": "Community 642",
|
||||
"643": "Community 643",
|
||||
"644": "Community 644",
|
||||
"645": "Community 645",
|
||||
"650": "Community 650",
|
||||
"651": "Community 651",
|
||||
"652": "Community 652",
|
||||
"653": "Community 653",
|
||||
"654": "Community 654",
|
||||
"655": "Community 655",
|
||||
"658": "Community 658",
|
||||
"659": "Community 659",
|
||||
"660": "Community 660",
|
||||
"662": "Community 662",
|
||||
"663": "Community 663",
|
||||
"664": "Community 664",
|
||||
"665": "Community 665",
|
||||
"666": "Community 666",
|
||||
"667": "Community 667",
|
||||
"668": "Community 668",
|
||||
"669": "Community 669",
|
||||
"670": "Community 670",
|
||||
"671": "Community 671",
|
||||
"700": "Community 700",
|
||||
"701": "Fixed",
|
||||
"702": "Community 702",
|
||||
"703": "Community 703",
|
||||
"704": "Community 704",
|
||||
"705": "Community 705",
|
||||
"706": "Community 706",
|
||||
"707": "Community 707",
|
||||
"708": "Community 708",
|
||||
"709": "Community 709",
|
||||
"710": "Community 710",
|
||||
"711": "Community 711",
|
||||
"713": "Community 713",
|
||||
"715": "Community 715",
|
||||
"716": "Community 716",
|
||||
"717": "Community 717",
|
||||
"718": "Community 718",
|
||||
"720": "Community 720",
|
||||
"722": "Community 722",
|
||||
"723": "Community 723",
|
||||
"724": "Community 724",
|
||||
"725": "Community 725",
|
||||
"726": "Community 726",
|
||||
"727": "Community 727",
|
||||
"729": "Community 729",
|
||||
"730": "Community 730",
|
||||
"731": "Community 731",
|
||||
"732": "Community 732",
|
||||
"733": "Community 733",
|
||||
"734": "修复",
|
||||
"766": "新增",
|
||||
"770": "移除",
|
||||
"772": "重构",
|
||||
"779": "重构",
|
||||
"785": "⚠️ 重要提示",
|
||||
"786": "⚠️ 重要提示",
|
||||
"788": "⚠️ 重要提示",
|
||||
"796": "OpportunityForm.vue",
|
||||
"806": "index.vue",
|
||||
"836": "BxInvoiceFileSelect.vue",
|
||||
"838": "CustomerSelector.vue",
|
||||
"840": "index.vue",
|
||||
"857": "index.ts",
|
||||
"886": "index.vue",
|
||||
"889": "QuoteSelector.vue",
|
||||
"892": "index.vue",
|
||||
"896": "MarkWonDialog.vue",
|
||||
"924": "OpportunitySelector.vue",
|
||||
"950": "BatchUpdateStageDialog.vue",
|
||||
"1010": "BxApprovalFlowTabs.vue",
|
||||
"1015": "DealDialog.vue",
|
||||
"1016": "TransferDialog.vue",
|
||||
"1017": "BatchUpdateDateDialog.vue",
|
||||
"1027": "IntoPoolDialog.vue",
|
||||
"1115": "v2.4.2.7 - 2025-06-25",
|
||||
"1117": "v2.5.2 - 2025-07-13",
|
||||
"1118": "v2.4.2.2 - 2025-06-16",
|
||||
"1123": "v2.4.1.1 - 2025-06-07",
|
||||
"1126": "v2.4.2.1 - 2025-06-16",
|
||||
"1127": "v2.4.2.4 - 2025-06-18",
|
||||
"1197": "icons.js",
|
||||
"1198": "icons.min.js",
|
||||
"1199": "index.js",
|
||||
"1200": "index.js",
|
||||
"1201": "index.js",
|
||||
"1202": "index.js",
|
||||
"1203": "index.js",
|
||||
"1204": "plugin.js",
|
||||
"1205": "plugin.min.js",
|
||||
"1206": "index.js",
|
||||
"1207": "plugin.js",
|
||||
"1208": "plugin.min.js",
|
||||
"1209": "index.js",
|
||||
"1210": "plugin.js",
|
||||
"1211": "plugin.min.js",
|
||||
"1212": "index.js",
|
||||
"1213": "plugin.js",
|
||||
"1214": "plugin.min.js",
|
||||
"1215": "index.js",
|
||||
"1216": "index.js",
|
||||
"1217": "plugin.js",
|
||||
"1218": "plugin.min.js",
|
||||
"1219": "index.js",
|
||||
"1220": "index.js",
|
||||
"1222": "emojiimages.js",
|
||||
"1223": "emojiimages.min.js",
|
||||
"1224": "emojis.js",
|
||||
"1225": "emojis.min.js",
|
||||
"1228": "ar.js",
|
||||
"1229": "bg_BG.js",
|
||||
"1230": "ca.js",
|
||||
"1231": "cs.js",
|
||||
"1232": "da.js",
|
||||
"1233": "de.js",
|
||||
"1234": "el.js",
|
||||
"1235": "es.js",
|
||||
"1236": "eu.js",
|
||||
"1237": "fa.js",
|
||||
"1238": "fi.js",
|
||||
"1239": "fr_FR.js",
|
||||
"1240": "he_IL.js",
|
||||
"1241": "hi.js",
|
||||
"1242": "hr.js",
|
||||
"1243": "hu_HU.js",
|
||||
"1244": "id.js",
|
||||
"1245": "it.js",
|
||||
"1246": "ja.js",
|
||||
"1247": "kk.js",
|
||||
"1248": "ko_KR.js",
|
||||
"1249": "ms.js",
|
||||
"1250": "nb_NO.js",
|
||||
"1251": "nl.js",
|
||||
"1252": "pl.js",
|
||||
"1253": "pt_BR.js",
|
||||
"1254": "pt_PT.js",
|
||||
"1255": "ro.js",
|
||||
"1256": "ru.js",
|
||||
"1257": "sk.js",
|
||||
"1258": "sl_SI.js",
|
||||
"1259": "sv_SE.js",
|
||||
"1260": "th_TH.js",
|
||||
"1261": "tr.js",
|
||||
"1262": "uk.js",
|
||||
"1263": "vi.js",
|
||||
"1265": "zh_TW.js",
|
||||
"1266": "index.js",
|
||||
"1267": "index.js",
|
||||
"1268": "plugin.js",
|
||||
"1269": "_",
|
||||
"1270": "index.js",
|
||||
"1271": "plugin.js",
|
||||
"1272": "plugin.min.js",
|
||||
"1275": "index.js",
|
||||
"1277": "plugin.js",
|
||||
"1278": "plugin.min.js",
|
||||
"1280": "plugin.js",
|
||||
"1281": "plugin.min.js",
|
||||
"1283": "plugin.js",
|
||||
"1284": "plugin.min.js",
|
||||
"1287": "plugin.js",
|
||||
"1288": "plugin.min.js",
|
||||
"1289": "index.js",
|
||||
"1290": "index.js",
|
||||
"1291": "index.js",
|
||||
"1292": "index.js",
|
||||
"1293": "plugin.js",
|
||||
"1294": "plugin.min.js",
|
||||
"1295": "index.js",
|
||||
"1297": "plugin.js",
|
||||
"1298": "plugin.min.js",
|
||||
"1299": "content.js",
|
||||
"1300": "content.js",
|
||||
"1301": "content.js",
|
||||
"1302": "content.js",
|
||||
"1303": "content.js",
|
||||
"1304": "content.js",
|
||||
"1305": "content.inline.js",
|
||||
"1306": "content.js",
|
||||
"1307": "skin.js",
|
||||
"1308": "skin.shadowdom.js",
|
||||
"1309": "content.inline.js",
|
||||
"1310": "content.js",
|
||||
"1311": "skin.js",
|
||||
"1312": "skin.shadowdom.js",
|
||||
"1313": "content.inline.js",
|
||||
"1314": "content.js",
|
||||
"1315": "skin.js",
|
||||
"1316": "skin.shadowdom.js",
|
||||
"1317": "content.inline.js",
|
||||
"1318": "content.js",
|
||||
"1319": "skin.js",
|
||||
"1320": "skin.shadowdom.js",
|
||||
"1323": "index.vue",
|
||||
"1324": "index.vue",
|
||||
"1325": "index.vue",
|
||||
"1326": "route-parent.vue",
|
||||
"1327": "setupSubpackSlipEditorTypeCheckboxes",
|
||||
"1328": "修复",
|
||||
"1329": "优化",
|
||||
"1330": "新增",
|
||||
"1331": "⚠️ 重要提示",
|
||||
"1332": "重构",
|
||||
"1333": "优化",
|
||||
"1334": "修复",
|
||||
"1335": "新增",
|
||||
"1336": "升级",
|
||||
"1337": "⚠️ 重要提示",
|
||||
"1338": "修复",
|
||||
"1339": "优化",
|
||||
"1340": "新增",
|
||||
"1341": "优化",
|
||||
"1342": "修复",
|
||||
"1343": "⚠️ 重要提示",
|
||||
"1344": "升级",
|
||||
"1345": "修复",
|
||||
"1346": "优化",
|
||||
"1347": "⚠️ 重要提示",
|
||||
"1348": "新增",
|
||||
"1349": "修复",
|
||||
"1350": "优化",
|
||||
"1351": "新增",
|
||||
"1352": "优化",
|
||||
"1353": "修复",
|
||||
"1354": "新增",
|
||||
"1355": "重构",
|
||||
"1356": "优化",
|
||||
"1357": "修复",
|
||||
"1358": "移除",
|
||||
"1359": "新增",
|
||||
"1360": "优化",
|
||||
"1361": "修复",
|
||||
"1362": "新增",
|
||||
"1363": "重构",
|
||||
"1364": "升级",
|
||||
"1365": "优化",
|
||||
"1366": "修复",
|
||||
"1367": "新增",
|
||||
"1368": "优化",
|
||||
"1369": "修复",
|
||||
"1370": "优化",
|
||||
"1371": "修复",
|
||||
"1372": "新增",
|
||||
"1373": "重构",
|
||||
"1374": "升级",
|
||||
"1375": "移除",
|
||||
"1376": "修复",
|
||||
"1377": "⚠️ 重要提示",
|
||||
"1378": "重构",
|
||||
"1379": "优化",
|
||||
"1380": "修复",
|
||||
"1381": "修复",
|
||||
"1382": "新增",
|
||||
"1383": "优化",
|
||||
"1384": "修复",
|
||||
"1385": "重构",
|
||||
"1386": "优化",
|
||||
"1387": "新增",
|
||||
"1388": "重构",
|
||||
"1389": "重构",
|
||||
"1390": "优化",
|
||||
"1391": "重构",
|
||||
"1392": "优化",
|
||||
"1393": "重构",
|
||||
"1394": "重构",
|
||||
"1395": "修复",
|
||||
"1396": "重构",
|
||||
"1397": "新增",
|
||||
"1398": "优化",
|
||||
"1399": "修复",
|
||||
"1400": "⚠️ 重要提示",
|
||||
"1401": "优化",
|
||||
"1402": "修复",
|
||||
"1403": "新增",
|
||||
"1404": "优化",
|
||||
"1405": "修复",
|
||||
"1406": "重构",
|
||||
"1407": "新增",
|
||||
"1408": "优化",
|
||||
"1409": "⚠️ 重要提示",
|
||||
"1410": "code:block1 (crm/clue/)",
|
||||
"1411": "code:typescript ({)",
|
||||
"1412": "code:block3 (crm:clue:list # 线索列表查询)",
|
||||
"1413": "code:bash (mysql -u root -p your_database < crm/sql/crm/12-CRM字典数据汇总.md)",
|
||||
"9890": "README.md",
|
||||
"9959": "Fixed",
|
||||
"9960": "Fixed",
|
||||
"9961": "Fixed",
|
||||
"9962": "Fixed",
|
||||
"9963": "Fixed",
|
||||
"9964": "Fixed",
|
||||
"9965": "Fixed",
|
||||
"9966": "Fixed",
|
||||
"9967": "Fixed",
|
||||
"9968": "Fixed",
|
||||
"9969": "Fixed",
|
||||
"9970": "Fixed",
|
||||
"9971": "Fixed",
|
||||
"9972": "Fixed",
|
||||
"9973": "Fixed",
|
||||
"9974": "⚠️ Important Notice",
|
||||
"9975": "⚠️ Important Notice",
|
||||
"9976": "⚠️ Important Notice",
|
||||
"9977": "⚠️ Important Notice",
|
||||
"9978": "⚠️ Important Notice",
|
||||
"9979": "⚠️ Important Notice",
|
||||
"9980": "⚠️ Important Notice",
|
||||
"9981": "Optimized",
|
||||
"9982": "Optimized",
|
||||
"9983": "Optimized",
|
||||
"9984": "Optimized",
|
||||
"9985": "Optimized",
|
||||
"9986": "Optimized",
|
||||
"9987": "Optimized",
|
||||
"9988": "Optimized",
|
||||
"9989": "Optimized",
|
||||
"9990": "Optimized",
|
||||
"9991": "Optimized",
|
||||
"9992": "Optimized",
|
||||
"9993": "Optimized",
|
||||
"9994": "Optimized",
|
||||
"9995": "Optimized",
|
||||
"9996": "Optimized",
|
||||
"9997": "Optimized",
|
||||
"9998": "Optimized",
|
||||
"9999": "Optimized",
|
||||
"10000": "Optimized",
|
||||
"10001": "Refactored",
|
||||
"10002": "Refactored",
|
||||
"10003": "Refactored",
|
||||
"10004": "Refactored",
|
||||
"10005": "Refactored",
|
||||
"10006": "Refactored",
|
||||
"10007": "Refactored",
|
||||
"10008": "Refactored",
|
||||
"10009": "Refactored",
|
||||
"10010": "Refactored",
|
||||
"10011": "Refactored",
|
||||
"10012": "Refactored",
|
||||
"10013": "Removed",
|
||||
"10014": "Removed",
|
||||
"10015": "Upgraded",
|
||||
"10016": "Upgraded",
|
||||
"10017": "Upgraded",
|
||||
"10018": "Upgraded",
|
||||
"10019": "优化",
|
||||
"10020": "修复",
|
||||
"10021": "⚠️ 重要提示",
|
||||
"10022": "修复",
|
||||
"10023": "优化",
|
||||
"10024": "优化",
|
||||
"10025": "⚠️ 重要提示",
|
||||
"10026": "修复",
|
||||
"10027": "优化",
|
||||
"10028": "优化",
|
||||
"10029": "修复",
|
||||
"10030": "重构",
|
||||
"10031": "优化",
|
||||
"10032": "修复",
|
||||
"10033": "新增",
|
||||
"10034": "移除",
|
||||
"10035": "优化",
|
||||
"10036": "修复",
|
||||
"10037": "重构",
|
||||
"10038": "升级",
|
||||
"10039": "优化",
|
||||
"10040": "修复",
|
||||
"10041": "优化",
|
||||
"10042": "修复",
|
||||
"10043": "修复",
|
||||
"10044": "重构",
|
||||
"10045": "升级",
|
||||
"10046": "移除",
|
||||
"10047": "修复",
|
||||
"10048": "⚠️ 重要提示",
|
||||
"10049": "⚠️ 重要提示",
|
||||
"10050": "优化",
|
||||
"10051": "修复",
|
||||
"10052": "优化",
|
||||
"10053": "修复",
|
||||
"10054": "优化",
|
||||
"10055": "新增",
|
||||
"10056": "重构",
|
||||
"10057": "优化",
|
||||
"10058": "优化",
|
||||
"10059": "重构",
|
||||
"10060": "修复",
|
||||
"10061": "新增",
|
||||
"10062": "优化",
|
||||
"10063": "修复",
|
||||
"10064": "优化",
|
||||
"10065": "⚠️ 重要提示",
|
||||
"10066": "优化",
|
||||
"10067": "修复",
|
||||
"10068": "优化",
|
||||
"10069": "修复",
|
||||
"10070": "新增",
|
||||
"10071": "优化",
|
||||
"10072": "⚠️ 重要提示",
|
||||
"10073": "修复",
|
||||
"10074": "新增",
|
||||
"10075": "升级",
|
||||
"10076": "⚠️ 重要提示",
|
||||
"10077": "修复",
|
||||
"10078": "优化",
|
||||
"10079": "code:bash (# Install dependencies)",
|
||||
"10080": "code:bash (pnpm clean:dev)",
|
||||
"10081": "code:bash (# 安装依赖)",
|
||||
"10082": "code:bash (pnpm clean:dev)"
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+2967
-2372
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -13,7 +13,7 @@
|
||||
@click.stop="handlePreview(item)"
|
||||
>
|
||||
<el-image
|
||||
v-if="item.isImage"
|
||||
v-if="item.isImage && !usePlaceholderThumb"
|
||||
class="pl-cert-list-attachment-cell__image pl-cert-list-attachment-cell__image--passive"
|
||||
fit="cover"
|
||||
lazy
|
||||
@@ -26,9 +26,18 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
<div v-else class="pl-cert-list-attachment-cell__placeholder is-clickable">
|
||||
<el-icon :size="20" color="#0284c7"><Document /></el-icon>
|
||||
<span v-if="item.ext" class="pl-cert-list-attachment-cell__ext">{{ item.ext }}</span>
|
||||
<div
|
||||
v-else
|
||||
class="pl-cert-list-attachment-cell__placeholder is-clickable"
|
||||
:class="{ 'is-common-thumb': usePlaceholderThumb }"
|
||||
>
|
||||
<el-icon :size="20" :color="usePlaceholderThumb ? '#10b981' : '#0284c7'">
|
||||
<Picture v-if="usePlaceholderThumb" />
|
||||
<Document v-else />
|
||||
</el-icon>
|
||||
<span v-if="!usePlaceholderThumb && item.ext" class="pl-cert-list-attachment-cell__ext">{{
|
||||
item.ext
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<el-icon
|
||||
@@ -51,7 +60,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { Document, Download } from '@element-plus/icons-vue'
|
||||
import { Document, Download, Picture } from '@element-plus/icons-vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import type { CertRead } from '@/api/pl'
|
||||
import {
|
||||
@@ -69,11 +78,14 @@
|
||||
showVehiclePart?: boolean
|
||||
/** KeepAlive 离开页时置 false,暂停缩略图请求 */
|
||||
mediaActive?: boolean
|
||||
/** 列表态仅用统一占位缩略图,点击预览/下载时再加载真实文件 */
|
||||
usePlaceholderThumb?: boolean
|
||||
}>(),
|
||||
{
|
||||
certList: () => [],
|
||||
showVehiclePart: false,
|
||||
mediaActive: true
|
||||
mediaActive: true,
|
||||
usePlaceholderThumb: false
|
||||
}
|
||||
)
|
||||
|
||||
@@ -280,6 +292,10 @@
|
||||
&.is-clickable {
|
||||
background: #e0f2fe;
|
||||
}
|
||||
|
||||
&.is-common-thumb {
|
||||
background: var(--primary-bg, #ecfdf5);
|
||||
}
|
||||
}
|
||||
|
||||
.pl-cert-list-attachment-cell__ext {
|
||||
|
||||
@@ -109,117 +109,77 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Check, Close } from '@element-plus/icons-vue'
|
||||
import { personnelApi, type CertRow, type PersonnelDetail } from '@/api/pl'
|
||||
import AttachmentUploadField from '@/components/business/attachment-upload-field/index.vue'
|
||||
import PlCertFormList from '@/components/business/pl-cert-form-list/index.vue'
|
||||
import { pickBxData } from '@/utils/http/bx'
|
||||
import { calcAgeFromChineseIdCard } from '@/utils/id-card'
|
||||
import {
|
||||
collectRequiredCertSlotErrors,
|
||||
formatRequiredCertErrors,
|
||||
mergeCertListWithRequiredSlots
|
||||
} from '@/utils/pl-cert-slots'
|
||||
import {
|
||||
getRequiredPersonnelCertNamesByType,
|
||||
PL_PERSONNEL_BOTH_REQUIRED_CERT_NAMES,
|
||||
PL_PERSONNEL_TYPE_OPTIONS
|
||||
} from '@/utils/pl-personnel-cert'
|
||||
import { Check, Close } from '@element-plus/icons-vue'
|
||||
import { personnelApi, type CertRow, type PersonnelDetail } from '@/api/pl'
|
||||
import AttachmentUploadField from '@/components/business/attachment-upload-field/index.vue'
|
||||
import PlCertFormList from '@/components/business/pl-cert-form-list/index.vue'
|
||||
import { pickBxData } from '@/utils/http/bx'
|
||||
import { calcAgeFromChineseIdCard } from '@/utils/id-card'
|
||||
import {
|
||||
collectRequiredCertSlotErrors,
|
||||
formatRequiredCertErrors,
|
||||
mergeCertListWithRequiredSlots
|
||||
} from '@/utils/pl-cert-slots'
|
||||
import {
|
||||
getRequiredPersonnelCertNamesByType,
|
||||
PL_PERSONNEL_BOTH_REQUIRED_CERT_NAMES,
|
||||
PL_PERSONNEL_TYPE_OPTIONS
|
||||
} from '@/utils/pl-personnel-cert'
|
||||
|
||||
type CertListItem = CertRow & { _key?: string }
|
||||
type CertFormListRef = InstanceType<typeof PlCertFormList>
|
||||
type CertListItem = CertRow & { _key?: string }
|
||||
type CertFormListRef = InstanceType<typeof PlCertFormList>
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
/** carrier=三方,self=山峡;锁定归属,不可切换 */
|
||||
affiliation: 'carrier' | 'self'
|
||||
/** 有值则为编辑,无值则为新增 */
|
||||
personnelId?: string | null
|
||||
}>()
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
/** carrier=三方,self=山峡;锁定归属,不可切换 */
|
||||
affiliation: 'carrier' | 'self'
|
||||
/** 有值则为编辑,无值则为新增 */
|
||||
personnelId?: string | null
|
||||
/** 新增时预填人员类型(如车辆关联行的司机/押运员) */
|
||||
initialPersonnelType?: string | null
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
'update:modelValue': [value: boolean]
|
||||
saved: [payload: { mode: 'create' | 'edit'; personnel: PersonnelDetail }]
|
||||
}>()
|
||||
const emit = defineEmits<{
|
||||
'update:modelValue': [value: boolean]
|
||||
saved: [payload: { mode: 'create' | 'edit'; personnel: PersonnelDetail }]
|
||||
}>()
|
||||
|
||||
const visible = computed({
|
||||
get: () => props.modelValue,
|
||||
set: (value: boolean) => emit('update:modelValue', value)
|
||||
})
|
||||
const visible = computed({
|
||||
get: () => props.modelValue,
|
||||
set: (value: boolean) => emit('update:modelValue', value)
|
||||
})
|
||||
|
||||
const isCarrierPersonnel = computed(() => props.affiliation === 'carrier')
|
||||
const isEdit = computed(() => Boolean(props.personnelId))
|
||||
const isCarrierPersonnel = computed(() => props.affiliation === 'carrier')
|
||||
const isEdit = computed(() => Boolean(props.personnelId))
|
||||
|
||||
const dialogTitle = computed(() => {
|
||||
if (isEdit.value) {
|
||||
return isCarrierPersonnel.value ? '编辑人员' : '编辑山峡人员'
|
||||
}
|
||||
return isCarrierPersonnel.value ? '新增人员' : '新增山峡人员'
|
||||
})
|
||||
const dialogTitle = computed(() => {
|
||||
if (isEdit.value) {
|
||||
return isCarrierPersonnel.value ? '编辑人员' : '编辑山峡人员'
|
||||
}
|
||||
return isCarrierPersonnel.value ? '新增人员' : '新增山峡人员'
|
||||
})
|
||||
|
||||
const submitLoading = ref(false)
|
||||
const dialogLoading = ref(false)
|
||||
const formRef = ref()
|
||||
const photoUploadRef = ref<InstanceType<typeof AttachmentUploadField>>()
|
||||
const certList = ref<CertListItem[]>([])
|
||||
const certFormListRef = ref<CertFormListRef>()
|
||||
const submitLoading = ref(false)
|
||||
const dialogLoading = ref(false)
|
||||
const formRef = ref()
|
||||
const photoUploadRef = ref<InstanceType<typeof AttachmentUploadField>>()
|
||||
const certList = ref<CertListItem[]>([])
|
||||
const certFormListRef = ref<CertFormListRef>()
|
||||
|
||||
const certNameOptions = [
|
||||
'身份证',
|
||||
'驾驶证',
|
||||
'驾驶员从业资格证',
|
||||
'押运员从业资格证',
|
||||
'押运员证',
|
||||
'健康证'
|
||||
]
|
||||
const certNameOptions = [
|
||||
'身份证',
|
||||
'驾驶证',
|
||||
'驾驶员从业资格证',
|
||||
'押运员从业资格证',
|
||||
'押运员证',
|
||||
'健康证'
|
||||
]
|
||||
|
||||
const formData = reactive({
|
||||
id: '',
|
||||
personnelName: '',
|
||||
phoneNo: '',
|
||||
age: null as number | null,
|
||||
idCardNo: '',
|
||||
personnelType: '',
|
||||
personnelAffiliation: props.affiliation,
|
||||
status: '1',
|
||||
remark: '',
|
||||
photoUrls: ''
|
||||
})
|
||||
|
||||
const requiredPersonnelCertNames = computed(() =>
|
||||
isCarrierPersonnel.value
|
||||
? []
|
||||
: formData.personnelType
|
||||
? getRequiredPersonnelCertNamesByType(formData.personnelType)
|
||||
: []
|
||||
)
|
||||
|
||||
const formRules = {
|
||||
personnelName: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
|
||||
personnelType: [{ required: true, message: '请选择人员类型', trigger: 'change' }],
|
||||
status: [{ required: true, message: '请选择状态', trigger: 'change' }]
|
||||
}
|
||||
|
||||
function mergePersonnelCertSlots(list: CertListItem[]) {
|
||||
if (isCarrierPersonnel.value || !formData.personnelType) return list
|
||||
return mergeCertListWithRequiredSlots(
|
||||
list,
|
||||
getRequiredPersonnelCertNamesByType(formData.personnelType),
|
||||
{ stripManagedNames: PL_PERSONNEL_BOTH_REQUIRED_CERT_NAMES }
|
||||
)
|
||||
}
|
||||
|
||||
function resetCertList() {
|
||||
certList.value = []
|
||||
certFormListRef.value?.clearUploadRefs()
|
||||
}
|
||||
|
||||
function resetForm() {
|
||||
Object.assign(formData, {
|
||||
const formData = reactive({
|
||||
id: '',
|
||||
personnelName: '',
|
||||
phoneNo: '',
|
||||
age: null,
|
||||
age: null as number | null,
|
||||
idCardNo: '',
|
||||
personnelType: '',
|
||||
personnelAffiliation: props.affiliation,
|
||||
@@ -227,172 +187,216 @@ function resetForm() {
|
||||
remark: '',
|
||||
photoUrls: ''
|
||||
})
|
||||
resetCertList()
|
||||
}
|
||||
|
||||
function applyAgeFromIdCard(idCard?: string) {
|
||||
const age = calcAgeFromChineseIdCard(idCard)
|
||||
if (age != null) {
|
||||
formData.age = age
|
||||
}
|
||||
}
|
||||
const requiredPersonnelCertNames = computed(() =>
|
||||
isCarrierPersonnel.value
|
||||
? []
|
||||
: formData.personnelType
|
||||
? getRequiredPersonnelCertNamesByType(formData.personnelType)
|
||||
: []
|
||||
)
|
||||
|
||||
function handleIdCardNoInput(val: string | number) {
|
||||
applyAgeFromIdCard(String(val ?? ''))
|
||||
}
|
||||
const formRules = {
|
||||
personnelName: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
|
||||
personnelType: [{ required: true, message: '请选择人员类型', trigger: 'change' }],
|
||||
status: [{ required: true, message: '请选择状态', trigger: 'change' }]
|
||||
}
|
||||
|
||||
function handleIdCardRecognized(certNo: string) {
|
||||
if (certNo) {
|
||||
formData.idCardNo = certNo
|
||||
applyAgeFromIdCard(certNo)
|
||||
}
|
||||
}
|
||||
|
||||
function validateCerts(): boolean {
|
||||
if (!formData.personnelType) {
|
||||
ElMessage.warning('请选择人员类型')
|
||||
return false
|
||||
}
|
||||
if (!isCarrierPersonnel.value) {
|
||||
const errors = collectRequiredCertSlotErrors(certList.value, requiredPersonnelCertNames.value)
|
||||
if (errors.length) {
|
||||
ElMessage.warning(formatRequiredCertErrors(errors))
|
||||
return false
|
||||
}
|
||||
}
|
||||
for (const cert of certList.value) {
|
||||
if (!cert._required && !cert.certName?.trim()) {
|
||||
ElMessage.warning('其他证书名称不能为空')
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
async function loadDetail(personnelId: string) {
|
||||
dialogLoading.value = true
|
||||
try {
|
||||
const res = await personnelApi.get(personnelId)
|
||||
const detail = pickBxData<PersonnelDetail>(res)
|
||||
Object.assign(formData, {
|
||||
id: detail.id,
|
||||
personnelName: detail.personnelName,
|
||||
phoneNo: detail.phoneNo || '',
|
||||
age: detail.age ?? null,
|
||||
idCardNo: detail.idCardNo || '',
|
||||
personnelType: detail.personnelType || 'both',
|
||||
personnelAffiliation: props.affiliation,
|
||||
status: detail.status,
|
||||
remark: detail.remark || '',
|
||||
photoUrls: detail.photoUrls || ''
|
||||
})
|
||||
certList.value = mergePersonnelCertSlots(
|
||||
(detail.certList || []).map(c => ({
|
||||
_key: c.id || c.certId || `cert-${Math.random().toString(36).slice(2, 10)}`,
|
||||
certId: c.id || c.certId,
|
||||
certName: c.certName,
|
||||
certNo: c.certNo,
|
||||
expireDate: c.expireDate,
|
||||
remindDays: c.remindDays ?? 30,
|
||||
attachmentUrls: c.attachmentUrls || ''
|
||||
}))
|
||||
function mergePersonnelCertSlots(list: CertListItem[]) {
|
||||
if (isCarrierPersonnel.value || !formData.personnelType) return list
|
||||
return mergeCertListWithRequiredSlots(
|
||||
list,
|
||||
getRequiredPersonnelCertNamesByType(formData.personnelType),
|
||||
{ stripManagedNames: PL_PERSONNEL_BOTH_REQUIRED_CERT_NAMES }
|
||||
)
|
||||
certFormListRef.value?.refreshRequiredSlots?.()
|
||||
} catch {
|
||||
ElMessage.error('加载人员详情失败')
|
||||
visible.value = false
|
||||
} finally {
|
||||
dialogLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function openDialog() {
|
||||
resetForm()
|
||||
if (props.personnelId) {
|
||||
await loadDetail(props.personnelId)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleSubmit() {
|
||||
const valid = await formRef.value.validate().catch(() => false)
|
||||
if (!valid || !validateCerts()) return
|
||||
if (certFormListRef.value?.hasUploading?.()) {
|
||||
ElMessage.warning('证书附件上传中,请稍候')
|
||||
return
|
||||
}
|
||||
if (photoUploadRef.value?.hasUploading?.()) {
|
||||
ElMessage.warning('附件上传中,请稍候')
|
||||
return
|
||||
}
|
||||
|
||||
submitLoading.value = true
|
||||
try {
|
||||
const payload = {
|
||||
personnelName: formData.personnelName.trim(),
|
||||
phoneNo: formData.phoneNo || undefined,
|
||||
age: formData.age ?? undefined,
|
||||
idCardNo: formData.idCardNo || undefined,
|
||||
personnelType: formData.personnelType,
|
||||
function resetCertList() {
|
||||
certList.value = []
|
||||
certFormListRef.value?.clearUploadRefs()
|
||||
}
|
||||
|
||||
function resetForm() {
|
||||
Object.assign(formData, {
|
||||
id: '',
|
||||
personnelName: '',
|
||||
phoneNo: '',
|
||||
age: null,
|
||||
idCardNo: '',
|
||||
personnelType: '',
|
||||
personnelAffiliation: props.affiliation,
|
||||
status: formData.status,
|
||||
remark: formData.remark || undefined,
|
||||
photoUrls: formData.photoUrls ?? '',
|
||||
certList: certList.value.map(c => ({
|
||||
certId: c.certId,
|
||||
certName: c.certName.trim(),
|
||||
certNo: c.certNo || undefined,
|
||||
expireDate: c.expireDate || undefined,
|
||||
remindDays: c.remindDays ?? 30,
|
||||
attachmentUrls: c.attachmentUrls || undefined
|
||||
}))
|
||||
}
|
||||
status: '1',
|
||||
remark: '',
|
||||
photoUrls: ''
|
||||
})
|
||||
resetCertList()
|
||||
}
|
||||
|
||||
if (isEdit.value) {
|
||||
await personnelApi.update(formData.id, payload)
|
||||
const res = await personnelApi.get(formData.id)
|
||||
const detail = pickBxData<PersonnelDetail>(res)
|
||||
if (!detail?.id) {
|
||||
ElMessage.error('编辑成功但未返回人员信息')
|
||||
return
|
||||
function applyAgeFromIdCard(idCard?: string) {
|
||||
const age = calcAgeFromChineseIdCard(idCard)
|
||||
if (age != null) {
|
||||
formData.age = age
|
||||
}
|
||||
}
|
||||
|
||||
function handleIdCardNoInput(val: string | number) {
|
||||
applyAgeFromIdCard(String(val ?? ''))
|
||||
}
|
||||
|
||||
function handleIdCardRecognized(certNo: string) {
|
||||
if (certNo) {
|
||||
formData.idCardNo = certNo
|
||||
applyAgeFromIdCard(certNo)
|
||||
}
|
||||
}
|
||||
|
||||
function validateCerts(): boolean {
|
||||
if (!formData.personnelType) {
|
||||
ElMessage.warning('请选择人员类型')
|
||||
return false
|
||||
}
|
||||
if (!isCarrierPersonnel.value) {
|
||||
const errors = collectRequiredCertSlotErrors(certList.value, requiredPersonnelCertNames.value)
|
||||
if (errors.length) {
|
||||
ElMessage.warning(formatRequiredCertErrors(errors))
|
||||
return false
|
||||
}
|
||||
ElMessage.success('编辑成功')
|
||||
emit('saved', { mode: 'edit', personnel: detail })
|
||||
} else {
|
||||
const res = await personnelApi.create(payload)
|
||||
const detail = pickBxData<PersonnelDetail>(res)
|
||||
if (!detail?.id) {
|
||||
ElMessage.error('新增成功但未返回人员信息')
|
||||
return
|
||||
}
|
||||
for (const cert of certList.value) {
|
||||
if (!cert._required && !cert.certName?.trim()) {
|
||||
ElMessage.warning('其他证书名称不能为空')
|
||||
return false
|
||||
}
|
||||
ElMessage.success('新增成功')
|
||||
emit('saved', { mode: 'create', personnel: detail })
|
||||
}
|
||||
visible.value = false
|
||||
} finally {
|
||||
submitLoading.value = false
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
function handleDialogClose() {
|
||||
formRef.value?.resetFields()
|
||||
resetCertList()
|
||||
}
|
||||
|
||||
watch(
|
||||
() => formData.personnelType,
|
||||
() => {
|
||||
if (!formData.personnelType) return
|
||||
certList.value = mergePersonnelCertSlots(certList.value)
|
||||
certFormListRef.value?.refreshRequiredSlots?.()
|
||||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
async open => {
|
||||
if (open) {
|
||||
await openDialog()
|
||||
async function loadDetail(personnelId: string) {
|
||||
dialogLoading.value = true
|
||||
try {
|
||||
const res = await personnelApi.get(personnelId)
|
||||
const detail = pickBxData<PersonnelDetail>(res)
|
||||
Object.assign(formData, {
|
||||
id: detail.id,
|
||||
personnelName: detail.personnelName,
|
||||
phoneNo: detail.phoneNo || '',
|
||||
age: detail.age ?? null,
|
||||
idCardNo: detail.idCardNo || '',
|
||||
personnelType: detail.personnelType || 'both',
|
||||
personnelAffiliation: props.affiliation,
|
||||
status: detail.status,
|
||||
remark: detail.remark || '',
|
||||
photoUrls: detail.photoUrls || ''
|
||||
})
|
||||
certList.value = mergePersonnelCertSlots(
|
||||
(detail.certList || []).map((c) => ({
|
||||
_key: c.id || c.certId || `cert-${Math.random().toString(36).slice(2, 10)}`,
|
||||
certId: c.id || c.certId,
|
||||
certName: c.certName,
|
||||
certNo: c.certNo,
|
||||
expireDate: c.expireDate,
|
||||
remindDays: c.remindDays ?? 30,
|
||||
attachmentUrls: c.attachmentUrls || ''
|
||||
}))
|
||||
)
|
||||
certFormListRef.value?.refreshRequiredSlots?.()
|
||||
} catch {
|
||||
ElMessage.error('加载人员详情失败')
|
||||
visible.value = false
|
||||
} finally {
|
||||
dialogLoading.value = false
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
async function openDialog() {
|
||||
resetForm()
|
||||
if (props.personnelId) {
|
||||
await loadDetail(props.personnelId)
|
||||
} else if (props.initialPersonnelType) {
|
||||
formData.personnelType = props.initialPersonnelType
|
||||
}
|
||||
}
|
||||
|
||||
async function handleSubmit() {
|
||||
const valid = await formRef.value.validate().catch(() => false)
|
||||
if (!valid || !validateCerts()) return
|
||||
if (certFormListRef.value?.hasUploading?.()) {
|
||||
ElMessage.warning('证书附件上传中,请稍候')
|
||||
return
|
||||
}
|
||||
if (photoUploadRef.value?.hasUploading?.()) {
|
||||
ElMessage.warning('附件上传中,请稍候')
|
||||
return
|
||||
}
|
||||
|
||||
submitLoading.value = true
|
||||
try {
|
||||
const payload = {
|
||||
personnelName: formData.personnelName.trim(),
|
||||
phoneNo: formData.phoneNo || undefined,
|
||||
age: formData.age ?? undefined,
|
||||
idCardNo: formData.idCardNo || undefined,
|
||||
personnelType: formData.personnelType,
|
||||
personnelAffiliation: props.affiliation,
|
||||
status: formData.status,
|
||||
remark: formData.remark || undefined,
|
||||
photoUrls: formData.photoUrls ?? '',
|
||||
certList: certList.value.map((c) => ({
|
||||
certId: c.certId,
|
||||
certName: c.certName.trim(),
|
||||
certNo: c.certNo || undefined,
|
||||
expireDate: c.expireDate || undefined,
|
||||
remindDays: c.remindDays ?? 30,
|
||||
attachmentUrls: c.attachmentUrls || undefined
|
||||
}))
|
||||
}
|
||||
|
||||
if (isEdit.value) {
|
||||
await personnelApi.update(formData.id, payload)
|
||||
const res = await personnelApi.get(formData.id)
|
||||
const detail = pickBxData<PersonnelDetail>(res)
|
||||
if (!detail?.id) {
|
||||
ElMessage.error('编辑成功但未返回人员信息')
|
||||
return
|
||||
}
|
||||
ElMessage.success('编辑成功')
|
||||
emit('saved', { mode: 'edit', personnel: detail })
|
||||
} else {
|
||||
const res = await personnelApi.create(payload)
|
||||
const detail = pickBxData<PersonnelDetail>(res)
|
||||
if (!detail?.id) {
|
||||
ElMessage.error('新增成功但未返回人员信息')
|
||||
return
|
||||
}
|
||||
ElMessage.success('新增成功')
|
||||
emit('saved', { mode: 'create', personnel: detail })
|
||||
}
|
||||
visible.value = false
|
||||
} finally {
|
||||
submitLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function handleDialogClose() {
|
||||
formRef.value?.resetFields()
|
||||
resetCertList()
|
||||
}
|
||||
|
||||
watch(
|
||||
() => formData.personnelType,
|
||||
() => {
|
||||
if (!formData.personnelType) return
|
||||
certList.value = mergePersonnelCertSlots(certList.value)
|
||||
certFormListRef.value?.refreshRequiredSlots?.()
|
||||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
async (open) => {
|
||||
if (open) {
|
||||
await openDialog()
|
||||
}
|
||||
}
|
||||
)
|
||||
</script>
|
||||
@@ -89,7 +89,6 @@
|
||||
v-model="formData.supplierContracts"
|
||||
:customer-id="formData.supplierId"
|
||||
:disabled="!formData.supplierId"
|
||||
:required="!isPlInternalCustomerName(formData.supplierName)"
|
||||
>
|
||||
<template #toolbar="{ open, disabled, hint, hintWarn }">
|
||||
<div class="pl-plan-party-select-row">
|
||||
@@ -134,7 +133,6 @@
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="供方合同"
|
||||
:required="!isPlInternalCustomerName(formData.supplierName)"
|
||||
class="pl-plan-party-select-row__contract"
|
||||
>
|
||||
<div class="pl-plan-contract-trigger">
|
||||
@@ -182,7 +180,6 @@
|
||||
v-model="formData.demanderContracts"
|
||||
:customer-id="formData.customerId"
|
||||
:disabled="!formData.customerId"
|
||||
:required="!isPlInternalCustomerName(formData.customerName)"
|
||||
>
|
||||
<template #toolbar="{ open, disabled, hint, hintWarn }">
|
||||
<div class="pl-plan-party-select-row">
|
||||
@@ -227,7 +224,6 @@
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="需方合同"
|
||||
:required="!isPlInternalCustomerName(formData.customerName)"
|
||||
class="pl-plan-party-select-row__contract"
|
||||
>
|
||||
<div class="pl-plan-contract-trigger">
|
||||
@@ -515,7 +511,6 @@ import {
|
||||
} from '@/composables/usePlToxicProductCertCheck'
|
||||
import { usePlFreightCalc } from '@/composables/usePlFreightCalc'
|
||||
import { loadVehicleViewBundle, type VehicleViewBundle } from '@/composables/usePlVehicleViewDetail'
|
||||
import { isPlInternalCustomerName } from '@/utils/pl-internal-customer'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import { formatDate } from '@/utils/format'
|
||||
import { pickBxData } from '@/utils/http/bx'
|
||||
@@ -1312,14 +1307,6 @@ function validateBusinessRules() {
|
||||
ElMessage.warning('请选择需方客户')
|
||||
return false
|
||||
}
|
||||
if (!isPlInternalCustomerName(formData.supplierName) && !formData.supplierContracts.length) {
|
||||
ElMessage.warning('请选择供方合同')
|
||||
return false
|
||||
}
|
||||
if (!isPlInternalCustomerName(formData.customerName) && !formData.demanderContracts.length) {
|
||||
ElMessage.warning('请选择需方合同')
|
||||
return false
|
||||
}
|
||||
if (!formData.products.length) {
|
||||
ElMessage.warning('请至少保留一条产品明细')
|
||||
return false
|
||||
|
||||
@@ -109,26 +109,19 @@
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column label="姓名" min-width="160">
|
||||
<el-table-column label="姓名" min-width="260">
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-model="row.personnelId"
|
||||
placeholder="请选择人员"
|
||||
filterable
|
||||
remote
|
||||
clearable
|
||||
:remote-method="searchPersonnel"
|
||||
<PlVehiclePersonnelSelectCell
|
||||
:row="row"
|
||||
:options="getPersonnelOptionsForRow(row)"
|
||||
:loading="personnelSelectLoading"
|
||||
@focus="onPersonnelSelectFocus"
|
||||
@change="(id) => handlePersonnelSelect(row, id)"
|
||||
>
|
||||
<el-option
|
||||
v-for="p in getPersonnelOptionsForRow(row)"
|
||||
:key="p.id"
|
||||
:label="formatPersonnelLabel(p)"
|
||||
:value="p.id"
|
||||
/>
|
||||
</el-select>
|
||||
:affiliation="props.vehicleType"
|
||||
:search-personnel="searchPersonnel"
|
||||
:on-personnel-select-focus="onPersonnelSelectFocus"
|
||||
:format-personnel-label="formatPersonnelLabel"
|
||||
@select="(id) => handlePersonnelSelect(row, id)"
|
||||
@saved="(payload) => handlePersonnelFormSaved(row, payload)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="手机号" min-width="120">
|
||||
@@ -194,6 +187,8 @@
|
||||
<script setup lang="ts">
|
||||
import AttachmentUploadField from '@/components/business/attachment-upload-field/index.vue'
|
||||
import PlVehicleCertPartTabs from '@/components/business/pl-vehicle-cert-part-tabs/index.vue'
|
||||
import PlVehiclePersonnelSelectCell from '@/components/business/pl-vehicle-personnel-select-cell/index.vue'
|
||||
import { usePlVehiclePersonnelQuickCreate } from '@/composables/usePlVehiclePersonnelQuickCreate'
|
||||
import { Check, Close, Delete, Plus } from '@element-plus/icons-vue'
|
||||
import {
|
||||
vehicleApi,
|
||||
@@ -308,6 +303,11 @@
|
||||
})
|
||||
})
|
||||
|
||||
const { handlePersonnelFormSaved } = usePlVehiclePersonnelQuickCreate({
|
||||
personnelOptions,
|
||||
onSelect: handlePersonnelSelect
|
||||
})
|
||||
|
||||
function createEmptyPersonnel(): VehiclePersonnelRow {
|
||||
return {
|
||||
personnelId: undefined,
|
||||
|
||||
@@ -13,7 +13,11 @@
|
||||
@open="handleOpen"
|
||||
>
|
||||
<div class="panel dialog-list-panel">
|
||||
<el-tabs v-model="activeTab" class="pl-vehicle-library-select-tabs" @tab-change="handleTabChange">
|
||||
<el-tabs
|
||||
v-model="activeTab"
|
||||
class="pl-vehicle-library-select-tabs"
|
||||
@tab-change="handleTabChange"
|
||||
>
|
||||
<el-tab-pane label="三方车辆" name="carrier" />
|
||||
<el-tab-pane label="三方驾押人员" name="carrier_personnel" />
|
||||
<el-tab-pane label="山峡车辆" name="self" />
|
||||
@@ -67,9 +71,14 @@
|
||||
min-width="68"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:index="index => (pagination.page - 1) * pagination.pageSize + index + 1"
|
||||
:index="(index) => (pagination.page - 1) * pagination.pageSize + index + 1"
|
||||
/>
|
||||
<el-table-column prop="licensePlate" label="车牌号" min-width="120" show-overflow-tooltip>
|
||||
<el-table-column
|
||||
prop="licensePlate"
|
||||
label="车牌号"
|
||||
min-width="120"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-link type="primary" @click="handleConfirm(row)">{{ row.licensePlate }}</el-link>
|
||||
</template>
|
||||
@@ -108,13 +117,12 @@
|
||||
<el-table-column
|
||||
prop="personnelSummary"
|
||||
label="关联人员摘要"
|
||||
min-width="160"
|
||||
min-width="220"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ normalizePlPersonnelSummaryDisplay(row.personnelSummary) }}
|
||||
<PlVehiclePersonnelSummaryCell :vehicle="row" @manage="handleOpenEdit(row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -173,194 +181,191 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { DocumentCopy, Edit, Plus, Search, Select } from '@element-plus/icons-vue'
|
||||
import {
|
||||
vehicleApi,
|
||||
type PasteCommitResult,
|
||||
type Vehicle,
|
||||
type VehicleDetail
|
||||
} from '@/api/pl/index'
|
||||
import PlPasteRecognizeDialog from '@/components/business/pl-paste-recognize-dialog/index.vue'
|
||||
import PlPersonnelLibrarySelectPanel from '@/components/business/pl-personnel-library-select-panel/index.vue'
|
||||
import PlVehicleFormDialog from '@/components/business/pl-vehicle-form-dialog/index.vue'
|
||||
import ListPagination from '@/components/ListPagination/index.vue'
|
||||
import { pickBxData, pickBxPageResult } from '@/utils/http/bx'
|
||||
import {
|
||||
getPlVehicleStatusLabel,
|
||||
getPlVehicleStatusTagType,
|
||||
normalizePlPersonnelSummaryDisplay
|
||||
} from '@/utils/pl-display'
|
||||
import { DEFAULT_LIST_PAGE_SIZE } from '@/utils/table/tableConfig'
|
||||
import { DocumentCopy, Edit, Plus, Search, Select } from '@element-plus/icons-vue'
|
||||
import {
|
||||
vehicleApi,
|
||||
type PasteCommitResult,
|
||||
type Vehicle,
|
||||
type VehicleDetail
|
||||
} from '@/api/pl/index'
|
||||
import PlPasteRecognizeDialog from '@/components/business/pl-paste-recognize-dialog/index.vue'
|
||||
import PlPersonnelLibrarySelectPanel from '@/components/business/pl-personnel-library-select-panel/index.vue'
|
||||
import PlVehicleFormDialog from '@/components/business/pl-vehicle-form-dialog/index.vue'
|
||||
import PlVehiclePersonnelSummaryCell from '@/components/business/pl-vehicle-personnel-summary-cell/index.vue'
|
||||
import ListPagination from '@/components/ListPagination/index.vue'
|
||||
import { pickBxData, pickBxPageResult } from '@/utils/http/bx'
|
||||
import { getPlVehicleStatusLabel, getPlVehicleStatusTagType } from '@/utils/pl-display'
|
||||
import { DEFAULT_LIST_PAGE_SIZE } from '@/utils/table/tableConfig'
|
||||
|
||||
type LibraryTab = 'carrier' | 'carrier_personnel' | 'self' | 'self_personnel'
|
||||
type VehicleTab = 'carrier' | 'self'
|
||||
type LibraryTab = 'carrier' | 'carrier_personnel' | 'self' | 'self_personnel'
|
||||
type VehicleTab = 'carrier' | 'self'
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
}>()
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
'update:modelValue': [value: boolean]
|
||||
select: [row: Vehicle]
|
||||
}>()
|
||||
const emit = defineEmits<{
|
||||
'update:modelValue': [value: boolean]
|
||||
select: [row: Vehicle]
|
||||
}>()
|
||||
|
||||
const innerVisible = computed({
|
||||
get: () => props.modelValue,
|
||||
set: (value: boolean) => emit('update:modelValue', value)
|
||||
})
|
||||
|
||||
const loading = ref(false)
|
||||
const keyword = ref('')
|
||||
const activeTab = ref<LibraryTab>('carrier')
|
||||
const rows = ref<Vehicle[]>([])
|
||||
|
||||
const pagination = reactive({
|
||||
page: 1,
|
||||
pageSize: DEFAULT_LIST_PAGE_SIZE,
|
||||
total: 0
|
||||
})
|
||||
|
||||
const formVisible = ref(false)
|
||||
const editingId = ref<string | null>(null)
|
||||
const pasteRecognizeVisible = ref(false)
|
||||
const carrierPersonnelPanelRef = ref<InstanceType<typeof PlPersonnelLibrarySelectPanel>>()
|
||||
const selfPersonnelPanelRef = ref<InstanceType<typeof PlPersonnelLibrarySelectPanel>>()
|
||||
|
||||
const isVehicleTab = computed(() => activeTab.value === 'carrier' || activeTab.value === 'self')
|
||||
const vehicleTab = computed<VehicleTab>(() => (activeTab.value === 'self' ? 'self' : 'carrier'))
|
||||
|
||||
async function fetchList() {
|
||||
if (!isVehicleTab.value) return
|
||||
loading.value = true
|
||||
try {
|
||||
const res = await vehicleApi.list({
|
||||
vehicleType: vehicleTab.value,
|
||||
q: keyword.value.trim() || undefined,
|
||||
page: pagination.page,
|
||||
pageSize: pagination.pageSize
|
||||
})
|
||||
const { list, total } = pickBxPageResult<Vehicle>(res)
|
||||
rows.value = list
|
||||
pagination.total = total
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
pagination.page = 1
|
||||
fetchList()
|
||||
}
|
||||
|
||||
function refreshPersonnelPanel() {
|
||||
if (activeTab.value === 'carrier_personnel') {
|
||||
carrierPersonnelPanelRef.value?.resetPanel()
|
||||
carrierPersonnelPanelRef.value?.fetchList()
|
||||
} else if (activeTab.value === 'self_personnel') {
|
||||
selfPersonnelPanelRef.value?.resetPanel()
|
||||
selfPersonnelPanelRef.value?.fetchList()
|
||||
}
|
||||
}
|
||||
|
||||
function handleTabChange() {
|
||||
pagination.page = 1
|
||||
formVisible.value = false
|
||||
editingId.value = null
|
||||
keyword.value = ''
|
||||
if (isVehicleTab.value) {
|
||||
fetchList()
|
||||
return
|
||||
}
|
||||
nextTick(() => {
|
||||
refreshPersonnelPanel()
|
||||
const innerVisible = computed({
|
||||
get: () => props.modelValue,
|
||||
set: (value: boolean) => emit('update:modelValue', value)
|
||||
})
|
||||
}
|
||||
|
||||
function handleOpen() {
|
||||
keyword.value = ''
|
||||
activeTab.value = 'carrier'
|
||||
pagination.page = 1
|
||||
pagination.pageSize = DEFAULT_LIST_PAGE_SIZE
|
||||
pagination.total = 0
|
||||
rows.value = []
|
||||
formVisible.value = false
|
||||
editingId.value = null
|
||||
fetchList()
|
||||
}
|
||||
const loading = ref(false)
|
||||
const keyword = ref('')
|
||||
const activeTab = ref<LibraryTab>('carrier')
|
||||
const rows = ref<Vehicle[]>([])
|
||||
|
||||
function handleOpenCreate() {
|
||||
editingId.value = null
|
||||
formVisible.value = true
|
||||
}
|
||||
const pagination = reactive({
|
||||
page: 1,
|
||||
pageSize: DEFAULT_LIST_PAGE_SIZE,
|
||||
total: 0
|
||||
})
|
||||
|
||||
function handleOpenEdit(row: Vehicle) {
|
||||
editingId.value = row.id
|
||||
formVisible.value = true
|
||||
}
|
||||
const formVisible = ref(false)
|
||||
const editingId = ref<string | null>(null)
|
||||
const pasteRecognizeVisible = ref(false)
|
||||
const carrierPersonnelPanelRef = ref<InstanceType<typeof PlPersonnelLibrarySelectPanel>>()
|
||||
const selfPersonnelPanelRef = ref<InstanceType<typeof PlPersonnelLibrarySelectPanel>>()
|
||||
|
||||
function handleFormSaved(payload: { mode: 'create' | 'edit'; vehicle: VehicleDetail }) {
|
||||
formVisible.value = false
|
||||
editingId.value = null
|
||||
if (payload.mode === 'create') {
|
||||
handleConfirm(payload.vehicle)
|
||||
return
|
||||
const isVehicleTab = computed(() => activeTab.value === 'carrier' || activeTab.value === 'self')
|
||||
const vehicleTab = computed<VehicleTab>(() => (activeTab.value === 'self' ? 'self' : 'carrier'))
|
||||
|
||||
async function fetchList() {
|
||||
if (!isVehicleTab.value) return
|
||||
loading.value = true
|
||||
try {
|
||||
const res = await vehicleApi.list({
|
||||
vehicleType: vehicleTab.value,
|
||||
q: keyword.value.trim() || undefined,
|
||||
page: pagination.page,
|
||||
pageSize: pagination.pageSize
|
||||
})
|
||||
const { list, total } = pickBxPageResult<Vehicle>(res)
|
||||
rows.value = list
|
||||
pagination.total = total
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
fetchList()
|
||||
}
|
||||
|
||||
async function handlePasteRecognizeDone(result?: PasteCommitResult) {
|
||||
if (!result?.vehicleId) {
|
||||
function handleSearch() {
|
||||
pagination.page = 1
|
||||
fetchList()
|
||||
return
|
||||
}
|
||||
try {
|
||||
const res = await vehicleApi.get(result.vehicleId)
|
||||
const vehicle = pickBxData<VehicleDetail>(res)
|
||||
if (vehicle?.id) {
|
||||
handleConfirm(vehicle)
|
||||
|
||||
function refreshPersonnelPanel() {
|
||||
if (activeTab.value === 'carrier_personnel') {
|
||||
carrierPersonnelPanelRef.value?.resetPanel()
|
||||
carrierPersonnelPanelRef.value?.fetchList()
|
||||
} else if (activeTab.value === 'self_personnel') {
|
||||
selfPersonnelPanelRef.value?.resetPanel()
|
||||
selfPersonnelPanelRef.value?.fetchList()
|
||||
}
|
||||
}
|
||||
|
||||
function handleTabChange() {
|
||||
pagination.page = 1
|
||||
formVisible.value = false
|
||||
editingId.value = null
|
||||
keyword.value = ''
|
||||
if (isVehicleTab.value) {
|
||||
fetchList()
|
||||
return
|
||||
}
|
||||
} catch {
|
||||
// ignore
|
||||
nextTick(() => {
|
||||
refreshPersonnelPanel()
|
||||
})
|
||||
}
|
||||
fetchList()
|
||||
}
|
||||
|
||||
function handleConfirm(row: Vehicle) {
|
||||
emit('select', row)
|
||||
innerVisible.value = false
|
||||
}
|
||||
function handleOpen() {
|
||||
keyword.value = ''
|
||||
activeTab.value = 'carrier'
|
||||
pagination.page = 1
|
||||
pagination.pageSize = DEFAULT_LIST_PAGE_SIZE
|
||||
pagination.total = 0
|
||||
rows.value = []
|
||||
formVisible.value = false
|
||||
editingId.value = null
|
||||
fetchList()
|
||||
}
|
||||
|
||||
function handleOpenCreate() {
|
||||
editingId.value = null
|
||||
formVisible.value = true
|
||||
}
|
||||
|
||||
function handleOpenEdit(row: Vehicle) {
|
||||
editingId.value = row.id
|
||||
formVisible.value = true
|
||||
}
|
||||
|
||||
function handleFormSaved(payload: { mode: 'create' | 'edit'; vehicle: VehicleDetail }) {
|
||||
formVisible.value = false
|
||||
editingId.value = null
|
||||
if (payload.mode === 'create') {
|
||||
handleConfirm(payload.vehicle)
|
||||
return
|
||||
}
|
||||
fetchList()
|
||||
}
|
||||
|
||||
async function handlePasteRecognizeDone(result?: PasteCommitResult) {
|
||||
if (!result?.vehicleId) {
|
||||
fetchList()
|
||||
return
|
||||
}
|
||||
try {
|
||||
const res = await vehicleApi.get(result.vehicleId)
|
||||
const vehicle = pickBxData<VehicleDetail>(res)
|
||||
if (vehicle?.id) {
|
||||
handleConfirm(vehicle)
|
||||
return
|
||||
}
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
fetchList()
|
||||
}
|
||||
|
||||
function handleConfirm(row: Vehicle) {
|
||||
emit('select', row)
|
||||
innerVisible.value = false
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.pl-vehicle-library-select-dialog {
|
||||
:deep(.el-dialog__body) {
|
||||
min-height: 560px;
|
||||
}
|
||||
.pl-vehicle-library-select-dialog {
|
||||
:deep(.el-dialog__body) {
|
||||
min-height: 560px;
|
||||
}
|
||||
|
||||
.dialog-list-panel {
|
||||
.list-toolbar {
|
||||
margin-bottom: 0;
|
||||
padding: 10px 0 12px;
|
||||
.dialog-list-panel {
|
||||
.list-toolbar {
|
||||
margin-bottom: 0;
|
||||
padding: 10px 0 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pl-vehicle-library-select-tabs {
|
||||
:deep(.el-tabs__header) {
|
||||
margin-bottom: 0;
|
||||
.pl-vehicle-library-select-tabs {
|
||||
:deep(.el-tabs__header) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pl-vehicle-library-select-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.pl-vehicle-library-select-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.pl-vehicle-library-select-search {
|
||||
width: 280px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.pl-vehicle-library-select-search {
|
||||
width: 280px;
|
||||
max-width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,108 @@
|
||||
<template>
|
||||
<div class="pl-vehicle-personnel-select-cell">
|
||||
<el-select
|
||||
:model-value="row.personnelId"
|
||||
placeholder="请选择人员"
|
||||
filterable
|
||||
remote
|
||||
clearable
|
||||
class="pl-vehicle-personnel-select-cell__select"
|
||||
:remote-method="searchPersonnel"
|
||||
:loading="loading"
|
||||
@focus="onPersonnelSelectFocus"
|
||||
@update:model-value="handleSelect"
|
||||
>
|
||||
<el-option v-for="p in options" :key="p.id" :label="formatPersonnelLabel(p)" :value="p.id" />
|
||||
</el-select>
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
class="pl-vehicle-personnel-select-cell__action"
|
||||
@click="handleOpenCreate"
|
||||
>
|
||||
新建
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="row.personnelId"
|
||||
link
|
||||
type="primary"
|
||||
class="pl-vehicle-personnel-select-cell__action"
|
||||
@click="handleOpenEdit"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<PlPersonnelFormDialog
|
||||
v-model="formVisible"
|
||||
:affiliation="affiliation"
|
||||
:personnel-id="editingPersonnelId"
|
||||
:initial-personnel-type="initialPersonnelType"
|
||||
@saved="handleFormSaved"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import PlPersonnelFormDialog from '@/components/business/pl-personnel-form-dialog/index.vue'
|
||||
import type { Personnel, PersonnelDetail, VehiclePersonnelRow } from '@/api/pl'
|
||||
|
||||
const props = defineProps<{
|
||||
row: VehiclePersonnelRow
|
||||
options: Personnel[]
|
||||
loading: boolean
|
||||
affiliation: 'carrier' | 'self'
|
||||
searchPersonnel: (keyword: string) => void
|
||||
onPersonnelSelectFocus: () => void
|
||||
formatPersonnelLabel: (person: Personnel) => string
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
select: [personnelId: string | undefined]
|
||||
saved: [payload: { mode: 'create' | 'edit'; personnel: PersonnelDetail }]
|
||||
}>()
|
||||
|
||||
const formVisible = ref(false)
|
||||
const editingPersonnelId = ref<string | null>(null)
|
||||
|
||||
const initialPersonnelType = computed(() => {
|
||||
if (editingPersonnelId.value) return null
|
||||
return props.row.role === 'escort' ? 'escort' : 'driver'
|
||||
})
|
||||
|
||||
function handleSelect(personnelId: string | undefined) {
|
||||
emit('select', personnelId)
|
||||
}
|
||||
|
||||
function handleOpenCreate() {
|
||||
editingPersonnelId.value = null
|
||||
formVisible.value = true
|
||||
}
|
||||
|
||||
function handleOpenEdit() {
|
||||
if (!props.row.personnelId) return
|
||||
editingPersonnelId.value = props.row.personnelId
|
||||
formVisible.value = true
|
||||
}
|
||||
|
||||
function handleFormSaved(payload: { mode: 'create' | 'edit'; personnel: PersonnelDetail }) {
|
||||
emit('saved', payload)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.pl-vehicle-personnel-select-cell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pl-vehicle-personnel-select-cell__select {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.pl-vehicle-personnel-select-cell__action {
|
||||
flex-shrink: 0;
|
||||
padding: 0 4px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,65 @@
|
||||
<template>
|
||||
<div class="pl-vehicle-personnel-summary-cell" @click.stop>
|
||||
<span
|
||||
class="pl-vehicle-personnel-summary-cell__text"
|
||||
:class="{ 'is-empty': !summaryText }"
|
||||
:title="summaryText || '暂无关联人员'"
|
||||
>
|
||||
{{ summaryText || '—' }}
|
||||
</span>
|
||||
<div class="pl-vehicle-personnel-summary-cell__actions">
|
||||
<el-button link type="primary" @click="emit('manage')">
|
||||
<el-icon><Edit /></el-icon>管理
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Edit } from '@element-plus/icons-vue'
|
||||
import type { Vehicle } from '@/api/pl'
|
||||
import { normalizePlPersonnelSummaryDisplay } from '@/utils/pl-display'
|
||||
|
||||
const props = defineProps<{
|
||||
vehicle: Vehicle
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
manage: []
|
||||
}>()
|
||||
|
||||
const summaryText = computed(() =>
|
||||
normalizePlPersonnelSummaryDisplay(props.vehicle.personnelSummary)
|
||||
)
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.pl-vehicle-personnel-summary-cell {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.pl-vehicle-personnel-summary-cell__text {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--text, #1e293b);
|
||||
font-size: 13px;
|
||||
|
||||
&.is-empty {
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
}
|
||||
}
|
||||
|
||||
.pl-vehicle-personnel-summary-cell__actions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,31 @@
|
||||
import type { Personnel, PersonnelDetail, VehiclePersonnelRow } from '@/api/pl'
|
||||
|
||||
/** 车辆关联人员:人员表单保存后同步下拉选项并选中当前行 */
|
||||
export function usePlVehiclePersonnelQuickCreate(options: {
|
||||
personnelOptions: Ref<Personnel[]>
|
||||
onSelect: (row: VehiclePersonnelRow, personnelId: string | undefined) => void
|
||||
}) {
|
||||
function upsertPersonnelOption(personnel: PersonnelDetail) {
|
||||
const next = personnel as Personnel
|
||||
const index = options.personnelOptions.value.findIndex((item) => item.id === next.id)
|
||||
if (index >= 0) {
|
||||
const list = [...options.personnelOptions.value]
|
||||
list[index] = next
|
||||
options.personnelOptions.value = list
|
||||
return
|
||||
}
|
||||
options.personnelOptions.value = [next, ...options.personnelOptions.value]
|
||||
}
|
||||
|
||||
function handlePersonnelFormSaved(
|
||||
row: VehiclePersonnelRow,
|
||||
payload: { mode: 'create' | 'edit'; personnel: PersonnelDetail }
|
||||
) {
|
||||
upsertPersonnelOption(payload.personnel)
|
||||
options.onSelect(row, payload.personnel.id)
|
||||
}
|
||||
|
||||
return {
|
||||
handlePersonnelFormSaved
|
||||
}
|
||||
}
|
||||
@@ -161,6 +161,18 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('personnelSummary')"
|
||||
prop="personnelSummary"
|
||||
label="关联人员"
|
||||
min-width="220"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlVehiclePersonnelSummaryCell :vehicle="row" @manage="handleEdit(row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('certAttachments')"
|
||||
label="证书附件"
|
||||
@@ -172,7 +184,7 @@
|
||||
<PlCertListAttachmentCell
|
||||
:cert-list="row.certList"
|
||||
show-vehicle-part
|
||||
:media-active="mediaActive"
|
||||
use-placeholder-thumb
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -205,19 +217,6 @@
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('personnelSummary')"
|
||||
prop="personnelSummary"
|
||||
label="关联人员"
|
||||
min-width="160"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ normalizePlPersonnelSummaryDisplay(row.personnelSummary) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('remark')"
|
||||
prop="remark"
|
||||
@@ -327,26 +326,19 @@
|
||||
</div>
|
||||
<ListTable table-key="pl-self-vehicle-2" :data="personnelList" stripe class="list-table sub-table">
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column label="姓名" min-width="160">
|
||||
<el-table-column label="姓名" min-width="260">
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-model="row.personnelId"
|
||||
placeholder="请选择人员"
|
||||
filterable
|
||||
remote
|
||||
clearable
|
||||
:remote-method="searchPersonnel"
|
||||
<PlVehiclePersonnelSelectCell
|
||||
:row="row"
|
||||
:options="getPersonnelOptionsForRow(row)"
|
||||
:loading="personnelSelectLoading"
|
||||
@focus="onPersonnelSelectFocus"
|
||||
@change="(id: string | undefined) => handlePersonnelSelect(row, id)"
|
||||
>
|
||||
<el-option
|
||||
v-for="p in getPersonnelOptionsForRow(row)"
|
||||
:key="p.id"
|
||||
:label="formatPersonnelLabel(p)"
|
||||
:value="p.id"
|
||||
/>
|
||||
</el-select>
|
||||
affiliation="self"
|
||||
:search-personnel="searchPersonnel"
|
||||
:on-personnel-select-focus="onPersonnelSelectFocus"
|
||||
:format-personnel-label="formatPersonnelLabel"
|
||||
@select="(id) => handlePersonnelSelect(row, id)"
|
||||
@saved="(payload) => handlePersonnelFormSaved(row, payload)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="手机号" min-width="120">
|
||||
@@ -484,6 +476,9 @@ import PlVehicleCertPartTabs from '@/components/business/pl-vehicle-cert-part-ta
|
||||
import PlVehicleCertPersonnelTabs from '@/components/business/pl-vehicle-cert-personnel-tabs/index.vue'
|
||||
import PlVehicleCertBadges from '@/components/business/pl-vehicle-cert-badges/index.vue'
|
||||
import PlCertListAttachmentCell from '@/components/business/pl-cert-list-attachment-cell/index.vue'
|
||||
import PlVehiclePersonnelSelectCell from '@/components/business/pl-vehicle-personnel-select-cell/index.vue'
|
||||
import PlVehiclePersonnelSummaryCell from '@/components/business/pl-vehicle-personnel-summary-cell/index.vue'
|
||||
import { usePlVehiclePersonnelQuickCreate } from '@/composables/usePlVehiclePersonnelQuickCreate'
|
||||
import type { VehiclePersonnelViewRow } from '@/components/business/pl-vehicle-personnel-view-list/index.vue'
|
||||
import SystemViewDialog, {
|
||||
type ViewSection
|
||||
@@ -549,12 +544,12 @@ const {
|
||||
|
||||
const listColumnDefs = [
|
||||
{ prop: 'photoUrls', label: '照片' },
|
||||
{ prop: 'personnelSummary', label: '关联人员' },
|
||||
{ prop: 'certAttachments', label: '证书附件' },
|
||||
{ prop: 'vehicleType', label: '车辆类型' },
|
||||
{ prop: 'vehicleStatus', label: '车辆状态' },
|
||||
{ prop: 'loadCapacity', label: '载重(吨)' },
|
||||
{ prop: 'carrierName', label: '承运商', defaultVisible: false },
|
||||
{ prop: 'personnelSummary', label: '关联人员' },
|
||||
{ prop: 'remark', label: '备注', defaultVisible: false }
|
||||
]
|
||||
|
||||
@@ -578,6 +573,11 @@ const {
|
||||
personnelAffiliation: 'self'
|
||||
})
|
||||
})
|
||||
|
||||
const { handlePersonnelFormSaved } = usePlVehiclePersonnelQuickCreate({
|
||||
personnelOptions,
|
||||
onSelect: handlePersonnelSelect
|
||||
})
|
||||
const selectedRows = ref<Vehicle[]>([])
|
||||
const dialogVisible = ref(false)
|
||||
const dialogTitle = ref('')
|
||||
|
||||
@@ -166,6 +166,18 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('personnelSummary')"
|
||||
prop="personnelSummary"
|
||||
label="关联人员"
|
||||
min-width="220"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<PlVehiclePersonnelSummaryCell :vehicle="row" @manage="handleEdit(row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('certAttachments')"
|
||||
label="证书附件"
|
||||
@@ -177,7 +189,7 @@
|
||||
<PlCertListAttachmentCell
|
||||
:cert-list="row.certList"
|
||||
show-vehicle-part
|
||||
:media-active="mediaActive"
|
||||
use-placeholder-thumb
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -212,19 +224,6 @@
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('personnelSummary')"
|
||||
prop="personnelSummary"
|
||||
label="关联人员"
|
||||
min-width="160"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ normalizePlPersonnelSummaryDisplay(row.personnelSummary) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isColumnVisible('remark')"
|
||||
prop="remark"
|
||||
@@ -336,26 +335,19 @@
|
||||
</div>
|
||||
<ListTable table-key="pl-vehicle-2" :data="personnelList" stripe class="list-table sub-table">
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column label="姓名" min-width="160">
|
||||
<el-table-column label="姓名" min-width="260">
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-model="row.personnelId"
|
||||
placeholder="请选择人员"
|
||||
filterable
|
||||
remote
|
||||
clearable
|
||||
:remote-method="searchPersonnel"
|
||||
<PlVehiclePersonnelSelectCell
|
||||
:row="row"
|
||||
:options="getPersonnelOptionsForRow(row)"
|
||||
:loading="personnelSelectLoading"
|
||||
@focus="onPersonnelSelectFocus"
|
||||
@change="(id: string | undefined) => handlePersonnelSelect(row, id)"
|
||||
>
|
||||
<el-option
|
||||
v-for="p in getPersonnelOptionsForRow(row)"
|
||||
:key="p.id"
|
||||
:label="formatPersonnelLabel(p)"
|
||||
:value="p.id"
|
||||
/>
|
||||
</el-select>
|
||||
affiliation="carrier"
|
||||
:search-personnel="searchPersonnel"
|
||||
:on-personnel-select-focus="onPersonnelSelectFocus"
|
||||
:format-personnel-label="formatPersonnelLabel"
|
||||
@select="(id) => handlePersonnelSelect(row, id)"
|
||||
@saved="(payload) => handlePersonnelFormSaved(row, payload)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="手机号" min-width="120">
|
||||
@@ -504,6 +496,9 @@ import PlVehicleCertPersonnelTabs from '@/components/business/pl-vehicle-cert-pe
|
||||
import PlVehicleCertBadges from '@/components/business/pl-vehicle-cert-badges/index.vue'
|
||||
import PlCertListAttachmentCell from '@/components/business/pl-cert-list-attachment-cell/index.vue'
|
||||
import PlPasteRecognizeDialog from '@/components/business/pl-paste-recognize-dialog/index.vue'
|
||||
import PlVehiclePersonnelSelectCell from '@/components/business/pl-vehicle-personnel-select-cell/index.vue'
|
||||
import PlVehiclePersonnelSummaryCell from '@/components/business/pl-vehicle-personnel-summary-cell/index.vue'
|
||||
import { usePlVehiclePersonnelQuickCreate } from '@/composables/usePlVehiclePersonnelQuickCreate'
|
||||
import type { VehiclePersonnelViewRow } from '@/components/business/pl-vehicle-personnel-view-list/index.vue'
|
||||
import SystemViewDialog, {
|
||||
type ViewSection
|
||||
@@ -561,12 +556,12 @@ const {
|
||||
|
||||
const listColumnDefs = [
|
||||
{ prop: 'photoUrls', label: '照片' },
|
||||
{ prop: 'personnelSummary', label: '关联人员' },
|
||||
{ prop: 'certAttachments', label: '证书附件' },
|
||||
{ prop: 'vehicleType', label: '车辆类型' },
|
||||
{ prop: 'vehicleStatus', label: '车辆状态' },
|
||||
{ prop: 'loadCapacity', label: '载重(吨)' },
|
||||
{ prop: 'carrierName', label: '承运商' },
|
||||
{ prop: 'personnelSummary', label: '关联人员' },
|
||||
{ prop: 'remark', label: '备注', defaultVisible: false }
|
||||
]
|
||||
|
||||
@@ -595,6 +590,11 @@ const {
|
||||
: undefined
|
||||
})
|
||||
})
|
||||
|
||||
const { handlePersonnelFormSaved } = usePlVehiclePersonnelQuickCreate({
|
||||
personnelOptions,
|
||||
onSelect: handlePersonnelSelect
|
||||
})
|
||||
const selectedRows = ref<Vehicle[]>([])
|
||||
const dialogVisible = ref(false)
|
||||
const pasteVisible = ref(false)
|
||||
|
||||
Reference in new issue
Block a user