Просмотр исходного кода

企业报送资料上传按钮添加判断条件

shiyanyu 1 месяц назад
Родитель
Сommit
f4956fdc90

+ 11 - 2
src/views/EntDeclaration/auditTaskManagement/components/DataRequirementsTab.vue

@@ -127,7 +127,7 @@
                 下载
               </el-button>
               <el-button
-                v-if="scope.row.isUpload === 0 || scope.row.isUpload === '0'"
+                v-if="scope.row.auditedStatus !== '1' && currentNode === 'clcs'"
                 type="text"
                 size="small"
                 :disabled="isViewMode"
@@ -146,7 +146,7 @@
                 模版下载
               </el-button>
               <el-button
-                v-if="scope.row.isUpload === 0 || scope.row.isUpload === '0'"
+                v-if="scope.row.auditedStatus !== '1' && currentNode === 'clcs'"
                 type="text"
                 size="small"
                 :disabled="isViewMode"
@@ -178,7 +178,16 @@
         type: Object,
         default: () => ({}),
       },
+      currentNode: {
+        type: String,
+        default: '',
+      },
+    },
+    computed: {},
+    mounted() {
+      // 直接使用this.currentNode访问props值,无需在data中重复定义
     },
+
     methods: {
       getRowClassName(data) {
         if (data.row.isCategoryHeader) {

+ 1 - 0
src/views/EntDeclaration/auditTaskManagement/taskFillIn.vue

@@ -81,6 +81,7 @@
               :data-requirements="groupedDataRequirements"
               :is-view-mode="isViewMode"
               :dict-data="dictData"
+              :current-node="currentNode"
               @handleAddMaterial="handleAddMaterial"
               @handleFileView="handleFileView"
               @handleFileDownload="handleFileDownload"

+ 3 - 1
src/views/EntDeclaration/auditTaskProcessing/index.vue

@@ -181,7 +181,9 @@
             v-if="
               (scope.row.currentNode === 'clcs' ||
                 scope.row.currentNode === 'tjcl') &&
-              (scope.row.status === '100' || scope.row.status === '500')
+              (scope.row.status === '100' ||
+                scope.row.status === '500' ||
+                scope.row.status === '600')
             "
             size="mini"
             type="text"