17d80724 by 蔡俊立

续封

1 parent 0c06227e
...@@ -3,14 +3,14 @@ import request from '@/utils/request' ...@@ -3,14 +3,14 @@ import request from '@/utils/request'
3 // 初始化内容 3 // 初始化内容
4 export function Init(data) { 4 export function Init(data) {
5 let apiUrl = ""; 5 let apiUrl = "";
6 switch (data.get("sqywbm")) { 6 switch (data.get("djlx")) {
7 case "B39300": 7 case "300":
8 apiUrl = "/ywbl/cfdj/xfInit"; 8 apiUrl = "/ywbl/cfdj/xfInit";
9 break; 9 break;
10 case "B39400": 10 case "400":
11 apiUrl = "/ywbl/cfdj/jfInit"; 11 apiUrl = "/ywbl/cfdj/jfInit";
12 break; 12 break;
13 case "B39800": 13 case "800":
14 apiUrl = "/ywbl/cfdj/cfInit"; 14 apiUrl = "/ywbl/cfdj/cfInit";
15 break; 15 break;
16 } 16 }
...@@ -20,11 +20,22 @@ export function Init(data) { ...@@ -20,11 +20,22 @@ export function Init(data) {
20 data 20 data
21 }) 21 })
22 } 22 }
23 23 //批量初始化
24 //批量查封 24 export function BatchInit(data) {
25 export function cfBatchInit (data) { 25 let apiUrl = "";
26 switch (data.get("djlx")) {
27 case "300":
28 apiUrl = "/ywbl/cfdj/xfBatchInit";
29 break;
30 case "400":
31 apiUrl = "/ywbl/cfdj/jfBatchInit";
32 break;
33 case "800":
34 apiUrl = "/ywbl/cfdj/cfBatchInit";
35 break;
36 }
26 return request({ 37 return request({
27 url: '/ywbl/cfdj/cfBatchInit', 38 url: apiUrl,
28 method: 'post', 39 method: 'post',
29 data 40 data
30 }) 41 })
......
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
132 </template> 132 </template>
133 <script> 133 <script>
134 import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable"; 134 import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable";
135 import { cfBatchInit, batchSaveData } from "@/api/cfdjFlow.js"; 135 import { BatchInit, batchSaveData } from "@/api/cfdjFlow.js";
136 import { mapGetters } from "vuex"; 136 import { mapGetters } from "vuex";
137 export default { 137 export default {
138 data () { 138 data () {
...@@ -148,7 +148,15 @@ export default { ...@@ -148,7 +148,15 @@ export default {
148 }; 148 };
149 }, 149 },
150 created () { 150 created () {
151 this.list(); 151 this.propsParam = this.$attrs;
152 var formdata = new FormData();
153 formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
154 formdata.append("djlx", this.propsParam.djlx);
155 BatchInit(formdata).then((res) => {
156 if (res.code === 200 && res.result) {
157 this.ruleForm = res.result
158 }
159 });
152 }, 160 },
153 watch: { 161 watch: {
154 162
...@@ -169,15 +177,6 @@ export default { ...@@ -169,15 +177,6 @@ export default {
169 }, 177 },
170 178
171 methods: { 179 methods: {
172 list () {
173 var formdata = new FormData();
174 formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
175 cfBatchInit(formdata).then((res) => {
176 if (res.code === 200 && res.result) {
177 this.ruleForm = res.result
178 }
179 });
180 },
181 onSubmit () { 180 onSubmit () {
182 this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq; 181 this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq;
183 batchSaveData(this.ruleForm).then((res) => { 182 batchSaveData(this.ruleForm).then((res) => {
......
...@@ -83,17 +83,17 @@ ...@@ -83,17 +83,17 @@
83 <el-row :gutter="10"> 83 <el-row :gutter="10">
84 <el-col :span="8"> 84 <el-col :span="8">
85 <el-form-item :class="flag ? 'marginBot0' : ''" label="权利人:" prop="qlxx.qlrmc"> 85 <el-form-item :class="flag ? 'marginBot0' : ''" label="权利人:" prop="qlxx.qlrmc">
86 <el-input disabled v-model="ruleForm.qlxx.ywrmc"></el-input> 86 <el-input disabled v-model="ruleForm.qlxx.qlrmc"></el-input>
87 </el-form-item> 87 </el-form-item>
88 </el-col> 88 </el-col>
89 <el-col :span="8"> 89 <el-col :span="8">
90 <el-form-item :class="flag ? 'marginBot0' : ''" label="证件号:"> 90 <el-form-item :class="flag ? 'marginBot0' : ''" label="证件号:">
91 <el-input disabled v-model="ruleForm.qlxx.ywrzjhm"></el-input> 91 <el-input disabled v-model="ruleForm.qlxx.qlrzjhm"></el-input>
92 </el-form-item> 92 </el-form-item>
93 </el-col> 93 </el-col>
94 <el-col :span="8"> 94 <el-col :span="8">
95 <el-form-item :class="flag ? 'marginBot0' : ''" label="证件种类:"> 95 <el-form-item :class="flag ? 'marginBot0' : ''" label="证件种类:">
96 <el-input disabled v-model="ruleForm.qlxx.ywrzjzl"></el-input> 96 <el-input disabled v-model="ruleForm.qlxx.qlrzjzl"></el-input>
97 </el-form-item> 97 </el-form-item>
98 </el-col> 98 </el-col>
99 </el-row> 99 </el-row>
...@@ -189,10 +189,17 @@ export default { ...@@ -189,10 +189,17 @@ export default {
189 ableEdit: false 189 ableEdit: false
190 }; 190 };
191 }, 191 },
192 created () { 192 async created () {
193 this.propsParam = this.$attrs; 193 this.propsParam = this.$attrs;
194 this.ableEdit = this.$parent.showBatch; 194 this.ableEdit = this.$parent.showBatch;
195 this.list(this.propsParam.bsmSldy); 195 var formdata = new FormData();
196 formdata.append("bsmSldy", this.propsParam.bsmSldy);
197 formdata.append("djlx", this.propsParam.djlx);
198 Init(formdata).then((res) => {
199 if (res.code === 200 && res.result) {
200 this.ruleForm = res.result
201 }
202 });
196 }, 203 },
197 watch: { 204 watch: {
198 205
...@@ -213,16 +220,6 @@ export default { ...@@ -213,16 +220,6 @@ export default {
213 }, 220 },
214 221
215 methods: { 222 methods: {
216 list (bsmSldy) {
217 var formdata = new FormData();
218 formdata.append("bsmSldy", bsmSldy);
219 formdata.append("sqywbm", this.$route.query.sqywbm);
220 Init(formdata).then((res) => {
221 if (res.code === 200 && res.result) {
222 this.ruleForm = res.result
223 }
224 });
225 },
226 onSubmit () { 223 onSubmit () {
227 saveData(this.ruleForm).then((res) => { 224 saveData(this.ruleForm).then((res) => {
228 if (res.code === 200) { 225 if (res.code === 200) {
......
...@@ -58,7 +58,7 @@ import { datas, sendThis } from "../javascript/cfdj.js"; ...@@ -58,7 +58,7 @@ import { datas, sendThis } from "../javascript/cfdj.js";
58 import { defaultParameters } from "../javascript/publicDefaultPar.js"; 58 import { defaultParameters } from "../javascript/publicDefaultPar.js";
59 import table from "@/utils/mixin/table"; 59 import table from "@/utils/mixin/table";
60 import jump from "../components/mixin/jump"; 60 import jump from "../components/mixin/jump";
61 import { selectCfdj, startBusinessFlow } from "@/api/ywbl.js"; 61 import { selectCfdj, startBusinessFlow ,choiceBdcdy} from "@/api/ywbl.js";
62 export default { 62 export default {
63 props: { 63 props: {
64 isJump: { type: Boolean, default: false }, 64 isJump: { type: Boolean, default: false },
...@@ -102,6 +102,7 @@ export default { ...@@ -102,6 +102,7 @@ export default {
102 return; 102 return;
103 } 103 }
104 this.saveloding = true; 104 this.saveloding = true;
105 if (!this.isJump) {
105 startBusinessFlow({ 106 startBusinessFlow({
106 bsmSqyw: Cookies.get("bsmSqyw"), 107 bsmSqyw: Cookies.get("bsmSqyw"),
107 bdcdysz: this.bdcdysz, 108 bdcdysz: this.bdcdysz,
...@@ -115,15 +116,29 @@ export default { ...@@ -115,15 +116,29 @@ export default {
115 message: '发起申请成功', 116 message: '发起申请成功',
116 type: 'success' 117 type: 'success'
117 }) 118 })
118 if (!this.isJump) {
119 this.jump(res.result, this.djywbm) 119 this.jump(res.result, this.djywbm)
120 } else { 120 } else {
121 this.$emit('updateDialog', true) 121 this.$message.error(res.message);
122 } 122 }
123 })
124 } else {
125 choiceBdcdy({
126 bsmSlsq: this.$route.query.bsmSlsq,
127 bdcdysz: this.bdcdysz
128 }).then(res => {
129 this.saveloding = false;
130 if (res.code == 200) {
131 this.$message({
132 showClose: true,
133 message: '发起申请成功',
134 type: 'success'
135 })
136 this.$emit('updateDialog', true)
123 } else { 137 } else {
124 this.$message.error(res.message); 138 this.$message.error(res.message);
125 } 139 }
126 }); 140 })
141 }
127 }, 142 },
128 handleSelectionChange (val) { 143 handleSelectionChange (val) {
129 val.forEach((item, index) => { 144 val.forEach((item, index) => {
......