5ae2d962 by yangwei

层信息- 业务表单

1 parent 07a8bf43
import request from "@/utils/request";
import SERVER from "./config";
class kttFwC {
// 层信息- 业务表单
async getKttFwCById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwC/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 层信息-业务-修改
async updateKttFwC(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwC/edit",
method: "post",
data,
});
}
}
export default new kttFwC();
......@@ -84,7 +84,7 @@
层阳台面积: <br />
<p class="label-detail">(CYTMJ)</p>
</span>
<el-input-number controls-position="right":disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
placeholder="层阳台面积" type="number" v-model.number="ruleForm.cytmj"></el-input-number>
</el-form-item>
</el-col>
......@@ -95,7 +95,7 @@
层共有建筑面积: <br />
<p class="label-detail">(CGYJZMJ)</p>
</span>
<el-input-number controls-position="right":disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
placeholder="层共有建筑面积" type="number" v-model.number="ruleForm.cgyjzmj"></el-input-number>
</el-form-item>
</el-col>
......@@ -108,7 +108,7 @@
层分摊建筑面积: <br />
<p class="label-detail">(CFTJZMJ)</p>
</span>
<el-input-number controls-position="right":disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
placeholder="层分摊建筑面积" type="number" v-model.number="ruleForm.cftjzmj"></el-input-number>
</el-form-item>
</el-col>
......@@ -143,7 +143,7 @@
水平投影面积: <br />
<p class="label-detail">(SPTYMJ)</p>
</span>
<el-input-number controls-position="right":disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 999999999999999, min: 0, precision: 3 }"
placeholder="水平投影面积" type="number" v-model.number="ruleForm.sptymj"></el-input-number>
</el-form-item>
</el-col>
......@@ -164,7 +164,7 @@
</template>
<script>
// 层信息
import business from '@/api/business'
import kttFwC from '@/api/kttFwC'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -201,7 +201,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKttFwCById(this.bsmSjsb)
let { result: res } = await kttFwC.getKttFwCById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -211,7 +211,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateKttFwC(this.ruleForm)
let res = await kttFwC.updateKttFwC(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......