Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
INET-TWO
web
Commits
bf14f9ef
Commit
bf14f9ef
authored
Nov 12, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
归还情况说明编辑表单自定义
parent
3fb78d9b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
0 deletions
+96
-0
index.vue
...c/privateComponents/components/EditReturnRemark/index.vue
+96
-0
No files found.
applications/dee-doc/src/privateComponents/components/EditReturnRemark/index.vue
0 → 100644
View file @
bf14f9ef
/**
* @Description: 归还情况说明编辑
* @author gjn
* @date 2024-11-12
*/
<
template
>
<div
class=
"EditReturnRemark"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
class=
"inputFormClass"
>
<el-form-item
prop=
"returnSituationDescription"
label=
"归还情况说明:"
>
<el-input
v-model=
"form.returnSituationDescription"
type=
"textarea"
:rows=
"3"
/>
</el-form-item>
</el-form>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
// componentName: '归还情况说明编辑',
name
:
'EditReturnRemark'
,
components
:
{},
props
:
{
scope
:
{
type
:
Object
,
default
:
()
=>
{}
},
basicData
:
{
type
:
Object
,
default
:
()
=>
{}
},
value
:
{
type
:
[
String
,
Number
],
default
:
0
}
},
data
()
{
return
{
returnSituationDescription
:
''
,
form
:
{},
rules
:
{
returnSituationDescription
:
[
{
required
:
true
,
message
:
'归还情况说明不能为空'
,
trigger
:
'blur'
}
]
}
}
},
computed
:
{},
watch
:
{
'basicData.returnSituationDescription'
:
{
immediate
:
true
,
handler
(
val
)
{
this
.
$set
(
this
.
form
,
'returnSituationDescription'
,
val
)
}
}
},
created
()
{
},
methods
:
{
async
handleChange
(
val
)
{
try
{
const
params
=
{
...
this
.
basicData
,
operator
:
'MODIFY'
,
returnSituationDescription
:
this
.
form
.
returnSituationDescription
}
const
res
=
await
post
(
'/ExtBorrowingForm/recursion'
,
params
)
return
{
success
:
true
,
data
:
res
}
}
catch
(
err
)
{
return
{
success
:
false
,
error
:
err
}
}
},
validate
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
handleChange
().
then
(
result
=>
{
resolve
(
result
)
}).
catch
(
error
=>
{
reject
(
error
)
})
}
else
{
reject
(
new
Error
(
'表单验证失败'
))
}
})
})
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment