Преглед изворни кода

解决文件财务人员不可以上传

liuxiangqi пре 1 година
родитељ
комит
54f27c3500
1 измењених фајлова са 5 додато и 13 уклоњено
  1. 5 13
      src/views/enterprise/project/components/enclosure-edit.vue

+ 5 - 13
src/views/enterprise/project/components/enclosure-edit.vue

@@ -49,17 +49,6 @@
             <th colspan="4" class="th_title">2、研发项目验收报告
             </th>
           </tr>
-          <tr>
-            <th><span style="color: red;">*</span>是否上传</th>
-            <td>
-              <el-form-item prop="reportFlag" label-width="0">
-                <el-radio-group v-model="form.reportFlag" :disabled="disabledFlag">
-                  <el-radio v-for="(item, index) in booleanOptions" :key="index" :label="item.dictValue">{{item.dictLabel}}</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </td>
-          </tr>
-          <template v-if="form.reportFlag">
             <tr>
               <th>验收报告导入</th>
               <td colspan="3">
@@ -87,7 +76,6 @@
                 </ul>
               </td>
             </tr>
-          </template>
 
         </table>
         <table class="table_register mt20 tablebar" style="width: 100%;">
@@ -486,6 +474,10 @@
       finFlag() {
         let roleType = this.$store.state.user.userType
         return this.type != 'view' ? ['ENT_FIN', 'ADMIN', 'ENT_ADMIN'].includes(roleType) : false //判断是否为财务
+      },
+      finFileFlag() {
+        let roleType = this.$store.state.user.userType
+        return ['ENT_FIN'].includes(roleType)
       }
     },
     created() {
@@ -493,7 +485,7 @@
       if(this.id) {
         this.getList()
       }
-      if(this.finFlag) {
+      if(this.finFileFlag) {
         this.disabledFlag = true
       }
     },