提交
This commit is contained in:
1 parent
22685bfd23
commit
2f217111ac
50 files changed
+2192
-261
No files matched your search
@@ -80,12 +80,15 @@
|
||||
[/(接收|检查项|样本|编码)/, 'auto-title-file'],
|
||||
[/(审核|记录)/, 'auto-title-file'],
|
||||
[/(客户|公司|机构|医院)/, 'auto-title-user'],
|
||||
[/(洁净服)/, 'auto-title-garment'],
|
||||
[/(采集|地区|洁净|库位)/, 'auto-title-location'],
|
||||
[/(预约)/, 'auto-title-operation'],
|
||||
[/(工单)/, 'auto-title-receipt'],
|
||||
[/(流程|待办|已办|申请|请假|执行|计划)/, 'auto-title-operation'],
|
||||
[/(耗材|试剂|设备)/, 'auto-title-box'],
|
||||
[/(耗材|试剂|设备|物料库)/, 'auto-title-box'],
|
||||
[/(路线)/, 'auto-title-route'],
|
||||
[/(工艺库)/, 'auto-title-process'],
|
||||
[/(工艺基础)/, 'auto-title-category'],
|
||||
[/(工艺)/, 'auto-title-settings'],
|
||||
[/(规格|价格|体系|渠道|项目)/, 'auto-title-category'],
|
||||
[/(类型)/, 'auto-title-category'],
|
||||
|
||||
@@ -71,5 +71,8 @@ export function fetchMyMaterialUsageList(params: {
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
}): Promise<{ list: MaterialUsage[]; total: number }> {
|
||||
return request.get('/web/admin/my-material-usages', { params })
|
||||
return request.get<PageList<MaterialUsage>>({
|
||||
url: '/web/admin/my-material-usages',
|
||||
params
|
||||
})
|
||||
}
|
||||
@@ -426,6 +426,10 @@ body {
|
||||
margin: 12px 24px 4px;
|
||||
}
|
||||
|
||||
&--start:not(.el-tabs) {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
&__track {
|
||||
display: inline-flex;
|
||||
gap: 4px;
|
||||
@@ -568,6 +572,119 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
// 面板级左对齐下划线 Tab(对齐 docs/my-material-usage-tab-demos/04-left-underline)
|
||||
.panel-underline-tabs {
|
||||
&:not(.el-tabs) {
|
||||
margin: 12px 24px 0;
|
||||
border-bottom: 2px solid var(--mint-border, #e2e8f0);
|
||||
}
|
||||
|
||||
&__track {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
&__btn {
|
||||
padding: 14px 28px;
|
||||
margin-bottom: -2px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
cursor: pointer;
|
||||
border-bottom: 3px solid transparent;
|
||||
transition:
|
||||
color 0.15s,
|
||||
border-color 0.15s,
|
||||
background 0.15s;
|
||||
|
||||
&:hover:not(.is-active) {
|
||||
color: var(--mint-text, #1e293b);
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
color: var(--primary-dark, #059669);
|
||||
font-weight: 600;
|
||||
border-bottom-color: var(--primary, #10b981);
|
||||
}
|
||||
}
|
||||
|
||||
// el-tabs 结构
|
||||
&.el-tabs {
|
||||
> .el-tabs__header {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
margin: 12px 24px 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-bottom: 2px solid var(--mint-border, #e2e8f0);
|
||||
}
|
||||
|
||||
.el-tabs__nav-wrap {
|
||||
flex: 0 1 auto;
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.el-tabs__nav-scroll {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.el-tabs__nav {
|
||||
float: none;
|
||||
gap: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.el-tabs__active-bar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.el-tabs__item {
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
box-sizing: border-box;
|
||||
height: auto !important;
|
||||
margin: 0 0 -2px !important;
|
||||
padding: 14px 28px !important;
|
||||
border: none !important;
|
||||
border-bottom: 3px solid transparent !important;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
text-align: center !important;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
transition:
|
||||
color 0.15s,
|
||||
border-color 0.15s,
|
||||
background 0.15s;
|
||||
|
||||
&:hover:not(.is-active) {
|
||||
color: var(--mint-text, #1e293b);
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
color: var(--primary-dark, #059669);
|
||||
font-weight: 600;
|
||||
border-bottom-color: var(--primary, #10b981) !important;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-container
|
||||
:is(
|
||||
.panel-top h2,
|
||||
@@ -722,6 +839,17 @@ body {
|
||||
.console-container .panel-top h2.auto-title-location {
|
||||
--panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-7-11a7 7 0 1 1 14 0c0 6.5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
|
||||
}
|
||||
.page-container
|
||||
:is(
|
||||
.panel-top h2,
|
||||
.panel-top h3,
|
||||
.storage-content-header h3,
|
||||
.storage-aside__head h2,
|
||||
.user-dept-aside__head h2
|
||||
).auto-title-garment,
|
||||
.console-container .panel-top h2.auto-title-garment {
|
||||
--panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z'/%3E%3C/svg%3E");
|
||||
}
|
||||
.page-container
|
||||
:is(
|
||||
.panel-top h2,
|
||||
@@ -744,6 +872,17 @@ body {
|
||||
.console-container .panel-top h2.auto-title-route {
|
||||
--panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E");
|
||||
}
|
||||
.page-container
|
||||
:is(
|
||||
.panel-top h2,
|
||||
.panel-top h3,
|
||||
.storage-content-header h3,
|
||||
.storage-aside__head h2,
|
||||
.user-dept-aside__head h2
|
||||
).auto-title-process,
|
||||
.console-container .panel-top h2.auto-title-process {
|
||||
--panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3C/svg%3E");
|
||||
}
|
||||
.page-container
|
||||
:is(
|
||||
.panel-top h2,
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "label": "ProcessRouteTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1"}, {"id": "process_processroutetab_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1473"}, {"id": "process_processroutetab_get", "label": "get()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1682"}, {"id": "process_processroutetab_set", "label": "set()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1692"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1473", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1593", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_get", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1682", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_set", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1692", "weight": 1.0}], "raw_calls": [{"caller_nid": "process_processroutetab_if", "callee": "some", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1474"}, {"caller_nid": "process_processroutetab_if", "callee": "mapReagentOptionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1476"}, {"caller_nid": "process_processroutetab_if", "callee": "some", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1594"}, {"caller_nid": "process_processroutetab_if", "callee": "mapConsumableOptionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1596"}, {"caller_nid": "process_processroutetab_get", "callee": "isArray", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1686"}, {"caller_nid": "process_processroutetab_get", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1686"}, {"caller_nid": "process_processroutetab_get", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1687"}, {"caller_nid": "process_processroutetab_get", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1687"}, {"caller_nid": "process_processroutetab_get", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1687"}, {"caller_nid": "process_processroutetab_get", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1687"}, {"caller_nid": "process_processroutetab_set", "callee": "join", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1694"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_category_outputtypetab_vue", "label": "OutputTypeTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process-category/OutputTypeTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_material_usage_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L1"}, {"id": "my_production_material_usage_index_handletabchange", "label": "handleTabChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L47"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_material_usage_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialusagetab_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L35", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_material_usage_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L36", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_material_usage_index_vue", "target": "my_production_material_usage_index_handletabchange", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L47", "weight": 1.0}], "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_views_production_production_work_order_samplereceptiondialog_vue", "label": "SampleReceptionDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L1"}, {"id": "production_work_order_samplereceptiondialog_protocolstatuslabelbysource", "label": "protocolStatusLabelBySource()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L378"}, {"id": "production_work_order_samplereceptiondialog_protocolstatustagtypebysource", "label": "protocolStatusTagTypeBySource()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L382"}, {"id": "production_work_order_samplereceptiondialog_scrollreceivetosection", "label": "scrollReceiveToSection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L386"}, {"id": "production_work_order_samplereceptiondialog_getcurrentuserhandler", "label": "getCurrentUserHandler()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L394"}, {"id": "production_work_order_samplereceptiondialog_ensurecurrentuserinoptions", "label": "ensureCurrentUserInOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L401"}, {"id": "production_work_order_samplereceptiondialog_onhandlerchange", "label": "onHandlerChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L409"}, {"id": "production_work_order_samplereceptiondialog_formatnowdatetime", "label": "formatNowDatetime()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L414"}, {"id": "production_work_order_samplereceptiondialog_extractreceptiondate", "label": "extractReceptionDate()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L420"}, {"id": "production_work_order_samplereceptiondialog_allocatelabstoragecodes", "label": "allocateLabStorageCodes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L425"}, {"id": "production_work_order_samplereceptiondialog_refreshreceivelabstoragecode", "label": "refreshReceiveLabStorageCode()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L432"}, {"id": "production_work_order_samplereceptiondialog_onlabstoragecodemanualinput", "label": "onLabStorageCodeManualInput()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L452"}, {"id": "production_work_order_samplereceptiondialog_onreceivereceptiontimechange", "label": "onReceiveReceptionTimeChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L456"}, {"id": "production_work_order_samplereceptiondialog_onreceiveacceptconclusionchange", "label": "onReceiveAcceptConclusionChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L464"}, {"id": "production_work_order_samplereceptiondialog_resetcheckvalues", "label": "resetCheckValues()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L475"}, {"id": "production_work_order_samplereceptiondialog_applycheckresultsfromdetail", "label": "applyCheckResultsFromDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L482"}, {"id": "production_work_order_samplereceptiondialog_populatereceiveformfromdetail", "label": "populateReceiveFormFromDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-aLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_category_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process-category/index.vue", "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_views_production_output_type_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/output-type/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_category_outputtypetab_vue", "label": "OutputTypeTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process-category/OutputTypeTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_ts", "label": "material-usage.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L1"}, {"id": "api_material_usage_fetchmaterialusagelist", "label": "fetchMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L41"}, {"id": "api_material_usage_fetchmarkmaterialusagefullyused", "label": "fetchMarkMaterialUsageFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L58"}, {"id": "api_material_usage_fetchmymaterialusagelist", "label": "fetchMyMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L64"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_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/material-usage.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_ts", "target": "api_material_usage_fetchmaterialusagelist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L41", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_ts", "target": "api_material_usage_fetchmarkmaterialusagefullyused", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L58", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_ts", "target": "api_material_usage_fetchmymaterialusagelist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L64", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_material_usage_fetchmaterialusagelist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L52"}, {"caller_nid": "api_material_usage_fetchmarkmaterialusagefullyused", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L59"}, {"caller_nid": "api_material_usage_fetchmymaterialusagelist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L74"}]}
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">我的物料领用记录</h2>
|
||||
<h2>我的物料领用记录</h2>
|
||||
</div>
|
||||
<MaterialUsageTab mine-only />
|
||||
</section>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">缴退费财务确认</h2>
|
||||
<h2>缴退费财务确认</h2>
|
||||
</div>
|
||||
|
||||
<div class="panel-pill-tabs panel-pill-tabs--start">
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
color: var(--mint-text, #1e293b);
|
||||
color: var(--primary, #10b981);
|
||||
word-break: break-word;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container cell-product-kanban-page">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">细胞产品基础信息维护</h2>
|
||||
<h2>细胞产品基础信息维护</h2>
|
||||
</div>
|
||||
|
||||
<section class="cell-product-stats">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">缴退费财务确认</h2>
|
||||
<h2>缴退费财务确认</h2>
|
||||
</div>
|
||||
|
||||
<div class="panel-pill-tabs panel-pill-tabs--start">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">洁净服管理</h2>
|
||||
<h2>洁净服管理</h2>
|
||||
</div>
|
||||
|
||||
<div class="filter-block">
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">我的物料领用记录</h2>
|
||||
<h2>我的物料领用记录</h2>
|
||||
</div>
|
||||
|
||||
<div class="panel-pill-tabs">
|
||||
<div class="panel-pill-tabs__track" role="tablist">
|
||||
<div class="panel-underline-tabs">
|
||||
<div class="panel-underline-tabs__track" role="tablist">
|
||||
<button
|
||||
v-for="tab in TABS"
|
||||
:key="tab.name"
|
||||
type="button"
|
||||
role="tab"
|
||||
class="panel-pill-tabs__btn"
|
||||
class="panel-underline-tabs__btn"
|
||||
:class="{ 'is-active': activeTab === tab.name }"
|
||||
:aria-selected="activeTab === tab.name"
|
||||
@click="handleTabChange(tab.name)"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">我的生产任务</h2>
|
||||
<h2>我的生产任务</h2>
|
||||
</div>
|
||||
|
||||
<div class="panel-pill-tabs">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- 旧「工艺产出物类型」菜单入口:重定向至工艺基础信息维护 · 产出物类型 Tab -->
|
||||
<!-- 旧「工艺产出物类型」菜单入口:重定向至工艺基础信息维护 -->
|
||||
<template>
|
||||
<div />
|
||||
</template>
|
||||
@@ -12,7 +12,7 @@
|
||||
onMounted(() => {
|
||||
router.replace({
|
||||
name: 'ProductionProcessCategory',
|
||||
query: { ...route.query, tab: 'output-type' }
|
||||
query: { ...route.query }
|
||||
})
|
||||
})
|
||||
</script>
|
||||
@@ -1,7 +1,49 @@
|
||||
<!-- 工艺基础信息维护 · 产出物类型 Tab -->
|
||||
<!-- 工艺基础信息维护 · 产出物类型 -->
|
||||
<!-- eslint-disable vue/no-v-model-argument -->
|
||||
<template>
|
||||
<div class="output-type-tab">
|
||||
<div :class="layout === 'kanban' ? 'kanban-col-body' : 'output-type-tab'">
|
||||
<template v-if="layout === 'kanban'">
|
||||
<div class="kanban-col-search">
|
||||
<el-input v-model="searchForm.keyword" placeholder="类型编码/名称" clearable />
|
||||
</div>
|
||||
<div class="kanban-list" v-loading="loading">
|
||||
<article
|
||||
v-for="row in tableData"
|
||||
:key="row.id"
|
||||
class="entity-card"
|
||||
@dblclick="handleView(row)"
|
||||
>
|
||||
<div class="entity-card-del" @click.stop>
|
||||
<el-button class="btn-op-item" title="删除" @click="handleDelete(row)">
|
||||
<el-icon><Delete /></el-icon>
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="entity-card-body">
|
||||
<h3 class="entity-card-title">{{ row.typeName }}</h3>
|
||||
<div class="entity-card-meta">{{ row.typeCode }}</div>
|
||||
<div v-if="row.remark" class="entity-card-tags">
|
||||
<span class="tag muted">{{ row.remark }}</span>
|
||||
</div>
|
||||
<div class="entity-card-ft" @click.stop>
|
||||
<div class="entity-card-ft-actions">
|
||||
<el-button class="btn-op-item" @click="handleView(row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click="handleEdit(row)">
|
||||
<el-icon><Edit /></el-icon>编辑
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<div v-if="!loading && !tableData.length" class="kanban-empty">
|
||||
<span>暂无产出物类型</span>
|
||||
<span class="kanban-empty__hint">点击列头「新增」添加产出物类型</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-else>
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
@@ -95,7 +137,10 @@
|
||||
<el-button class="btn-op-item" @click="handleView(row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-dropdown trigger="hover" @command="(cmd: string) => handleDropdownCommand(cmd, row)">
|
||||
<el-dropdown
|
||||
trigger="hover"
|
||||
@command="(cmd: string) => handleDropdownCommand(cmd, row)"
|
||||
>
|
||||
<el-button class="btn-op-item">
|
||||
<el-icon><More /></el-icon>
|
||||
</el-button>
|
||||
@@ -126,57 +171,58 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:title="dialogTitle"
|
||||
width="560px"
|
||||
class="dialog-form-layout"
|
||||
align-center
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:title="dialogTitle"
|
||||
width="560px"
|
||||
class="dialog-form-layout"
|
||||
align-center
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="formData"
|
||||
:rules="formRules"
|
||||
label-position="top"
|
||||
class="output-type-dialog-form"
|
||||
scroll-to-error
|
||||
:scroll-into-view-options="{ behavior: 'smooth', block: 'center' }"
|
||||
>
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="formData"
|
||||
:rules="formRules"
|
||||
label-position="top"
|
||||
class="output-type-dialog-form"
|
||||
scroll-to-error
|
||||
:scroll-into-view-options="{ behavior: 'smooth', block: 'center' }"
|
||||
>
|
||||
<div class="form-grid-2">
|
||||
<el-form-item label="类型编码" prop="typeCode">
|
||||
<el-input v-model="formData.typeCode" placeholder="请输入类型编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="类型名称" prop="typeName">
|
||||
<el-input v-model="formData.typeName" placeholder="请输入类型名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" class="form-col-span-2">
|
||||
<el-input v-model="formData.remark" placeholder="可选" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button class="btn-ghost" @click="dialogVisible = false">
|
||||
<el-icon><Close /></el-icon>
|
||||
取消
|
||||
</el-button>
|
||||
<el-button class="btn-main" type="primary" @click="handleSubmit" :loading="submitLoading">
|
||||
<el-icon><Check /></el-icon>
|
||||
确定
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<div class="form-grid-2">
|
||||
<el-form-item label="类型编码" prop="typeCode">
|
||||
<el-input v-model="formData.typeCode" placeholder="请输入类型编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="类型名称" prop="typeName">
|
||||
<el-input v-model="formData.typeName" placeholder="请输入类型名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" class="form-col-span-2">
|
||||
<el-input v-model="formData.remark" placeholder="可选" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button class="btn-ghost" @click="dialogVisible = false">
|
||||
<el-icon><Close /></el-icon>
|
||||
取消
|
||||
</el-button>
|
||||
<el-button class="btn-main" type="primary" @click="handleSubmit" :loading="submitLoading">
|
||||
<el-icon><Check /></el-icon>
|
||||
确定
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<SystemViewDialog
|
||||
v-model:visible="viewVisible"
|
||||
:title="viewRow?.typeName || '类型详情'"
|
||||
:icon="ScaleToOriginal"
|
||||
:code="viewRow?.typeCode"
|
||||
code-label="类型编码"
|
||||
:sections="viewSections"
|
||||
/>
|
||||
<SystemViewDialog
|
||||
v-model:visible="viewVisible"
|
||||
:title="viewRow?.typeName || '类型详情'"
|
||||
:icon="ScaleToOriginal"
|
||||
:code="viewRow?.typeCode"
|
||||
code-label="类型编码"
|
||||
:sections="viewSections"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -206,6 +252,11 @@
|
||||
|
||||
defineOptions({ name: 'OutputTypeTab' })
|
||||
|
||||
const props = withDefaults(defineProps<{ layout?: 'table' | 'kanban' }>(), { layout: 'table' })
|
||||
const emit = defineEmits<{ (e: 'meta-change', payload: { total: number }): void }>()
|
||||
|
||||
const KANBAN_PAGE_SIZE = 100
|
||||
|
||||
const searchForm = reactive<{ keyword: string }>({ keyword: '' })
|
||||
const tableData = ref<any[]>([])
|
||||
const selectedRows = ref<any[]>([])
|
||||
@@ -260,6 +311,7 @@
|
||||
})
|
||||
tableData.value = res.list || []
|
||||
pagination.total = res.total ?? 0
|
||||
emit('meta-change', { total: pagination.total })
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
@@ -364,7 +416,7 @@
|
||||
await loadData()
|
||||
}, fullscreenLoadingText.batchDelete)
|
||||
}
|
||||
// 输入检索条件时自动搜索(防抖 300ms)
|
||||
|
||||
watchDebounced(
|
||||
searchForm,
|
||||
() => {
|
||||
@@ -374,12 +426,38 @@
|
||||
{ debounce: 300, deep: true }
|
||||
)
|
||||
|
||||
defineExpose({ handleAdd, loadData })
|
||||
|
||||
onMounted(() => {
|
||||
if (props.layout === 'kanban') {
|
||||
pagination.pageSize = KANBAN_PAGE_SIZE
|
||||
}
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.kanban-col-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.kanban-col-search {
|
||||
padding: 8px 10px 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.kanban-list {
|
||||
padding: 10px;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
@import './process-category-kanban.scss';
|
||||
|
||||
.output-type-dialog-form {
|
||||
:deep(.el-form-item) {
|
||||
margin-bottom: 0;
|
||||
|
||||
@@ -1,135 +1,111 @@
|
||||
<!-- 工艺基础信息维护(工序分类 + 产出物类型) -->
|
||||
<!-- 工艺基础信息维护 · 看板模式(工艺工序分类 | 工艺产出物类型) -->
|
||||
<!-- eslint-disable vue/no-v-model-argument -->
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<div class="page-container process-base-kanban-page">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2>工艺基础信息维护</h2>
|
||||
</div>
|
||||
|
||||
<el-tabs v-model="activeTab" class="panel-pill-tabs">
|
||||
<el-tab-pane label="工艺工序分类" name="category">
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
<div class="filter-grid">
|
||||
<el-form-item label="关键词">
|
||||
<el-input v-model="searchForm.keyword" placeholder="分类编码/名称" clearable />
|
||||
</el-form-item>
|
||||
<section class="process-base-stats">
|
||||
<div class="stat-card">
|
||||
<div class="stat-icon stat-icon--svg">
|
||||
<el-icon><FolderOpened /></el-icon>
|
||||
</div>
|
||||
<div class="filter-actions-row">
|
||||
<span class="filter-hint">按编码、名称模糊查询。</span>
|
||||
<div class="filter-actions-end">
|
||||
<el-button class="btn-ghost" @click="handleReset"
|
||||
><el-icon><RefreshLeft /></el-icon>重置</el-button
|
||||
>
|
||||
<el-button class="btn-main" type="primary" @click="handleSearch"
|
||||
><el-icon><Search /></el-icon>搜索</el-button
|
||||
>
|
||||
<div class="stat-main">
|
||||
<div class="stat-k">工艺工序分类</div>
|
||||
<div class="stat-v">{{ categoryTotal }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-icon stat-icon--svg">
|
||||
<el-icon><Box /></el-icon>
|
||||
</div>
|
||||
<div class="stat-main">
|
||||
<div class="stat-k">工艺产出物类型</div>
|
||||
<div class="stat-v">{{ outputTypeTotal }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="kanban">
|
||||
<!-- 左列:工艺工序分类 -->
|
||||
<div class="kanban-col">
|
||||
<div class="kanban-col-hd">
|
||||
<span class="kanban-col-title">
|
||||
工艺工序分类
|
||||
<span class="kanban-count">{{ categoryTotal }}</span>
|
||||
</span>
|
||||
<el-button class="btn-main kanban-add-btn" type="primary" @click="handleAdd">
|
||||
<el-icon><Plus /></el-icon>
|
||||
新增
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="kanban-col-search">
|
||||
<el-input
|
||||
v-model="searchForm.keyword"
|
||||
placeholder="分类编码/名称"
|
||||
clearable
|
||||
@keyup.enter="handleSearch"
|
||||
/>
|
||||
</div>
|
||||
<div class="kanban-list" v-loading="loading">
|
||||
<article
|
||||
v-for="row in tableData"
|
||||
:key="row.id"
|
||||
class="entity-card"
|
||||
@dblclick="handleView(row)"
|
||||
>
|
||||
<div class="entity-card-del" @click.stop>
|
||||
<el-button class="btn-op-item" title="删除" @click="handleDelete(row)">
|
||||
<el-icon><Delete /></el-icon>
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="entity-card-body">
|
||||
<h3 class="entity-card-title">{{ row.categoryName }}</h3>
|
||||
<div class="entity-card-meta">{{ row.categoryCode }}</div>
|
||||
<div v-if="row.remark" class="entity-card-tags">
|
||||
<span class="tag muted">{{ row.remark }}</span>
|
||||
</div>
|
||||
<div class="entity-card-ft" @click.stop>
|
||||
<div class="entity-card-ft-actions">
|
||||
<el-button class="btn-op-item" @click="handleView(row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click="handleEdit(row)">
|
||||
<el-icon><Edit /></el-icon>编辑
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<div v-if="!loading && !tableData.length" class="kanban-empty">
|
||||
<span>暂无工序分类</span>
|
||||
<span class="kanban-empty__hint">点击右上角「新增」添加工序分类</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<div class="list-toolbar">
|
||||
<div class="list-toolbar-row">
|
||||
<div class="list-toolbar-selected">
|
||||
已选 <span class="sel-num">{{ selectedRows.length }}</span> 项
|
||||
</div>
|
||||
<el-button class="btn-main" type="primary" @click="handleAdd">
|
||||
<el-icon><Plus /></el-icon>
|
||||
新增分类
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-ghost"
|
||||
type="danger"
|
||||
:disabled="selectedRows.length === 0"
|
||||
@click="handleBatchDelete"
|
||||
>
|
||||
批量删除
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<el-table
|
||||
class="list-table"
|
||||
:data="tableData"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
row-key="id"
|
||||
@selection-change="handleSelectionChange"
|
||||
@row-dblclick="handleView"
|
||||
>
|
||||
<el-table-column type="selection" min-width="55" align="center" header-align="center" />
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
min-width="68"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:index="(index) => (pagination.page - 1) * pagination.pageSize + index + 1"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="categoryCode"
|
||||
label="分类编码"
|
||||
min-width="150"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="categoryName"
|
||||
label="分类名称"
|
||||
min-width="150"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="创建时间"
|
||||
min-width="180"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
min-width="120"
|
||||
fixed="right"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<div style="display: flex; justify-content: center; gap: 8px">
|
||||
<el-button class="btn-op-item" @click="handleView(row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-dropdown trigger="hover" @command="(cmd: string) => handleDropdownCommand(cmd, row)">
|
||||
<el-button class="btn-op-item">
|
||||
<el-icon><More /></el-icon>
|
||||
</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="edit">
|
||||
<el-icon><Edit /></el-icon>编辑
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="delete" divided>
|
||||
<el-icon><Delete /></el-icon>删除
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="pagination list-pager-bar">
|
||||
<el-pagination
|
||||
:current-page="pagination.page"
|
||||
:page-size="pagination.pageSize"
|
||||
:total="pagination.total"
|
||||
:page-sizes="[10, 20, 50]"
|
||||
layout="total, sizes, prev, pager, next"
|
||||
@size-change="(val) => ((pagination.page = 1), (pagination.pageSize = val), loadData())"
|
||||
@current-change="(val) => ((pagination.page = val), loadData())"
|
||||
<!-- 右列:工艺产出物类型 -->
|
||||
<div class="kanban-col">
|
||||
<div class="kanban-col-hd">
|
||||
<span class="kanban-col-title">
|
||||
工艺产出物类型
|
||||
<span class="kanban-count">{{ outputTypeTotal }}</span>
|
||||
</span>
|
||||
<el-button
|
||||
class="btn-main kanban-add-btn"
|
||||
type="primary"
|
||||
@click="outputTypeTabRef?.handleAdd()"
|
||||
>
|
||||
<el-icon><Plus /></el-icon>
|
||||
新增
|
||||
</el-button>
|
||||
</div>
|
||||
<OutputTypeTab
|
||||
ref="outputTypeTabRef"
|
||||
layout="kanban"
|
||||
@meta-change="onOutputTypeMetaChange"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -184,12 +160,6 @@
|
||||
code-label="分类编码"
|
||||
:sections="viewSections"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane label="工艺产出物类型" name="output-type" lazy>
|
||||
<OutputTypeTab />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
@@ -204,10 +174,9 @@
|
||||
View,
|
||||
Edit,
|
||||
Delete,
|
||||
More,
|
||||
ScaleToOriginal,
|
||||
RefreshLeft,
|
||||
Search
|
||||
FolderOpened,
|
||||
Box
|
||||
} from '@element-plus/icons-vue'
|
||||
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
@@ -221,13 +190,16 @@
|
||||
|
||||
defineOptions({ name: 'ProductionProcessCategory' })
|
||||
|
||||
const route = useRoute()
|
||||
const activeTab = ref('category')
|
||||
const KANBAN_PAGE_SIZE = 100
|
||||
|
||||
const outputTypeTabRef = ref<InstanceType<typeof OutputTypeTab> | null>(null)
|
||||
const categoryTotal = ref(0)
|
||||
const outputTypeTotal = ref(0)
|
||||
|
||||
const searchForm = reactive<{ keyword: string }>({ keyword: '' })
|
||||
const tableData = ref<any[]>([])
|
||||
const selectedRows = ref<any[]>([])
|
||||
const loading = ref(false)
|
||||
const pagination = reactive({ page: 1, pageSize: 10, total: 0 })
|
||||
const pagination = reactive({ page: 1, pageSize: KANBAN_PAGE_SIZE, total: 0 })
|
||||
const dialogVisible = ref(false)
|
||||
const dialogTitle = ref('新增分类')
|
||||
const isEdit = ref(false)
|
||||
@@ -248,10 +220,6 @@
|
||||
categoryName: [{ required: true, message: '请输入分类名称', trigger: 'blur' }]
|
||||
}
|
||||
|
||||
const handleSelectionChange = (rows: any[]) => {
|
||||
selectedRows.value = rows
|
||||
}
|
||||
|
||||
const viewSections = computed(() => {
|
||||
if (!viewRow.value) return []
|
||||
const row = viewRow.value
|
||||
@@ -267,6 +235,10 @@
|
||||
]
|
||||
})
|
||||
|
||||
function onOutputTypeMetaChange(payload: { total: number }) {
|
||||
outputTypeTotal.value = payload.total
|
||||
}
|
||||
|
||||
async function loadData() {
|
||||
loading.value = true
|
||||
try {
|
||||
@@ -277,6 +249,7 @@
|
||||
})
|
||||
tableData.value = res.list || []
|
||||
pagination.total = res.total ?? 0
|
||||
categoryTotal.value = pagination.total
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
@@ -287,12 +260,6 @@
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleReset() {
|
||||
searchForm.keyword = ''
|
||||
pagination.page = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
function resetForm() {
|
||||
formData.categoryCode = ''
|
||||
formData.categoryName = ''
|
||||
@@ -348,11 +315,6 @@
|
||||
viewVisible.value = true
|
||||
}
|
||||
|
||||
function handleDropdownCommand(cmd: string, row: any) {
|
||||
if (cmd === 'edit') handleEdit(row)
|
||||
else if (cmd === 'delete') handleDelete(row)
|
||||
}
|
||||
|
||||
async function handleDelete(row: any) {
|
||||
try {
|
||||
await ElMessageBox.confirm('确定要删除该分类吗?', '提示', { type: 'warning' })
|
||||
@@ -366,22 +328,6 @@
|
||||
}, fullscreenLoadingText.delete)
|
||||
}
|
||||
|
||||
async function handleBatchDelete() {
|
||||
const ids = selectedRows.value.map((r) => r.id)
|
||||
if (!ids.length) return
|
||||
await ElMessageBox.confirm(`确定删除选中的 ${ids.length} 个分类吗?`, '提示', {
|
||||
type: 'warning'
|
||||
})
|
||||
await withFullscreenLoading(async () => {
|
||||
for (const id of ids) {
|
||||
await fetchDeleteProcessCategory(id)
|
||||
}
|
||||
ElMessage.success('批量删除成功')
|
||||
selectedRows.value = []
|
||||
await loadData()
|
||||
}, fullscreenLoadingText.batchDelete)
|
||||
}
|
||||
// 输入检索条件时自动搜索(防抖 300ms)
|
||||
watchDebounced(
|
||||
searchForm,
|
||||
() => {
|
||||
@@ -392,18 +338,156 @@
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
const tab = route.query.tab
|
||||
if (tab === 'output-type') {
|
||||
activeTab.value = 'output-type'
|
||||
}
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.process-base-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 12px;
|
||||
padding: 16px 16px 0;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-height: 72px;
|
||||
padding: 12px 16px;
|
||||
border: 1px solid var(--mint-border, #d9e8e2);
|
||||
border-radius: 10px;
|
||||
background: var(--surface, #fff);
|
||||
box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
||||
&--svg {
|
||||
border-radius: 10px;
|
||||
background: var(--primary-bg, #ecfdf5);
|
||||
color: var(--primary-dark, #059669);
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat-main {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.stat-k {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--mint-text, #1e293b);
|
||||
}
|
||||
|
||||
.stat-v {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--primary-dark, #059669);
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.kanban {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.kanban-col {
|
||||
min-width: 0;
|
||||
background: var(--table-head, #f8fafc);
|
||||
border: 1px solid var(--mint-border, #d9e8e2);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: calc(100vh - 280px);
|
||||
max-height: calc(100vh - 200px);
|
||||
}
|
||||
|
||||
.kanban-col-hd {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--mint-border, #d9e8e2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.kanban-col-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--mint-text, #1e293b);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.kanban-count {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
background: var(--surface, #fff);
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
border: 1px solid var(--mint-border, #d9e8e2);
|
||||
}
|
||||
|
||||
.kanban-add-btn {
|
||||
flex-shrink: 0;
|
||||
height: 32px;
|
||||
padding: 0 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.kanban-col-search {
|
||||
padding: 8px 10px 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.kanban-list {
|
||||
padding: 10px;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
@import './process-category-kanban.scss';
|
||||
|
||||
.process-category-dialog-form {
|
||||
:deep(.el-form-item) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.kanban {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.kanban-col {
|
||||
min-height: 320px;
|
||||
max-height: 420px;
|
||||
}
|
||||
|
||||
.process-base-stats {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,8 @@
|
||||
@import '../../pilot-service/cell-product-type/cell-product-kanban.scss';
|
||||
|
||||
.kanban-col-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
@@ -264,6 +264,8 @@
|
||||
width="90vw"
|
||||
class="dialog-form-layout route-config-dialog"
|
||||
align-center
|
||||
append-to-body
|
||||
modal-class="protocol-dialog-mask"
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<h2>工艺库管理</h2>
|
||||
</div>
|
||||
|
||||
<el-tabs v-model="activeTab" class="panel-pill-tabs">
|
||||
<el-tabs v-model="activeTab" class="panel-underline-tabs">
|
||||
<el-tab-pane label="工艺列表" name="list">
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" @submit.prevent>
|
||||
@@ -153,6 +153,8 @@
|
||||
width="1200px"
|
||||
class="dialog-form-layout"
|
||||
align-center
|
||||
append-to-body
|
||||
modal-class="protocol-dialog-mask"
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">生产物料库</h2>
|
||||
<h2>生产物料库</h2>
|
||||
</div>
|
||||
|
||||
<div class="panel-pill-tabs">
|
||||
|
||||
@@ -277,10 +277,10 @@
|
||||
fetchSampleReceptionDetail,
|
||||
fetchSampleReceptionUpdate,
|
||||
fetchSampleReceptionSubmit,
|
||||
fetchSampleReceptionCheckItemsActive,
|
||||
fetchAllocateLabStorageCodes,
|
||||
type SampleReceptionCheckResult
|
||||
} from '@/api/sample-reception'
|
||||
import { fetchSampleReceptionCheckItemsActive } from '@/api/sample-reception-check-item'
|
||||
import { fetchUserOptions } from '@/api/admin'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">生产工单</h2>
|
||||
<h2>生产工单</h2>
|
||||
</div>
|
||||
|
||||
<div class="panel-pill-tabs">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">我的物料领用记录</h2>
|
||||
<h2>我的物料领用记录</h2>
|
||||
</div>
|
||||
<QcMaterialUsageTab mine-only />
|
||||
</section>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">我的质检任务</h2>
|
||||
<h2>我的质检任务</h2>
|
||||
</div>
|
||||
|
||||
<div class="panel-pill-tabs">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">质检工单</h2>
|
||||
<h2>质检工单</h2>
|
||||
</div>
|
||||
|
||||
<div class="panel-pill-tabs">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">样本信息管理</h2>
|
||||
<h2>样本信息管理</h2>
|
||||
</div>
|
||||
<DonationSampleCollectionInfoTab />
|
||||
</section>
|
||||
|
||||
Reference in new issue
Block a user