|
@@ -36,16 +36,18 @@
|
|
<HcDrawer :show="isDrawer" actionUi="text-center" to-id="wbs-node-tree-card-target" @close="drawerClose">
|
|
<HcDrawer :show="isDrawer" actionUi="text-center" to-id="wbs-node-tree-card-target" @close="drawerClose">
|
|
<!--清表列表-->
|
|
<!--清表列表-->
|
|
<el-scrollbar v-if="ListItemDatas.length > 0" ref="ListItemScrollRef">
|
|
<el-scrollbar v-if="ListItemDatas.length > 0" ref="ListItemScrollRef">
|
|
- <ListItem ref="ListItemsRef"
|
|
|
|
- :classify="authBtnTabKey"
|
|
|
|
- :contractId="contractId"
|
|
|
|
- :datas="ListItemDatas"
|
|
|
|
- :drawType="isDrawType"
|
|
|
|
- :primaryKeyId="primaryKeyId"
|
|
|
|
- :projectInfo="projectInfo"
|
|
|
|
- :status="NodeStatus"
|
|
|
|
- @offsetTop="ListItemOffsetTop"
|
|
|
|
- @renew="getTableDataAll"/>
|
|
|
|
|
|
+ <CollapseForm ref="ListItemsRef"
|
|
|
|
+ :classify="authBtnTabKey"
|
|
|
|
+ :contractId="contractId"
|
|
|
|
+ :datas="ListItemDatas"
|
|
|
|
+ :drawType="isDrawType"
|
|
|
|
+ :primaryKeyId="primaryKeyId"
|
|
|
|
+ :status="NodeStatus"
|
|
|
|
+ :tenantId="userInfo?.tenant_id"
|
|
|
|
+ :wbsTempId="projectInfo?.referenceWbsTemplateIdTrial"
|
|
|
|
+ :wbsType="2"
|
|
|
|
+ @offsetTop="ListItemOffsetTop"
|
|
|
|
+ @renew="getTableDataAll"/>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
<HcStatus v-else text="暂无表单"/>
|
|
<HcStatus v-else text="暂无表单"/>
|
|
<!--底部按钮区域-->
|
|
<!--底部按钮区域-->
|
|
@@ -187,7 +189,6 @@
|
|
<!--清表列表-->
|
|
<!--清表列表-->
|
|
<el-scrollbar v-if="ListItemDatas.length > 0" ref="ListItemScrollRef" v-loading="ListItemLoading">
|
|
<el-scrollbar v-if="ListItemDatas.length > 0" ref="ListItemScrollRef" v-loading="ListItemLoading">
|
|
<CollapseForm ref="ListItemRef"
|
|
<CollapseForm ref="ListItemRef"
|
|
- :authBtnTabKey="authBtnTabKey"
|
|
|
|
:classify="authBtnTabKey"
|
|
:classify="authBtnTabKey"
|
|
:contractId="contractId"
|
|
:contractId="contractId"
|
|
:datas="ListItemDatas"
|
|
:datas="ListItemDatas"
|
|
@@ -199,20 +200,6 @@
|
|
:wbsType="2"
|
|
:wbsType="2"
|
|
@offsetTop="ListItemOffsetTop"
|
|
@offsetTop="ListItemOffsetTop"
|
|
@renew="getTableDataAll"/>
|
|
@renew="getTableDataAll"/>
|
|
-
|
|
|
|
- <!--ListItem ref="ListItemRef"
|
|
|
|
- :classify="authBtnTabKey"
|
|
|
|
- :contractId="contractId"
|
|
|
|
- :datas="ListItemDatas"
|
|
|
|
- :drawType="!isDrawType"
|
|
|
|
- :primaryKeyId="primaryKeyId"
|
|
|
|
- :projectInfo="projectInfo"
|
|
|
|
- :status="NodeStatus"
|
|
|
|
- :tenantId="userInfo?.tenant_id"
|
|
|
|
- :wbsTempId="projectInfo?.referenceWbsTemplateIdTrial"
|
|
|
|
- :wbsType="2"
|
|
|
|
- @offsetTop="ListItemOffsetTop"
|
|
|
|
- @renew="getTableDataAll"/-->
|
|
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
|
|
|
|
<HcStatus v-else text="暂无表单"/>
|
|
<HcStatus v-else text="暂无表单"/>
|
|
@@ -324,34 +311,42 @@
|
|
<HcDialog :loading="copyNodeLoading" :show="copyNodeModal" :widths="copyNodeTabKey === '1'?'600px':'1200px'"
|
|
<HcDialog :loading="copyNodeLoading" :show="copyNodeModal" :widths="copyNodeTabKey === '1'?'600px':'1200px'"
|
|
loading-text="复制节点中,请耐心等待..."
|
|
loading-text="复制节点中,请耐心等待..."
|
|
title="复制节点" @close="copyNodeModal = false">
|
|
title="复制节点" @close="copyNodeModal = false">
|
|
- <el-form v-if="copyNodeTabKey !== '3'" ref="formCopyNodeModelRef" :model="formCopyNodeModel"
|
|
|
|
- :rules="formCopyNodeModelRules" label-width="auto" size="large">
|
|
|
|
- <el-form-item v-if="copyNodeTabKey === '1'" label="节点名称" prop="title" style="margin-bottom: 0;">
|
|
|
|
- <el-input v-model="formCopyNodeModel.title" placeholder="请输入节点名称"/>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item v-if="copyNodeTabKey === '1'" label="划分编号" prop="partitionCode"
|
|
|
|
- style="margin-top: 10px;">
|
|
|
|
- <el-input v-model="formCopyNodeModel.partitionCode" placeholder="请输入划分编号"/>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
|
|
|
|
- <el-form v-if="copyNodeTabKey === '3'" ref="formCopyNodeModelRef" :model="formCopyNodeModel"
|
|
|
|
- :rules="formCopyNodeModelRules" label-width="auto" size="large">
|
|
|
|
- <el-form-item label="所属方" prop="classify" style="margin-bottom: 0;">
|
|
|
|
- <!-- <el-input v-model="formCopyNodeModel.classify" placeholder="请输入节点名称"/> -->
|
|
|
|
- <el-checkbox-group v-model="classifyList">
|
|
|
|
- <el-checkbox label="施工"/>
|
|
|
|
- <el-checkbox label="监理"/>
|
|
|
|
- </el-checkbox-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ <div class="header-new-switch">
|
|
|
|
+ <HcNewSwitch :datas="authBtnTabdata" :keys="classifyType" :round="false" size="default"
|
|
|
|
+ @change="classifyTypeTabClick"/>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="copyNodeTabKey === '1'" class="copy-node-form-box">
|
|
|
|
+ <el-form ref="formCopyNodeModelRef" :model="formCopyNodeModel"
|
|
|
|
+ :rules="formCopyNodeModelRules" label-width="auto" size="large">
|
|
|
|
+ <el-form-item v-if="copyNodeTabKey === '1'" label="节点名称" prop="title" style="margin-bottom: 0;">
|
|
|
|
+ <el-input v-model="formCopyNodeModel.title" placeholder="请输入节点名称"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item v-if="copyNodeTabKey === '1'" label="划分编号" prop="partitionCode"
|
|
|
|
+ style="margin-top: 10px;">
|
|
|
|
+ <el-input v-model="formCopyNodeModel.partitionCode" placeholder="请输入划分编号"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="copyNodeTabKey === '3'" class="copy-node-form-box">
|
|
|
|
+ <el-form ref="formCopyNodeModelRef" :model="formCopyNodeModel"
|
|
|
|
+ :rules="formCopyNodeModelRules" label-width="auto" size="large">
|
|
|
|
+ <el-form-item label="所属方" prop="classify" style="margin-bottom: 0;">
|
|
|
|
+ <!-- <el-input v-model="formCopyNodeModel.classify" placeholder="请输入节点名称"/> -->
|
|
|
|
+ <el-checkbox-group v-model="classifyList">
|
|
|
|
+ <el-checkbox label="施工"/>
|
|
|
|
+ <el-checkbox label="监理"/>
|
|
|
|
+ </el-checkbox-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
<div v-if="copyNodeTabKey !== '1'" class="copy-node-many-box">
|
|
<div v-if="copyNodeTabKey !== '1'" class="copy-node-many-box">
|
|
|
|
|
|
<div class="copy-node-many-tree">
|
|
<div class="copy-node-many-tree">
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
<WbsTree :autoExpandKeys="TreeAutoExpandKeys" :contractId="contractId" :isAutoClick="false"
|
|
<WbsTree :autoExpandKeys="TreeAutoExpandKeys" :contractId="contractId" :isAutoClick="false"
|
|
- :isAutoKeys="false" :projectId="projectId" idPrefix="tree-node-copy-"
|
|
|
|
- @nodeTap="copyNodeElTreeClick"/>
|
|
|
|
|
|
+ :isAutoKeys="false" :projectId="projectId" classifyType="1"
|
|
|
|
+ idPrefix="tree-node-copy-" @nodeTap="copyNodeElTreeClick"/>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
</div>
|
|
</div>
|
|
<div class="copy-node-many-table">
|
|
<div class="copy-node-many-table">
|
|
@@ -695,7 +690,7 @@ const wbstreeKey = ref(Math.random())
|
|
const searchElTreeLoadNode = ref(true)
|
|
const searchElTreeLoadNode = ref(true)
|
|
const getSearchTreeData = async () => {
|
|
const getSearchTreeData = async () => {
|
|
searchElTreeLoadNode.value = true
|
|
searchElTreeLoadNode.value = true
|
|
- if (contractInfo.value?.contractType == 2||contractInfo.value?.contractType == 3) {
|
|
|
|
|
|
+ if (contractInfo.value?.contractType == 2 || contractInfo.value?.contractType == 3) {
|
|
const {error, code, data} = await queryApi.getTreeallJl({
|
|
const {error, code, data} = await queryApi.getTreeallJl({
|
|
contractId: contractId.value,
|
|
contractId: contractId.value,
|
|
})
|
|
})
|
|
@@ -1004,6 +999,7 @@ const setTreeMenuDataClick = ({key, node, data}) => {
|
|
const parent = deepClone(node?.parentNodes?.data || {})
|
|
const parent = deepClone(node?.parentNodes?.data || {})
|
|
formCopyNodeModel.value = {...deepClone(data), parent: parent}
|
|
formCopyNodeModel.value = {...deepClone(data), parent: parent}
|
|
}
|
|
}
|
|
|
|
+ classifyType.value = authBtnTabKey.value
|
|
copyNodeTabKey.value = '1'
|
|
copyNodeTabKey.value = '1'
|
|
copyNodeTable.value = []
|
|
copyNodeTable.value = []
|
|
copyNodeLoading.value = false
|
|
copyNodeLoading.value = false
|
|
@@ -1186,7 +1182,7 @@ const copyNodeTabKey = ref('1')
|
|
const copyNodeTab = ref([
|
|
const copyNodeTab = ref([
|
|
{key: '1', name: '单份复制'},
|
|
{key: '1', name: '单份复制'},
|
|
{key: '2', name: '多份复制'},
|
|
{key: '2', name: '多份复制'},
|
|
- {key: '3', name: '复制数据'}
|
|
|
|
|
|
+ //{key: '3', name: '复制数据'}
|
|
]);
|
|
]);
|
|
const copyNodeTabChange = (key) => {
|
|
const copyNodeTabChange = (key) => {
|
|
if (key !== copyNodeTabKey.value) {
|
|
if (key !== copyNodeTabKey.value) {
|
|
@@ -1284,6 +1280,13 @@ const copyNodeTableRules = {
|
|
const copyNodeTableDel = (index) => {
|
|
const copyNodeTableDel = (index) => {
|
|
copyNodeTable.value.splice(index, 1)
|
|
copyNodeTable.value.splice(index, 1)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+const classifyType = ref(authBtnTabKey.value)
|
|
|
|
+const classifyTypeTabClick = ({key}) => {
|
|
|
|
+ classifyType.value = key
|
|
|
|
+}
|
|
|
|
+
|
|
//复制节点
|
|
//复制节点
|
|
const copyNodeClick = async () => {
|
|
const copyNodeClick = async () => {
|
|
const type = copyNodeTabKey.value
|
|
const type = copyNodeTabKey.value
|
|
@@ -1324,14 +1327,15 @@ const copyNodeClick = async () => {
|
|
//单个复制、多份复制请求
|
|
//单个复制、多份复制请求
|
|
const copyContractTreeNode = async (type, form, table) => {
|
|
const copyContractTreeNode = async (type, form, table) => {
|
|
copyNodeLoading.value = true
|
|
copyNodeLoading.value = true
|
|
- if (type == '1') {
|
|
|
|
|
|
+ if (type === '1') {
|
|
const {error, code} = await wbsApi.copyContractTreeNode({
|
|
const {error, code} = await wbsApi.copyContractTreeNode({
|
|
copyType: type,
|
|
copyType: type,
|
|
needCopyNodeName: form?.title || '',
|
|
needCopyNodeName: form?.title || '',
|
|
partitionCode: form?.partitionCode || '',
|
|
partitionCode: form?.partitionCode || '',
|
|
needCopyPrimaryKeyId: form?.primaryKeyId || '',
|
|
needCopyPrimaryKeyId: form?.primaryKeyId || '',
|
|
parentPrimaryKeyId: form?.parent?.primaryKeyId || '',
|
|
parentPrimaryKeyId: form?.parent?.primaryKeyId || '',
|
|
- copyBatchToPaths: table
|
|
|
|
|
|
+ copyBatchToPaths: table,
|
|
|
|
+ classifyType: classifyType.value
|
|
})
|
|
})
|
|
//判断状态
|
|
//判断状态
|
|
copyNodeLoading.value = false
|
|
copyNodeLoading.value = false
|
|
@@ -1346,7 +1350,8 @@ const copyContractTreeNode = async (type, form, table) => {
|
|
needCopyNodeName: form?.title || '',
|
|
needCopyNodeName: form?.title || '',
|
|
needCopyPrimaryKeyId: form?.primaryKeyId || '',
|
|
needCopyPrimaryKeyId: form?.primaryKeyId || '',
|
|
parentPrimaryKeyId: form?.parent?.primaryKeyId || '',
|
|
parentPrimaryKeyId: form?.parent?.primaryKeyId || '',
|
|
- copyBatchToPaths: table
|
|
|
|
|
|
+ copyBatchToPaths: table,
|
|
|
|
+ classifyType: classifyType.value
|
|
})
|
|
})
|
|
//判断状态
|
|
//判断状态
|
|
copyNodeLoading.value = false
|
|
copyNodeLoading.value = false
|
|
@@ -1936,4 +1941,9 @@ html.theme-dark {
|
|
vertical-align: middle;
|
|
vertical-align: middle;
|
|
box-shadow: -2px 0 10px 0 rgba(32, 37, 50, 0.03), 0 10px 21px 20px rgba(32, 37, 50, 0.03);
|
|
box-shadow: -2px 0 10px 0 rgba(32, 37, 50, 0.03), 0 10px 21px 20px rgba(32, 37, 50, 0.03);
|
|
}
|
|
}
|
|
|
|
+.copy-node-form-box {
|
|
|
|
+ margin-top: 24px;
|
|
|
|
+ padding-top: 24px;
|
|
|
|
+ border-top: 1px solid #efeff5;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|