|
@@ -135,50 +135,10 @@ export default {
|
|
|
},
|
|
|
// 跳转
|
|
|
beforeOpenPage(row, index) {
|
|
|
- if (this.$store.getters.inboundAndOutbound) {
|
|
|
- this.$alert("明细账已存在,请保存关闭明细账再进行操作", "温馨提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- type: "warning",
|
|
|
- callback: action => {
|
|
|
- console.log(action);
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- if (row.bizTypeName == '出库') {
|
|
|
- this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/outboundWorkOrder/index");
|
|
|
- this.$router.push({
|
|
|
- path: "/tirePartsMall/salesManagement/outboundWorkOrder/index",
|
|
|
- query: {
|
|
|
- id: row.id
|
|
|
- },
|
|
|
- });
|
|
|
- }else if (row.bizTypeName == '销售') {
|
|
|
- this.$router.$avueRouter.closeTag("/salesOrder/index");
|
|
|
- this.$router.push({
|
|
|
- path: "/salesOrder/index",
|
|
|
- query: {
|
|
|
- orderId: row.id
|
|
|
- },
|
|
|
- });
|
|
|
- } else if (row.bizTypeName == '采购') {
|
|
|
- this.$router.$avueRouter.closeTag("/purchaseOrder/index");
|
|
|
- this.$router.push({
|
|
|
- path: "/purchaseOrder/index",
|
|
|
- query: {
|
|
|
- orderId: row.id
|
|
|
- },
|
|
|
- });
|
|
|
- }else if (row.bizTypeName == '盘点') {
|
|
|
- this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/Inventory/index");
|
|
|
- this.$router.push({
|
|
|
- path: "/tirePartsMall/salesManagement/Inventory/index",
|
|
|
- query: {
|
|
|
- orderId: row.id
|
|
|
- },
|
|
|
- });
|
|
|
- } else if (row.bizTypeName == '调出') {
|
|
|
- if (this.$store.getters.Allocateandtransfer) {
|
|
|
- this.$alert("调拨明细已存在,请保存关闭明细账再进行操作", "温馨提示", {
|
|
|
+ if(row.bizTypeName == '盘点') {
|
|
|
+ console.log(this.$store.getters,139)
|
|
|
+ if (this.$store.getters.Inventory) {
|
|
|
+ this.$alert("明细账已存在,请保存关闭明细账再进行操作", "温馨提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
type: "warning",
|
|
|
callback: action => {
|
|
@@ -186,24 +146,78 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}else {
|
|
|
- this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/outboundWorkOrderL/index");
|
|
|
+ this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/Inventory/index");
|
|
|
this.$router.push({
|
|
|
- path: "/tirePartsMall/salesManagement/outboundWorkOrderL/index",
|
|
|
+ path: "/tirePartsMall/salesManagement/Inventory/index",
|
|
|
query: {
|
|
|
- id: row.id
|
|
|
+ orderId: row.id
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$router.$avueRouter.closeTag("/tirePartsMall/purchasingManagement/warehouseEntryOrder/index");
|
|
|
- this.$router.push({
|
|
|
- path: "/tirePartsMall/purchasingManagement/warehouseEntryOrder/index",
|
|
|
- query: {
|
|
|
- id: row.id
|
|
|
- },
|
|
|
- });
|
|
|
+ }else {
|
|
|
+ if (this.$store.getters.inboundAndOutbound) {
|
|
|
+ this.$alert("明细账已存在,请保存关闭明细账再进行操作", "温馨提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ type: "warning",
|
|
|
+ callback: action => {
|
|
|
+ console.log(action);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ if (row.bizTypeName == '出库') {
|
|
|
+ this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/outboundWorkOrder/index");
|
|
|
+ this.$router.push({
|
|
|
+ path: "/tirePartsMall/salesManagement/outboundWorkOrder/index",
|
|
|
+ query: {
|
|
|
+ id: row.id
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }else if (row.bizTypeName == '销售') {
|
|
|
+ this.$router.$avueRouter.closeTag("/salesOrder/index");
|
|
|
+ this.$router.push({
|
|
|
+ path: "/salesOrder/index",
|
|
|
+ query: {
|
|
|
+ orderId: row.id
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else if (row.bizTypeName == '采购') {
|
|
|
+ this.$router.$avueRouter.closeTag("/purchaseOrder/index");
|
|
|
+ this.$router.push({
|
|
|
+ path: "/purchaseOrder/index",
|
|
|
+ query: {
|
|
|
+ orderId: row.id
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else if (row.bizTypeName == '调出') {
|
|
|
+ if (this.$store.getters.Allocateandtransfer) {
|
|
|
+ this.$alert("调拨明细已存在,请保存关闭明细账再进行操作", "温馨提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ type: "warning",
|
|
|
+ callback: action => {
|
|
|
+ console.log(action);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/outboundWorkOrderL/index");
|
|
|
+ this.$router.push({
|
|
|
+ path: "/tirePartsMall/salesManagement/outboundWorkOrderL/index",
|
|
|
+ query: {
|
|
|
+ id: row.id
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$router.$avueRouter.closeTag("/tirePartsMall/purchasingManagement/warehouseEntryOrder/index");
|
|
|
+ this.$router.push({
|
|
|
+ path: "/tirePartsMall/purchasingManagement/warehouseEntryOrder/index",
|
|
|
+ query: {
|
|
|
+ id: row.id
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
return
|
|
|
if (this.$store.getters.domSaleStatus) {
|