6fc23e2c by yangwei

登记受理申请信息 -- 业务表单

1 parent c4882636
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class djtDjSlsq {
5 // 登记受理申请信息 -- 业务表单
6 async getDjtDjSlsqById(bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/detail",
9 method: "get",
10 params: {
11 bsmSjsb: bsmSjsb,
12 },
13 });
14 }
15 // 登记受理申请信息 -- 业务修改
16 async updateDjtDjSlsq(data) {
17 return request({
18 url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/edit",
19 method: "post",
20 data,
21 });
22 }
23 //修改登记受理申请信息
24 async updateDjtDjSlsq(data) {
25 return request({
26 url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/updateDjtDjSlsq",
27 method: "put",
28 data,
29 });
30 }
31 }
32 export default new djtDjSlsq();
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
231 </template> 231 </template>
232 <script> 232 <script>
233 // 登记受理申请信息 233 // 登记受理申请信息
234 import business from "@/api/business"; 234 import djtDjSlsq from "@/api/djtDjSlsq";
235 import ruleMixin from "@/mixins/ruleMixin.js"; 235 import ruleMixin from "@/mixins/ruleMixin.js";
236 export default { 236 export default {
237 mixins: [ruleMixin], 237 mixins: [ruleMixin],
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
273 methods: { 273 methods: {
274 async featchData () { 274 async featchData () {
275 try { 275 try {
276 let { result: res } = await business.getDjtDjSlsqById(this.bsmSjsb); 276 let { result: res } = await djtDjSlsq.getDjtDjSlsqById(this.bsmSjsb);
277 this.ruleForm = res; 277 this.ruleForm = res;
278 //this.featchRule() 278 //this.featchRule()
279 } catch (error) { 279 } catch (error) {
...@@ -283,7 +283,7 @@ export default { ...@@ -283,7 +283,7 @@ export default {
283 handleUpdateForm () { 283 handleUpdateForm () {
284 return new Promise(async (resolve) => { 284 return new Promise(async (resolve) => {
285 try { 285 try {
286 let res = await business.updateDjtDjSlsq(this.ruleForm); 286 let res = await djtDjSlsq.updateDjtDjSlsq(this.ruleForm);
287 resolve(res.code); 287 resolve(res.code);
288 } catch (error) { 288 } catch (error) {
289 this.$refs.msg.messageShow(); 289 this.$refs.msg.messageShow();
......