Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5ae2d962
authored
2023-02-02 10:25:13 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
层信息- 业务表单
1 parent
07a8bf43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
7 deletions
src/api/kttFwC.js
src/components/business/kttFwC.vue
src/api/kttFwC.js
0 → 100644
View file @
5ae2d96
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
();
src/components/business/kttFwC.vue
View file @
5ae2d96
...
...
@@ -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
)
{
...
...
Please
register
or
sign in
to post a comment