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
32eb0d67
authored
2023-02-01 15:49:57 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
登记收费信息
1 parent
6647b90d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
7 deletions
src/api/djfDjSf.js
src/components/business/djfDjSf.vue
src/api/djfDjSf.js
0 → 100644
View file @
32eb0d6
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
djfDjSf
{
// 登记收费信息
async
getDjfDjSfById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/DjfDjSf/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
// 登记收费信息-修改
async
updateDjfDjSf
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/DjfDjSf/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
djfDjSf
()
\ No newline at end of file
src/components/business/djfDjSf.vue
View file @
32eb0d6
...
...
@@ -76,7 +76,8 @@
收费基数:
<br
/>
<p
class=
"label-detail"
>
(SFJS)
</p>
</span>
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.SFJS"
type=
"number"
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.SFJS"
type=
"number"
v-only-number=
"
{ max: 999999999999999, min: 0, precision: 4 }" placeholder="收费基数">
</el-input-number>
</el-form-item>
</el-col>
...
...
@@ -100,7 +101,8 @@
应收金额:
<br
/>
<p
class=
"label-detail"
>
(YSJE)
</p>
</span>
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.YSJE"
type=
"number"
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.YSJE"
type=
"number"
v-only-number=
"
{ max: 999999999999999, min: 0, precision: 4 }" placeholder="应收金额">
</el-input-number>
</el-form-item>
</el-col>
...
...
@@ -113,7 +115,8 @@
折扣后应收金额:
<br
/>
<p
class=
"label-detail"
>
(ZKHYSJE)
</p>
</span>
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.ZKHYSJE"
type=
"number"
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.ZKHYSJE"
type=
"number"
v-only-number=
"
{ max: 999999999999999, min: 0, precision: 4 }" placeholder="折扣后应收金额">
</el-input-number>
</el-form-item>
</el-col>
...
...
@@ -170,7 +173,8 @@
实收金额:
<br
/>
<p
class=
"label-detail"
>
(SSJE)
</p>
</span>
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.SSJE"
type=
"number"
<el-input-number
controls-position=
"right"
:disabled=
"$store.state.business.Edit"
v-model
.
number=
"ruleForm.SSJE"
type=
"number"
v-only-number=
"
{ max: 999999999999999, min: 0, precision: 4 }" placeholder="实收金额">
</el-input-number>
</el-form-item>
</el-col>
...
...
@@ -204,7 +208,7 @@
</
template
>
<
script
>
// 登记收费信息
import
business
from
'@/api/business
'
import
djfDjSf
from
'@/api/djfDjSf
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -244,7 +248,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getDjfDjSfById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
djfDjSf
.
getDjfDjSfById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -254,7 +258,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateDjfDjSf
(
this
.
ruleForm
)
let
res
=
await
djfDjSf
.
updateDjfDjSf
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment