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
c4882636
authored
2023-02-02 10:39:08 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
登记收件信息
1 parent
11a68a05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/djfDjSj.js
src/components/business/djfDjSj.vue
src/api/djfDjSj.js
0 → 100644
View file @
c488263
import
request
from
"@/utils/request"
;
import
SERVER
from
"./config"
;
class
djfDjSj
{
//登记收件信息
async
getDjfDjSjById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/DjfDjSj/detail"
,
method
:
"get"
,
params
:
{
bsmSjsb
:
bsmSjsb
,
},
});
}
//修改登记收件信息
async
updateDjfDjSj
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/DjfDjSj/edit"
,
method
:
"post"
,
data
,
});
}
}
export
default
new
djfDjSj
();
src/components/business/djfDjSj.vue
View file @
c488263
...
...
@@ -165,7 +165,7 @@
</div>
</
template
>
<
script
>
import
business
from
'@/api/business
'
import
djfDjSj
from
'@/api/djfDjSj
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
// 登记收件信息
export
default
{
...
...
@@ -205,7 +205,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getDjfDjSjById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
djfDjSj
.
getDjfDjSjById
(
this
.
bsmSjsb
)
this
.
form
.
receivingInfo
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -215,7 +215,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateDjfDjSj
(
this
.
form
.
receivingInfo
)
let
res
=
await
djfDjSj
.
updateDjfDjSj
(
this
.
form
.
receivingInfo
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment