From 57055359f4526daff1612ee0fc92ee3a82a1ee18 Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Thu, 31 Oct 2024 19:08:20 +0800 Subject: [PATCH] =?UTF-8?q?flx:=E6=8F=90=E4=BA=A4=E7=8E=B0=E5=9C=BA?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../agjtLiveScreen/liveScreen/leftTop.vue | 76 +++++++++++++------ 1 file changed, 53 insertions(+), 23 deletions(-) diff --git a/src/views/agjtLiveScreen/liveScreen/leftTop.vue b/src/views/agjtLiveScreen/liveScreen/leftTop.vue index 3bc58a4..8f9931c 100644 --- a/src/views/agjtLiveScreen/liveScreen/leftTop.vue +++ b/src/views/agjtLiveScreen/liveScreen/leftTop.vue @@ -18,9 +18,19 @@
+ 项目名称: + {{ item.name || "--" }} +
+
项目编号: {{ item.projectEnterprise.projectNumber || "--" }}
+
+
+
+ 项目经理: + {{ item.projectEnterprise.projectManage || "--" }} +
建筑面积:
- 项目经理: - {{ item.projectEnterprise.projectManage || "--" }} + 项目类型: + {{ item.projectEnterprise.cbsProjectTypeName || "--" }}
联系电话: @@ -41,23 +51,13 @@
- 项目类型: - {{ item.projectEnterprise.cbsProjectTypeName || "--" }} -
-
工程类别: {{ item.projectEnterprise.projectTypeName || "--" }}
-
-
-
+
开工日期: {{ item.projectEnterprise.startWorkDate || "--" }}
-
- 竣工日期: - {{ item.projectEnterprise.completionDate || "--" }} -
@@ -65,8 +65,8 @@ {{ item.projectEnterprise.constructionStageName || "--" }}
- 结构类型: - {{ item.projectEnterprise.structureTypeName || "--" }} + 竣工日期: + {{ item.projectEnterprise.completionDate || "--" }}
@@ -75,6 +75,10 @@ {{item.projectEnterprise.projectBuildArea || '--'}}
-->
+ 结构类型: + {{ item.projectEnterprise.structureTypeName || "--" }} +
+
工程状态: {{ item.projectEnterprise.bulidStatus == 0 @@ -207,19 +211,45 @@ async function getCbsProjectInfo() { }); cbsProjectInfo.value = []; peList.map((item: any, i: any) => { - cbsProjectInfo.value.push(item); let processList = pList.filter((item2: any) => item2.enterpriseId == item.id) || []; - if (processList.length == 0) return; + if (processList.length == 0) { + cbsProjectInfo.value.push(item); + return + }; // console.log(555555555, processList); + const resultList = item.supplierInfos.map((ele: any) => { + return [{ + ...item, + name: ele.cbsName, + projectEnterprise: ele, + },{ + id: item.id, + name: ele.cbsName, + lbType: 2, + processList: processList.map((item3: any) => item3) + }]; + }); cbsProjectInfo.value = [ ...cbsProjectInfo.value, - { - id: item.id, - name: item.projectEnterprise.cbsName, - lbType: 2, - processList: processList.map((item3: any) => item3) - } + ...resultList.flat(), ]; + // [ + // ...cbsProjectInfo.value, + // // { + // // id: item.id, + // // name: item.projectEnterprise.cbsName, + // // lbType: 2, + // // processList: processList.map((item3: any) => item3) + // // } + // ...item.supplierInfos.map((ele: any) => { + // return { + // id: item.id, + // name: ele.cbsName, + // lbType: 2, + // processList: processList.map((item3: any) => item3) + // } + // }) + // ]; // if (processList.length > 3) { // let tempList: any = []; // processList.map((item3: any, i: any) => {