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
326c83e4
authored
2023-02-02 10:18:29 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
户信息- 业务表单
1 parent
a47a8fd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/kttFwH.js
src/components/business/kttFwH.vue
src/api/kttFwH.js
0 → 100644
View file @
326c83e
import
request
from
"@/utils/request"
;
import
SERVER
from
"./config"
;
class
kttFwH
{
// 户信息- 业务表单
async
getKttFwHById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/KttFwH/detail"
,
method
:
"get"
,
params
:
{
bsmSjsb
:
bsmSjsb
,
},
});
}
// 户信息-业务-修改
async
updateKttFwH
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/KttFwH/edit"
,
method
:
"post"
,
data
,
});
}
}
export
default
new
kttFwH
();
src/components/business/kttFwH.vue
View file @
326c83e
...
...
@@ -451,7 +451,7 @@
</
template
>
<
script
>
// 户信息
import
business
from
"@/api/business
"
;
import
kttFwH
from
"@/api/kttFwH
"
;
import
ruleMixin
from
"@/mixins/ruleMixin.js"
;
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -510,7 +510,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKttFwHById
(
this
.
bsmSjsb
);
let
{
result
:
res
}
=
await
kttFwH
.
getKttFwHById
(
this
.
bsmSjsb
);
this
.
ruleForm
=
res
;
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -520,7 +520,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
try
{
let
res
=
await
business
.
updateKttFwH
(
this
.
ruleForm
);
let
res
=
await
kttFwH
.
updateKttFwH
(
this
.
ruleForm
);
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
);
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment