ZaiZai 9 months ago
parent
commit
6cc2a2f4a7
1 changed files with 16 additions and 0 deletions
  1. 16 0
      src/views/project/detail/detail.vue

+ 16 - 0
src/views/project/detail/detail.vue

@@ -12,6 +12,7 @@
 import { ref, watch } from 'vue'
 import mainApi from '~api/project/project'
 import { getObjValue, isNullES } from 'js-fast-way'
+import { getDictionaryData } from '~uti/tools'
 
 const props = defineProps({
     data: {
@@ -42,6 +43,7 @@ watch(isShow, (val) => {
 //处理相关数据
 const tabsKey = ref('1')
 const tabsData = ref([])
+const basicForm = ref({ pid: '' })
 const getDataApi = async () => {
     const { pid, cid, type } = getObjValue(dataInfo.value)
     if (isNullES(cid)) {
@@ -49,8 +51,22 @@ const getDataApi = async () => {
     } else {
         tabsData.value = [{ key: '1', name: '合同段信息' }, { key: '2', name: '分配WBS' }, { key: '3', name: '分配项目人员' }]
     }
+    await getContractTypeList()
+    if (isNullES(cid)) {
+        basicForm.value.pid = pid
+    } else {
+        console.log(type)
+    }
+    console.log(basicForm.value)
 }
 
+//获取合同类型
+const contractTypeList = ref([])
+const getContractTypeList = async () => {
+    contractTypeList.value = await getDictionaryData('contract_type')
+}
+
+
 //选项卡
 const tabsChange = ({ key }) => {
     tabsKey.value = key