Browse Source

加判断

Lijy 2 năm trước cách đây
mục cha
commit
400b146823

+ 26 - 24
fhKeeper/formulahousekeeper/timesheet/src/views/project/info.vue

@@ -49,28 +49,30 @@
                     
 
                     <!-- this.project  -->
-                    <el-row :gutter="10" >
-                        <el-col :span="5" ><span class="gray_label">合同编号:</span></el-col><el-col :span="7" ></el-col>
-                        <el-col :span="18" ><span>{{project.projectSeparate.contractCode}}</span></el-col>
-                    </el-row>
-                    <el-row :gutter="10">
-                        <el-col :span="5" ><span class="gray_label">质保开始时间</span></el-col><el-col :span="7" >
-                            <span >{{project.projectSeparate.warrantyStartDate==null?'-':project.projectSeparate.warrantyStartDate}}</span></el-col>
-                        <el-col :span="5" ><span class="gray_label">质保截止时间:</span></el-col><el-col :span="7" ><span>
-                            {{project.projectSeparate.warrantyEndDate == null?'-':project.projectSeparate.warrantyEndDate}}</span></el-col>
-                    </el-row>
-                    <el-row :gutter="10" >
-                        <el-col :span="5" ><span class="gray_label">自主项目类别:</span></el-col><el-col :span="7" ></el-col>
-                        <el-col :span="18" ><span>{{project.projectSeparate.projectCategorySub}}</span></el-col>
-                    </el-row>
-                    <el-row :gutter="10" >
-                        <el-col :span="5" ><span class="gray_label">所属大区:</span></el-col><el-col :span="7" ></el-col>
-                        <el-col :span="18" ><span>{{project.projectSeparate.region}}</span></el-col>
-                    </el-row>
-                    <el-row :gutter="10" >
-                        <el-col :span="5" ><span class="gray_label">所属BU:</span></el-col><el-col :span="7" ></el-col>
-                        <el-col :span="18" ><span>{{project.projectSeparate.bu}}</span></el-col>
-                    </el-row>
+                    <div v-if="user.companyId == '936'">
+                        <el-row :gutter="10" >
+                            <el-col :span="5" ><span class="gray_label">合同编号:</span></el-col><el-col :span="7" ></el-col>
+                            <el-col :span="18" ><span>{{project.projectSeparate.contractCode}}</span></el-col>
+                        </el-row>
+                        <el-row :gutter="10">
+                            <el-col :span="5" ><span class="gray_label">质保开始时间</span></el-col><el-col :span="7" >
+                                <span >{{project.projectSeparate.warrantyStartDate==null?'-':project.projectSeparate.warrantyStartDate}}</span></el-col>
+                            <el-col :span="5" ><span class="gray_label">质保截止时间:</span></el-col><el-col :span="7" ><span>
+                                {{project.projectSeparate.warrantyEndDate == null?'-':project.projectSeparate.warrantyEndDate}}</span></el-col>
+                        </el-row>
+                        <el-row :gutter="10" >
+                            <el-col :span="5" ><span class="gray_label">自主项目类别:</span></el-col><el-col :span="7" ></el-col>
+                            <el-col :span="18" ><span>{{project.projectSeparate.projectCategorySub}}</span></el-col>
+                        </el-row>
+                        <el-row :gutter="10" >
+                            <el-col :span="5" ><span class="gray_label">所属大区:</span></el-col><el-col :span="7" ></el-col>
+                            <el-col :span="18" ><span>{{project.projectSeparate.region}}</span></el-col>
+                        </el-row>
+                        <el-row :gutter="10" >
+                            <el-col :span="5" ><span class="gray_label">所属BU:</span></el-col><el-col :span="7" ></el-col>
+                            <el-col :span="18" ><span>{{project.projectSeparate.bu}}</span></el-col>
+                        </el-row>
+                    </div>
                 </div>
                 <div class="box" style="margin-top:10px;">
                     <div><label>相关人员</label>
@@ -1469,7 +1471,7 @@
                 this.addFormVisible = true;
                 console.log(this.addForm, 123)
                 var arr = []
-                if(this.addForm.associateDegrees != null) {
+                // if(this.addForm.associateDegrees != null) {
                     if(this.addForm.associateDegrees.length > 0) {
                         if(this.addForm.associateDegrees.length == 1) {
                             var sl = +this.addForm.associateDegrees + 0
@@ -1484,7 +1486,7 @@
                     } else {
                         arr = []
                     }
-                }
+                // }
                 this.auseList = arr
                 console.log(this.auseList, '看看是个什么值')
             },