浏览代码

fix: 添加条件判断以确保在发票管理路径下返回特定选项

xieyong 3 周之前
父节点
当前提交
289de4d87e
共有 1 个文件被更改,包括 6 次插入 和 4 次删除
  1. 6 4
      src/views/financialManage/invoiceManage/components/addOrEditDialogNew.vue

+ 6 - 4
src/views/financialManage/invoiceManage/components/addOrEditDialogNew.vue

@@ -560,10 +560,12 @@
     computed: {
       ...mapGetters(['user']),
       sourceTypeOp() {
-        return [{
-            label: '其他无订单无合同',
-            value: 99
-        }];
+        if(this.$route.path.includes('invoiceManage')) {
+          return [{
+              label: '其他无订单无合同',
+              value: 99
+          }];
+        }
         return this.form.type == 1 ? [
           {
             label: '对账单',