ソースを参照

fix(发票管理): 修复删除按钮条件渲染逻辑错误

liujt 4 ヶ月 前
コミット
b847dee34e
1 ファイル変更6 行追加5 行削除
  1. 6 5
      src/views/financialManage/invoiceManage/index.vue

+ 6 - 5
src/views/financialManage/invoiceManage/index.vue

@@ -67,23 +67,24 @@
             class="ele-action"
             title="确定要删除此信息吗?"
             @confirm="remove([row.id])"
+            v-if="
+                  (isNeed_process_is_close &&
+                    [0, 3].includes(row.approvalStatus)) ||
+                  !isNeed_process_is_close
+                "
           >
             <template v-slot:reference>
               <el-link
                 type="danger"
                 :underline="false"
                 icon="el-icon-delete"
-                v-if="
-                  (isNeed_process_is_close &&
-                    [0, 3].includes(row.approvalStatus)) ||
-                  !isNeed_process_is_close
-                "
               >
                 删除
               </el-link>
             </template>
           </el-popconfirm>
         </template>
+        
         <template v-slot:code="{ row }">
           <el-link
             type="primary"