|
@@ -1,6 +1,9 @@
|
|
<template>
|
|
<template>
|
|
<div class="hc-page-layout-box">
|
|
<div class="hc-page-layout-box">
|
|
- <div :style="`width:${leftWidth}px;`" class="hc-layout-left-box">
|
|
|
|
|
|
+ <div
|
|
|
|
+ :style="`width:${isWbsTreeShow ? leftWidth : 0}px; ${isWbsTreeShow ? '' : 'display: none'}`"
|
|
|
|
+ class="hc-layout-left-box" :class="[isWbsTreeShow ? 'show' : '']"
|
|
|
|
+ >
|
|
<div class="hc-project-box">
|
|
<div class="hc-project-box">
|
|
<div class="hc-project-icon-box">
|
|
<div class="hc-project-icon-box">
|
|
<HcIcon name="stack" />
|
|
<HcIcon name="stack" />
|
|
@@ -34,10 +37,15 @@
|
|
<div class="horizontal-drag-line" @mousedown="onmousedown" />
|
|
<div class="horizontal-drag-line" @mousedown="onmousedown" />
|
|
</div>
|
|
</div>
|
|
<div class="hc-page-content-box">
|
|
<div class="hc-page-content-box">
|
|
- <HcCard :scrollbar="false" action-size="lg">
|
|
|
|
|
|
+ <!---展开收缩树 -->
|
|
|
|
+ <div class="hc-expansion-contraction-tree" @click="setWbsTreeShow">
|
|
|
|
+ <HcIcon v-show="isWbsTreeShow" name="arrow-left-s" />
|
|
|
|
+ <HcIcon v-show="!isWbsTreeShow" name="arrow-right-s" />
|
|
|
|
+ </div>
|
|
|
|
+ <HcNewCard padding>
|
|
<template #header>
|
|
<template #header>
|
|
<HcTooltip keys="tentative_detect_test_add">
|
|
<HcTooltip keys="tentative_detect_test_add">
|
|
- <el-button :disabled="!primaryKeyId" hc-btn type="primary" @click="addFormModalClick">
|
|
|
|
|
|
+ <el-button :disabled="!primaryKeyId" hc-btn color="#37c0fe" style="color: white;" @click="addFormModalClick">
|
|
<HcIcon name="add-circle" />
|
|
<HcIcon name="add-circle" />
|
|
<span>新增</span>
|
|
<span>新增</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -45,7 +53,7 @@
|
|
<HcTooltip keys="tentative_detect_test_copy">
|
|
<HcTooltip keys="tentative_detect_test_copy">
|
|
<el-button
|
|
<el-button
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="copyLoading" hc-btn
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="copyLoading" hc-btn
|
|
- @click="copyDataClick"
|
|
|
|
|
|
+ color="#A16222" @click="copyDataClick"
|
|
>
|
|
>
|
|
<HcIcon name="file-copy-2" />
|
|
<HcIcon name="file-copy-2" />
|
|
<span>复制</span>
|
|
<span>复制</span>
|
|
@@ -54,7 +62,7 @@
|
|
<HcTooltip keys="tentative_detect_test_del">
|
|
<HcTooltip keys="tentative_detect_test_del">
|
|
<el-button
|
|
<el-button
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="removeLoading" hc-btn
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="removeLoading" hc-btn
|
|
- @click="delModalClick"
|
|
|
|
|
|
+ color="#e03997" @click="delModalClick"
|
|
>
|
|
>
|
|
<HcIcon name="delete-bin-2" />
|
|
<HcIcon name="delete-bin-2" />
|
|
<span>删除</span>
|
|
<span>删除</span>
|
|
@@ -63,7 +71,7 @@
|
|
<HcTooltip keys="tentative_detect_test_print">
|
|
<HcTooltip keys="tentative_detect_test_print">
|
|
<el-button
|
|
<el-button
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="printPdfLoading" hc-btn
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="printPdfLoading" hc-btn
|
|
- @click="printPdfClick"
|
|
|
|
|
|
+ color="#567722" @click="printPdfClick"
|
|
>
|
|
>
|
|
<HcIcon name="printer" />
|
|
<HcIcon name="printer" />
|
|
<span>批量打印</span>
|
|
<span>批量打印</span>
|
|
@@ -72,7 +80,7 @@
|
|
<HcTooltip keys="tentative_detect_test_report">
|
|
<HcTooltip keys="tentative_detect_test_report">
|
|
<el-button
|
|
<el-button
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="reportPdfLoading" hc-btn
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="reportPdfLoading" hc-btn
|
|
- @click="reportPdfClick"
|
|
|
|
|
|
+ color="#FF976A" style="color: white;" @click="reportPdfClick"
|
|
>
|
|
>
|
|
<HcIcon name="send-plane-2" />
|
|
<HcIcon name="send-plane-2" />
|
|
<span>批量上报</span>
|
|
<span>批量上报</span>
|
|
@@ -81,7 +89,7 @@
|
|
<HcTooltip keys="tentative_detect_test_quit">
|
|
<HcTooltip keys="tentative_detect_test_quit">
|
|
<el-button
|
|
<el-button
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="quitPdfLoading" hc-btn
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="quitPdfLoading" hc-btn
|
|
- @click="quitPdfClick"
|
|
|
|
|
|
+ color="#e54d42" @click="quitPdfClick"
|
|
>
|
|
>
|
|
<HcIcon name="delete-bin-3" />
|
|
<HcIcon name="delete-bin-3" />
|
|
<span>批量废除</span>
|
|
<span>批量废除</span>
|
|
@@ -90,7 +98,7 @@
|
|
<HcTooltip keys="tentative_detect_test_null">
|
|
<HcTooltip keys="tentative_detect_test_null">
|
|
<el-button
|
|
<el-button
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="printNullPdfLoading" hc-btn
|
|
:disabled="tableCheckedKeys.length <= 0" :loading="printNullPdfLoading" hc-btn
|
|
- @click="printNullPdfClick"
|
|
|
|
|
|
+ color="#567722" @click="printNullPdfClick"
|
|
>
|
|
>
|
|
<HcIcon name="printer" />
|
|
<HcIcon name="printer" />
|
|
<span>打印空表</span>
|
|
<span>打印空表</span>
|
|
@@ -139,8 +147,8 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<HcTable
|
|
<HcTable
|
|
- ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" is-check
|
|
|
|
- border @selection-change="tableSelection"
|
|
|
|
|
|
+ ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading"
|
|
|
|
+ border check-width="29" index-width="50" is-check @selection-change="tableSelection"
|
|
>
|
|
>
|
|
<template #recordNo="{ row }">
|
|
<template #recordNo="{ row }">
|
|
<span class="text-link" @click="tableRowEdit(row, '1')">{{ row?.recordNo }}</span>
|
|
<span class="text-link" @click="tableRowEdit(row, '1')">{{ row?.recordNo }}</span>
|
|
@@ -177,21 +185,17 @@
|
|
</template>
|
|
</template>
|
|
<template #action="{ row }">
|
|
<template #action="{ row }">
|
|
<HcTooltip keys="tentative_detect_test_annex">
|
|
<HcTooltip keys="tentative_detect_test_annex">
|
|
- <el-button plain size="small" type="primary" @click="viewAttachmentModalClick(row)">
|
|
|
|
- 附件
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-link type="primary" @click="viewAttachmentModalClick(row)">附件</el-link>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="tentative_detect_test_info">
|
|
<HcTooltip keys="tentative_detect_test_info">
|
|
- <el-button plain size="small" type="primary" @click="samplingRecordModalClick(row)">
|
|
|
|
- 样品信息
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-link type="primary" @click="samplingRecordModalClick(row)">样品信息</el-link>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
</HcTable>
|
|
</HcTable>
|
|
<template #action>
|
|
<template #action>
|
|
<HcPages :pages="searchForm" @change="pageChange" />
|
|
<HcPages :pages="searchForm" @change="pageChange" />
|
|
</template>
|
|
</template>
|
|
- </HcCard>
|
|
|
|
|
|
+ </HcNewCard>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 查看附件 -->
|
|
<!-- 查看附件 -->
|
|
@@ -315,6 +319,12 @@ const qualifiedData = ref([
|
|
{ label: '合格', value: '1' },
|
|
{ label: '合格', value: '1' },
|
|
])
|
|
])
|
|
|
|
|
|
|
|
+//树展开和收起
|
|
|
|
+const isWbsTreeShow = ref(true)
|
|
|
|
+const setWbsTreeShow = () => {
|
|
|
|
+ isWbsTreeShow.value = !isWbsTreeShow.value
|
|
|
|
+}
|
|
|
|
+
|
|
//加载树形结构数据
|
|
//加载树形结构数据
|
|
const treeLoadNode = async ({ node, item, level }, resolve) => {
|
|
const treeLoadNode = async ({ node, item, level }, resolve) => {
|
|
let contractIdRelation = '', parentId = '0', primaryKeyId = ''
|
|
let contractIdRelation = '', parentId = '0', primaryKeyId = ''
|
|
@@ -429,24 +439,23 @@ const pageChange = ({ current, size }) => {
|
|
//表格数据
|
|
//表格数据
|
|
const tableRef = ref(null)
|
|
const tableRef = ref(null)
|
|
const tableColumn = ref([
|
|
const tableColumn = ref([
|
|
- { key: 'recordNo', name: '记录编号', width: 220 },
|
|
|
|
- { key: 'reportNo', name: '报告编号', width: 220 },
|
|
|
|
- { key: 'samplingLocation', name: '取样地点', width: 220 },
|
|
|
|
- { key: 'trialProjectName', name: '试验项目名称', width: 220 },
|
|
|
|
- { key: 'detectionResult', name: '检测结果', width: 160 },
|
|
|
|
- { key: 'taskStatus', name: '任务状态', width: 140 },
|
|
|
|
- { key: 'detectionCategory', name: '检测类别', width: 120 },
|
|
|
|
- { key: 'isUploadCertificate', name: '是否上传合格证', width: 130 },
|
|
|
|
- { key: 'contractId', name: '合同段', width: 220 },
|
|
|
|
- { key: 'company', name: '单位', width: 160 },
|
|
|
|
- { key: 'specificationNumber', name: '样品编号', width: 220 },
|
|
|
|
- { key: 'specificationModel', name: '规格类型', width: 200 },
|
|
|
|
-
|
|
|
|
|
|
+ { key: 'recordNo', name: '记录编号', width: 180, autoWidth: true },
|
|
|
|
+ { key: 'reportNo', name: '报告编号', width: 180, autoWidth: true },
|
|
|
|
+ { key: 'samplingLocation', name: '取样地点', width: 180, autoWidth: true },
|
|
|
|
+ { key: 'trialProjectName', name: '试验项目名称', width: 100, autoWidth: true },
|
|
|
|
+ { key: 'detectionResult', name: '检测结果', width: 140, autoWidth: true },
|
|
|
|
+ { key: 'taskStatus', name: '任务状态', width: 120, autoWidth: true },
|
|
|
|
+ { key: 'detectionCategory', name: '检测类别', width: 100, autoWidth: true },
|
|
|
|
+ { key: 'isUploadCertificate', name: '是否上传合格证', width: 120, autoWidth: true },
|
|
|
|
+ { key: 'contractId', name: '合同段', width: 140, autoWidth: true },
|
|
|
|
+ { key: 'company', name: '单位', width: 160, autoWidth: true },
|
|
|
|
+ { key: 'specificationNumber', name: '样品编号', width: 220, autoWidth: true },
|
|
|
|
+ { key: 'specificationModel', name: '规格类型', width: 200, autoWidth: true },
|
|
//{key:'projectPosition', name: '工程部位及用途', width: 160},
|
|
//{key:'projectPosition', name: '工程部位及用途', width: 160},
|
|
- { key: 'projectPositionName', name: '工程部位及用途', width: 160 },
|
|
|
|
- { key: 'reportDate', name: '报告日期', width: 170 },
|
|
|
|
- { key: 'trialUserName', name: '试验人员', width: 170 },
|
|
|
|
- { key: 'action', name: '操作', width: 150, fixed: 'right', align: 'center' },
|
|
|
|
|
|
+ { key: 'projectPositionName', name: '工程部位及用途', width: 160, autoWidth: true },
|
|
|
|
+ { key: 'reportDate', name: '报告日期', width: 170, autoWidth: true },
|
|
|
|
+ { key: 'trialUserName', name: '试验人员', width: 170, autoWidth: true },
|
|
|
|
+ { key: 'action', name: '操作', width: 120, fixed: 'right', align: 'center' },
|
|
])
|
|
])
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
|
|
|