提交
This commit is contained in:
1 parent
ee4abd361e
commit
c4cc7009e3
46 files changed
+16201
-9698
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_storage_release_review_storagereleasereviewdialog_vue", "label": "StorageReleaseReviewDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L1"}, {"id": "storage_release_review_storagereleasereviewdialog_fullfileurl", "label": "fullFileUrl()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L173"}, {"id": "storage_release_review_storagereleasereviewdialog_isimagefile", "label": "isImageFile()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L179"}, {"id": "storage_release_review_storagereleasereviewdialog_removeattachment", "label": "removeAttachment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L185"}, {"id": "storage_release_review_storagereleasereviewdialog_getlist", "label": "_getList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L191"}, {"id": "storage_release_review_storagereleasereviewdialog_resetform", "label": "resetForm()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L258"}, {"id": "storage_release_review_storagereleasereviewdialog_handlesubmit", "label": "handleSubmit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L267"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_storage_release_review_storagereleasereviewdialog_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L120", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_storage_release_review_storagereleasereviewdialog_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L121", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_storage_release_review_storagereleasereviewdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_business", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L122", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_storage_release_review_storagereleasereviewdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_storage_release_review", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L123", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_storage_release_review_storagereleasereviewdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_fullscreen_loading", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L129", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_storage_release_review_storagereleasereviewdialog_vue", "target": "storage_release_review_storagereleasereviewdialog_fullfileurl", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/StorageReleaseReviewDialog.vue", "source_location": "L173", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_storage_release_review_storagereleasereviewdialog_vue", "target": "storage_release_review_storagereleasereviewdialog_isimagefile",Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_fullmoon_todo_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L1"}, {"id": "fullmoon_todo_index_loaddata", "label": "loadData()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L638"}, {"id": "fullmoon_todo_index_handlesearch", "label": "handleSearch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L656"}, {"id": "fullmoon_todo_index_handlereset", "label": "handleReset()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L661"}, {"id": "fullmoon_todo_index_formatymdfromany", "label": "formatYmdFromAny()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L669"}, {"id": "fullmoon_todo_index_normalizenewbornsex", "label": "normalizeNewbornSex()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L677"}, {"id": "fullmoon_todo_index_handleexportinsurancesheet", "label": "handleExportInsuranceSheet()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L685"}, {"id": "fullmoon_todo_index_resolveprotocolid", "label": "resolveProtocolId()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L834"}, {"id": "fullmoon_todo_index_resetformfields", "label": "resetFormFields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L858"}, {"id": "fullmoon_todo_index_resetdialogcontext", "label": "resetDialogContext()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L874"}, {"id": "fullmoon_todo_index_handleinsurancedialogclosed", "label": "handleInsuranceDialogClosed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L881"}, {"id": "fullmoon_todo_index_parseinsuranceattachmentsfromurls", "label": "parseInsuranceAttachmentsFromUrls()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L885"}, {"id": "fullmoon_todo_index_buildinsuranceattachmentsvalue", "label": "buildInsuranceAttachmentsValue()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L897"}, {"id": "fullmoon_todo_index_buildinsurancepayload", "label": "buildInsurancePayload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L904"}, {"id": "fullmoon_todo_index_handlebatchedit", "label": "handleBatchEdit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L921"}, {"id": "fullmoon_todo_index_handleedit", "label": "handleEdit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L934"}, {"id": "fullmoon_todo_index_handleinsurancecompanychange", "label": "handleInsuranceCompanyChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L957"}, {"id": "fullmoon_todo_index_handleinsurancetypechange", "label": "handleInsuranceTypeChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L965"}, {"id": "fullmoon_todo_index_handlesubmit", "label": "handleSubmit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L972"}, {"id": "fullmoon_todo_index_fullfileurl", "label": "fullFileUrl()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/fullmoon-todo/index.vue", "source_location": "L1034"}, {"id": "fullmoon_todo_index_isimagefile", "label": "isImageFile()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admiLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_protocolformdialog_vue", "label": "ProtocolFormDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1"}, {"id": "protocol_protocolformdialog_fmtmoney", "label": "fmtMoney()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1227"}, {"id": "protocol_protocolformdialog_createemptytransport", "label": "createEmptyTransport()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1291"}, {"id": "protocol_protocolformdialog_fullfileurl", "label": "fullFileUrl()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1311"}, {"id": "protocol_protocolformdialog_loadethnicoptions", "label": "loadEthnicOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1318"}, {"id": "protocol_protocolformdialog_ensureethnicoptioninlist", "label": "ensureEthnicOptionInList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1329"}, {"id": "protocol_protocolformdialog_expressname", "label": "expressName()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1357"}, {"id": "protocol_protocolformdialog_for", "label": "for()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L2025"}, {"id": "protocol_protocolformdialog_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L2561"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_protocolformdialog_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1177", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_protocolformdialog_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1178", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_protocolformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_collection_protocol", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1190", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_protocolformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_business", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1196", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_protocolformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_download_attachment", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1197", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_protocolformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_admin", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1198", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_protocolformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_ethnic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolFormDialog.vue", "source_location": "L1211", "weight": 1.0}, {"source":Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_service_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1"}, {"id": "channel_service_order_index_validate", "label": "validate()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1297"}, {"id": "channel_service_order_index_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1302"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_service_order_index_vue", "target": "channel_service_order_index_validate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1297", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_service_order_index_vue", "target": "channel_service_order_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1302", "weight": 1.0}], "raw_calls": [{"caller_nid": "channel_service_order_index_if", "callee": "warning", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1304"}, {"caller_nid": "channel_service_order_index_if", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1307"}, {"caller_nid": "channel_service_order_index_if", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1307"}, {"caller_nid": "channel_service_order_index_if", "callee": "warning", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1309"}, {"caller_nid": "channel_service_order_index_if", "callee": "some", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1312"}, {"caller_nid": "channel_service_order_index_if", "callee": "warning", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue", "source_location": "L1316"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_protocol_finance_confirm_fields_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/protocol-finance-confirm-fields/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_sop_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/sop/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_vue", "label": "DonationFormDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1"}, {"id": "list_donationformdialog_createemptytransport", "label": "createEmptyTransport()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1019"}, {"id": "list_donationformdialog_fullfileurl", "label": "fullFileUrl()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1039"}, {"id": "list_donationformdialog_loadethnicoptions", "label": "loadEthnicOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1046"}, {"id": "list_donationformdialog_ensureethnicoptioninlist", "label": "ensureEthnicOptionInList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1057"}, {"id": "list_donationformdialog_samplerowlabel", "label": "sampleRowLabel()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1085"}, {"id": "list_donationformdialog_resetform", "label": "resetForm()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1169"}, {"id": "list_donationformdialog_scrolltosection", "label": "scrollToSection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1224"}, {"id": "list_donationformdialog_normalizesamplerow", "label": "normalizeSampleRow()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1232"}, {"id": "list_donationformdialog_openbatchtransportdialog", "label": "openBatchTransportDialog()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1255"}, {"id": "list_donationformdialog_confirmbatchtransportapply", "label": "confirmBatchTransportApply()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1263"}, {"id": "list_donationformdialog_addsample", "label": "addSample()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1277"}, {"id": "list_donationformdialog_removesample", "label": "removeSample()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1291"}, {"id": "list_donationformdialog_handleopenforadd", "label": "handleOpenForAdd()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1295"}, {"id": "list_donationformdialog_applydonationbundletoform", "label": "applyDonationBundleToForm()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1343"}, {"id": "list_donationformdialog_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L1978"}, {"id": "list_donationformdialog_ensuredonationprotocolnoinoptions", "label": "ensureDonationProtocolNoInOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L2051"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L935", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_service_order_serviceordertxndialog_vue", "label": "ServiceOrderTxnDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/ServiceOrderTxnDialog.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "label": "TaskOutputProductDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L1"}, {"id": "category_index_handleview", "label": "handleView()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L489"}, {"id": "category_index_handlecategorytableselectionchange", "label": "handleCategoryTableSelectionChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L494"}, {"id": "category_index_collectids", "label": "collectIds()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L585"}, {"id": "category_index_catch", "label": "catch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L964"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L441", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_fullscreen_loading", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L442", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L443", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "vue_draggable_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L444", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L445", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_system_view_dialog_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L446", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_admin", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L447", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_fetch_paged_list", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L457", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "category_index_handleview", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L489", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "category_index_handlecategorytableselectionchange", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L494", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "category_index_collectids", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/category/index.vue", "source_location": "L585", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_category_index_vue", "target": "category_index_catLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_service_order_serviceordertxntable_vue", "label": "ServiceOrderTxnTable.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/ServiceOrderTxnTable.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_storage_cert_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/storage-cert/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_payment_info_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/payment-info/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_service_order_finance_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L1"}, {"id": "channel_service_order_finance_index_txnamountlabel", "label": "txnAmountLabel()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L474"}, {"id": "channel_service_order_finance_index_financesubmitremarkdisplay", "label": "financeSubmitRemarkDisplay()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L482"}, {"id": "channel_service_order_finance_index_fullfileurl", "label": "fullFileUrl()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L488"}, {"id": "channel_service_order_finance_index_isimagefile", "label": "isImageFile()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L495"}, {"id": "channel_service_order_finance_index_isvideofile", "label": "isVideoFile()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L505"}, {"id": "channel_service_order_finance_index_formatlocaldate", "label": "formatLocalDate()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L525"}, {"id": "channel_service_order_finance_index_loaddata", "label": "loadData()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L556"}, {"id": "channel_service_order_finance_index_handlesearch", "label": "handleSearch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L583"}, {"id": "channel_service_order_finance_index_handlereset", "label": "handleReset()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L588"}, {"id": "channel_service_order_finance_index_handletabchange", "label": "handleTabChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L597"}, {"id": "channel_service_order_finance_index_handleview", "label": "handleView()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L723"}, {"id": "channel_service_order_finance_index_openconfirmdialog", "label": "openConfirmDialog()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L752"}, {"id": "channel_service_order_finance_index_handlevoidtxn", "label": "handleVoidTxn()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L759"}, {"id": "channel_service_order_finance_index_submitconfirm", "label": "submitConfirm()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L777"}, {"id": "channel_service_order_finance_index_executesubmitconfirm", "label": "executeSubmitConfirm()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L786"}, {"id": "channel_service_order_finance_index_handleconfirmattachmentchange", "label": "handleConfirmAttachmentChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L809"}, {"id": "channel_service_order_finance_index_hasuploadingattachments", "label": "hasUploadingAttachments()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue", "source_location": "L849"}, {"id": "channel_service_order_finance_index_handlepreviewattachment", "label": "handlePreviewAttachment()", "file_type": "code", "source_file": "/UsLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_product_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1"}, {"id": "product_index_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1180"}, {"id": "product_index_revokelocalpreview", "label": "revokeLocalPreview()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L2259"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_product_index_vue", "target": "product_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1180", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_product_index_vue", "target": "product_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1191", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_product_index_vue", "target": "product_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1232", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_product_index_vue", "target": "product_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1574", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_product_index_vue", "target": "product_index_revokelocalpreview", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L2259", "weight": 1.0}], "raw_calls": [{"caller_nid": "product_index_if", "callee": "revokeObjectURL", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1182"}, {"caller_nid": "product_index_if", "callee": "revokeObjectURL", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1193"}, {"caller_nid": "product_index_if", "callee": "applyCategoryPriceCoefficientIfNeeded", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1233"}, {"caller_nid": "product_index_if", "callee": "loadCategoryParameters", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1234"}, {"caller_nid": "product_index_if", "callee": "error", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1575"}, {"caller_nid": "product_index_if", "callee": "error", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L1576"}, {"caller_nid": "product_index_revokelocalpreview", "callee": "withFullscreenLoading", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L2262"}, {"caller_nid": "product_index_revokelocalpreview", "callee": "error", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/product/index.vue", "source_location": "L2266"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1025", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1026", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_channelviewdialog_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1027", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_fullscreen_loading", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1028", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_business", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1029", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_download_attachment", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1030", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_common_amount_input_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1031", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_money_format", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1032", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1033", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_channel_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_admin", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue", "source_location": "L1046", "weight": 1.0}], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
@@ -217,12 +217,9 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
<template
|
||||
v-if="viewData.financeSubmitAttachmentFiles?.length"
|
||||
#finance-submit-attachments
|
||||
>
|
||||
<template v-if="viewFinanceSubmitAttachmentFiles.length" #finance-submit-attachments>
|
||||
<ProtocolAttachmentReadonly
|
||||
:files="viewData.financeSubmitAttachmentFiles"
|
||||
:files="viewFinanceSubmitAttachmentFiles"
|
||||
@preview="handlePreviewAttachment"
|
||||
@download="handleDownloadAttachment"
|
||||
/>
|
||||
@@ -243,39 +240,88 @@
|
||||
<el-dialog
|
||||
v-model="confirmVisible"
|
||||
title="确认操作"
|
||||
width="640px"
|
||||
:width="txnTypeHasProducts(currentRow?.txnType) ? '960px' : '640px'"
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
class="finance-receipt-dialog"
|
||||
>
|
||||
<div v-if="currentRow" class="dialog-form-layout">
|
||||
<div v-if="currentRow" v-loading="confirmDetailLoading" class="dialog-form-layout">
|
||||
<!-- 流水摘要 -->
|
||||
<div class="detail-section">
|
||||
<h4 class="detail-section-title">流水信息</h4>
|
||||
<div class="view-field-row">
|
||||
<span class="view-field-label">流水类型:</span>
|
||||
<el-tag :type="txnTypeTagType(currentRow.txnType)" size="small">
|
||||
{{ txnTypeLabel(currentRow.txnType) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
<div class="view-field-row">
|
||||
<span class="view-field-label">{{ txnAmountLabel(currentRow.txnType) }}:</span>
|
||||
<span class="amount-text">¥{{ formatAmount(currentRow.amount) }}</span>
|
||||
</div>
|
||||
<div class="view-field-row" v-if="currentRow.financeSubmitByName || currentRow.financeSubmitBy">
|
||||
<span class="view-field-label">提交人:</span>
|
||||
<span class="view-field-text">{{ currentRow.financeSubmitByName || currentRow.financeSubmitBy }}</span>
|
||||
</div>
|
||||
<div class="view-field-row" v-if="currentRow.financeSubmitTime">
|
||||
<span class="view-field-label">提交时间:</span>
|
||||
<span class="view-field-text">{{ currentRow.financeSubmitTime }}</span>
|
||||
</div>
|
||||
<div class="view-field-row" v-if="financeSubmitRemarkDisplay(currentRow)">
|
||||
<span class="view-field-label">备注:</span>
|
||||
<span class="view-field-text">{{ financeSubmitRemarkDisplay(currentRow) }}</span>
|
||||
<div class="confirm-flow-kv-grid">
|
||||
<div class="confirm-flow-kv">
|
||||
<span class="confirm-flow-kv__label">流水类型</span>
|
||||
<div class="confirm-flow-kv__value">
|
||||
<el-tag :type="txnTypeTagType(currentRow.txnType)" size="small">
|
||||
{{ txnTypeLabel(currentRow.txnType) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
<div class="confirm-flow-kv">
|
||||
<span class="confirm-flow-kv__label">{{ txnAmountLabel(currentRow.txnType) }}</span>
|
||||
<span class="confirm-flow-kv__value amount-text">¥{{ formatAmount(currentRow.amount) }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="currentRow.financeSubmitByName || currentRow.financeSubmitBy"
|
||||
class="confirm-flow-kv"
|
||||
>
|
||||
<span class="confirm-flow-kv__label">提交人</span>
|
||||
<span class="confirm-flow-kv__value">{{
|
||||
currentRow.financeSubmitByName || currentRow.financeSubmitBy
|
||||
}}</span>
|
||||
</div>
|
||||
<div v-if="currentRow.financeSubmitTime" class="confirm-flow-kv">
|
||||
<span class="confirm-flow-kv__label">提交时间</span>
|
||||
<span class="confirm-flow-kv__value">{{ currentRow.financeSubmitTime }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="financeSubmitRemarkDisplay(currentRow)"
|
||||
class="confirm-flow-kv confirm-flow-kv--full"
|
||||
>
|
||||
<span class="confirm-flow-kv__label">备注</span>
|
||||
<span class="confirm-flow-kv__value confirm-flow-kv__value--multiline">{{
|
||||
financeSubmitRemarkDisplay(currentRow)
|
||||
}}</span>
|
||||
</div>
|
||||
<div v-if="showConfirmFlowAttachments" class="confirm-flow-kv confirm-flow-kv--full">
|
||||
<span class="confirm-flow-kv__label">{{ confirmTxnSubmitAttachmentLabel }}</span>
|
||||
<div class="confirm-flow-kv__value">
|
||||
<ProtocolAttachmentReadonly
|
||||
:files="confirmTxnSubmitAttachmentFiles"
|
||||
@preview="handlePreviewAttachment"
|
||||
@download="handleDownloadAttachment"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="txnTypeHasProducts(currentRow.txnType) && confirmProducts.length"
|
||||
class="detail-section confirm-product-section"
|
||||
>
|
||||
<h4 class="detail-section-title">产品明细</h4>
|
||||
<el-table
|
||||
:data="confirmProducts"
|
||||
stripe
|
||||
class="list-table inner-table"
|
||||
size="small"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="60" align="center" />
|
||||
<el-table-column prop="projectName" label="项目名称" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="cellType" label="细胞类型" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column prop="specText" label="规格" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="单价(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">¥{{ formatAmount(row.agreementUnitPrice) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="qty" label="数量" min-width="100" align="center" />
|
||||
<el-table-column label="金额(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">¥{{ formatAmount(row.amount) }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<div class="form-section-divider"></div>
|
||||
|
||||
<!-- 确认表单 -->
|
||||
@@ -479,10 +525,27 @@
|
||||
return '金额(元)'
|
||||
}
|
||||
|
||||
/** 购买/退订流水需展示产品明细 */
|
||||
function txnTypeHasProducts(txnType?: string) {
|
||||
return txnType === 'purchase' || txnType === 'unsubscribe'
|
||||
}
|
||||
|
||||
function financeSubmitRemarkDisplay(d: Record<string, any>) {
|
||||
return (d.financeSubmitRemark || d.remark || '').trim()
|
||||
}
|
||||
|
||||
/** 发起确认区附件:退款优先展示 refundAttachmentFiles */
|
||||
function financeSubmitAttachmentDisplayFiles(d: Record<string, any>) {
|
||||
if (d.txnType === 'refund' && Array.isArray(d.refundAttachmentFiles) && d.refundAttachmentFiles.length) {
|
||||
return d.refundAttachmentFiles
|
||||
}
|
||||
return Array.isArray(d.financeSubmitAttachmentFiles) ? d.financeSubmitAttachmentFiles : []
|
||||
}
|
||||
|
||||
const viewFinanceSubmitAttachmentFiles = computed(() =>
|
||||
financeSubmitAttachmentDisplayFiles(viewData.value || {})
|
||||
)
|
||||
|
||||
const minioBaseUrl = (import.meta.env.VITE_MINIO_BASE_URL || '').replace(/\/$/, '')
|
||||
|
||||
function fullFileUrl(suffix: string) {
|
||||
@@ -637,9 +700,10 @@
|
||||
}
|
||||
]
|
||||
|
||||
// 余额变动(待处理不展示;已处理中已作废的充值不展示)
|
||||
// 余额变动(待处理不展示;购买产品不展示;已处理中已作废的充值不展示)
|
||||
const showBalanceSection =
|
||||
activeTab.value !== 'pending' &&
|
||||
d.txnType !== 'purchase' &&
|
||||
!(d.txnStatus === 'yzf' && d.txnType === 'recharge') &&
|
||||
(d.balanceBefore != null || d.balanceAfter != null)
|
||||
if (showBalanceSection) {
|
||||
@@ -661,8 +725,9 @@
|
||||
})
|
||||
}
|
||||
|
||||
// 发起确认信息
|
||||
// 发起确认信息(退款附件并入本区,不单独成块)
|
||||
if (d.financeSubmitTime) {
|
||||
const submitFiles = financeSubmitAttachmentDisplayFiles(d)
|
||||
const submitSection: ViewSection = {
|
||||
title: '发起确认',
|
||||
fields: [
|
||||
@@ -672,8 +737,8 @@
|
||||
{ label: '备注', value: financeSubmitRemarkDisplay(d), span: true }
|
||||
]
|
||||
}
|
||||
if (d.financeSubmitAttachmentFiles?.length) {
|
||||
submitSection.slotTitle = '提交凭证'
|
||||
if (submitFiles.length) {
|
||||
submitSection.slotTitle = d.txnType === 'refund' ? '退款附件' : '提交凭证'
|
||||
submitSection.slotTitleStyle = 'field'
|
||||
submitSection.slot = 'finance-submit-attachments'
|
||||
}
|
||||
@@ -738,10 +803,29 @@
|
||||
// ---------------------------------------------------------------------------
|
||||
const currentRow = ref<any>(null)
|
||||
|
||||
/** 待处理确认弹窗 — 流水信息区业务附件 */
|
||||
const confirmTxnSubmitAttachmentFiles = computed(() =>
|
||||
currentRow.value ? financeSubmitAttachmentDisplayFiles(currentRow.value) : []
|
||||
)
|
||||
|
||||
const confirmTxnSubmitAttachmentLabel = computed(() => {
|
||||
const t = currentRow.value?.txnType
|
||||
if (t === 'recharge') return '充值附件'
|
||||
if (t === 'refund') return '退款附件'
|
||||
return '提交凭证'
|
||||
})
|
||||
|
||||
const showConfirmFlowAttachments = computed(() => {
|
||||
const t = currentRow.value?.txnType
|
||||
if (t !== 'recharge' && t !== 'refund') return false
|
||||
return confirmTxnSubmitAttachmentFiles.value.length > 0
|
||||
})
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 统一确认弹窗
|
||||
// ---------------------------------------------------------------------------
|
||||
const confirmVisible = ref(false)
|
||||
const confirmDetailLoading = ref(false)
|
||||
const amountConfirmVisible = ref(false)
|
||||
const confirmUploadRef = ref()
|
||||
const confirmForm = reactive({
|
||||
@@ -749,11 +833,27 @@
|
||||
attachments: [] as any[]
|
||||
})
|
||||
|
||||
function openConfirmDialog(row: any) {
|
||||
const confirmProducts = computed(() => {
|
||||
if (!txnTypeHasProducts(currentRow.value?.txnType)) return []
|
||||
return currentRow.value?.products || []
|
||||
})
|
||||
|
||||
async function openConfirmDialog(row: any) {
|
||||
currentRow.value = row
|
||||
confirmForm.remark = ''
|
||||
confirmForm.attachments = []
|
||||
confirmVisible.value = true
|
||||
if (txnTypeHasProducts(row.txnType)) {
|
||||
confirmDetailLoading.value = true
|
||||
try {
|
||||
const res: any = await fetchServiceOrderTxnDetail(row.id)
|
||||
currentRow.value = res?.data || res || row
|
||||
} catch {
|
||||
currentRow.value = row
|
||||
} finally {
|
||||
confirmDetailLoading.value = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function handleVoidTxn(row: any) {
|
||||
@@ -917,13 +1017,17 @@
|
||||
}
|
||||
|
||||
.detail-section-title {
|
||||
margin: 0 0 16px;
|
||||
margin: 0 0 12px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--mint-text, #334155);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.confirm-product-section {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.view-confirm-form :deep(.el-form-item) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@@ -945,6 +1049,40 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.confirm-flow-kv-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px 16px;
|
||||
}
|
||||
|
||||
.confirm-flow-kv {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
|
||||
&--full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
.confirm-flow-kv__label {
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-secondary);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.confirm-flow-kv__value {
|
||||
font-size: 14px;
|
||||
color: var(--mint-text, #334155);
|
||||
line-height: 1.5;
|
||||
word-break: break-word;
|
||||
|
||||
&--multiline {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
.view-field-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
+535
-32
@@ -40,10 +40,10 @@
|
||||
{{ remarkPreview(txn.remark) }}
|
||||
</span>
|
||||
<span
|
||||
v-if="txn.financeSubmitAttachmentFiles?.length"
|
||||
v-if="txnAttachmentMetaCount(txn)"
|
||||
class="txn-card__meta-item txn-card__meta-attach"
|
||||
>
|
||||
附件 {{ txn.financeSubmitAttachmentFiles.length }} 个
|
||||
附件 {{ txnAttachmentMetaCount(txn) }} 个
|
||||
</span>
|
||||
<span v-if="txn.txnStatus === 'yzf'" class="txn-card__meta-item txn-card__meta-void">
|
||||
作废 {{ txn.voidByName || '—' }} · {{ txn.voidTime || '—' }}
|
||||
@@ -126,13 +126,16 @@
|
||||
size="small"
|
||||
class="list-table inner-table"
|
||||
>
|
||||
<el-table-column
|
||||
prop="projectName"
|
||||
label="项目"
|
||||
min-width="120"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="specText" label="规格" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column label="项目" min-width="120" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
{{ row.projectName || row.project_name || row.projectCode || row.project_code || '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规格" min-width="100" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
{{ row.specText || row.spec_text || '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="qty" label="数量" min-width="72" align="center" />
|
||||
<el-table-column label="金额(元)" min-width="100" align="right">
|
||||
<template #default="{ row }">¥{{ formatAmount(row.amount) }}</template>
|
||||
@@ -145,6 +148,23 @@
|
||||
<section class="txn-card__section">
|
||||
<h4 class="txn-card__section-title">财务处理信息</h4>
|
||||
<template v-if="hasFinanceActivity(txn)">
|
||||
<!-- 待生效退款:申请时已上传附件,尚未提交财务 -->
|
||||
<template v-if="showRefundPendingFinanceSection(txn)">
|
||||
<dl class="txn-card__kv-grid txn-card__kv-grid--sub">
|
||||
<div class="txn-card__kv txn-card__kv--full txn-card__subhead">
|
||||
<dt>发起财务确认</dt>
|
||||
</div>
|
||||
</dl>
|
||||
<div class="txn-card__attachments">
|
||||
<span class="txn-card__attachments-label">退款附件</span>
|
||||
<ProtocolAttachmentReadonly
|
||||
:files="refundAttachmentFiles(txn)"
|
||||
@preview="handlePreviewAttachment"
|
||||
@download="handleDownloadAttachment"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<dl v-if="txn.financeSubmitTime" class="txn-card__kv-grid txn-card__kv-grid--sub">
|
||||
<div class="txn-card__kv txn-card__kv--full txn-card__subhead">
|
||||
<dt>发起财务确认</dt>
|
||||
@@ -166,12 +186,14 @@
|
||||
</div>
|
||||
</dl>
|
||||
<div
|
||||
v-if="txn.financeSubmitTime && txn.financeSubmitAttachmentFiles?.length"
|
||||
v-if="txn.financeSubmitTime && financeSubmitAttachmentDisplayFiles(txn).length"
|
||||
class="txn-card__attachments"
|
||||
>
|
||||
<span class="txn-card__attachments-label">提交凭证</span>
|
||||
<span class="txn-card__attachments-label">{{
|
||||
txn.txnType === 'refund' ? '退款附件' : '提交凭证'
|
||||
}}</span>
|
||||
<ProtocolAttachmentReadonly
|
||||
:files="txn.financeSubmitAttachmentFiles"
|
||||
:files="financeSubmitAttachmentDisplayFiles(txn)"
|
||||
@preview="handlePreviewAttachment"
|
||||
@download="handleDownloadAttachment"
|
||||
/>
|
||||
@@ -276,14 +298,120 @@
|
||||
<el-dialog
|
||||
v-model="editVisible"
|
||||
:title="editDialogTitle"
|
||||
width="560px"
|
||||
:width="editDialogWidth"
|
||||
destroy-on-close
|
||||
append-to-body
|
||||
align-center
|
||||
:close-on-click-modal="false"
|
||||
class="service-order-txn-edit-dialog"
|
||||
class="service-order-txn-edit-dialog dialog-form-layout"
|
||||
style="backdrop-filter: none"
|
||||
>
|
||||
<el-form label-position="top" class="dialog-form">
|
||||
<!-- 购买产品:与新增弹窗一致 -->
|
||||
<div v-if="canEditProducts(editTxn) && editTxn?.txnType === 'purchase'" class="product-detail-table-wrap">
|
||||
<el-table :data="editForm.items" stripe size="small" class="list-table inner-table">
|
||||
<el-table-column type="index" label="序号" min-width="60" align="center" />
|
||||
<el-table-column label="项目/规格" min-width="260">
|
||||
<template #default="{ row, $index }">
|
||||
<el-select
|
||||
v-model="row.priceId"
|
||||
class="product-detail-cell-control"
|
||||
placeholder="选择项目"
|
||||
filterable
|
||||
popper-class="project-option-popper"
|
||||
@change="(v: string) => handleEditPurchasePriceChange(v, $index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="p in getAvailablePriceOptionsForEdit($index)"
|
||||
:key="p.priceId"
|
||||
:label="formatProjectOptionLabel(p)"
|
||||
:value="p.priceId"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价(元)" min-width="100" align="right">
|
||||
<template #default="{ row }">¥{{ formatAmount(row.unitPrice) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="份数" min-width="100">
|
||||
<template #default="{ row }">
|
||||
<el-input-number
|
||||
v-model="row.quantity"
|
||||
class="product-detail-cell-control"
|
||||
:min="1"
|
||||
:precision="0"
|
||||
controls-position="right"
|
||||
@change="calcEditItemAmount(row)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="金额(元)" min-width="100" align="right">
|
||||
<template #default="{ row }">¥{{ formatAmount(row.amount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" min-width="60" align="center">
|
||||
<template #default="{ $index }">
|
||||
<el-button type="danger" link size="small" @click="removeEditPurchaseItem($index)">
|
||||
<el-icon><Delete /></el-icon>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="product-detail-footer">
|
||||
<el-button size="small" @click="addEditPurchaseItem">
|
||||
<el-icon><Plus /></el-icon>添加产品
|
||||
</el-button>
|
||||
<span class="product-detail-total">
|
||||
合计:<span class="product-detail-total-value">¥{{ formatAmount(editPurchaseTotalAmount) }}(元)</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 退订产品:与新增弹窗一致 -->
|
||||
<div
|
||||
v-else-if="canEditProducts(editTxn) && editTxn?.txnType === 'unsubscribe'"
|
||||
class="product-detail-table-wrap product-detail-table-wrap--standard-list"
|
||||
>
|
||||
<div class="list-body list-wrap product-detail-list-body">
|
||||
<el-table
|
||||
v-if="editForm.items.length"
|
||||
:data="editForm.items"
|
||||
stripe
|
||||
class="list-table inner-table"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="60" align="center" />
|
||||
<el-table-column prop="projectName" label="项目名称" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="specText" label="规格" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column label="单价(元)" min-width="100" align="right" header-align="center">
|
||||
<template #default="{ row }">¥{{ formatAmount(row.agreementUnitPrice) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="currentQty" label="当前持有" min-width="80" align="center" header-align="center" />
|
||||
<el-table-column label="退订数量" min-width="120" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<el-input-number
|
||||
v-model="row.unsubscribeQty"
|
||||
class="product-detail-cell-control"
|
||||
:min="0"
|
||||
:max="row.currentQty"
|
||||
:precision="0"
|
||||
controls-position="right"
|
||||
@change="calcEditUnsubscribeAmount(row)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="退款金额(元)" min-width="120" align="right" header-align="center">
|
||||
<template #default="{ row }">¥{{ formatAmount(row.refundAmount) }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-empty v-else description="没有可退订的产品" :image-size="48" />
|
||||
</div>
|
||||
<div
|
||||
v-if="editForm.items.some((it: any) => (it.unsubscribeQty || 0) > 0)"
|
||||
class="product-detail-total product-detail-total--right"
|
||||
>
|
||||
退订合计:<span class="product-detail-total-value">¥{{ formatAmount(editUnsubscribeTotalAmount) }}(元)</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-form-item v-if="canEditAmount(editTxn)" label="金额(元)">
|
||||
<AmountInput
|
||||
v-model="editForm.amount"
|
||||
@@ -292,16 +420,13 @@
|
||||
placeholder="请输入金额"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item v-else-if="editTxn" label="金额(元)">
|
||||
<span class="amount-text">¥{{ formatAmount(editTxn.amount) }}</span>
|
||||
<p v-if="editTxn.txnType === 'purchase' || editTxn.txnType === 'unsubscribe'" class="form-label-tip">
|
||||
购买/退订流水不可修改金额,请作废后重新发起
|
||||
</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-form-item label="备注" :style="canEditProducts(editTxn) ? { marginTop: '12px' } : undefined">
|
||||
<el-input v-model="editForm.remark" type="textarea" :rows="3" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
<el-form-item v-if="canEditAttachments(editTxn)" label="附件">
|
||||
<el-form-item
|
||||
v-if="canEditAttachments(editTxn)"
|
||||
:label="editTxn?.txnType === 'refund' ? '退款附件' : '附件'"
|
||||
>
|
||||
<div class="attachment-upload">
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
@@ -436,7 +561,9 @@ import {
|
||||
fetchServiceOrderTxnList,
|
||||
fetchSubmitTxnFinance,
|
||||
fetchUpdateServiceOrderTxn,
|
||||
fetchVoidTxn
|
||||
fetchVoidTxn,
|
||||
fetchChannelAgreementPrices,
|
||||
fetchChannelServiceOrderDetail
|
||||
} from '@/api/admin'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
@@ -494,9 +621,32 @@ const editUploadRef = ref<{ clearFiles?: () => void }>()
|
||||
const editForm = reactive({
|
||||
amount: null as number | null,
|
||||
remark: '',
|
||||
attachments: [] as any[]
|
||||
attachments: [] as any[],
|
||||
items: [] as any[]
|
||||
})
|
||||
|
||||
const agreementProducts = ref<any[]>([])
|
||||
|
||||
const editDialogWidth = computed(() => {
|
||||
const t = editTxn.value?.txnType
|
||||
if (t === 'purchase') return '880px'
|
||||
if (t === 'unsubscribe') return '920px'
|
||||
return '560px'
|
||||
})
|
||||
|
||||
const agreementUniqueProjectCount = computed(() => {
|
||||
const codes = agreementProducts.value.map((p) => p.projectCode).filter(Boolean)
|
||||
return new Set(codes).size
|
||||
})
|
||||
|
||||
const editPurchaseTotalAmount = computed(() =>
|
||||
editForm.items.reduce((sum: number, item: any) => sum + (item.amount || 0), 0)
|
||||
)
|
||||
|
||||
const editUnsubscribeTotalAmount = computed(() =>
|
||||
editForm.items.reduce((sum: number, item: any) => sum + (item.refundAmount || 0), 0)
|
||||
)
|
||||
|
||||
const editDialogTitle = computed(() => {
|
||||
if (!editTxn.value) return '编辑流水'
|
||||
return `编辑${txnTypeLabel(editTxn.value.txnType)}流水`
|
||||
@@ -543,6 +693,30 @@ const initExpandedState = () => {
|
||||
const financeSubmitRemarkDisplay = (txn: Record<string, any>) =>
|
||||
(txn.financeSubmitRemark || txn.remark || '').trim()
|
||||
|
||||
const refundAttachmentFiles = (txn: Record<string, any>) =>
|
||||
Array.isArray(txn.refundAttachmentFiles) ? txn.refundAttachmentFiles : []
|
||||
|
||||
/** 发起财务确认区展示的凭证:退款优先 refundAttachmentFiles */
|
||||
const financeSubmitAttachmentDisplayFiles = (txn: Record<string, any>) => {
|
||||
if (txn.txnType === 'refund') {
|
||||
const refundFiles = refundAttachmentFiles(txn)
|
||||
if (refundFiles.length) return refundFiles
|
||||
}
|
||||
return Array.isArray(txn.financeSubmitAttachmentFiles) ? txn.financeSubmitAttachmentFiles : []
|
||||
}
|
||||
|
||||
const txnAttachmentMetaCount = (txn: Record<string, any>) => {
|
||||
if (txn.txnType === 'refund') return refundAttachmentFiles(txn).length
|
||||
return txn.financeSubmitAttachmentFiles?.length || 0
|
||||
}
|
||||
|
||||
/** 待生效退款流水:已上传退款附件、尚未提交财务 */
|
||||
const showRefundPendingFinanceSection = (txn: Record<string, any>) =>
|
||||
txn.txnType === 'refund' &&
|
||||
txn.txnStatus === 'dsx' &&
|
||||
!txn.financeSubmitTime &&
|
||||
refundAttachmentFiles(txn).length > 0
|
||||
|
||||
const showBalanceSnapshot = (txn: Record<string, any>) => {
|
||||
const t = txn.txnType
|
||||
if (t !== 'recharge' && t !== 'refund') return false
|
||||
@@ -550,9 +724,9 @@ const showBalanceSnapshot = (txn: Record<string, any>) => {
|
||||
return txn.balanceBefore != null || txn.balanceAfter != null
|
||||
}
|
||||
|
||||
/** 仅业务已提交财务或财务已确认/作废后展示财务区块 */
|
||||
/** 业务已提交财务、财务已确认,或待生效退款已带附件时展示财务区块 */
|
||||
const hasFinanceActivity = (txn: Record<string, any>) =>
|
||||
!!(txn.financeSubmitTime || txn.financeConfirmTime)
|
||||
!!(txn.financeSubmitTime || txn.financeConfirmTime || showRefundPendingFinanceSection(txn))
|
||||
|
||||
/** 待生效阶段业务侧作废,作废信息归订单信息 */
|
||||
const showBusinessVoid = (txn: Record<string, any>) =>
|
||||
@@ -561,8 +735,201 @@ const showBusinessVoid = (txn: Record<string, any>) =>
|
||||
const canEditAmount = (txn: Record<string, any> | null) =>
|
||||
txn?.txnStatus === 'dsx' && (txn.txnType === 'recharge' || txn.txnType === 'refund')
|
||||
|
||||
const canEditProducts = (txn: Record<string, any> | null) =>
|
||||
txn?.txnStatus === 'dsx' && (txn.txnType === 'purchase' || txn.txnType === 'unsubscribe')
|
||||
|
||||
const canEditAttachments = (txn: Record<string, any> | null) =>
|
||||
txn?.txnStatus === 'dsx' && txn.txnType === 'recharge'
|
||||
txn?.txnStatus === 'dsx' && (txn.txnType === 'recharge' || txn.txnType === 'refund')
|
||||
|
||||
const unwrapApiList = (res: any): any[] => {
|
||||
const d = res?.data ?? res
|
||||
if (Array.isArray(d)) return d
|
||||
return d?.list ?? d?.records ?? []
|
||||
}
|
||||
|
||||
function normalizeAgreementPriceRows(rows: any[]) {
|
||||
return (Array.isArray(rows) ? rows : []).map((p) => ({
|
||||
priceId: p.id,
|
||||
projectCode: p.projectCode || '',
|
||||
projectName: p.projectName || '',
|
||||
cellTypeCode: p.cellTypeCode || '',
|
||||
cellTypeName: p.cellTypeName || '',
|
||||
specText: p.specText || '',
|
||||
unitPrice: p.agreementPrice ?? p.unitPrice ?? 0
|
||||
}))
|
||||
}
|
||||
|
||||
const formatProjectOptionLabel = (p: any) => {
|
||||
const name = p?.projectName || p?.projectCode || '-'
|
||||
const cellType = p?.cellTypeName || '-'
|
||||
const spec = p?.specText || '-'
|
||||
return `${name}(${cellType}、${spec}、¥${formatAmount(p?.unitPrice)})`
|
||||
}
|
||||
|
||||
function applySpecToEditItem(item: any, spec: any) {
|
||||
if (!item || !spec) return
|
||||
item.priceId = spec.priceId
|
||||
item.projectCode = spec.projectCode || ''
|
||||
item.unitPrice = spec.unitPrice ?? 0
|
||||
item.specText = spec.specText ?? ''
|
||||
item.projectName = spec.projectName || item.projectName
|
||||
item.cellTypeName = spec.cellTypeName || ''
|
||||
item.cellTypeCode = spec.cellTypeCode || ''
|
||||
item.amount = (item.unitPrice || 0) * (item.quantity || 1)
|
||||
}
|
||||
|
||||
function resetEditItemFields(item: any) {
|
||||
item.projectName = ''
|
||||
item.cellTypeName = ''
|
||||
item.cellTypeCode = ''
|
||||
item.priceId = ''
|
||||
item.unitPrice = 0
|
||||
item.specText = ''
|
||||
item.amount = 0
|
||||
}
|
||||
|
||||
const calcEditItemAmount = (item: any) => {
|
||||
item.amount = (item.unitPrice || 0) * (item.quantity || 0)
|
||||
}
|
||||
|
||||
const calcEditUnsubscribeAmount = (item: any) => {
|
||||
item.refundAmount = (item.agreementUnitPrice || 0) * (item.unsubscribeQty || 0)
|
||||
}
|
||||
|
||||
const getAvailablePriceOptionsForEdit = (currentIndex: number) => {
|
||||
const usedProjectCodes = new Set(
|
||||
editForm.items
|
||||
.map((it, idx) => (idx !== currentIndex ? it.projectCode : ''))
|
||||
.filter(Boolean)
|
||||
)
|
||||
const currentProjectCode = editForm.items[currentIndex]?.projectCode || ''
|
||||
return agreementProducts.value.filter((p) => {
|
||||
if (currentProjectCode && p.projectCode === currentProjectCode) return true
|
||||
return !usedProjectCodes.has(p.projectCode)
|
||||
})
|
||||
}
|
||||
|
||||
const addEditPurchaseItem = () => {
|
||||
if (editForm.items.length >= agreementUniqueProjectCount.value) {
|
||||
ElMessage.warning('已添加全部可选项目')
|
||||
return
|
||||
}
|
||||
editForm.items.push({
|
||||
projectCode: '',
|
||||
projectName: '',
|
||||
cellTypeCode: '',
|
||||
cellTypeName: '',
|
||||
priceId: '',
|
||||
unitPrice: 0,
|
||||
quantity: 1,
|
||||
amount: 0,
|
||||
specText: ''
|
||||
})
|
||||
}
|
||||
|
||||
const removeEditPurchaseItem = (index: number) => {
|
||||
editForm.items.splice(index, 1)
|
||||
}
|
||||
|
||||
const handleEditPurchasePriceChange = (priceId: string, index: number) => {
|
||||
const item = editForm.items[index]
|
||||
if (!priceId) {
|
||||
resetEditItemFields(item)
|
||||
item.priceId = ''
|
||||
item.projectCode = ''
|
||||
return
|
||||
}
|
||||
const spec = agreementProducts.value.find((p: any) => p.priceId === priceId)
|
||||
if (!spec) return
|
||||
const duplicated = editForm.items.some(
|
||||
(it, idx) => idx !== index && it.projectCode === spec.projectCode
|
||||
)
|
||||
if (duplicated) {
|
||||
ElMessage.warning('同一项目不能重复添加')
|
||||
item.priceId = ''
|
||||
resetEditItemFields(item)
|
||||
item.projectCode = ''
|
||||
return
|
||||
}
|
||||
resetEditItemFields(item)
|
||||
item.projectCode = spec.projectCode
|
||||
applySpecToEditItem(item, spec)
|
||||
}
|
||||
|
||||
function mapTxnProductsToPurchaseItems(products: any[]) {
|
||||
return (products || []).map((p) => {
|
||||
const projectCode = p.projectCode || p.project_code || ''
|
||||
const specText = p.specText || p.spec_text || ''
|
||||
const spec =
|
||||
agreementProducts.value.find(
|
||||
(ap) => ap.projectCode === projectCode && ap.specText === specText
|
||||
) || agreementProducts.value.find((ap) => ap.projectCode === projectCode)
|
||||
const qty = Number(p.qty ?? p.quantity ?? 1)
|
||||
const unitPrice = Number(
|
||||
p.agreementUnitPrice ?? p.agreement_unit_price ?? spec?.unitPrice ?? 0
|
||||
)
|
||||
return {
|
||||
projectCode,
|
||||
projectName: p.projectName || p.project_name || spec?.projectName || '',
|
||||
cellTypeCode: spec?.cellTypeCode || '',
|
||||
cellTypeName: p.cellType || p.cell_type || spec?.cellTypeName || '',
|
||||
priceId: spec?.priceId || '',
|
||||
unitPrice,
|
||||
quantity: qty,
|
||||
amount: Number(p.amount ?? unitPrice * qty),
|
||||
specText: specText || spec?.specText || ''
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
async function loadAgreementProductsForEdit() {
|
||||
agreementProducts.value = []
|
||||
const agreementId = props.order?.channelAgreementId
|
||||
if (!agreementId) return
|
||||
try {
|
||||
const res: any = await fetchChannelAgreementPrices(agreementId)
|
||||
agreementProducts.value = normalizeAgreementPriceRows(unwrapApiList(res))
|
||||
} catch {
|
||||
agreementProducts.value = []
|
||||
}
|
||||
}
|
||||
|
||||
async function loadUnsubscribeItemsForEdit(txn: Record<string, any>) {
|
||||
editForm.items = []
|
||||
const orderId = props.order?.id || txn.serviceOrderId
|
||||
if (!orderId) return
|
||||
try {
|
||||
const res: any = await fetchChannelServiceOrderDetail(orderId)
|
||||
const detail = res?.data ?? res ?? {}
|
||||
const holdings = detail.products || []
|
||||
const txnProducts = txn.products || []
|
||||
const txnQtyMap = new Map<string, number>()
|
||||
for (const p of txnProducts) {
|
||||
const code = p.projectCode || p.project_code || ''
|
||||
const spec = p.specText || p.spec_text || ''
|
||||
txnQtyMap.set(`${code}||${spec}`, Number(p.qty || 0))
|
||||
}
|
||||
editForm.items = holdings
|
||||
.map((p: any) => {
|
||||
const key = `${p.projectCode}||${p.specText || ''}`
|
||||
const txnQty = txnQtyMap.get(key) || 0
|
||||
const maxQty = (p.currentQty || 0) + txnQty
|
||||
return {
|
||||
projectCode: p.projectCode,
|
||||
projectName: p.projectName,
|
||||
cellType: p.cellType,
|
||||
specText: p.specText,
|
||||
agreementUnitPrice: p.agreementUnitPrice,
|
||||
currentQty: maxQty,
|
||||
unsubscribeQty: txnQty,
|
||||
refundAmount: txnQty * (p.agreementUnitPrice || 0)
|
||||
}
|
||||
})
|
||||
.filter((p: any) => p.currentQty > 0 || p.unsubscribeQty > 0)
|
||||
} catch {
|
||||
editForm.items = []
|
||||
}
|
||||
}
|
||||
|
||||
const minioBaseUrl = (import.meta.env.VITE_MINIO_BASE_URL || '').replace(/\/$/, '')
|
||||
|
||||
@@ -603,11 +970,22 @@ function cloneAttachmentFiles(files: any[] = []) {
|
||||
return files.map((f) => ({ ...f, _uploading: false }))
|
||||
}
|
||||
|
||||
const openEditDialog = (txn: Record<string, any>) => {
|
||||
const openEditDialog = async (txn: Record<string, any>) => {
|
||||
editTxn.value = txn
|
||||
editForm.amount = Number(txn.amount) || null
|
||||
editForm.remark = txn.remark || ''
|
||||
editForm.attachments = cloneAttachmentFiles(txn.financeSubmitAttachmentFiles || [])
|
||||
editForm.items = []
|
||||
editForm.attachments = cloneAttachmentFiles(
|
||||
txn.txnType === 'refund'
|
||||
? refundAttachmentFiles(txn)
|
||||
: txn.financeSubmitAttachmentFiles || []
|
||||
)
|
||||
if (txn.txnType === 'purchase') {
|
||||
await loadAgreementProductsForEdit()
|
||||
editForm.items = mapTxnProductsToPurchaseItems(txn.products || [])
|
||||
} else if (txn.txnType === 'unsubscribe') {
|
||||
await loadUnsubscribeItemsForEdit(txn)
|
||||
}
|
||||
editVisible.value = true
|
||||
}
|
||||
|
||||
@@ -680,12 +1058,59 @@ const submitEdit = async () => {
|
||||
}
|
||||
payload.amount = editForm.amount
|
||||
}
|
||||
if (canEditProducts(txn)) {
|
||||
if (txn.txnType === 'purchase') {
|
||||
if (!editForm.items.length) {
|
||||
ElMessage.warning('请至少添加一条产品明细')
|
||||
return
|
||||
}
|
||||
const invalid = editForm.items.some(
|
||||
(it) => !it.projectCode || !it.priceId || !it.quantity || Number(it.quantity) <= 0
|
||||
)
|
||||
if (invalid) {
|
||||
ElMessage.warning('请完善产品明细')
|
||||
return
|
||||
}
|
||||
payload.products = editForm.items.map((it) => ({
|
||||
projectCode: it.projectCode,
|
||||
projectName: it.projectName,
|
||||
cellType: it.cellTypeName,
|
||||
specText: it.specText,
|
||||
agreementUnitPrice: it.unitPrice,
|
||||
qty: it.quantity,
|
||||
amount: it.amount
|
||||
}))
|
||||
} else if (txn.txnType === 'unsubscribe') {
|
||||
const validItems = editForm.items.filter((it) => (it.unsubscribeQty || 0) > 0)
|
||||
if (!validItems.length) {
|
||||
ElMessage.warning('请至少选择一条退订产品并输入退订数量')
|
||||
return
|
||||
}
|
||||
const overQty = validItems.some((it) => (it.unsubscribeQty || 0) > (it.currentQty || 0))
|
||||
if (overQty) {
|
||||
ElMessage.warning('退订数量不能超过当前持有数量')
|
||||
return
|
||||
}
|
||||
payload.products = validItems.map((it) => ({
|
||||
projectCode: it.projectCode,
|
||||
projectName: it.projectName,
|
||||
cellType: it.cellType,
|
||||
specText: it.specText,
|
||||
qty: it.unsubscribeQty
|
||||
}))
|
||||
}
|
||||
}
|
||||
if (canEditAttachments(txn)) {
|
||||
if (hasUploadingAttachments(editForm.attachments)) {
|
||||
ElMessage.warning('附件正在上传,请稍候')
|
||||
return
|
||||
}
|
||||
payload.financeSubmitAttachments = joinAttachmentUrls(editForm.attachments)
|
||||
const attachmentUrls = joinAttachmentUrls(editForm.attachments)
|
||||
if (txn.txnType === 'refund') {
|
||||
payload.refundAttachments = attachmentUrls
|
||||
} else {
|
||||
payload.financeSubmitAttachments = attachmentUrls
|
||||
}
|
||||
}
|
||||
editLoading.value = true
|
||||
try {
|
||||
@@ -744,8 +1169,10 @@ async function confirmSubmitFinance() {
|
||||
actionType.value = 'submit'
|
||||
try {
|
||||
const payload: Record<string, string> = {}
|
||||
if (txn.financeSubmitAttachments) {
|
||||
payload.financeSubmitAttachments = txn.financeSubmitAttachments
|
||||
const submitAttachments =
|
||||
txn.financeSubmitAttachments || (txn.txnType === 'refund' ? txn.refundAttachments : '')
|
||||
if (submitAttachments) {
|
||||
payload.financeSubmitAttachments = submitAttachments
|
||||
}
|
||||
if (txn.financeSubmitRemark) {
|
||||
payload.financeSubmitRemark = txn.financeSubmitRemark
|
||||
@@ -1079,6 +1506,82 @@ defineExpose({ reload: loadTxnList })
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
}
|
||||
|
||||
.product-detail-table-wrap {
|
||||
width: 100%;
|
||||
|
||||
.product-detail-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.product-detail-total {
|
||||
font-size: 14px;
|
||||
color: var(--el-text-color-regular);
|
||||
|
||||
&--right {
|
||||
margin-top: 12px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.product-detail-total-value {
|
||||
font-weight: 600;
|
||||
color: var(--primary, #10b981);
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.product-detail-cell-control) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
:deep(.product-detail-cell-control.el-select .el-select__wrapper),
|
||||
:deep(.product-detail-cell-control.el-input-number .el-input__wrapper) {
|
||||
min-height: 32px;
|
||||
height: 32px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&--standard-list {
|
||||
.product-detail-list-body {
|
||||
border: 1px solid var(--mint-border, #e2e8f0);
|
||||
border-radius: var(--mint-radius, 10px);
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
:deep(.list-table.el-table) {
|
||||
--el-table-header-bg-color: var(--mint-table-head, #f8fafc);
|
||||
--el-table-border-color: var(--mint-border, #e2e8f0);
|
||||
--el-table-row-hover-bg-color: var(--mint-row-hover, #f0fdf4);
|
||||
--el-table-text-color: var(--mint-text, #0f172a);
|
||||
--el-table-header-text-color: var(--mint-text-muted, #64748b);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
:deep(.list-table th.el-table__cell) {
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
:deep(.list-table td.el-table__cell) {
|
||||
color: var(--mint-text, #0f172a);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:global(.project-option-popper .el-select-dropdown__item) {
|
||||
height: auto;
|
||||
min-height: 34px;
|
||||
line-height: 1.45;
|
||||
white-space: normal;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.attachment-upload {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -153,7 +153,10 @@
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-op-item"
|
||||
v-if="(row.orderType === 'yfk' || row.orderType === 'gmcp') && row.orderStatus === 'dsx'"
|
||||
v-if="
|
||||
(row.orderType === 'yfk' && row.orderStatus === 'dsx') ||
|
||||
(row.orderType === 'gmcp' && (row.orderStatus === 'dsx' || row.orderStatus === 'sxz'))
|
||||
"
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
<el-icon><Edit /></el-icon>编辑
|
||||
@@ -321,6 +324,7 @@
|
||||
remote
|
||||
clearable
|
||||
reserve-keyword
|
||||
:disabled="formMode === 'edit'"
|
||||
:remote-method="handleChannelSearch"
|
||||
:loading="channelSearchLoading"
|
||||
@visible-change="onChannelSelectVisible"
|
||||
@@ -344,7 +348,7 @@
|
||||
placeholder="请先选择渠道,再选择生效中的协议"
|
||||
filterable
|
||||
clearable
|
||||
:disabled="!formData.channelId"
|
||||
:disabled="!formData.channelId || (formMode === 'edit' && !formAgreementEditable)"
|
||||
:loading="agreementLoading"
|
||||
@change="handleAgreementChange"
|
||||
>
|
||||
@@ -357,103 +361,10 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="formData.orderType === 'gmcp'"
|
||||
label="本次购买合计(元)"
|
||||
v-if="formMode === 'edit' && formData.orderType === 'gmcp' && !formAgreementEditable"
|
||||
class="form-col-span-2"
|
||||
>
|
||||
<span class="amount-text">¥{{ formatAmount(formTotalAmount) }}</span>
|
||||
</el-form-item>
|
||||
<!-- 购买产品份数 - 产品明细 -->
|
||||
<el-form-item
|
||||
v-if="formData.orderType === 'gmcp'"
|
||||
label="产品明细"
|
||||
class="form-col-span-2"
|
||||
>
|
||||
<div class="product-detail-table-wrap">
|
||||
<el-table :data="formData.items" border size="small" style="width: 100%">
|
||||
<el-table-column label="项目" min-width="320">
|
||||
<template #default="{ row, $index }">
|
||||
<el-select
|
||||
v-model="row.priceId"
|
||||
class="product-detail-cell-control"
|
||||
popper-class="project-option-popper"
|
||||
placeholder="选择项目"
|
||||
filterable
|
||||
:disabled="!formData.channelAgreementId"
|
||||
@change="val => handleItemPriceChange(val, $index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="p in getAvailablePriceOptions($index)"
|
||||
:key="p.priceId"
|
||||
:label="formatProjectOptionLabel(p)"
|
||||
:value="p.priceId"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="细胞类型" min-width="120">
|
||||
<template #default="{ row }">
|
||||
{{ displayValue(row.cellTypeName) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规格" min-width="150">
|
||||
<template #default="{ row }">
|
||||
{{ displayValue(row.specText) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">
|
||||
<AmountInput
|
||||
v-model="row.unitPrice"
|
||||
:min="0"
|
||||
class="product-detail-cell-control"
|
||||
@change="calcItemAmount(row)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="购买份数" min-width="120">
|
||||
<template #default="{ row }">
|
||||
<el-input-number
|
||||
v-model="row.quantity"
|
||||
class="product-detail-cell-control"
|
||||
:min="1"
|
||||
:step="1"
|
||||
controls-position="right"
|
||||
@change="calcItemAmount(row)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="购买金额(元)" min-width="110" align="right">
|
||||
<template #default="{ row }">
|
||||
¥{{ formatAmount(row.amount) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" min-width="70" align="center">
|
||||
<template #default="{ $index }">
|
||||
<el-button link type="danger" @click="removeFormItem($index)">
|
||||
<el-icon><Delete /></el-icon>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="product-detail-footer">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
size="small"
|
||||
:disabled="
|
||||
!formData.channelAgreementId ||
|
||||
formData.items.length >= agreementUniqueProjectCount
|
||||
"
|
||||
@click="addFormItem"
|
||||
>
|
||||
<el-icon><Plus /></el-icon>添加产品
|
||||
</el-button>
|
||||
<span class="product-detail-total">
|
||||
合计(元):<span class="amount-text">¥{{ formatAmount(formTotalAmount) }}</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">已有购买记录,渠道协议不可修改;产品请通过「购买产品」录入。</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" class="form-col-span-2">
|
||||
<el-input
|
||||
@@ -569,7 +480,7 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 申请退款弹窗 -->
|
||||
<el-dialog v-model="refundTxnVisible" title="申请退款" width="480px" destroy-on-close :close-on-click-modal="false">
|
||||
<el-dialog v-model="refundTxnVisible" title="申请退款" width="640px" destroy-on-close :close-on-click-modal="false">
|
||||
<el-form label-position="top">
|
||||
<el-form-item>
|
||||
<template #label>退款金额(元)<span class="form-label-tip">当前余额:¥{{ formatAmount(currentOrderForTxn?.currentBalance) }}</span></template>
|
||||
@@ -583,6 +494,73 @@
|
||||
<el-form-item label="备注">
|
||||
<el-input v-model="refundTxnForm.remark" type="textarea" :rows="3" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
<el-form-item label="附件">
|
||||
<div class="attachment-upload">
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="refundUploadRef"
|
||||
:auto-upload="false"
|
||||
:show-file-list="false"
|
||||
:multiple="true"
|
||||
accept="image/*,video/*,.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.zip,.rar"
|
||||
@change="handleRefundAttachmentChange"
|
||||
>
|
||||
<div class="upload-card">
|
||||
<el-icon :size="28" color="#10b981"><Plus /></el-icon>
|
||||
<span class="upload-card-text">上传附件</span>
|
||||
</div>
|
||||
</el-upload>
|
||||
<div
|
||||
v-for="(file, index) in refundTxnForm.attachments"
|
||||
:key="file.id || index"
|
||||
class="attachment-item"
|
||||
:class="{ 'is-uploading': file._uploading }"
|
||||
>
|
||||
<div
|
||||
class="attachment-preview"
|
||||
@click="
|
||||
isImageFile(file) && file.fileUrl ? handlePreviewAttachment(file) : undefined
|
||||
"
|
||||
>
|
||||
<template v-if="isImageFile(file) && file.fileUrl">
|
||||
<img :src="fullFileUrl(file.fileUrl)" :alt="file.fileName" />
|
||||
</template>
|
||||
<template v-else-if="isImageFile(file) && !file.fileUrl">
|
||||
<el-icon :size="24" color="#94a3b8"><Loading /></el-icon>
|
||||
</template>
|
||||
<template v-else-if="isVideoFile(file)">
|
||||
<div class="attachment-preview__icon attachment-preview__icon--video">
|
||||
<el-icon :size="28"><VideoPlay /></el-icon>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="attachment-preview__icon attachment-preview__icon--doc">
|
||||
<el-icon :size="28"><Document /></el-icon>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<div class="attachment-footer">
|
||||
<span class="attachment-name" :title="file.fileName">{{ file.fileName }}</span>
|
||||
<div class="attachment-actions">
|
||||
<el-icon class="action-btn" title="预览" @click="handlePreviewAttachment(file)"
|
||||
><View
|
||||
/></el-icon>
|
||||
<el-icon class="action-btn" title="下载" @click="handleDownloadAttachment(file)"
|
||||
><Download
|
||||
/></el-icon>
|
||||
<el-icon
|
||||
class="action-btn action-btn--danger"
|
||||
title="删除"
|
||||
@click="removeRefundAttachment(index)"
|
||||
><Delete
|
||||
/></el-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等,可上传多个</span>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button class="btn-ghost" @click="refundTxnVisible = false">
|
||||
@@ -602,7 +580,7 @@
|
||||
<el-table-column type="index" label="序号" min-width="60" align="center" />
|
||||
<el-table-column label="项目/规格" min-width="260">
|
||||
<template #default="{ row, $index }">
|
||||
<el-select v-model="row.priceId" placeholder="选择项目" filterable @change="(v: string) => handlePurchasePriceChange(v, $index)">
|
||||
<el-select v-model="row.priceId" class="product-detail-cell-control" placeholder="选择项目" filterable @change="(v: string) => handlePurchasePriceChange(v, $index)">
|
||||
<el-option v-for="p in getAvailablePriceOptionsForPurchase($index)" :key="p.priceId" :label="formatProjectOptionLabel(p)" :value="p.priceId" />
|
||||
</el-select>
|
||||
</template>
|
||||
@@ -612,7 +590,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="份数" min-width="100">
|
||||
<template #default="{ row }">
|
||||
<el-input-number v-model="row.quantity" :min="1" :precision="0" size="small" controls-position="right" @change="calcItemAmount(row)" />
|
||||
<el-input-number v-model="row.quantity" class="product-detail-cell-control" :min="1" :precision="0" controls-position="right" @change="calcItemAmount(row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="金额(元)" min-width="100" align="right">
|
||||
@@ -628,7 +606,9 @@
|
||||
</el-table>
|
||||
<div class="product-detail-footer">
|
||||
<el-button size="small" @click="addPurchaseItem"><el-icon><Plus /></el-icon>添加产品</el-button>
|
||||
<span class="product-detail-total">合计:¥{{ formatAmount(purchaseTotalAmount) }}</span>
|
||||
<span class="product-detail-total">
|
||||
合计:<span class="product-detail-total-value">¥{{ formatAmount(purchaseTotalAmount) }}(元)</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<el-form-item label="备注" style="margin-top: 12px;">
|
||||
@@ -646,9 +626,10 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 退订产品弹窗 -->
|
||||
<el-dialog v-model="unsubscribeVisible" title="退订产品" width="780px" destroy-on-close :close-on-click-modal="false">
|
||||
<el-dialog v-model="unsubscribeVisible" title="退订产品" width="860px" destroy-on-close :close-on-click-modal="false">
|
||||
<el-form label-position="top">
|
||||
<el-table v-if="unsubscribeForm.items.length" :data="unsubscribeForm.items" stripe size="small" class="list-table inner-table">
|
||||
<div class="product-detail-table-wrap">
|
||||
<el-table v-if="unsubscribeForm.items.length" :data="unsubscribeForm.items" stripe size="small" class="list-table inner-table">
|
||||
<el-table-column type="index" label="序号" min-width="60" align="center" />
|
||||
<el-table-column prop="projectName" label="项目名称" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="specText" label="规格" min-width="120" show-overflow-tooltip />
|
||||
@@ -658,16 +639,20 @@
|
||||
<el-table-column prop="currentQty" label="当前持有" min-width="80" align="center" />
|
||||
<el-table-column label="退订数量" min-width="120">
|
||||
<template #default="{ row }">
|
||||
<el-input-number v-model="row.unsubscribeQty" :min="0" :max="row.currentQty" :precision="0" size="small" controls-position="right" @change="calcUnsubscribeAmount(row)" />
|
||||
<el-input-number v-model="row.unsubscribeQty" class="product-detail-cell-control" :min="0" :max="row.currentQty" :precision="0" controls-position="right" @change="calcUnsubscribeAmount(row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="退款金额(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">¥{{ formatAmount(row.refundAmount) }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-empty v-else description="没有可退订的产品" :image-size="48" />
|
||||
<div v-if="unsubscribeForm.items.some((it: any) => (it.unsubscribeQty || 0) > 0)" style="margin-top: 12px; text-align: right; font-weight: 600;">
|
||||
退订合计:¥{{ formatAmount(unsubscribeTotalAmount) }}
|
||||
</el-table>
|
||||
<el-empty v-else description="没有可退订的产品" :image-size="48" />
|
||||
<div
|
||||
v-if="unsubscribeForm.items.some((it: any) => (it.unsubscribeQty || 0) > 0)"
|
||||
class="product-detail-total product-detail-total--right"
|
||||
>
|
||||
退订合计:<span class="product-detail-total-value">¥{{ formatAmount(unsubscribeTotalAmount) }}(元)</span>
|
||||
</div>
|
||||
</div>
|
||||
<el-form-item label="备注" style="margin-top: 12px;">
|
||||
<el-input v-model="unsubscribeForm.remark" type="textarea" :rows="2" placeholder="请输入备注" />
|
||||
@@ -1014,6 +999,8 @@ const formMode = ref<'add' | 'edit'>('add')
|
||||
const submitLoading = ref(false)
|
||||
const formRef = ref<FormInstance>()
|
||||
const currentEditId = ref('')
|
||||
/** gmcp 编辑:无购买流水时可改协议 */
|
||||
const formAgreementEditable = ref(true)
|
||||
|
||||
const initFormData = () => ({
|
||||
orderType: 'yfk',
|
||||
@@ -1232,6 +1219,7 @@ const handleOrderTypeChange = () => {
|
||||
|
||||
const handleAdd = () => {
|
||||
formMode.value = 'add'
|
||||
formAgreementEditable.value = true
|
||||
currentEditId.value = ''
|
||||
Object.assign(formData, initFormData())
|
||||
channelOptions.value = []
|
||||
@@ -1253,35 +1241,16 @@ const handleEdit = async (row: any) => {
|
||||
formData.deptName = detail.deptName || ''
|
||||
formData.channelAgreementId = detail.channelAgreementId || ''
|
||||
formData.remark = detail.remark || ''
|
||||
formAgreementEditable.value =
|
||||
formData.orderType === 'gmcp'
|
||||
? detail.agreementEditable !== false
|
||||
: detail.orderStatus === 'dsx'
|
||||
|
||||
if (detail.channelId) {
|
||||
await handleChannelSearch(detail.channelName || '')
|
||||
await loadAgreements(formData.channelId)
|
||||
}
|
||||
if (formData.orderType === 'gmcp' && formData.channelId) {
|
||||
if (formData.channelAgreementId) {
|
||||
const pRes: any = await fetchChannelAgreementPrices(formData.channelAgreementId)
|
||||
agreementProducts.value = normalizeAgreementPriceRows(unwrapApiList(pRes))
|
||||
}
|
||||
formData.items = (detail.products || []).map((it: any) => {
|
||||
const priceRow = agreementProducts.value.find(
|
||||
(p: any) => p.projectCode === it.projectCode && p.specText === it.specText
|
||||
)
|
||||
return {
|
||||
projectCode: it.projectCode || '',
|
||||
projectName: it.projectName || '',
|
||||
cellTypeCode: priceRow?.cellTypeCode || '',
|
||||
cellTypeName: it.cellType || priceRow?.cellTypeName || '',
|
||||
priceId: priceRow?.priceId || '',
|
||||
unitPrice: it.agreementUnitPrice ?? priceRow?.unitPrice ?? 0,
|
||||
quantity: it.buyQty ?? 1,
|
||||
amount: it.buyAmount ?? 0,
|
||||
specText: it.specText || ''
|
||||
}
|
||||
})
|
||||
} else {
|
||||
formData.items = []
|
||||
}
|
||||
formData.items = []
|
||||
} catch (e) {
|
||||
console.error('加载订单详情失败:', e)
|
||||
}
|
||||
@@ -1299,63 +1268,25 @@ const handleFormSubmit = async () => {
|
||||
return
|
||||
}
|
||||
|
||||
if (formData.orderType === 'gmcp') {
|
||||
if (!formData.items.length) {
|
||||
ElMessage.warning('请至少添加一条产品明细')
|
||||
return
|
||||
}
|
||||
const projectCodes = formData.items.map((it) => it.projectCode).filter(Boolean)
|
||||
if (new Set(projectCodes).size !== projectCodes.length) {
|
||||
ElMessage.warning('同一项目不能重复添加')
|
||||
return
|
||||
}
|
||||
const invalid = formData.items.some(
|
||||
(it) => !it.projectCode || !it.priceId || !it.quantity || Number(it.quantity) <= 0
|
||||
)
|
||||
if (invalid) {
|
||||
ElMessage.warning('请完善产品明细中的项目、规格与购买份数')
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
submitLoading.value = true
|
||||
try {
|
||||
const payload: Record<string, any> = {
|
||||
orderType: formData.orderType,
|
||||
channelId: formData.channelId,
|
||||
deptName: formData.deptName,
|
||||
remark: formData.remark
|
||||
}
|
||||
|
||||
if (formData.orderType === 'yfk') {
|
||||
payload.channelAgreementId = formData.channelAgreementId
|
||||
} else {
|
||||
payload.channelAgreementId = formData.channelAgreementId
|
||||
payload.products = formData.items.map((it) => ({
|
||||
projectCode: it.projectCode,
|
||||
projectName: it.projectName,
|
||||
cellType: it.cellTypeName || it.cellType,
|
||||
specText: it.specText,
|
||||
agreementUnitPrice: it.unitPrice,
|
||||
buyQty: it.quantity,
|
||||
buyAmount: it.amount
|
||||
}))
|
||||
}
|
||||
|
||||
if (formMode.value === 'add') {
|
||||
const payload: Record<string, any> = {
|
||||
orderType: formData.orderType,
|
||||
channelId: formData.channelId,
|
||||
deptName: formData.deptName,
|
||||
channelAgreementId: formData.channelAgreementId,
|
||||
remark: formData.remark
|
||||
}
|
||||
await fetchCreateChannelServiceOrder(payload)
|
||||
ElMessage.success('创建成功')
|
||||
} else {
|
||||
if (formData.orderType === 'gmcp') {
|
||||
payload.products = formData.items.map((it) => ({
|
||||
projectCode: it.projectCode,
|
||||
projectName: it.projectName,
|
||||
cellType: it.cellTypeName || it.cellType,
|
||||
specText: it.specText,
|
||||
agreementUnitPrice: it.unitPrice,
|
||||
buyQty: it.quantity,
|
||||
buyAmount: it.amount
|
||||
}))
|
||||
const payload: Record<string, any> = {
|
||||
deptName: formData.deptName,
|
||||
remark: formData.remark
|
||||
}
|
||||
if (formAgreementEditable.value && formData.channelAgreementId) {
|
||||
payload.channelAgreementId = formData.channelAgreementId
|
||||
}
|
||||
await fetchUpdateChannelServiceOrder(currentEditId.value, payload)
|
||||
ElMessage.success('更新成功')
|
||||
@@ -1472,26 +1403,46 @@ const refundTxnVisible = ref(false)
|
||||
const refundTxnLoading = ref(false)
|
||||
const refundTxnForm = reactive({
|
||||
amount: null as number | null,
|
||||
remark: ''
|
||||
remark: '',
|
||||
attachments: [] as any[]
|
||||
})
|
||||
|
||||
const openRefundDialog = (row: any) => {
|
||||
currentOrderForTxn.value = row
|
||||
refundTxnForm.amount = null
|
||||
refundTxnForm.remark = ''
|
||||
refundTxnForm.attachments = []
|
||||
refundTxnVisible.value = true
|
||||
}
|
||||
|
||||
const refundUploadRef = ref()
|
||||
|
||||
const handleRefundAttachmentChange = (uploadFile: any) => {
|
||||
const file = uploadFile.raw || uploadFile
|
||||
if (!file) return
|
||||
uploadAttachmentItem(file, refundTxnForm.attachments, refundUploadRef, 'channel-service-order-refund')
|
||||
}
|
||||
|
||||
const removeRefundAttachment = (index: number) => {
|
||||
refundTxnForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const submitRefundTxn = async () => {
|
||||
if (!refundTxnForm.amount || refundTxnForm.amount <= 0) {
|
||||
ElMessage.warning('请输入退款金额')
|
||||
return
|
||||
}
|
||||
if (hasUploadingAttachments(refundTxnForm.attachments)) {
|
||||
ElMessage.warning('附件正在上传,请稍候')
|
||||
return
|
||||
}
|
||||
refundTxnLoading.value = true
|
||||
try {
|
||||
const attachmentUrls = joinAttachmentUrls(refundTxnForm.attachments)
|
||||
const res: any = await fetchCreateRefundTxn(currentOrderForTxn.value.id, {
|
||||
amount: refundTxnForm.amount,
|
||||
remark: refundTxnForm.remark
|
||||
remark: refundTxnForm.remark,
|
||||
attachments: attachmentUrls || undefined
|
||||
})
|
||||
const txn = res?.data ?? res
|
||||
refundTxnVisible.value = false
|
||||
@@ -1698,6 +1649,9 @@ const submitUnsubscribe = async () => {
|
||||
try {
|
||||
const products = validItems.map((it) => ({
|
||||
projectCode: it.projectCode,
|
||||
projectName: it.projectName,
|
||||
specText: it.specText,
|
||||
agreementUnitPrice: it.agreementUnitPrice,
|
||||
qty: it.unsubscribeQty
|
||||
}))
|
||||
const res: any = await fetchCreateUnsubscribeTxn(currentOrderForTxn.value.id, {
|
||||
@@ -1923,6 +1877,16 @@ onMounted(() => {
|
||||
.product-detail-total {
|
||||
font-size: 14px;
|
||||
color: var(--el-text-color-regular);
|
||||
|
||||
&--right {
|
||||
margin-top: 12px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.product-detail-total-value {
|
||||
font-weight: 600;
|
||||
color: var(--primary, #10b981);
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.product-detail-cell-control) {
|
||||
@@ -1932,6 +1896,7 @@ onMounted(() => {
|
||||
:deep(.product-detail-cell-control.el-select .el-select__wrapper),
|
||||
:deep(.product-detail-cell-control.el-input-number .el-input__wrapper) {
|
||||
min-height: 32px;
|
||||
height: 32px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user