|
@@ -39,6 +39,9 @@
|
|
|
|
|
|
<!-- 创建或编辑项目信息 -->
|
|
<!-- 创建或编辑项目信息 -->
|
|
<HcInfoDetail v-model="isProjectDrawer" :data="projectItem" />
|
|
<HcInfoDetail v-model="isProjectDrawer" :data="projectItem" />
|
|
|
|
+
|
|
|
|
+ <!-- 创建或编辑合同段信息 -->
|
|
|
|
+ <HcContractInfo v-model="isContractDrawer" :data="contractItem" />
|
|
</hc-card>
|
|
</hc-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -48,6 +51,7 @@ import { getArrValue, getObjValue } from 'js-fast-way'
|
|
import InfoDialog from './list/info-dialog.vue'
|
|
import InfoDialog from './list/info-dialog.vue'
|
|
import HcWbsTree from './list/wbs-tree.vue'
|
|
import HcWbsTree from './list/wbs-tree.vue'
|
|
import HcInfoDetail from './info/detail.vue'
|
|
import HcInfoDetail from './info/detail.vue'
|
|
|
|
+import HcContractInfo from './detail/detail.vue'
|
|
import mainApi from '~api/project/project'
|
|
import mainApi from '~api/project/project'
|
|
|
|
|
|
defineOptions({
|
|
defineOptions({
|
|
@@ -142,7 +146,7 @@ const wbsTreeClose = () => {
|
|
}
|
|
}
|
|
|
|
|
|
//功能事件回调
|
|
//功能事件回调
|
|
-const projectInfoCheck = ({ type, info, item }) => {
|
|
|
|
|
|
+const projectInfoCheck = async ({ type, info, item }) => {
|
|
//measure, lar, test, wbsTree, logTree, editProject, addContract, editContract, wbsContract
|
|
//measure, lar, test, wbsTree, logTree, editProject, addContract, editContract, wbsContract
|
|
//计量管理,征拆划分,实验划分,WBS树管理,日志树管理,编辑项目,创建合同段,编辑合同段信息,分配WBS
|
|
//计量管理,征拆划分,实验划分,WBS树管理,日志树管理,编辑项目,创建合同段,编辑合同段信息,分配WBS
|
|
const wbsArr = ['wbsTree', 'test', 'measure', 'logTree', 'lar']
|
|
const wbsArr = ['wbsTree', 'test', 'measure', 'logTree', 'lar']
|
|
@@ -153,13 +157,22 @@ const projectInfoCheck = ({ type, info, item }) => {
|
|
isWbsTreeDrawer.value = true
|
|
isWbsTreeDrawer.value = true
|
|
} else if (type === 'editProject') {
|
|
} else if (type === 'editProject') {
|
|
projectItem.value = getObjValue(info)
|
|
projectItem.value = getObjValue(info)
|
|
- nextTick(() => {
|
|
|
|
- isProjectDrawer.value = true
|
|
|
|
- })
|
|
|
|
|
|
+ await nextTick()
|
|
|
|
+ isProjectDrawer.value = true
|
|
} else if (type === 'addContract') {
|
|
} else if (type === 'addContract') {
|
|
- console.log('创建合同段')
|
|
|
|
|
|
+ const { id } = getObjValue(info)
|
|
|
|
+ contractItem.value = { pid: id }
|
|
|
|
+ await nextTick()
|
|
|
|
+ isContractDrawer.value = true
|
|
} else if (type === 'editContract') {
|
|
} else if (type === 'editContract') {
|
|
- console.log('创建合同段')
|
|
|
|
|
|
+ const { id } = getObjValue(info)
|
|
|
|
+ contractItem.value = {
|
|
|
|
+ pid: id,
|
|
|
|
+ cid: item.id,
|
|
|
|
+ type: item.contractType,
|
|
|
|
+ }
|
|
|
|
+ await nextTick()
|
|
|
|
+ isContractDrawer.value = true
|
|
} else if (type === 'wbsContract') {
|
|
} else if (type === 'wbsContract') {
|
|
console.log('分配WBS')
|
|
console.log('分配WBS')
|
|
}
|
|
}
|
|
@@ -178,10 +191,15 @@ const addProjectClick = () => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//创建合同段信息
|
|
|
|
+const isContractDrawer = ref(false)
|
|
|
|
+const contractItem = ref({})
|
|
|
|
+
|
|
//离开了当前页面
|
|
//离开了当前页面
|
|
onDeactivated(() => {
|
|
onDeactivated(() => {
|
|
isWbsTreeDrawer.value = false
|
|
isWbsTreeDrawer.value = false
|
|
isProjectDrawer.value = false
|
|
isProjectDrawer.value = false
|
|
|
|
+ isContractDrawer.value = false
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|