790b4de4 by tianhaohao@pashanhoo.com

修改一并申请规则

1 parent 028a8633
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
59 import { datas, sendThis } from "../javascript/selectFwsyq.js"; 59 import { datas, sendThis } from "../javascript/selectFwsyq.js";
60 import { defaultParameters } from "../javascript/publicDefaultPar.js"; 60 import { defaultParameters } from "../javascript/publicDefaultPar.js";
61 import { selectFwsyq } from "@/api/ywsq.js"; 61 import { selectFwsyq } from "@/api/ywsq.js";
62 import { startBusinessFlow } from "@/api/workFlow.js"; 62 import { startBusinessFlow,startTogetherFlow } from "@/api/workFlow.js";
63 export default { 63 export default {
64 mixins: [table, jump], 64 mixins: [table, jump],
65 props: { 65 props: {
...@@ -107,8 +107,37 @@ ...@@ -107,8 +107,37 @@
107 this.$message.error("请至少选择一条数据"); 107 this.$message.error("请至少选择一条数据");
108 return; 108 return;
109 } 109 }
110 this.loading = true 110 this.loading = true;
111 startBusinessFlow({ 111 if(this.sqywInfo.sqfl=='1'){
112 startBusinessFlow({
113 bsmSqyw: this.sqywInfo.bsmSqyw,
114 bdcdysz: this.bdcdysz,
115 }).then((res) => {
116 this.loading = false
117 if (res.code == 200) {
118 this.$message({
119 showClose: true,
120 message: "发起申请成功",
121 type: "success",
122 });
123 if (!this.isJump) {
124 this.jump(res.result, this.sqywInfo.djywbm);
125 } else {
126 store.dispatch('user/refreshPage', true);
127 }
128 this.$popupCacel()
129 } else {
130 if (res.result && res.result.length > 0) {
131 ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true)
132 } else {
133 ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true)
134 }
135 }
136 }).catch(() => {
137 this.loading = false
138 })
139 }else{
140 startTogetherFlow({
112 bsmSqyw: this.sqywInfo.bsmSqyw, 141 bsmSqyw: this.sqywInfo.bsmSqyw,
113 bdcdysz: this.bdcdysz, 142 bdcdysz: this.bdcdysz,
114 }).then((res) => { 143 }).then((res) => {
...@@ -116,15 +145,15 @@ ...@@ -116,15 +145,15 @@
116 if (res.code == 200) { 145 if (res.code == 200) {
117 this.$message({ 146 this.$message({
118 showClose: true, 147 showClose: true,
119 message: "发起申请成功", 148 message: '发起申请成功',
120 type: "success", 149 type: 'success'
121 }); 150 })
122 if (!this.isJump) { 151 if (!this.isJump) {
123 this.jump(res.result, this.sqywInfo.djywbm); 152 this.jump(res.result, this.sqywInfo.djywbm)
124 } else { 153 } else {
125 store.dispatch('user/refreshPage', true); 154 store.dispatch('user/refreshPage', true);
155 this.$popupCacel()
126 } 156 }
127 this.$popupCacel()
128 } else { 157 } else {
129 if (res.result && res.result.length > 0) { 158 if (res.result && res.result.length > 0) {
130 ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) 159 ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true)
...@@ -135,6 +164,8 @@ ...@@ -135,6 +164,8 @@
135 }).catch(() => { 164 }).catch(() => {
136 this.loading = false 165 this.loading = false
137 }) 166 })
167 }
168
138 }, 169 },
139 /** 170 /**
140 * @description: handleSelectionChange 171 * @description: handleSelectionChange
......
1 export function queueDjywmc (djywbm, djqxbm) { 1 export function queueDjywmc(djywbm, djqxbm) {
2 console.log(djywbm, 'djywbm'); 2 console.log(djywbm, 'djywbm');
3 if (djqxbm == "A0320099" || djqxbm == "A0330099") { 3 if (djqxbm == "A0320099" || djqxbm == "A0330099") {
4 return "selectJsydsyqSplitMerge"; 4 return "selectJsydsyqSplitMerge";
...@@ -92,12 +92,14 @@ export function queueDjywmc (djywbm, djqxbm) { ...@@ -92,12 +92,14 @@ export function queueDjywmc (djywbm, djqxbm) {
92 case "C40100": //一并申请首次 92 case "C40100": //一并申请首次
93 vm = "selectYbsc"; 93 vm = "selectYbsc";
94 break; 94 break;
95 // case "C40300": //一并申请变更 95 case "C40300": //一并申请变更
96 // case "C40400": //一并申请注销 96 case "C40400": //一并申请注销
97 // vm = "selectYbbg"; 97 vm = "selectYbbg";
98 // break; 98 break;
99 //case "C04372": //一并国有房屋变更
100 case "C04371": //一并国有房屋转移 99 case "C04371": //一并国有房屋转移
100 vm = "selectFwsyq";
101 break;
102 case "C04372": //一并国有房屋变更
101 vm = "selectYbgybg"; 103 vm = "selectYbgybg";
102 break; 104 break;
103 case "A11100"://林地使用权首次 105 case "A11100"://林地使用权首次
...@@ -115,7 +117,7 @@ export function queueDjywmc (djywbm, djqxbm) { ...@@ -115,7 +117,7 @@ export function queueDjywmc (djywbm, djqxbm) {
115 case "A12300"://森林林木登记 117 case "A12300"://森林林木登记
116 case "A12400"://森林林木变更 118 case "A12400"://森林林木变更
117 vm = "selectSllmqt"; 119 vm = "selectSllmqt";
118 break; 120 break;
119 default: 121 default:
120 vm = "selecBdcql"; 122 vm = "selecBdcql";
121 break; 123 break;
......