c27d1f84 by yangwei

注销登记

1 parent a2dc2904
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class qlfQlZxdj {
5 // 注销登记
6 async getQlfQlZxdjList(data) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/getDataPage",
9 method: "post",
10 data,
11 });
12 }
13 // 注销登记信息
14 async getQlfQlZxdjById(bsmSjsb) {
15 return request({
16 url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/detail",
17 method: "get",
18 params: {
19 bsmSjsb: bsmSjsb,
20 },
21 });
22 }
23 //注销登记信息 - 修改
24 async updateQlfQlZxdj(data) {
25 return request({
26 url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/edit",
27 method: "post",
28 data,
29 });
30 }
31 }
32 export default new qlfQlZxdj();
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
145 </template> 145 </template>
146 <script> 146 <script>
147 // 注销登记信息 147 // 注销登记信息
148 import business from "@/api/business"; 148 import qlfQlZxdj from "@/api/qlfQlZxdj";
149 import ruleMixin from "@/mixins/ruleMixin.js"; 149 import ruleMixin from "@/mixins/ruleMixin.js";
150 export default { 150 export default {
151 mixins: [ruleMixin], 151 mixins: [ruleMixin],
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
179 methods: { 179 methods: {
180 async featchData() { 180 async featchData() {
181 try { 181 try {
182 let { result: res } = await business.getQlfQlZxdjById(this.bsmSjsb); 182 let { result: res } = await qlfQlZxdj.getQlfQlZxdjById(this.bsmSjsb);
183 this.ruleForm = res; 183 this.ruleForm = res;
184 //this.featchRule() 184 //this.featchRule()
185 } catch (error) { 185 } catch (error) {
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
189 handleUpdateForm() { 189 handleUpdateForm() {
190 return new Promise(async (resolve) => { 190 return new Promise(async (resolve) => {
191 try { 191 try {
192 let res = await business.updateQlfQlZxdj(this.ruleForm); 192 let res = await qlfQlZxdj.updateQlfQlZxdj(this.ruleForm);
193 // this.$refs['formList'].resetFields(); 193 // this.$refs['formList'].resetFields();
194 resolve(res.code); 194 resolve(res.code);
195 } catch (error) { 195 } catch (error) {
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
68 <script> 68 <script>
69 // 注销登记 69 // 注销登记
70 import data from "./data" 70 import data from "./data"
71 import business from '@/api/business' 71 import qlfQlZxdj from '@/api/qlfQlZxdj'
72 import tableMixin from '@/mixins/tableMixin.js' 72 import tableMixin from '@/mixins/tableMixin.js'
73 export default { 73 export default {
74 name: "cancellationReg", 74 name: "cancellationReg",
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
126 try { 126 try {
127 this.form = Object.assign(this.form, this.formData) 127 this.form = Object.assign(this.form, this.formData)
128 let { result: { list, total, pages: pageSize, pageNum: current } 128 let { result: { list, total, pages: pageSize, pageNum: current }
129 } = await business.getQlfQlZxdjList(this.form) 129 } = await qlfQlZxdj.getQlfQlZxdjList(this.form)
130 this.tableData.data = list 130 this.tableData.data = list
131 this.pageData = { 131 this.pageData = {
132 pageSize, 132 pageSize,
......