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
3fb78d9b
Commit
3fb78d9b
authored
Nov 11, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卷内序号编辑保存
parent
bd3f17f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
15 deletions
+34
-15
index.vue
...c/privateComponents/components/EditVolumeNumber/index.vue
+34
-15
No files found.
applications/dee-doc/src/privateComponents/components/EditVolumeNumber/index.vue
View file @
3fb78d9b
...
@@ -45,10 +45,11 @@ export default {
...
@@ -45,10 +45,11 @@ export default {
created
()
{
created
()
{
},
},
methods
:
{
methods
:
{
handleChange
()
{
handleChange
(
val
)
{
if
(
!
this
.
form
.
belongingCaseFile
)
return
this
.
$utils
.
showMessageWarning
(
'请先编辑所属案件信息!'
)
if
(
!
this
.
form
.
belongingCaseFile
)
return
this
.
$utils
.
showMessageWarning
(
'请先编辑所属案件信息!'
)
this
.
$emit
(
'input'
,
this
.
volumeNumber
)
this
.
$emit
(
'input'
,
this
.
volumeNumber
)
this
.
$set
(
this
.
form
,
'archiveNumber'
,
this
.
generateArchiveNumber
(
this
.
form
.
belongingCaseFile
,
this
.
volumeNumber
))
this
.
$set
(
this
.
form
,
'archiveNumber'
,
this
.
generateArchiveNumber
(
this
.
form
.
belongingCaseFile
,
this
.
volumeNumber
))
this
.
saveData
(
val
)
},
},
generateArchiveNumber
(
caseNumber
,
sequenceNumber
)
{
generateArchiveNumber
(
caseNumber
,
sequenceNumber
)
{
// 检查序号是否包含'-'且'-'后可能跟随括号或其他内容
// 检查序号是否包含'-'且'-'后可能跟随括号或其他内容
...
@@ -89,23 +90,41 @@ export default {
...
@@ -89,23 +90,41 @@ export default {
},
},
// 示例用法同上
// 示例用法同上
changeAmount
(
val
)
{
saveData
(
val
)
{
/**
* 入参是对象。
id; //linkID
/**
* 所属案卷
*
private String belongingCaseFile;
/**
* 卷内序号
*
private String volumeNumber;
/**
* 保管年限
*
private String storagePeriod;
/**
* 归档号
*
private String archiveNumber;
*/
const
params
=
{
const
params
=
{
...
this
.
form
,
id
:
this
.
form
.
id
,
volumeNumber
:
this
.
volumeNumber
,
belongingCaseFile
:
this
.
form
.
belongingCaseFile
,
operator
:
'MODIFY'
storagePeriod
:
this
.
form
.
storagePeriod
,
}
archiveNumber
:
this
.
form
.
archiveNumber
,
post
(
`InStorageRequestItem/inStorageRequestItem/update`
,
params
).
then
(
res
=>
{
volumeNumber
:
this
.
volumeNumber
this
.
$message
({
type
:
'success'
,
message
:
'数量编辑成功!'
})
if
(
res
.
items
&&
res
.
items
.
inventoryJobResponses
)
{
const
allocatedAmount
=
this
.
$utils
.
sumArray
(
res
.
items
.
inventoryJobResponses
,
'allocatedAmount'
)
this
.
$set
(
this
.
scope
.
row
,
'allocatedAmount'
,
allocatedAmount
)
this
.
$bus
.
$emit
(
'changeAllocatedAmount'
,
{
index
:
this
.
scope
.
$index
,
allocatedAmount
,
inventoryJobResponses
:
res
.
items
.
inventoryJobResponses
})
}
}
post
(
`ExtTransferDocLink/saveExtTransferDocLink`
,
params
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
res
.
message
)
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
this
.
form
.
volumeNumber
=
''
this
.
form
.
archiveNumber
=
''
this
.
volumeNumber
=
''
console
.
log
(
err
)
console
.
log
(
err
)
})
})
}
}
...
...
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