|
@@ -13,8 +13,17 @@
|
|
|
<template #extra>
|
|
|
<HcNewSwitch :datas="wbsTypeTab" :keys="wbsTypeTabKey" @change="wbsTypeTabChange"/>
|
|
|
</template>
|
|
|
- <NodeTree ref="NodeTreeRef" :autoExpandKeys="TreeAutoExpandKeys" :menus="ElTreeMenu" :isMark="TreeMark" :projectId="projectId" :contractId="contractId"
|
|
|
- :accordion='NodeTreeAccordion' @nodeClick="NodeTreeClick" @nodeDblClick="NodeTreeDblClick" @menuClick="NodeTreeMenuClick"/>
|
|
|
+ <NodeTree
|
|
|
+ ref="NodeTreeRef"
|
|
|
+ :menus="ElTreeMenu"
|
|
|
+ :isMark="TreeMark"
|
|
|
+ :projectId="projectId"
|
|
|
+ :contractId="contractId"
|
|
|
+ :accordion='NodeTreeAccordion'
|
|
|
+ :autoExpandKeys="TreeAutoExpandKeys"
|
|
|
+ @nodeClick="NodeTreeClick"
|
|
|
+ @nodeDblClick="NodeTreeDblClick"
|
|
|
+ @menuClick="NodeTreeMenuClick"/>
|
|
|
<template #action>
|
|
|
<div class="hc-tree-mp-tip-box">
|
|
|
<div class="dot-view green">已审批</div>
|
|
@@ -27,34 +36,42 @@
|
|
|
<!--清表列表-->
|
|
|
<el-scrollbar ref="ListItemScrollRef" v-if="ListItemDatas.length > 0">
|
|
|
<ListItem ref="ListItemsRef"
|
|
|
- :datas="ListItemDatas"
|
|
|
- :status="NodeStatus"
|
|
|
- :classify="authBtnTabKey"
|
|
|
- @offsetTop="ListItemOffsetTop"
|
|
|
- :projectInfo="projectInfo"
|
|
|
- :primaryKeyId="primaryKeyId"
|
|
|
- :contractId="contractId"
|
|
|
- @renew="getTableDataAll"
|
|
|
- :drawType="isDrawType"
|
|
|
- />
|
|
|
+ :datas="ListItemDatas"
|
|
|
+ :status="NodeStatus"
|
|
|
+ :classify="authBtnTabKey"
|
|
|
+ @offsetTop="ListItemOffsetTop"
|
|
|
+ :projectInfo="projectInfo"
|
|
|
+ :primaryKeyId="primaryKeyId"
|
|
|
+ :contractId="contractId"
|
|
|
+ @renew="getTableDataAll"
|
|
|
+ :drawType="isDrawType"/>
|
|
|
</el-scrollbar>
|
|
|
<HcStatus text="暂无表单" v-else/>
|
|
|
<!--底部按钮区域-->
|
|
|
<template #action>
|
|
|
<HcTooltip keys="wbs_save" v-if="NodeStatus !== '3'">
|
|
|
- <el-button type="primary" hc-btn :disabled="NodeStatus === '3' || ListItemDatas.length <= 0" :loading="tableFormSaveLoading" @click="tableFormSaveClick">
|
|
|
+ <el-button type="primary" hc-btn
|
|
|
+ :disabled="NodeStatus === '3' || ListItemDatas.length <= 0"
|
|
|
+ :loading="tableFormSaveLoading"
|
|
|
+ @click="tableFormSaveClick">
|
|
|
<HcIcon name="save"/>
|
|
|
<span>保存</span>
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
<HcTooltip keys="wbs_report" v-if="NodeStatus !== '3'">
|
|
|
- <el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" :loading="reportLoading" @click="reportModalClick">
|
|
|
+ <el-button hc-btn
|
|
|
+ :disabled="NodeStatus === '3' || NodeStatus === '1'"
|
|
|
+ :loading="reportLoading"
|
|
|
+ @click="reportModalClick">
|
|
|
<HcIcon name="send-plane-2"/>
|
|
|
<span>上报</span>
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
<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="eye"/>
|
|
|
<span>预览</span>
|
|
|
</el-button>
|
|
@@ -83,7 +100,9 @@
|
|
|
</HcDrawer>
|
|
|
</HcCard>
|
|
|
<div class="hc-layout-box" v-if="wbsTypeTabKey === 'tree'">
|
|
|
- <div class="hc-layout-left-box" id="wbs-left-tree" :style="'width:' + (isWbsTreeShow ? leftWidth : 0) + 'px;'" :class="[isWbsTreeShow?'show':'', isMouseTree ? 'on-transition':'']">
|
|
|
+ <div class="hc-layout-left-box" id="wbs-left-tree"
|
|
|
+ :style="'width:' + (isWbsTreeShow ? leftWidth : 0) + 'px;'"
|
|
|
+ :class="[isWbsTreeShow?'show':'', isMouseTree ? 'on-transition':'']">
|
|
|
<div class="hc-project-box">
|
|
|
<div class="hc-project-icon-box">
|
|
|
<HcIcon name="stack"/>
|
|
@@ -106,34 +125,32 @@
|
|
|
<KeepAlive>
|
|
|
<template v-if="isSearchTree">
|
|
|
<HcTreeData
|
|
|
- :datas="searchTreeData"
|
|
|
- :menus="ElTreeMenu"
|
|
|
- :isMark="TreeMark"
|
|
|
- :autoExpandKeys="TreeAutoExpandKeys"
|
|
|
- :searchTreeVal="searchTreeVal" isColor @nodeTap="wbsElTreeClick"
|
|
|
- @menuTap="ElTreeMenuClick"
|
|
|
- @changeSearch="changeisSearch"
|
|
|
- @changetreelaod="changetreelaod"
|
|
|
- :submitCounts="false"
|
|
|
- :ElTreeLoadNode="searchElTreeLoadNode"
|
|
|
- />
|
|
|
+ :datas="searchTreeData"
|
|
|
+ :menus="ElTreeMenu"
|
|
|
+ :isMark="TreeMark"
|
|
|
+ :autoExpandKeys="TreeAutoExpandKeys"
|
|
|
+ :searchTreeVal="searchTreeVal" isColor @nodeTap="wbsElTreeClick"
|
|
|
+ @menuTap="ElTreeMenuClick"
|
|
|
+ @changeSearch="changeisSearch"
|
|
|
+ @changetreelaod="changetreelaod"
|
|
|
+ :submitCounts="false"
|
|
|
+ :ElTreeLoadNode="searchElTreeLoadNode"/>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<WbsTree
|
|
|
- :submitCounts="false"
|
|
|
- :menus="ElTreeMenu"
|
|
|
- :isMark="TreeMark"
|
|
|
- :autoExpandKeys="TreeAutoExpandKeys"
|
|
|
- :projectId="projectId"
|
|
|
- :contractId="contractId"
|
|
|
- :classifyType="authBtnTabKey"
|
|
|
- isColor
|
|
|
- @nodeTap="wbsElTreeClick"
|
|
|
- @menuTap="ElTreeMenuClick"
|
|
|
- @nodeLoading="ElTreeNodeLoading"
|
|
|
- ref="wbstree"
|
|
|
- :treeKey="wbstreeKey"
|
|
|
- />
|
|
|
+ :submitCounts="false"
|
|
|
+ :menus="ElTreeMenu"
|
|
|
+ :isMark="TreeMark"
|
|
|
+ :autoExpandKeys="TreeAutoExpandKeys"
|
|
|
+ :projectId="projectId"
|
|
|
+ :contractId="contractId"
|
|
|
+ :classifyType="authBtnTabKey"
|
|
|
+ isColor
|
|
|
+ @nodeTap="wbsElTreeClick"
|
|
|
+ @menuTap="ElTreeMenuClick"
|
|
|
+ @nodeLoading="ElTreeNodeLoading"
|
|
|
+ ref="wbstree"
|
|
|
+ :treeKey="wbstreeKey"/>
|
|
|
</template>
|
|
|
</KeepAlive>
|
|
|
</el-scrollbar>
|
|
@@ -165,20 +182,20 @@
|
|
|
</template>
|
|
|
<!--清表列表-->
|
|
|
<el-scrollbar ref="ListItemScrollRef" v-loading="ListItemLoading" v-if="ListItemDatas.length > 0">
|
|
|
- <ListItem
|
|
|
- ref="ListItemRef"
|
|
|
- :datas="ListItemDatas"
|
|
|
- :status="NodeStatus"
|
|
|
- :classify="authBtnTabKey"
|
|
|
- :authBtnTabKey="authBtnTabKey"
|
|
|
- @offsetTop="ListItemOffsetTop"
|
|
|
- :projectInfo="projectInfo"
|
|
|
- :primaryKeyId="primaryKeyId"
|
|
|
- :contractId="contractId"
|
|
|
- @renew="getTableDataAll"
|
|
|
- :drawType="!isDrawType"
|
|
|
- :wbsTempId="projectInfo?.referenceWbsTemplateIdTrial" :wbsType="2" :tenantId="userInfo?.tenant_id"
|
|
|
- />
|
|
|
+ <ListItem ref="ListItemRef"
|
|
|
+ :datas="ListItemDatas"
|
|
|
+ :status="NodeStatus"
|
|
|
+ :classify="authBtnTabKey"
|
|
|
+ :authBtnTabKey="authBtnTabKey"
|
|
|
+ @offsetTop="ListItemOffsetTop"
|
|
|
+ :projectInfo="projectInfo"
|
|
|
+ :primaryKeyId="primaryKeyId"
|
|
|
+ :contractId="contractId"
|
|
|
+ @renew="getTableDataAll"
|
|
|
+ :drawType="!isDrawType"
|
|
|
+ :wbsType="2"
|
|
|
+ :wbsTempId="projectInfo?.referenceWbsTemplateIdTrial"
|
|
|
+ :tenantId="userInfo?.tenant_id"/>
|
|
|
</el-scrollbar>
|
|
|
|
|
|
<HcStatus text="暂无表单" v-else/>
|
|
@@ -195,13 +212,11 @@
|
|
|
</div>
|
|
|
|
|
|
<HcTooltip keys="wbs_save" v-if="NodeStatus !== '3'">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- style="width:150px;font-weight: bold;font-size:large"
|
|
|
- hc-btn
|
|
|
- :disabled="NodeStatus === '3' || ListItemDatas.length <= 0"
|
|
|
- :loading="tableFormSaveLoading"
|
|
|
- @click="tableFormSaveClick">
|
|
|
+ <el-button type="primary" hc-btn
|
|
|
+ style="width:150px;font-weight: bold;font-size:large"
|
|
|
+ :disabled="NodeStatus === '3' || ListItemDatas.length <= 0"
|
|
|
+ :loading="tableFormSaveLoading"
|
|
|
+ @click="tableFormSaveClick">
|
|
|
<HcIcon name="save"/>
|
|
|
<span>保存</span>
|
|
|
</el-button>
|