|
|
@@ -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("销售单已存在,请关闭销售单再进行操作", "温馨提示", {
|