|
@@ -12,7 +12,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
<template #extra>
|
|
<template #extra>
|
|
- <el-button type="primary" hc-btn @click="linksRelateModalClick">关联工程用途及部位</el-button>
|
|
|
|
|
|
+ <el-button type="primary" hc-btn @click="linksRelateModalClick" :disabled="!checkTabId">关联工程用途及部位</el-button>
|
|
<el-button :type="isMixRatioTestIds ? 'primary' : ''" hc-btn :disabled="!isMixRatioTestIds" @click="linksRawModalClick">关联原材检测报告</el-button>
|
|
<el-button :type="isMixRatioTestIds ? 'primary' : ''" hc-btn :disabled="!isMixRatioTestIds" @click="linksRawModalClick">关联原材检测报告</el-button>
|
|
<el-button type="primary" hc-btn @click="linksSampleModalClick">关联取样</el-button>
|
|
<el-button type="primary" hc-btn @click="linksSampleModalClick">关联取样</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -45,6 +45,7 @@
|
|
<ListItem ref="ListItemRef" :datas="listItemData" :status="1" :baseData="listItemBaseData" @offsetTop="ListItemOffsetTop" @renew="getTableDataAll"
|
|
<ListItem ref="ListItemRef" :datas="listItemData" :status="1" :baseData="listItemBaseData" @offsetTop="ListItemOffsetTop" @renew="getTableDataAll"
|
|
:deviceUseIds="listDeviceUseIds"
|
|
:deviceUseIds="listDeviceUseIds"
|
|
@updeviceUseIds="updeviceUseIds"
|
|
@updeviceUseIds="updeviceUseIds"
|
|
|
|
+ @upcheckTableId="upcheckTableId"
|
|
/>
|
|
/>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
<template #action>
|
|
<template #action>
|
|
@@ -143,6 +144,7 @@ import {getArrValue, getObjValue, getObjNullValue} from "vue-utils-plus";
|
|
import {getDictionary} from "~api/other";
|
|
import {getDictionary} from "~api/other";
|
|
import {rowsToId} from "~uti/tools";
|
|
import {rowsToId} from "~uti/tools";
|
|
import dayjs from "dayjs"
|
|
import dayjs from "dayjs"
|
|
|
|
+import { Loading } from "element-plus/es/components/loading/src/service";
|
|
|
|
|
|
|
|
|
|
//变量
|
|
//变量
|
|
@@ -260,7 +262,10 @@ const ListItemOffsetTop = (offsetTop) => {
|
|
ListItemScrollRef.value?.setScrollTop(offsetTop)
|
|
ListItemScrollRef.value?.setScrollTop(offsetTop)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+const checkTabId=ref('')
|
|
|
|
+const upcheckTableId = (val) => {
|
|
|
|
+ checkTabId.value=val
|
|
|
|
+}
|
|
//关联工程用途及部位 树
|
|
//关联工程用途及部位 树
|
|
const linksRelateModal = ref(false)
|
|
const linksRelateModal = ref(false)
|
|
const linksRelateModalClick = () => {
|
|
const linksRelateModalClick = () => {
|
|
@@ -268,6 +273,7 @@ const linksRelateModalClick = () => {
|
|
linksRelateSearchTreeVal.value=''
|
|
linksRelateSearchTreeVal.value=''
|
|
getContractInfoTreeApi()
|
|
getContractInfoTreeApi()
|
|
}
|
|
}
|
|
|
|
+
|
|
//获取导入树
|
|
//获取导入树
|
|
const unmatchedTreeData = ref([])
|
|
const unmatchedTreeData = ref([])
|
|
const defaultCheckarrIds=ref([])
|
|
const defaultCheckarrIds=ref([])
|
|
@@ -275,7 +281,8 @@ const getContractInfoTreeApi = async () => {
|
|
const {error, code, data} = await divisionApi.getengineerInfoTree1({
|
|
const {error, code, data} = await divisionApi.getengineerInfoTree1({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
contractId: contractId.value,
|
|
contractId: contractId.value,
|
|
- wbsId: projectInfo?.value.referenceWbsTemplateId
|
|
|
|
|
|
+ wbsId: projectInfo?.value.referenceWbsTemplateId,
|
|
|
|
+ selfId:checkTabId.value
|
|
})
|
|
})
|
|
//判断状态
|
|
//判断状态
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
@@ -485,7 +492,7 @@ const tableFormSaveClick = async () => {
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
window?.$message?.success('保存成功')
|
|
window?.$message?.success('保存成功')
|
|
listItemBaseData.value.deviceUseIds=''
|
|
listItemBaseData.value.deviceUseIds=''
|
|
-
|
|
|
|
|
|
+ checkTabId.value=''
|
|
//bussPdfsClick()
|
|
//bussPdfsClick()
|
|
getTableDataAll()
|
|
getTableDataAll()
|
|
}
|
|
}
|
|
@@ -567,6 +574,7 @@ const toBackClick = () => {
|
|
const updeviceUseIds = (val) => {
|
|
const updeviceUseIds = (val) => {
|
|
listItemBaseData.value.deviceUseIds=val
|
|
listItemBaseData.value.deviceUseIds=val
|
|
}
|
|
}
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|