eb7bb34e by yangwei

逻辑幢信息 -- 业务表单

1 parent 6fc23e2c
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class kttFwLjz {
5 // 逻辑幢信息 -- 业务表单
6 async getKttFwLjzById(bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/detail",
9 method: "get",
10 params: {
11 bsmSjsb: bsmSjsb,
12 },
13 });
14 }
15 // 逻辑幢信息 -- 业务修改
16 async updateKttFwLjz(data) {
17 return request({
18 url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/edit",
19 method: "post",
20 data,
21 });
22 }
23 }
24 export default new kttFwLjz();
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
263 </template> 263 </template>
264 <script> 264 <script>
265 // 逻辑幢信息 265 // 逻辑幢信息
266 import business from '@/api/business' 266 import kttFwLjz from '@/api/kttFwLjz'
267 import ruleMixin from '@/mixins/ruleMixin.js' 267 import ruleMixin from '@/mixins/ruleMixin.js'
268 export default { 268 export default {
269 mixins: [ruleMixin], 269 mixins: [ruleMixin],
...@@ -309,7 +309,7 @@ export default { ...@@ -309,7 +309,7 @@ export default {
309 methods: { 309 methods: {
310 async featchData () { 310 async featchData () {
311 try { 311 try {
312 let { result: res } = await business.getKttFwLjzById(this.bsmSjsb) 312 let { result: res } = await kttFwLjz.getKttFwLjzById(this.bsmSjsb)
313 this.ruleForm = res 313 this.ruleForm = res
314 //this.featchRule() 314 //this.featchRule()
315 } catch (error) { 315 } catch (error) {
...@@ -319,7 +319,7 @@ export default { ...@@ -319,7 +319,7 @@ export default {
319 handleUpdateForm () { 319 handleUpdateForm () {
320 return new Promise(async (resolve, reject) => { 320 return new Promise(async (resolve, reject) => {
321 try { 321 try {
322 let res = await business.updateKttFwLjz(this.ruleForm) 322 let res = await kttFwLjz.updateKttFwLjz(this.ruleForm)
323 // this.$refs['formList'].resetFields(); 323 // this.$refs['formList'].resetFields();
324 resolve(res.code) 324 resolve(res.code)
325 } catch (error) { 325 } catch (error) {
......