Selaa lähdekoodia

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

xieyong 3 viikkoa sitten
vanhempi
commit
289de4d87e

+ 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: '对账单',