6c388184 by yangwei

登记缮证信息

1 parent 5ae2d962
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class djfDjSz {
5 //登记缮证信息
6 async getDjfDjSzById(bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/detail",
9 method: "get",
10 params: {
11 bsmSjsb: bsmSjsb,
12 },
13 });
14 }
15 //修改登记缮证信息
16 async updateDjfDjSz(data) {
17 return request({
18 url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/edit",
19 method: "post",
20 data,
21 });
22 }
23 }
24 export default new djfDjSz();
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
116 </div> 116 </div>
117 </template> 117 </template>
118 <script> 118 <script>
119 import business from '@/api/business' 119 import djfDjSz from '@/api/djfDjSz'
120 import ruleMixin from '@/mixins/ruleMixin.js' 120 import ruleMixin from '@/mixins/ruleMixin.js'
121 // 缮证信息 121 // 缮证信息
122 export default { 122 export default {
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
151 methods: { 151 methods: {
152 async featchData () { 152 async featchData () {
153 try { 153 try {
154 let { result: res } = await business.getDjfDjSzById(this.bsmSjsb) 154 let { result: res } = await djfDjSz.getDjfDjSzById(this.bsmSjsb)
155 this.certificateInfo.ruleForm = res; 155 this.certificateInfo.ruleForm = res;
156 //this.featchRule() 156 //this.featchRule()
157 } catch (error) { 157 } catch (error) {
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
161 handleUpdateForm () { 161 handleUpdateForm () {
162 return new Promise(async (resolve) => { 162 return new Promise(async (resolve) => {
163 try { 163 try {
164 let res = await business.updateDjfDjSz(this.certificateInfo.ruleForm) 164 let res = await djfDjSz.updateDjfDjSz(this.certificateInfo.ruleForm)
165 // this.$refs['formList'].resetFields(); 165 // this.$refs['formList'].resetFields();
166 resolve(res.code) 166 resolve(res.code)
167 } catch (error) { 167 } catch (error) {
......