|
@@ -22,12 +22,6 @@
|
|
:wbs-type="2"
|
|
:wbs-type="2"
|
|
@node-tap="wbsElTreeClick"
|
|
@node-tap="wbsElTreeClick"
|
|
/>
|
|
/>
|
|
- <!-- <HcLazyTree
|
|
|
|
- :isType="false"
|
|
|
|
- :autoExpandKeys="treeAutoExpandKeys"
|
|
|
|
- @load="treeLoadNode"
|
|
|
|
- @nodeTap="wbsElTreeClick"
|
|
|
|
- /> -->
|
|
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
</div>
|
|
</div>
|
|
<!-- 左右拖动 -->
|
|
<!-- 左右拖动 -->
|
|
@@ -297,9 +291,6 @@ import { getErtractInfo } from '~api/other'
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
import samplingApi from '~api/tentative/material/sampling'
|
|
import samplingApi from '~api/tentative/material/sampling'
|
|
import { arrToId, getArrValue, getObjValue, isString } from 'js-fast-way'
|
|
import { arrToId, getArrValue, getObjValue, isString } from 'js-fast-way'
|
|
-
|
|
|
|
-import { Loading } from 'element-plus/es/components/loading/src/service'
|
|
|
|
-import notableform from '~src/assets/view/notableform.svg'
|
|
|
|
import { HcDelMsg } from 'hc-vue3-ui'
|
|
import { HcDelMsg } from 'hc-vue3-ui'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
|
|
|
@@ -339,6 +330,7 @@ onMounted(() => {
|
|
getCategoryData()
|
|
getCategoryData()
|
|
getContractData()
|
|
getContractData()
|
|
})
|
|
})
|
|
|
|
+
|
|
//缓存被激活时,重新获取表格数据
|
|
//缓存被激活时,重新获取表格数据
|
|
onActivated(() => {
|
|
onActivated(() => {
|
|
// setMountOnEventKey()
|
|
// setMountOnEventKey()
|
|
@@ -371,25 +363,6 @@ const setWbsTreeShow = () => {
|
|
isWbsTreeShow.value = !isWbsTreeShow.value
|
|
isWbsTreeShow.value = !isWbsTreeShow.value
|
|
}
|
|
}
|
|
|
|
|
|
-//加载树形结构数据
|
|
|
|
-const treeLoadNode = async ({ node, item, level }, resolve) => {
|
|
|
|
- let contractIdRelation = '', parentId = '0', primaryKeyId = ''
|
|
|
|
- if (level !== 0) {
|
|
|
|
- const nodeData = getObjValue(item)
|
|
|
|
- contractIdRelation = nodeData?.contractIdRelation || ''
|
|
|
|
- parentId = nodeData?.id
|
|
|
|
- primaryKeyId = nodeData?.id || ''
|
|
|
|
- }
|
|
|
|
- //获取数据
|
|
|
|
- const { data } = await samplingApi.queryLazyTree({
|
|
|
|
- wbsId: projectInfo.value?.referenceWbsTemplateIdTrial,
|
|
|
|
- tenantId: userInfo.value?.tenant_id,
|
|
|
|
- projectId: projectId.value,
|
|
|
|
- parentId,
|
|
|
|
- wbsType: 2,
|
|
|
|
- })
|
|
|
|
- resolve(getArrValue(data))
|
|
|
|
-}
|
|
|
|
//获取检测类别类型
|
|
//获取检测类别类型
|
|
const categoryData = ref([])
|
|
const categoryData = ref([])
|
|
const getCategoryData = async () => {
|
|
const getCategoryData = async () => {
|
|
@@ -448,7 +421,7 @@ const authBtnTabClick = (item) => {
|
|
tableData.value = [{}]
|
|
tableData.value = [{}]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-//contractType, 1施工,2监理
|
|
|
|
|
|
+//contractType, 1施工,2监理, 3业主
|
|
const setContractType = (contractType) => {
|
|
const setContractType = (contractType) => {
|
|
let typeValue = '1'
|
|
let typeValue = '1'
|
|
if (contractType > 0) {
|
|
if (contractType > 0) {
|