07a8bf43 by yangwei

登记发证信息

1 parent 326c83e4
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class djfDjFz {
5 //登记发证信息
6 async getDjfDjFzDetailById(bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/DjfDjFz/detail",
9 method: "get",
10 params: {
11 bsmSjsb: bsmSjsb,
12 },
13 });
14 }
15 //修改登记发证信息
16 async updateDjfDjFz(data) {
17 return request({
18 url: SERVER.SERVERAPI + "/rest/reg/DjfDjFz/edit",
19 method: "post",
20 data,
21 });
22 }
23 }
24 export default new djfDjFz();
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
184 </template> 184 </template>
185 <script> 185 <script>
186 // 发证信息 186 // 发证信息
187 import business from '@/api/business' 187 import djfDjFz from '@/api/djfDjFz'
188 import ruleMixin from '@/mixins/ruleMixin.js' 188 import ruleMixin from '@/mixins/ruleMixin.js'
189 import treeSelect from '@/components/treeSelect/index.vue' 189 import treeSelect from '@/components/treeSelect/index.vue'
190 export default { 190 export default {
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
226 methods: { 226 methods: {
227 async featchData () { 227 async featchData () {
228 try { 228 try {
229 let { result: res } = await business.getDjfDjFzDetailById(this.bsmSjsb) 229 let { result: res } = await djfDjFz.getDjfDjFzDetailById(this.bsmSjsb)
230 this.ruleForm = res 230 this.ruleForm = res
231 //this.featchRule() 231 //this.featchRule()
232 } catch (error) { 232 } catch (error) {
...@@ -236,7 +236,7 @@ export default { ...@@ -236,7 +236,7 @@ export default {
236 handleUpdateForm () { 236 handleUpdateForm () {
237 return new Promise(async (resolve, reject) => { 237 return new Promise(async (resolve, reject) => {
238 try { 238 try {
239 let res = await business.updateDjfDjFz(this.ruleForm) 239 let res = await djfDjFz.updateDjfDjFz(this.ruleForm)
240 // this.$refs['formList'].resetFields(); 240 // this.$refs['formList'].resetFields();
241 resolve(res.code) 241 resolve(res.code)
242 } catch (error) { 242 } catch (error) {
......