Browse Source

修改报表 修改跳转

Qukatie 1 month ago
parent
commit
9391ec3c72

+ 1 - 1
src/views/allocationContract/detailsPageEdit.vue

@@ -269,7 +269,7 @@
     </div>
 
 
-    <report-dialog :switchDialog="switchDialog" :reportId="form.id" reportName="销售明细(N)" @onClose="onClose()" />
+    <report-dialog :switchDialog="switchDialog" :reportId="form.id" reportName="配资" @onClose="onClose()" />
 
 
 

+ 32 - 12
src/views/financialManagement/billDetails/billDetails.vue

@@ -116,20 +116,40 @@ export default {
     // 点击合同号跳转
     Jumpfun(row) {
       if (this.sysitemType == 2) {
-        if (this.$store.getters.domSaleStatus) {
-          return this.$alert("销售单存在,请保存关闭销售单再进行操作", "温馨提示", {
-            confirmButtonText: "确定",
-            type: "warning",
-            callback: action => {
-              console.log(action);
-            }
+        if (row.billType == "收费") {
+          if (this.$store.getters.domSaleStatus) {
+            return this.$alert("销售单存在,请保存关闭销售单再进行操作", "温馨提示", {
+              confirmButtonText: "确定",
+              type: "warning",
+              callback: action => {
+                console.log(action);
+              }
+            });
+          }
+          this.$router.push({
+            path: "/businessManagement/salesOrder/index",
+            query: { params: row.srcParentId }
           });
         }
-
-        this.$router.push({
-          path: "/businessManagement/salesOrder/index",
-          query: { params: row.srcParentId }
-        });
+        if (row.billType == "申请") {
+          if (this.$store.getters.domPurStatus) {
+            this.$alert("采购单存在,请保存关闭采购单再进行操作", "温馨提示", {
+              confirmButtonText: "确定",
+              type: "warning",
+              callback: action => {
+                console.log(action);
+              }
+            });
+          } else {
+            this.$router.$avueRouter.closeTag("/businessManagement/purchaseOrder/index");
+            this.$router.push({
+              path: "/businessManagement/purchaseOrder/index",
+              query: {
+                params: row.srcParentId
+              }
+            });
+          }
+        }
       } else {
         if (this.$store.getters.xsStatus) {
           return this.$alert("销售单已存在,请关闭销售单再进行操作", "温馨提示", {