Эх сурвалжийг харах

Merge branch 'master' of http://60.171.161.56:20000/tjf/zhaoshangyinziV3_UI

wangmengwei 3 долоо хоног өмнө
parent
commit
91dcbdde2a

+ 0 - 3
src/views/project/add.vue

@@ -365,9 +365,6 @@
       }
       &.finish{
          .line{background-color: #1890FF !important;}
-         .list{
-           .cir{background: #00A854;}
-         }
       }
       &:last-child{
         .line{display: none !important;}

+ 34 - 5
src/views/zhaoshang/Information/index.vue

@@ -4,8 +4,8 @@
     <div class="addbox">
       <!-- 步骤条 -->
       <div class="steps">
-        <div class="step" :class="{'finish':active>idx+1,'act':active==idx+1}" v-for="(ite,idx) in step" :key="idx" >
-          <div class="tit flexc"><span>{{idx+1}}</span>{{ite.tit}}
+        <div class="step" :class="{'finish':progress>ite.dictValue,'act':progress==ite.dictValue}" v-for="(ite,idx) in step" :key="idx" >
+          <div class="tit flexc"><span>{{idx+1}}</span>{{ite.dictLabel}}
             <div class="line"></div>
           </div>
           <div class="list" v-for="(aite,aidx) in ite.desc" :key="aidx">
@@ -101,6 +101,12 @@
 		infotc: {},
 		id:null,
 		xmbh:null,
+    qxtab:[{tit:'签约双方信息'},{tit:'签约项目信息'},{tit:'附件上传'}],
+    kgtab:[{tit:'开工前相关手续办理'},{tit:'开工信息'},{tit:'附件上传'}],
+    sstab:[{tit:'建设时间'},{tit:'建设进度跟踪'},{tit:'附件上传'}],
+    tctab:[{tit:'投产信息'},{tit:'年度统计'},{tit:'附件上传'}],
+    wctab:[{tit:'提交'}],
+    progress:1,
     cylbOptions:[],
     qybjOptions:[],
     jsxmjzData:[],
@@ -117,6 +123,28 @@
     });
     this.getDicts("enterprise_background").then(response => {
       this.qybjOptions = response.data;
+    });
+    // 项目进度project_schedule
+    this.getDicts("project_schedule").then(response => {
+      this.step = response.data.map(v => {
+        if(v.dictValue==1){
+          v.desc=this.qxtab
+        }else if(v.dictValue==2){
+          v.desc=this.kgtab
+        }else if(v.dictValue==3){
+          v.desc=this.sstab
+        }else if(v.dictValue==4){
+          v.desc=this.tctab
+        }else if(v.dictValue==5){
+          v.desc=this.wctab
+        }
+      	return {
+      		dictLabel: v.dictLabel,
+      		dictValue: v.dictValue,
+      		desc: v.desc
+      	}
+      })
+      // this.xmjdOptions = response.data;
     });
 	},
     methods:{
@@ -124,6 +152,7 @@
         getQyxx(this.id).then(res=>{
           if(res.code==200){
             this.infoqy=res.data;
+            this.progress=Number(res.data.progress)
             // this.xmbh=res.data.xmbh;
             // this.isdisabled=false;
             // this.progress=Number(res.data.progress)
@@ -337,12 +366,12 @@
           span{background: #1890FF;color: #FFFFFF;border: none;}
 
         }
+        .list{
+          .cir{background: #00A854;}
+        }
       }
       &.finish{
          .line{background-color: #1890FF !important;}
-         .list{
-           .cir{background: #00A854;}
-         }
       }
       &:last-child{
         .line{display: none !important;}