提交
This commit is contained in:
1 parent
3e15776dba
commit
93c28759d0
54 files changed
+6504
-5865
No files matched your search
@@ -18,6 +18,7 @@ export async function fetchLogin(params: { username: string; password: string })
|
||||
realName: string
|
||||
phone: string
|
||||
role: string
|
||||
roleNames?: string[]
|
||||
regionId: string
|
||||
regionName: string
|
||||
avatarUrl?: string | null
|
||||
@@ -42,6 +43,7 @@ export function fetchGetUserInfo() {
|
||||
sex?: string
|
||||
remark?: string
|
||||
role: string
|
||||
roleNames?: string[]
|
||||
regionId: string
|
||||
regionName: string
|
||||
regionIds?: string[]
|
||||
@@ -70,6 +72,7 @@ export function fetchUpdateProfile(data: {
|
||||
sex?: string
|
||||
remark?: string
|
||||
role: string
|
||||
roleNames?: string[]
|
||||
regionId: string
|
||||
regionName: string
|
||||
avatarUrl?: string | null
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="采集量">
|
||||
<el-form-item v-if="!hideCollectDetailFields" label="采集量">
|
||||
<el-input
|
||||
v-model="sampleDraft.collectAmount"
|
||||
type="number"
|
||||
@@ -195,7 +195,7 @@
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单位">
|
||||
<el-form-item v-if="!hideCollectDetailFields" label="单位">
|
||||
<el-select
|
||||
v-model="sampleDraft.unitId"
|
||||
placeholder="输入单位检索"
|
||||
@@ -222,7 +222,7 @@
|
||||
<el-form-item v-if="showPrice" label="优惠价格(元)">
|
||||
<AmountInput v-model="sampleDraft.price" :min="0" placeholder="请输入优惠价格" />
|
||||
</el-form-item>
|
||||
<el-form-item label="存储年限(年)">
|
||||
<el-form-item v-if="!hideCollectDetailFields" label="存储年限(年)">
|
||||
<el-input
|
||||
v-model="sampleDraft.storageYears"
|
||||
type="number"
|
||||
@@ -411,6 +411,7 @@
|
||||
siteOptions: Api.Site.SiteItem[]
|
||||
expressCompanyOptions: Api.ExpressCompany.ExpressCompanyItem[]
|
||||
showPrice?: boolean
|
||||
hideCollectDetailFields?: boolean
|
||||
sampleCodeUsedKey?: 'usedInProtocol'
|
||||
sampleCodeOptionsLoading?: boolean
|
||||
sampleTypeOptionsLoading?: boolean
|
||||
@@ -420,6 +421,7 @@
|
||||
}>(),
|
||||
{
|
||||
showPrice: false,
|
||||
hideCollectDetailFields: false,
|
||||
sampleCodeUsedKey: 'usedInProtocol',
|
||||
sampleCodeOptionsLoading: false,
|
||||
sampleTypeOptionsLoading: false,
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
{{ userInfo.realName || userInfo.username || '管理员' }}
|
||||
</span>
|
||||
<span class="block mt-0.5 text-xs text-g-500 truncate">
|
||||
{{ getRoleName(userInfo.role) }}
|
||||
{{ roleDisplayText }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -97,6 +97,14 @@
|
||||
() => userInfo.value.realName?.charAt(0) || userInfo.value.username?.charAt(0) || '管'
|
||||
)
|
||||
|
||||
const roleDisplayText = computed(() => {
|
||||
const names = userInfo.value.roleNames
|
||||
if (Array.isArray(names) && names.length > 0) {
|
||||
return names.join('、')
|
||||
}
|
||||
return '暂无角色'
|
||||
})
|
||||
|
||||
const userMenuPopover = ref()
|
||||
const profileDialogVisible = ref(false)
|
||||
const passwordDialogVisible = ref(false)
|
||||
@@ -115,19 +123,6 @@
|
||||
}, 150)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取角色名称
|
||||
*/
|
||||
const getRoleName = (role: string) => {
|
||||
const roleMap: Record<string, string> = {
|
||||
admin: '运营管理员',
|
||||
supplier: '供应商',
|
||||
client: '客户',
|
||||
deliver: '配送员'
|
||||
}
|
||||
return roleMap[role] || role || '未知角色'
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户登出确认
|
||||
*/
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_sample_transport_form_section_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/sample-transport-form-section/index.vue", "source_location": "L1"}, {"id": "sample_transport_form_section_index_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/sample-transport-form-section/index.vue", "source_location": "L661"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_sample_transport_form_section_index_vue", "target": "sample_transport_form_section_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/sample-transport-form-section/index.vue", "source_location": "L661", "weight": 1.0}], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_numeric_input_parse_ts", "label": "numeric-input-parse.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L1"}, {"id": "utils_numeric_input_parse_extractnumericpart", "label": "extractNumericPart()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L2"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_numeric_input_parse_ts", "target": "utils_numeric_input_parse_extractnumericpart", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L2", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_numeric_input_parse_extractnumericpart", "callee": "isNaN", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L5"}, {"caller_nid": "utils_numeric_input_parse_extractnumericpart", "callee": "match", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L7"}, {"caller_nid": "utils_numeric_input_parse_extractnumericpart", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L7"}, {"caller_nid": "utils_numeric_input_parse_extractnumericpart", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L7"}, {"caller_nid": "utils_numeric_input_parse_extractnumericpart", "callee": "Number", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L9"}, {"caller_nid": "utils_numeric_input_parse_extractnumericpart", "callee": "isNaN", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts", "source_location": "L10"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "label": "user.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "pinia", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L15", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L16", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_enums_appenum", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L17", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_router", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L18", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_worktab", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L19", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_types_router", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_router_guards_beforeeach", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L21", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_menu", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L22", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_storage_storage_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L23", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_router_routesalias", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L25", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_router", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L26", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_user_avatar", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts", "source_location": "L27", "weight": 1.0}], "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": "L746"}, {"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": "L764"}, {"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": "L771"}, {"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": "L782"}, {"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": "L881"}, {"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": "L939"}, {"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": "L947"}, {"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": "L970"}, {"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": "L1017"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_sample_transport_form_section_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L651", "weight": 1.0}, {"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": "L652", "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/DonationFormDialog.vue", "source_location": "L653", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_research_donation", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L663", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_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/research-donation/list/DonationFormDialog.vue", "source_location": "L668", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_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/research-donation/list/DonationFormDialog.vue", "source_location": "L669", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_webLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_material_qcmaterialusagetab_vue", "label": "QcMaterialUsageTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L1"}, {"id": "qc_material_qcmaterialusagetab_ismanualoutrow", "label": "isManualOutRow()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L437"}, {"id": "qc_material_qcmaterialusagetab_isdiscardrow", "label": "isDiscardRow()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L443"}, {"id": "qc_material_qcmaterialusagetab_parsefromremark", "label": "parseFromRemark()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L447"}, {"id": "qc_material_qcmaterialusagetab_displayreceiver", "label": "displayReceiver()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L456"}, {"id": "qc_material_qcmaterialusagetab_displaypurpose", "label": "displayPurpose()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L462"}, {"id": "qc_material_qcmaterialusagetab_displayusetime", "label": "displayUseTime()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L468"}, {"id": "qc_material_qcmaterialusagetab_displayusageqty", "label": "displayUsageQty()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L474"}, {"id": "qc_material_qcmaterialusagetab_displaytaskusageqty", "label": "displayTaskUsageQty()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L480"}, {"id": "qc_material_qcmaterialusagetab_displayqctaskno", "label": "displayQcTaskNo()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L484"}, {"id": "qc_material_qcmaterialusagetab_displaystockbefore", "label": "displayStockBefore()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L489"}, {"id": "qc_material_qcmaterialusagetab_getchangetypelabel", "label": "getChangeTypeLabel()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L496"}, {"id": "qc_material_qcmaterialusagetab_getchangetypetagtype", "label": "getChangeTypeTagType()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L503"}, {"id": "qc_material_qcmaterialusagetab_getsourcetagtype", "label": "getSourceTagType()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L510"}, {"id": "qc_material_qcmaterialusagetab_getsourcelabel", "label": "getSourceLabel()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L519"}, {"id": "qc_material_qcmaterialusagetab_canmarkfullyused", "label": "canMarkFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L530"}, {"id": "qc_material_qcmaterialusagetab_handlemarkfullyused", "label": "handleMarkFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L534"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_material_qcmaterialusagetab_vue", "target": "qc_material_qcmaterialusagetab_ismanualoutrow", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L437", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admiLine truncated
|
||||
+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": "L748"}, {"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": "L766"}, {"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": "L773"}, {"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": "L784"}, {"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": "L883"}, {"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": "L941"}, {"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": "L949"}, {"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": "L972"}, {"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": "L1019"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_sample_transport_form_section_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L652", "weight": 1.0}, {"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": "L653", "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/DonationFormDialog.vue", "source_location": "L654", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_research_donation", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue", "source_location": "L664", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_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/research-donation/list/DonationFormDialog.vue", "source_location": "L669", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_research_donation_list_donationformdialog_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/research-donation/list/DonationFormDialog.vue", "source_location": "L670", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_webLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "label": "auth.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L1"}, {"id": "api_auth_fetchlogin", "label": "fetchLogin()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L9"}, {"id": "api_auth_fetchgetuserinfo", "label": "fetchGetUserInfo()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L36"}, {"id": "api_auth_fetchupdateprofile", "label": "fetchUpdateProfile()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L59"}, {"id": "api_auth_fetchuploadprofileavatar", "label": "fetchUploadProfileAvatar()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L87"}, {"id": "api_auth_fetchchangepassword", "label": "fetchChangePassword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L95"}, {"id": "api_auth_fetchgetmenucodes", "label": "fetchGetMenuCodes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L106"}, {"id": "api_auth_fetchrefreshtoken", "label": "fetchRefreshToken()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L121"}, {"id": "api_auth_fetchlogout", "label": "fetchLogout()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L135"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_http", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_loginrsa", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "api_auth_fetchlogin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "api_auth_fetchgetuserinfo", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L36", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "api_auth_fetchupdateprofile", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L59", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "api_auth_fetchuploadprofileavatar", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L87", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "api_auth_fetchchangepassword", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L95", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "api_auth_fetchgetmenucodes", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L106", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "api_auth_fetchrefreshtoken", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L121", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_auth_ts", "target": "api_auth_fetchlogout", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L135", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_auth_fetchlogin", "callee": "buildWebEncryptedLoginBody", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "source_location": "L10"}, {"caller_nid": "api_auth_fetchlogin", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts", "Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_role_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/role/index.vue", "source_location": "L1"}, {"id": "role_index_walk", "label": "walk()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/role/index.vue", "source_location": "L553"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_system_role_index_vue", "target": "role_index_walk", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/role/index.vue", "source_location": "L553", "weight": 1.0}], "raw_calls": [{"caller_nid": "role_index_walk", "callee": "push", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/role/index.vue", "source_location": "L555"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_hooks_core_usemenuperm_ts", "label": "useMenuPerm.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L1"}, {"id": "core_usemenuperm_usemenuperm", "label": "useMenuPerm()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L13"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_hooks_core_usemenuperm_ts", "target": "vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_hooks_core_usemenuperm_ts", "target": "pinia", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_hooks_core_usemenuperm_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_hooks_core_usemenuperm_ts", "target": "core_usemenuperm_usemenuperm", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L13", "weight": 1.0}], "raw_calls": [{"caller_nid": "core_usemenuperm_usemenuperm", "callee": "useUserStore", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L14"}, {"caller_nid": "core_usemenuperm_usemenuperm", "callee": "storeToRefs", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L15"}, {"caller_nid": "core_usemenuperm_usemenuperm", "callee": "computed", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useMenuPerm.ts", "source_location": "L24"}]}
|
||||
+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": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_chinese_datetime_parse_ts", "label": "chinese-datetime-parse.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L1"}, {"id": "utils_chinese_datetime_parse_parsechinesedatetimetext", "label": "parseChineseDatetimeText()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L4"}, {"id": "utils_chinese_datetime_parse_handlechinesedatetimepaste", "label": "handleChineseDatetimePaste()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L45"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_chinese_datetime_parse_ts", "target": "utils_chinese_datetime_parse_parsechinesedatetimetext", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_chinese_datetime_parse_ts", "target": "utils_chinese_datetime_parse_handlechinesedatetimepaste", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L45", "weight": 1.0}, {"source": "utils_chinese_datetime_parse_handlechinesedatetimepaste", "target": "utils_chinese_datetime_parse_parsechinesedatetimetext", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L52", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L8"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "test", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L11"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "test", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L15"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "replace", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L16"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "slice", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L17"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L18"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L20"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "padStart", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L21"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "padStart", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L22"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "padStart", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L23"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "match", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L27"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "padStart", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L33"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L33"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "Number", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-datetime-parse.ts", "source_location": "L33"}, {"caller_nid": "utils_chinese_datetime_parse_parsechinesedatetimetext", "callee": "padStart", "source_file": "/Users/wuzilong/work/00code/zkxw/web-aLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_router_guards_beforeeach_ts", "label": "beforeEach.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L1"}, {"id": "guards_beforeeach_getpendingloading", "label": "getPendingLoading()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L75"}, {"id": "guards_beforeeach_resetpendingloading", "label": "resetPendingLoading()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L82"}, {"id": "guards_beforeeach_getrouteinitfailed", "label": "getRouteInitFailed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L89"}, {"id": "guards_beforeeach_resetrouteinitstate", "label": "resetRouteInitState()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L96"}, {"id": "guards_beforeeach_setupbeforeeachguard", "label": "setupBeforeEachGuard()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L104"}, {"id": "guards_beforeeach_closeloading", "label": "closeLoading()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L128"}, {"id": "guards_beforeeach_handlerouteguard", "label": "handleRouteGuard()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L140"}, {"id": "guards_beforeeach_handleloginstatus", "label": "handleLoginStatus()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L204"}, {"id": "guards_beforeeach_isstaticroute", "label": "isStaticRoute()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L232"}, {"id": "guards_beforeeach_handledynamicroutes", "label": "handleDynamicRoutes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L262"}, {"id": "guards_beforeeach_fetchuserinfo", "label": "fetchUserInfo()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L379"}, {"id": "guards_beforeeach_resetrouterstate", "label": "resetRouterState()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L404"}, {"id": "guards_beforeeach_handlerootpathredirect", "label": "handleRootPathRedirect()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L422"}, {"id": "guards_beforeeach_isunauthorizederror", "label": "isUnauthorizedError()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L439"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_guards_beforeeach_ts", "target": "vue_router", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L38", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_guards_beforeeach_ts", "target": "vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L39", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_guards_beforeeach_ts", "target": "nprogress", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L40", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_guards_beforeeach_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_setting", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L41", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_guards_beforeeach_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts", "source_location": "L42", "weight": 1.0}, {"source": "users_wuzilong_work_00Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_api_d_ts", "label": "api.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/api.d.ts", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_types_api_d_ts", "target": "vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/api.d.ts", "source_location": "L800", "weight": 1.0}], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_components_core_layouts_art_header_bar_widget_artusermenu_vue", "label": "ArtUserMenu.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L1"}, {"id": "widget_artusermenu_openprofiledialog", "label": "openProfileDialog()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L112"}, {"id": "widget_artusermenu_openpassworddialog", "label": "openPasswordDialog()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L119"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_components_core_layouts_art_header_bar_widget_artusermenu_vue", "target": "widget_artusermenu_openprofiledialog", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L112", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_components_core_layouts_art_header_bar_widget_artusermenu_vue", "target": "widget_artusermenu_openpassworddialog", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L119", "weight": 1.0}], "raw_calls": [{"caller_nid": "widget_artusermenu_openprofiledialog", "callee": "closeUserMenu", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L113"}, {"caller_nid": "widget_artusermenu_openprofiledialog", "callee": "setTimeout", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L114"}, {"caller_nid": "widget_artusermenu_openpassworddialog", "callee": "closeUserMenu", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L120"}, {"caller_nid": "widget_artusermenu_openpassworddialog", "callee": "setTimeout", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue", "source_location": "L121"}]}
|
||||
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* 菜单权限码(字段/按钮级能力)判断
|
||||
*
|
||||
* 与 require_menu_code 路由守卫不同:仅判断用户是否拥有某 perms,不拦截页面访问。
|
||||
* 权限码来源:登录后缓存的 /web/auth/menu-codes(sys_menu.perms,经角色继承)。
|
||||
*/
|
||||
import { computed } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
|
||||
export const MY_QC_MATERIAL_USAGE_VIEW_AMOUNT_PERM = 'biz:myQcMaterialUsage:viewAmount'
|
||||
|
||||
export function useMenuPerm() {
|
||||
const userStore = useUserStore()
|
||||
const { menuPermAll, menuCodes, isSuperAdmin } = storeToRefs(userStore)
|
||||
|
||||
const hasMenuPerm = (permCode: string): boolean => {
|
||||
const code = (permCode || '').trim()
|
||||
if (!code) return false
|
||||
if (isSuperAdmin.value || menuPermAll.value) return true
|
||||
return (menuCodes.value || []).includes(code)
|
||||
}
|
||||
|
||||
const hasMyQcMaterialUsageViewAmount = computed(() =>
|
||||
hasMenuPerm(MY_QC_MATERIAL_USAGE_VIEW_AMOUNT_PERM)
|
||||
)
|
||||
|
||||
return {
|
||||
hasMenuPerm,
|
||||
hasMyQcMaterialUsageViewAmount
|
||||
}
|
||||
}
|
||||
@@ -48,7 +48,7 @@ import { staticRoutes } from '../routes/staticRoutes'
|
||||
import { loadingService } from '@/utils/ui'
|
||||
import { useCommon } from '@/hooks/core/useCommon'
|
||||
import { useWorktabStore } from '@/store/modules/worktab'
|
||||
import { fetchGetUserInfo } from '@/api/auth'
|
||||
import { fetchGetUserInfo, fetchGetMenuCodes } from '@/api/auth'
|
||||
import { ApiStatus } from '@/utils/http/status'
|
||||
import { isHttpError } from '@/utils/http/error'
|
||||
import { RouteRegistry, MenuProcessor, IframeRouteManager, RoutePermissionValidator } from '../core'
|
||||
@@ -380,6 +380,20 @@ async function fetchUserInfo(): Promise<void> {
|
||||
const userStore = useUserStore()
|
||||
const data = await fetchGetUserInfo()
|
||||
userStore.setUserInfo(data)
|
||||
try {
|
||||
const perm = await fetchGetMenuCodes()
|
||||
userStore.setMenuPerms({
|
||||
isSuperAdmin: perm?.isSuperAdmin ?? false,
|
||||
all: perm?.all ?? false,
|
||||
menuCodes: perm?.menuCodes ?? []
|
||||
})
|
||||
} catch {
|
||||
userStore.setMenuPerms({
|
||||
isSuperAdmin: false,
|
||||
all: false,
|
||||
menuCodes: []
|
||||
})
|
||||
}
|
||||
// 检查并清理工作台标签页(如果是不同用户登录)
|
||||
userStore.checkAndClearWorktabs()
|
||||
}
|
||||
|
||||
@@ -37,6 +37,12 @@ export const useUserStore = defineStore(
|
||||
const isLogin = ref(false)
|
||||
// 用户信息
|
||||
const info = ref<Api.Auth.UserInfo>({} as Api.Auth.UserInfo)
|
||||
/** 是否 super_admin(菜单权限全量) */
|
||||
const isSuperAdmin = ref(false)
|
||||
/** 是否拥有全部菜单权限码(兼容后端 all 标记) */
|
||||
const menuPermAll = ref(false)
|
||||
/** 当前用户菜单权限码(sys_menu.perms) */
|
||||
const menuCodes = ref<string[]>([])
|
||||
// 访问令牌
|
||||
const accessToken = ref('')
|
||||
// 刷新令牌
|
||||
@@ -68,6 +74,16 @@ export const useUserStore = defineStore(
|
||||
} as Api.Auth.UserInfo
|
||||
}
|
||||
|
||||
const setMenuPerms = (payload: {
|
||||
isSuperAdmin?: boolean
|
||||
all?: boolean
|
||||
menuCodes?: string[]
|
||||
}) => {
|
||||
isSuperAdmin.value = !!payload?.isSuperAdmin
|
||||
menuPermAll.value = !!payload?.all
|
||||
menuCodes.value = Array.isArray(payload?.menuCodes) ? payload.menuCodes : []
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置登录状态
|
||||
* @param status 登录状态
|
||||
@@ -126,6 +142,9 @@ export const useUserStore = defineStore(
|
||||
|
||||
// 清空用户信息
|
||||
info.value = {} as Api.Auth.UserInfo
|
||||
isSuperAdmin.value = false
|
||||
menuPermAll.value = false
|
||||
menuCodes.value = []
|
||||
// 重置登录状态
|
||||
isLogin.value = false
|
||||
// 清空访问令牌
|
||||
@@ -192,6 +211,10 @@ export const useUserStore = defineStore(
|
||||
lockPassword,
|
||||
getUserInfo,
|
||||
setUserInfo,
|
||||
setMenuPerms,
|
||||
isSuperAdmin,
|
||||
menuPermAll,
|
||||
menuCodes,
|
||||
setLoginStatus,
|
||||
setToken,
|
||||
setLanguage,
|
||||
|
||||
Vendored
+1
@@ -13,6 +13,7 @@ declare namespace Api {
|
||||
sex?: string
|
||||
remark?: string
|
||||
role: string
|
||||
roleNames?: string[]
|
||||
regionId?: string
|
||||
regionName?: string
|
||||
roles?: string[]
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* 将用户粘贴的中文日期时间(如「2026年6月22日12时18分」)解析为系统标准格式。
|
||||
*/
|
||||
export function parseChineseDatetimeText(
|
||||
text: string,
|
||||
format: 'date' | 'datetime'
|
||||
): string | null {
|
||||
const raw = text.trim()
|
||||
if (!raw) return null
|
||||
|
||||
if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
|
||||
return raw
|
||||
}
|
||||
|
||||
if (/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}(:\d{2})?$/.test(raw)) {
|
||||
const normalized = raw.replace('T', ' ')
|
||||
if (format === 'date') return normalized.slice(0, 10)
|
||||
const parts = normalized.split(' ')
|
||||
const time = parts[1] || '00:00:00'
|
||||
const timeParts = time.split(':')
|
||||
const hh = timeParts[0]?.padStart(2, '0') ?? '00'
|
||||
const mm = timeParts[1]?.padStart(2, '0') ?? '00'
|
||||
const ss = timeParts[2]?.padStart(2, '0') ?? '00'
|
||||
return `${parts[0]} ${hh}:${mm}:${ss}`
|
||||
}
|
||||
|
||||
const cnMatch = raw.match(
|
||||
/^(\d{4})年(\d{1,2})月(\d{1,2})日(?:\s*(\d{1,2})[时::](\d{1,2})(?:[分::](\d{1,2})[秒]?)?)?/
|
||||
)
|
||||
if (!cnMatch) return null
|
||||
|
||||
const y = cnMatch[1]
|
||||
const mo = String(Number(cnMatch[2])).padStart(2, '0')
|
||||
const d = String(Number(cnMatch[3])).padStart(2, '0')
|
||||
const dateStr = `${y}-${mo}-${d}`
|
||||
|
||||
if (format === 'date') return dateStr
|
||||
|
||||
const h = String(Number(cnMatch[4] || 0)).padStart(2, '0')
|
||||
const mi = String(Number(cnMatch[5] || 0)).padStart(2, '0')
|
||||
const s = String(Number(cnMatch[6] || 0)).padStart(2, '0')
|
||||
return `${dateStr} ${h}:${mi}:${s}`
|
||||
}
|
||||
|
||||
export function handleChineseDatetimePaste(
|
||||
e: ClipboardEvent,
|
||||
format: 'date' | 'datetime',
|
||||
setter: (val: string) => void
|
||||
) {
|
||||
const text = e.clipboardData?.getData('text')?.trim()
|
||||
if (!text) return
|
||||
const parsed = parseChineseDatetimeText(text, format)
|
||||
if (!parsed) return
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
setter(parsed)
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/** 从带单位的文本(如「3900克」「3900g」)中提取数值部分 */
|
||||
export function extractNumericPart(val: unknown): number | null {
|
||||
if (val == null || val === '') return null
|
||||
if (typeof val === 'number') {
|
||||
return Number.isNaN(val) ? null : val
|
||||
}
|
||||
const match = String(val).trim().match(/-?\d+(?:\.\d+)?/)
|
||||
if (!match) return null
|
||||
const num = Number(match[0])
|
||||
return Number.isNaN(num) ? null : num
|
||||
}
|
||||
@@ -123,12 +123,24 @@
|
||||
<el-table-column label="厂家" min-width="120" align="center" header-align="center" show-overflow-tooltip>
|
||||
<template #default="{ row }">{{ row.manufacturer || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价(元)" min-width="110" align="center" header-align="center">
|
||||
<el-table-column
|
||||
v-if="showAmountColumns"
|
||||
label="单价(元)"
|
||||
min-width="110"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ row.unitPrice != null ? formatMoneyDisplay(row.unitPrice) : '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="金额(元)" min-width="110" align="center" header-align="center">
|
||||
<el-table-column
|
||||
v-if="showAmountColumns"
|
||||
label="金额(元)"
|
||||
min-width="110"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ row.amount != null ? formatMoneyDisplay(row.amount) : '—' }}
|
||||
</template>
|
||||
@@ -379,6 +391,7 @@
|
||||
import type { QcMaterialOption } from '@/api/qc-material'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import { SHOW_QC_TASK_MATERIAL_USAGE } from '@/utils/qc-material-ui'
|
||||
import { useMenuPerm } from '@/hooks/core/useMenuPerm'
|
||||
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
|
||||
|
||||
defineOptions({ name: 'QcMaterialUsageTab' })
|
||||
@@ -393,6 +406,11 @@
|
||||
)
|
||||
|
||||
const route = useRoute()
|
||||
const { hasMyQcMaterialUsageViewAmount } = useMenuPerm()
|
||||
|
||||
const showAmountColumns = computed(
|
||||
() => !props.mineOnly || hasMyQcMaterialUsageViewAmount.value
|
||||
)
|
||||
|
||||
const searchForm = reactive<{
|
||||
keyword: string
|
||||
@@ -626,14 +644,18 @@
|
||||
{ label: '货号', value: row.catalogNo || '—' },
|
||||
{ label: '批号', value: row.batchNo || '—' },
|
||||
{ label: '厂家', value: row.manufacturer || '—' },
|
||||
{
|
||||
label: '单价(元)',
|
||||
value: row.unitPrice != null ? formatMoneyDisplay(row.unitPrice) : '—'
|
||||
},
|
||||
{
|
||||
label: '金额(元)',
|
||||
value: row.amount != null ? formatMoneyDisplay(row.amount) : '—'
|
||||
},
|
||||
...(showAmountColumns.value
|
||||
? [
|
||||
{
|
||||
label: '单价(元)',
|
||||
value: row.unitPrice != null ? formatMoneyDisplay(row.unitPrice) : '—'
|
||||
},
|
||||
{
|
||||
label: '金额(元)',
|
||||
value: row.amount != null ? formatMoneyDisplay(row.amount) : '—'
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
label: '变动类型',
|
||||
value: getChangeTypeLabel(row),
|
||||
|
||||
@@ -167,24 +167,44 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="样本采集时间">
|
||||
<el-date-picker
|
||||
v-model="formData.sampleCollectTime"
|
||||
type="datetime"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
placeholder="选择采集时间"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
<div
|
||||
class="date-paste-wrap"
|
||||
@paste.capture="
|
||||
(e) =>
|
||||
handleChineseDatetimePaste(e, 'datetime', (v) => (formData.sampleCollectTime = v))
|
||||
"
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="formData.sampleCollectTime"
|
||||
type="datetime"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
placeholder="选择采集时间"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="母血采集时间">
|
||||
<el-date-picker
|
||||
v-model="formData.maternalBloodCollectTime"
|
||||
type="datetime"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
placeholder="选择采集时间"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
<div
|
||||
class="date-paste-wrap"
|
||||
@paste.capture="
|
||||
(e) =>
|
||||
handleChineseDatetimePaste(
|
||||
e,
|
||||
'datetime',
|
||||
(v) => (formData.maternalBloodCollectTime = v)
|
||||
)
|
||||
"
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="formData.maternalBloodCollectTime"
|
||||
type="datetime"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
placeholder="选择采集时间"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
@@ -198,6 +218,7 @@
|
||||
</div>
|
||||
<SampleTransportFormSection
|
||||
v-model:samples="formData.samples"
|
||||
hide-collect-detail-fields
|
||||
:sample-type-options="sampleTypeOptions"
|
||||
:sample-type-options-loading="sampleTypeLoading"
|
||||
:sample-code-options="sampleCodeOptions"
|
||||
@@ -336,24 +357,48 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="预产期">
|
||||
<el-date-picker
|
||||
v-model="formData.expectedDeliveryDate"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="选择预产期"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
<div
|
||||
class="date-paste-wrap"
|
||||
@paste.capture="
|
||||
(e) =>
|
||||
handleChineseDatetimePaste(
|
||||
e,
|
||||
'date',
|
||||
(v) => (formData.expectedDeliveryDate = v)
|
||||
)
|
||||
"
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="formData.expectedDeliveryDate"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="选择预产期"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="新生儿分娩时间">
|
||||
<el-date-picker
|
||||
v-model="formData.newbornDeliveryTime"
|
||||
type="datetime"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
placeholder="选择分娩时间"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
<div
|
||||
class="date-paste-wrap"
|
||||
@paste.capture="
|
||||
(e) =>
|
||||
handleChineseDatetimePaste(
|
||||
e,
|
||||
'datetime',
|
||||
(v) => (formData.newbornDeliveryTime = v)
|
||||
)
|
||||
"
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="formData.newbornDeliveryTime"
|
||||
type="datetime"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
placeholder="选择分娩时间"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="新生儿身份证" class="form-col-span-2">
|
||||
<el-input v-model="formData.newbornIdCard" placeholder="请输入" />
|
||||
@@ -380,11 +425,12 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="新生儿体重(克)">
|
||||
<el-input
|
||||
v-model="formData.newbornWeightGram"
|
||||
type="number"
|
||||
step="any"
|
||||
:min="0"
|
||||
:model-value="formData.newbornWeightGram ?? ''"
|
||||
placeholder="请输入"
|
||||
style="width: 100%"
|
||||
@update:model-value="
|
||||
(v) => (formData.newbornWeightGram = extractNumericPart(v))
|
||||
"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="新生儿评分1分钟">
|
||||
@@ -622,6 +668,8 @@
|
||||
} from '@/api/research-donation'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { handleChineseDatetimePaste } from '@/utils/chinese-datetime-parse'
|
||||
import { extractNumericPart } from '@/utils/numeric-input-parse'
|
||||
import {
|
||||
fetchCustomerList,
|
||||
fetchUserList,
|
||||
@@ -788,7 +836,7 @@
|
||||
// Basic
|
||||
donationNo: '',
|
||||
donationNoId: '',
|
||||
donationStatus: 'dsx',
|
||||
donationStatus: 'sxz',
|
||||
donationDate: '',
|
||||
collectorUserId: '',
|
||||
remark: '',
|
||||
@@ -836,7 +884,7 @@
|
||||
Object.assign(formData, {
|
||||
donationNo: '',
|
||||
donationNoId: '',
|
||||
donationStatus: 'dsx',
|
||||
donationStatus: 'sxz',
|
||||
donationDate: '',
|
||||
collectorUserId: '',
|
||||
remark: '',
|
||||
@@ -1898,6 +1946,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.date-paste-wrap {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════
|
||||
SECTION CARDS
|
||||
═══════════════════════════════════════════ */
|
||||
|
||||
@@ -218,11 +218,12 @@
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<DialogFormBody :loading="menuDialogLoading">
|
||||
<!-- 父子关联勾选:选父级全选子级,选子级自动带上父级(与 check-strictly 互斥,故不加) -->
|
||||
<!-- 父子节点独立勾选:父级可不选子级、子级可不选父级(如页面权限与按钮权限分开配置) -->
|
||||
<el-tree
|
||||
ref="menuTreeRef"
|
||||
:data="menuTreeData"
|
||||
show-checkbox
|
||||
check-strictly
|
||||
node-key="id"
|
||||
:props="{ label: 'menuName', children: 'children' }"
|
||||
:default-checked-keys="menuCheckedKeys"
|
||||
@@ -392,6 +393,7 @@
|
||||
ref="viewMenuTreeRef"
|
||||
class="role-view-readonly-tree"
|
||||
show-checkbox
|
||||
check-strictly
|
||||
:data="viewMenuTreeData"
|
||||
node-key="id"
|
||||
:props="{ label: 'menuName', children: 'children' }"
|
||||
@@ -795,17 +797,16 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交角色菜单:只持久化叶子菜单 ID(去重),避免树控件偶发重复 key。
|
||||
* 父子关联下「半选」父节点在 getHalfCheckedKeys;若与 getCheckedKeys 一起入库,重开弹窗会把父节点当全选,误勾整棵子树。
|
||||
* 侧栏按 menuCode 过滤时会保留有权限子项的父级,无需单独存父菜单行。
|
||||
* 提交角色菜单:持久化所有显式勾选的节点 ID(去重)。
|
||||
* check-strictly 下父子独立,须保存非叶子页面节点(如仅勾选 C 菜单、不勾选其 F 按钮子项)。
|
||||
*/
|
||||
async function handleMenuSubmit() {
|
||||
menuSubmitLoading.value = true
|
||||
try {
|
||||
const tree = menuTreeRef.value
|
||||
const rawKeys: string[] = tree?.getCheckedKeys(true) || []
|
||||
const leafKeys = [...new Set(rawKeys)]
|
||||
await fetchUpdateRoleMenus(menuEditingRoleId.value, leafKeys)
|
||||
const rawKeys: string[] = tree?.getCheckedKeys(false) || []
|
||||
const menuIds = [...new Set(rawKeys)]
|
||||
await fetchUpdateRoleMenus(menuEditingRoleId.value, menuIds)
|
||||
menuDialogVisible.value = false
|
||||
} finally {
|
||||
menuSubmitLoading.value = false
|
||||
|
||||
Reference in new issue
Block a user