5ae2d962 by yangwei

层信息- 业务表单

1 parent 07a8bf43
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class kttFwC {
5 // 层信息- 业务表单
6 async getKttFwCById(bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/KttFwC/detail",
9 method: "get",
10 params: {
11 bsmSjsb: bsmSjsb,
12 },
13 });
14 }
15 // 层信息-业务-修改
16 async updateKttFwC(data) {
17 return request({
18 url: SERVER.SERVERAPI + "/rest/reg/KttFwC/edit",
19 method: "post",
20 data,
21 });
22 }
23 }
24 export default new kttFwC();
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
84 层阳台面积: <br /> 84 层阳台面积: <br />
85 <p class="label-detail">(CYTMJ)</p> 85 <p class="label-detail">(CYTMJ)</p>
86 </span> 86 </span>
87 <el-input-number controls-position="right":disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" 87 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
88 placeholder="层阳台面积" type="number" v-model.number="ruleForm.cytmj"></el-input-number> 88 placeholder="层阳台面积" type="number" v-model.number="ruleForm.cytmj"></el-input-number>
89 </el-form-item> 89 </el-form-item>
90 </el-col> 90 </el-col>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
95 层共有建筑面积: <br /> 95 层共有建筑面积: <br />
96 <p class="label-detail">(CGYJZMJ)</p> 96 <p class="label-detail">(CGYJZMJ)</p>
97 </span> 97 </span>
98 <el-input-number controls-position="right":disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" 98 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
99 placeholder="层共有建筑面积" type="number" v-model.number="ruleForm.cgyjzmj"></el-input-number> 99 placeholder="层共有建筑面积" type="number" v-model.number="ruleForm.cgyjzmj"></el-input-number>
100 </el-form-item> 100 </el-form-item>
101 </el-col> 101 </el-col>
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
108 层分摊建筑面积: <br /> 108 层分摊建筑面积: <br />
109 <p class="label-detail">(CFTJZMJ)</p> 109 <p class="label-detail">(CFTJZMJ)</p>
110 </span> 110 </span>
111 <el-input-number controls-position="right":disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" 111 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
112 placeholder="层分摊建筑面积" type="number" v-model.number="ruleForm.cftjzmj"></el-input-number> 112 placeholder="层分摊建筑面积" type="number" v-model.number="ruleForm.cftjzmj"></el-input-number>
113 </el-form-item> 113 </el-form-item>
114 </el-col> 114 </el-col>
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
143 水平投影面积: <br /> 143 水平投影面积: <br />
144 <p class="label-detail">(SPTYMJ)</p> 144 <p class="label-detail">(SPTYMJ)</p>
145 </span> 145 </span>
146 <el-input-number controls-position="right":disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }" 146 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
147 placeholder="水平投影面积" type="number" v-model.number="ruleForm.sptymj"></el-input-number> 147 placeholder="水平投影面积" type="number" v-model.number="ruleForm.sptymj"></el-input-number>
148 </el-form-item> 148 </el-form-item>
149 </el-col> 149 </el-col>
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
164 </template> 164 </template>
165 <script> 165 <script>
166 // 层信息 166 // 层信息
167 import business from '@/api/business' 167 import kttFwC from '@/api/kttFwC'
168 import ruleMixin from '@/mixins/ruleMixin.js' 168 import ruleMixin from '@/mixins/ruleMixin.js'
169 export default { 169 export default {
170 mixins: [ruleMixin], 170 mixins: [ruleMixin],
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
201 methods: { 201 methods: {
202 async featchData () { 202 async featchData () {
203 try { 203 try {
204 let { result: res } = await business.getKttFwCById(this.bsmSjsb) 204 let { result: res } = await kttFwC.getKttFwCById(this.bsmSjsb)
205 this.ruleForm = res 205 this.ruleForm = res
206 //this.featchRule() 206 //this.featchRule()
207 } catch (error) { 207 } catch (error) {
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
211 handleUpdateForm () { 211 handleUpdateForm () {
212 return new Promise(async (resolve, reject) => { 212 return new Promise(async (resolve, reject) => {
213 try { 213 try {
214 let res = await business.updateKttFwC(this.ruleForm) 214 let res = await kttFwC.updateKttFwC(this.ruleForm)
215 // this.$refs['formList'].resetFields(); 215 // this.$refs['formList'].resetFields();
216 resolve(res.code) 216 resolve(res.code)
217 } catch (error) { 217 } catch (error) {
......