|
@@ -141,7 +141,9 @@
|
|
<div class="hc-links-sample-modal-box">
|
|
<div class="hc-links-sample-modal-box">
|
|
<div class="hc-links-sample-tree-box">
|
|
<div class="hc-links-sample-tree-box">
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
- <TestTree :projectId="projectId" :wbsTempId="projectInfo?.referenceWbsTemplateIdTrial" :wbsType="2" :tenantId="userInfo?.tenant_id" @nodeTap="linksRawTreeClick" :fromType="true" :nodeId="nodeId"/>
|
|
|
|
|
|
+ <test-tree-material :projectId="projectId" :wbsTempId="projectInfo?.referenceWbsTemplateIdTrial" :wbsType="2" :tenantId="userInfo?.tenant_id" @nodeTap="linksRawTreeClick" :fromType="true" :nodeId="nodeId"
|
|
|
|
+ :MixRatioTestTreeData="MixRatioTestTreeData"
|
|
|
|
+ />
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
</div>
|
|
</div>
|
|
<div class="hc-links-sample-table-box">
|
|
<div class="hc-links-sample-table-box">
|
|
@@ -178,10 +180,12 @@ import ListItem from "./components/ListItem.vue"
|
|
import DivisionTree from "./components/DivisionTree.vue"
|
|
import DivisionTree from "./components/DivisionTree.vue"
|
|
import DivisionTree1 from "./components/DivisionTree1.vue"
|
|
import DivisionTree1 from "./components/DivisionTree1.vue"
|
|
import dataApi from "~api/tentative/detect/test";
|
|
import dataApi from "~api/tentative/detect/test";
|
|
|
|
+import samplingApi from "~api/tentative/material/sampling"
|
|
import divisionApi from "~api/data-fill/division";
|
|
import divisionApi from "~api/data-fill/division";
|
|
import queryApi from '~api/data-fill/query';
|
|
import queryApi from '~api/data-fill/query';
|
|
import {getStoreData,setStoreData} from '~src/utils/storage'
|
|
import {getStoreData,setStoreData} from '~src/utils/storage'
|
|
import TestTree from "../material/components/TestTree.vue"
|
|
import TestTree from "../material/components/TestTree.vue"
|
|
|
|
+import TestTreeMaterial from "../material/components/TestTreeMaterial.vue"
|
|
import {getArrValue, getObjValue, getObjNullValue,isString} from "vue-utils-plus";
|
|
import {getArrValue, getObjValue, getObjNullValue,isString} from "vue-utils-plus";
|
|
import {getDictionary} from "~api/other";
|
|
import {getDictionary} from "~api/other";
|
|
import {rowsToId} from "~uti/tools";
|
|
import {rowsToId} from "~uti/tools";
|
|
@@ -592,9 +596,18 @@ const linksRelateModalClose = () => {
|
|
|
|
|
|
//关联原材检测报告
|
|
//关联原材检测报告
|
|
const linksRawModal = ref(false)
|
|
const linksRawModal = ref(false)
|
|
|
|
+const MixRatioTestTreeData=ref([])
|
|
const linksRawModalClick = () => {
|
|
const linksRawModalClick = () => {
|
|
linksRawModal.value = true
|
|
linksRawModal.value = true
|
|
|
|
+ getTreeData()
|
|
}
|
|
}
|
|
|
|
+const getTreeData=async(node,reslove)=>{
|
|
|
|
+ const {error, code, data} = await samplingApi.getMixRatioTestTree({
|
|
|
|
+ pKeyId: nodeId,
|
|
|
|
+ })
|
|
|
|
+ MixRatioTestTreeData.value = getArrValue(data)
|
|
|
|
+}
|
|
|
|
+
|
|
const linkNodeid=ref('')
|
|
const linkNodeid=ref('')
|
|
//树被点击
|
|
//树被点击
|
|
const linksRawTreeClick = ({data}) => {
|
|
const linksRawTreeClick = ({data}) => {
|