提交
This commit is contained in:
1 parent
ee364e24aa
commit
e707ea57ab
21 files changed
+5622
-5404
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L1"}, {"id": "qc_work_order_index_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L462"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L462", "weight": 1.0}], "raw_calls": [{"caller_nid": "qc_work_order_index_if", "callee": "warning", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L463"}]}
|
||||
+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_quality_inspection_qc_work_order_qcworkorderconfigurebatches_vue", "label": "QcWorkOrderConfigureBatches.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderConfigureBatches.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": []}
|
||||
+54
-54
@@ -48,6 +48,59 @@
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<section class="qc-batch-config__selected">
|
||||
<div class="qc-batch-config__selected-head">
|
||||
<span class="qc-batch-config__selected-title">已选项目</span>
|
||||
<span class="qc-batch-config__selected-count">
|
||||
共 {{ batchSelectedCount(batch) }} 项
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="batchSelectedCount(batch)" class="qc-batch-config__selected-body">
|
||||
<div v-if="selectedLabItems(batch).length" class="qc-batch-config__selected-group">
|
||||
<span class="qc-batch-config__selected-label">实验室自检</span>
|
||||
<div class="qc-batch-config__selected-tags">
|
||||
<el-tag
|
||||
v-for="item in selectedLabItems(batch)"
|
||||
:key="'sel-lab-' + item.id"
|
||||
type="success"
|
||||
size="small"
|
||||
closable
|
||||
@close="removeLabItem(batch, item.id)"
|
||||
>
|
||||
{{ item.itemName }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="selectedThirdGroups(batch).length" class="qc-batch-config__selected-third">
|
||||
<span class="qc-batch-config__selected-label">第三方检测</span>
|
||||
<div class="qc-batch-config__selected-third-groups">
|
||||
<div
|
||||
v-for="group in selectedThirdGroups(batch)"
|
||||
:key="'sel-company-' + group.companyId"
|
||||
class="qc-batch-config__selected-company"
|
||||
>
|
||||
<span class="qc-batch-config__selected-company-name">{{
|
||||
group.companyName || '未命名公司'
|
||||
}}</span>
|
||||
<div class="qc-batch-config__selected-tags">
|
||||
<el-tag
|
||||
v-for="item in group.items"
|
||||
:key="'sel-third-' + item.id"
|
||||
type="primary"
|
||||
size="small"
|
||||
closable
|
||||
@close="removeThirdItem(batch, item.id)"
|
||||
>
|
||||
{{ item.itemName }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p v-else class="qc-batch-config__selected-empty hint-muted">暂未选择检测项目</p>
|
||||
</section>
|
||||
|
||||
<div class="qc-config-split">
|
||||
<div class="qc-config-split__panel">
|
||||
<div class="qc-config-split__title">实验室自检项目</div>
|
||||
@@ -109,59 +162,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="qc-batch-config__selected">
|
||||
<div class="qc-batch-config__selected-head">
|
||||
<span class="qc-batch-config__selected-title">已选项目</span>
|
||||
<span class="qc-batch-config__selected-count">
|
||||
共 {{ batchSelectedCount(batch) }} 项
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="batchSelectedCount(batch)" class="qc-batch-config__selected-body">
|
||||
<div v-if="selectedLabItems(batch).length" class="qc-batch-config__selected-group">
|
||||
<span class="qc-batch-config__selected-label">实验室自检</span>
|
||||
<div class="qc-batch-config__selected-tags">
|
||||
<el-tag
|
||||
v-for="item in selectedLabItems(batch)"
|
||||
:key="'sel-lab-' + item.id"
|
||||
type="success"
|
||||
size="small"
|
||||
closable
|
||||
@close="removeLabItem(batch, item.id)"
|
||||
>
|
||||
{{ item.itemName }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="selectedThirdGroups(batch).length" class="qc-batch-config__selected-third">
|
||||
<span class="qc-batch-config__selected-label">第三方检测</span>
|
||||
<div class="qc-batch-config__selected-third-groups">
|
||||
<div
|
||||
v-for="group in selectedThirdGroups(batch)"
|
||||
:key="'sel-company-' + group.companyId"
|
||||
class="qc-batch-config__selected-company"
|
||||
>
|
||||
<span class="qc-batch-config__selected-company-name">{{
|
||||
group.companyName || '未命名公司'
|
||||
}}</span>
|
||||
<div class="qc-batch-config__selected-tags">
|
||||
<el-tag
|
||||
v-for="item in group.items"
|
||||
:key="'sel-third-' + item.id"
|
||||
type="primary"
|
||||
size="small"
|
||||
closable
|
||||
@close="removeThirdItem(batch, item.id)"
|
||||
>
|
||||
{{ item.itemName }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p v-else class="qc-batch-config__selected-empty hint-muted">暂未选择检测项目</p>
|
||||
</section>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
@@ -460,7 +460,7 @@
|
||||
}
|
||||
|
||||
.qc-batch-config__selected {
|
||||
margin-top: 16px;
|
||||
margin-bottom: 16px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 8px;
|
||||
|
||||
@@ -191,6 +191,9 @@
|
||||
|
||||
defineOptions({ name: 'QualityInspectionQcWorkOrder' })
|
||||
|
||||
/** 批次负责人下拉:仅展示拥有该角色的用户 */
|
||||
const QC_BATCH_ASSIGNEE_ROLE = '质检专员'
|
||||
|
||||
type QcWorkOrderTabPanelExpose = {
|
||||
reload: () => Promise<void>
|
||||
setKeyword: (keyword: string) => void
|
||||
@@ -504,7 +507,7 @@
|
||||
const [labList, thirdList, users] = await Promise.all([
|
||||
fetchQcLabTestItemsActive(),
|
||||
fetchQcThirdPartyItemsActive(),
|
||||
fetchUserOptions().catch(() => [])
|
||||
fetchUserOptions({ roleName: QC_BATCH_ASSIGNEE_ROLE }).catch(() => [])
|
||||
])
|
||||
labOptions.value = labList || []
|
||||
thirdOptions.value = thirdList || []
|
||||
|
||||
Reference in new issue
Block a user