|
@@ -4,16 +4,16 @@
|
|
<template #header>
|
|
<template #header>
|
|
<HcTooltip keys="wbs_views_drawings" v-if="NodeStatus !== '3' && isDrawer">
|
|
<HcTooltip keys="wbs_views_drawings" v-if="NodeStatus !== '3' && isDrawer">
|
|
<el-button hc-btn :disabled="!nodeDataInfo?.fileUrl" @click="viewsDrawings">
|
|
<el-button hc-btn :disabled="!nodeDataInfo?.fileUrl" @click="viewsDrawings">
|
|
- <HcIcon name="wallpaper"/>
|
|
|
|
|
|
+ <HcIcon name="image"/>
|
|
<span>查看图纸</span>
|
|
<span>查看图纸</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')" v-if="isDrawer">
|
|
<el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')" v-if="isDrawer">
|
|
- <HcIcon name="e911_emergency"/>
|
|
|
|
|
|
+ <HcIcon name="folder-user"/>
|
|
<span>施工质检</span>
|
|
<span>施工质检</span>
|
|
</el-button>
|
|
</el-button>
|
|
<el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')" v-if="isDrawer">
|
|
<el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')" v-if="isDrawer">
|
|
- <HcIcon name="engineering"/>
|
|
|
|
|
|
+ <HcIcon name="folder-shield"/>
|
|
<span>监理质检</span>
|
|
<span>监理质检</span>
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -45,19 +45,19 @@
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_report" v-if="NodeStatus !== '3'">
|
|
<HcTooltip keys="wbs_report" v-if="NodeStatus !== '3'">
|
|
<el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" @click="reportModalClick">
|
|
<el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" @click="reportModalClick">
|
|
- <HcIcon name="drive_folder_upload"/>
|
|
|
|
|
|
+ <HcIcon name="send-plane-2"/>
|
|
<span>上报</span>
|
|
<span>上报</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_preview">
|
|
<HcTooltip keys="wbs_preview">
|
|
<el-button hc-btn :disabled="NodeStatus === '1'" :loading="bussPdfsLoading" @click="bussPdfsClick">
|
|
<el-button hc-btn :disabled="NodeStatus === '1'" :loading="bussPdfsLoading" @click="bussPdfsClick">
|
|
- <HcIcon name="visibility"/>
|
|
|
|
|
|
+ <HcIcon name="eye"/>
|
|
<span>预览</span>
|
|
<span>预览</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_abolish" v-if="NodeStatus === '3'">
|
|
<HcTooltip keys="wbs_abolish" v-if="NodeStatus === '3'">
|
|
<el-button hc-btn @click="abolishOneClick">
|
|
<el-button hc-btn @click="abolishOneClick">
|
|
- <HcIcon name="undo"/>
|
|
|
|
|
|
+ <HcIcon name="arrow-go-back"/>
|
|
<span>撤回上报流程</span>
|
|
<span>撤回上报流程</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
@@ -83,7 +83,7 @@
|
|
<div class="hc-search-tree-val">
|
|
<div class="hc-search-tree-val">
|
|
<el-input v-model="searchTreeVal" block size="large" placeholder="请输入名称关键词检索" clearable @keyup="searchTreeKeyUp">
|
|
<el-input v-model="searchTreeVal" block size="large" placeholder="请输入名称关键词检索" clearable @keyup="searchTreeKeyUp">
|
|
<template #suffix>
|
|
<template #suffix>
|
|
- <HcIcon name="search" ui="text-2xl"/>
|
|
|
|
|
|
+ <HcIcon name="search-2" ui="text-xl"/>
|
|
</template>
|
|
</template>
|
|
</el-input>
|
|
</el-input>
|
|
</div>
|
|
</div>
|
|
@@ -114,30 +114,27 @@
|
|
<template #header>
|
|
<template #header>
|
|
<HcTooltip keys="wbs_views_drawings" v-if="NodeStatus !== '3'">
|
|
<HcTooltip keys="wbs_views_drawings" v-if="NodeStatus !== '3'">
|
|
<el-button hc-btn :disabled="!nodeDataInfo?.fileUrl" @click="viewsDrawings">
|
|
<el-button hc-btn :disabled="!nodeDataInfo?.fileUrl" @click="viewsDrawings">
|
|
- <HcIcon name="wallpaper"/>
|
|
|
|
|
|
+ <HcIcon name="image"/>
|
|
<span>查看图纸</span>
|
|
<span>查看图纸</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')">
|
|
<el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')">
|
|
- <HcIcon name="e911_emergency"/>
|
|
|
|
|
|
+ <HcIcon name="folder-user"/>
|
|
<span>施工质检</span>
|
|
<span>施工质检</span>
|
|
</el-button>
|
|
</el-button>
|
|
<el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')">
|
|
<el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')">
|
|
- <HcIcon name="engineering"/>
|
|
|
|
|
|
+ <HcIcon name="folder-shield"/>
|
|
<span>监理质检</span>
|
|
<span>监理质检</span>
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<!--切换导图或树形模式-->
|
|
<!--切换导图或树形模式-->
|
|
<template #extra>
|
|
<template #extra>
|
|
<HcNewSwitch :datas="wbsTypeTab" :keys="wbsTypeTabKey" @change="wbsTypeTabChange"/>
|
|
<HcNewSwitch :datas="wbsTypeTab" :keys="wbsTypeTabKey" @change="wbsTypeTabChange"/>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<!--清表列表-->
|
|
<!--清表列表-->
|
|
<el-scrollbar ref="ListItemScrollRef">
|
|
<el-scrollbar ref="ListItemScrollRef">
|
|
<ListItem ref="ListItemRef" :datas="ListItemDatas" :projectId="projectId" :contractId="contractId" :classify="authBtnTabKey" @offsetTop="ListItemOffsetTop" @renew="getTableDataAll"/>
|
|
<ListItem ref="ListItemRef" :datas="ListItemDatas" :projectId="projectId" :contractId="contractId" :classify="authBtnTabKey" @offsetTop="ListItemOffsetTop" @renew="getTableDataAll"/>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
-
|
|
|
|
<!--底部按钮区域-->
|
|
<!--底部按钮区域-->
|
|
<template #action>
|
|
<template #action>
|
|
<HcTooltip keys="wbs_save" v-if="NodeStatus !== '3'">
|
|
<HcTooltip keys="wbs_save" v-if="NodeStatus !== '3'">
|
|
@@ -148,19 +145,19 @@
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_report" v-if="NodeStatus !== '3'">
|
|
<HcTooltip keys="wbs_report" v-if="NodeStatus !== '3'">
|
|
<el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" @click="reportModalClick">
|
|
<el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" @click="reportModalClick">
|
|
- <HcIcon name="drive_folder_upload"/>
|
|
|
|
|
|
+ <HcIcon name="send-plane-2"/>
|
|
<span>上报</span>
|
|
<span>上报</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_preview">
|
|
<HcTooltip keys="wbs_preview">
|
|
<el-button hc-btn :disabled="NodeStatus === '1'" :loading="bussPdfsLoading" @click="bussPdfsClick">
|
|
<el-button hc-btn :disabled="NodeStatus === '1'" :loading="bussPdfsLoading" @click="bussPdfsClick">
|
|
- <HcIcon name="visibility"/>
|
|
|
|
|
|
+ <HcIcon name="eye"/>
|
|
<span>预览</span>
|
|
<span>预览</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_abolish" v-if="NodeStatus === '3'">
|
|
<HcTooltip keys="wbs_abolish" v-if="NodeStatus === '3'">
|
|
<el-button hc-btn @click="abolishOneClick">
|
|
<el-button hc-btn @click="abolishOneClick">
|
|
- <HcIcon name="undo"/>
|
|
|
|
|
|
+ <HcIcon name="arrow-go-back"/>
|
|
<span>撤回上报流程</span>
|
|
<span>撤回上报流程</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
@@ -318,7 +315,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import {ref,watch,onMounted} from "vue";
|
|
import {ref,watch,onMounted} from "vue";
|
|
import {useRouter, useRoute} from 'vue-router'
|
|
import {useRouter, useRoute} from 'vue-router'
|
|
-import {useAppStore} from "~src/store/index";
|
|
|
|
|
|
+import {useAppStore} from "~src/store";
|
|
import {hIconJs} from "~src/plugins/renderele";
|
|
import {hIconJs} from "~src/plugins/renderele";
|
|
import {HcIsButton} from "~src/plugins/IsButtons";
|
|
import {HcIsButton} from "~src/plugins/IsButtons";
|
|
import ListItem from "./components/ListItem.vue"
|
|
import ListItem from "./components/ListItem.vue"
|
|
@@ -337,7 +334,7 @@ import Draggable from "vuedraggable";
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
const useRoutes = useRoute()
|
|
const useRoutes = useRoute()
|
|
const useAppState = useAppStore()
|
|
const useAppState = useAppStore()
|
|
-const {getObjNullValue, getObjValue, getArrValue} = isType()
|
|
|
|
|
|
+const {getObjValue, getArrValue} = isType()
|
|
|
|
|
|
//全局变量
|
|
//全局变量
|
|
const projectId = ref(useAppState.getProjectId);
|
|
const projectId = ref(useAppState.getProjectId);
|
|
@@ -396,7 +393,7 @@ const wbsTypeTab = ref([
|
|
{key:'map', name: '导图结构填报'},
|
|
{key:'map', name: '导图结构填报'},
|
|
{key:'tree', name: '树形结构填报'}
|
|
{key:'tree', name: '树形结构填报'}
|
|
]);
|
|
]);
|
|
-const wbsTypeTabChange = async (item) => {
|
|
|
|
|
|
+const wbsTypeTabChange = (item) => {
|
|
wbsTypeTabKey.value = item?.key;
|
|
wbsTypeTabKey.value = item?.key;
|
|
ListItemDatas.value = []
|
|
ListItemDatas.value = []
|
|
isDrawer.value = false;
|
|
isDrawer.value = false;
|
|
@@ -422,33 +419,33 @@ const setElTreeMenu = (contractType) => {
|
|
let newArr = [];
|
|
let newArr = [];
|
|
if (contractType === 1) {
|
|
if (contractType === 1) {
|
|
if (HcIsButton('wbs_tree_edit')) {
|
|
if (HcIsButton('wbs_tree_edit')) {
|
|
- newArr.push({icon: hIconJs({name:'border_color'}), label: '编辑节点', key: "edit"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'draft', ui: 'text-lg'}), label: '编辑节点', key: "edit"})
|
|
}
|
|
}
|
|
if (HcIsButton('wbs_tree_mark')) {
|
|
if (HcIsButton('wbs_tree_mark')) {
|
|
- newArr.push({icon: hIconJs({name:'grade'}), label: '标记为首件', key: "mark"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'star', ui: 'text-lg'}), label: '标记为首件', key: "mark"})
|
|
TreeMark.value = true
|
|
TreeMark.value = true
|
|
}
|
|
}
|
|
if (HcIsButton('wbs_tree_copy')) {
|
|
if (HcIsButton('wbs_tree_copy')) {
|
|
- newArr.push({icon: hIconJs({name:'difference'}), label: '复制节点', key: "copy"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'file-copy-2', ui: 'text-lg'}), label: '复制节点', key: "copy"})
|
|
}
|
|
}
|
|
if (HcIsButton('wbs_tree_add')) {
|
|
if (HcIsButton('wbs_tree_add')) {
|
|
- newArr.push({icon: hIconJs({name:'add_box'}), label: '新增节点', key: "add"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'add-circle', ui: 'text-lg'}), label: '新增节点', key: "add"})
|
|
}
|
|
}
|
|
if (HcIsButton('wbs_tree_upload')) {
|
|
if (HcIsButton('wbs_tree_upload')) {
|
|
- newArr.push({icon: hIconJs({name:'backup'}), label: '上传图纸', key: "upload"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'file-upload', ui: 'text-lg'}), label: '上传图纸', key: "upload"})
|
|
}
|
|
}
|
|
if (HcIsButton('wbs_tree_del')) {
|
|
if (HcIsButton('wbs_tree_del')) {
|
|
- newArr.push({icon: hIconJs({name:'delete'}), label: '删除节点', key: "del"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'delete-bin', ui: 'text-lg'}), label: '删除节点', key: "del"})
|
|
}
|
|
}
|
|
if (HcIsButton('wbs_tree_sort')) {
|
|
if (HcIsButton('wbs_tree_sort')) {
|
|
- newArr.push({icon: hIconJs({name:'sort'}), label: '调整排序', key: "sort"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'sort-asc', line: false, ui: 'text-lg'}), label: '调整排序', key: "sort"})
|
|
}
|
|
}
|
|
} else if (contractType === 2) {
|
|
} else if (contractType === 2) {
|
|
if (HcIsButton('wbs_tree_copy')) {
|
|
if (HcIsButton('wbs_tree_copy')) {
|
|
- newArr.push({icon: hIconJs({name:'difference'}), label: '复制节点', key: "copy"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'file-copy-2', ui: 'text-lg'}), label: '复制节点', key: "copy"})
|
|
}
|
|
}
|
|
if (HcIsButton('wbs_tree_add')) {
|
|
if (HcIsButton('wbs_tree_add')) {
|
|
- newArr.push({icon: hIconJs({name:'add_box'}), label: '新增节点', key: "add"})
|
|
|
|
|
|
+ newArr.push({icon: hIconJs({name:'add-circle', ui: 'text-lg'}), label: '新增节点', key: "add"})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
ElTreeMenu.value = newArr
|
|
ElTreeMenu.value = newArr
|