Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 284f5b3b
authored
Apr 20, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮bug修改
1 parent
3eb020be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
16 deletions
src/views/claims/components/repair.vue
src/views/claims/components/report.vue
src/views/claims/ghOrder.vue
src/views/claims/order.vue
src/views/claims/components/repair.vue
View file @
284f5b3
...
@@ -279,11 +279,11 @@ export default {
...
@@ -279,11 +279,11 @@ export default {
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
e
.
target
.
value
.
substr
(
0
,
len
-
1
))
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
e
.
target
.
value
.
substr
(
0
,
len
-
1
))
}
}
const
minPrice
=
1
const
minPrice
=
1
if
(
parseInt
(
e
.
target
.
value
)
<
minPrice
){
if
(
Number
(
e
.
target
.
value
)
<
minPrice
){
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
1
)
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
1
)
}
}
const
maxPrice
=
2000000
const
maxPrice
=
2000000
if
(
parseInt
(
e
.
target
.
value
)
>
maxPrice
){
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
){
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
maxPrice
)
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
maxPrice
)
}
}
}
}
...
...
src/views/claims/components/report.vue
View file @
284f5b3
...
@@ -138,6 +138,9 @@ export default {
...
@@ -138,6 +138,9 @@ export default {
if
(
e
.
value
)
{
if
(
e
.
value
)
{
this
.
updateTimeLimit
(
e
.
value
,
'reportDate'
)
this
.
updateTimeLimit
(
e
.
value
,
'reportDate'
)
}
}
},
handleDateChange
:
e
=>
{
if
(
e
)
this
.
$refs
.
editFormRefReport
.
$refs
.
formRef
.
validateField
(
'reimbursementDate'
)
}
}
},
},
{
{
...
@@ -222,6 +225,9 @@ export default {
...
@@ -222,6 +225,9 @@ export default {
if
(
e
.
value
)
{
if
(
e
.
value
)
{
this
.
updateTimeLimit
(
e
.
value
,
'reportDate'
)
this
.
updateTimeLimit
(
e
.
value
,
'reportDate'
)
}
}
},
handleDateChange
:
e
=>
{
if
(
e
)
this
.
$refs
.
editFormRefReport
.
$refs
.
formRef
.
validateField
(
'reimbursementDate'
)
}
}
},
},
{
{
...
...
src/views/claims/ghOrder.vue
View file @
284f5b3
...
@@ -191,16 +191,25 @@ export default {
...
@@ -191,16 +191,25 @@ export default {
}
}
})
})
})
})
if
(
!
valid
)
return
valid
let
requirePrice
=
true
this
.
serviceItemsList
.
forEach
(
item
=>
{
if
(
item
.
approveAmount
>
0
)
{
requirePrice
=
false
}
})
if
(
requirePrice
)
{
this
.
$message
({
message
:
'至少输入一项服务的定损批准金额'
,
type
:
'error'
})
return
false
}
let
tipObj
=
{
let
tipObj
=
{
isTip
:
false
,
isTip
:
false
,
tipMsg
:
''
tipMsg
:
''
}
}
this
.
serviceItemsList
.
forEach
(
item
=>
{
if
(
item
.
approveAmount
<=
0
&&
!
tipObj
.
isTip
)
{
tipObj
.
isTip
=
true
tipObj
.
tipMsg
=
`请输入大于等于1的
${
item
.
serviceItemName
}
价格`
}
})
for
(
let
key
in
this
.
materialForm
)
{
for
(
let
key
in
this
.
materialForm
)
{
if
(
this
.
materialForm
[
key
].
length
<
1
&&
!
tipObj
.
isTip
)
{
if
(
this
.
materialForm
[
key
].
length
<
1
&&
!
tipObj
.
isTip
)
{
tipObj
.
isTip
=
true
tipObj
.
isTip
=
true
...
@@ -214,7 +223,6 @@ export default {
...
@@ -214,7 +223,6 @@ export default {
})
})
return
false
return
false
}
}
return
valid
},
},
// 提交核赔
// 提交核赔
confirmSubmit
(
type
)
{
confirmSubmit
(
type
)
{
...
@@ -229,6 +237,9 @@ export default {
...
@@ -229,6 +237,9 @@ export default {
return
return
}
}
const
params
=
{
...
this
.
editForm
,
...
this
.
accountForm
}
const
params
=
{
...
this
.
editForm
,
...
this
.
accountForm
}
if
(
params
.
objectType
!==
1
)
{
params
.
accountType
=
0
}
params
.
operation
=
type
params
.
operation
=
type
params
.
reimbursementDate
=
params
.
reimbursementDate
?
util
.
dateFormat
(
params
.
reimbursementDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
params
.
reimbursementDate
=
params
.
reimbursementDate
?
util
.
dateFormat
(
params
.
reimbursementDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
params
.
reportDate
=
params
.
reportDate
?
util
.
dateFormat
(
params
.
reportDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
params
.
reportDate
=
params
.
reportDate
?
util
.
dateFormat
(
params
.
reportDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
...
...
src/views/claims/order.vue
View file @
284f5b3
...
@@ -191,16 +191,25 @@ export default {
...
@@ -191,16 +191,25 @@ export default {
}
}
})
})
})
})
if
(
!
valid
)
return
valid
let
requirePrice
=
true
this
.
serviceItemsList
.
forEach
(
item
=>
{
if
(
item
.
approveAmount
>
0
)
{
requirePrice
=
false
}
})
if
(
requirePrice
)
{
this
.
$message
({
message
:
'至少输入一项服务的定损批准金额'
,
type
:
'error'
})
return
false
}
let
tipObj
=
{
let
tipObj
=
{
isTip
:
false
,
isTip
:
false
,
tipMsg
:
''
tipMsg
:
''
}
}
this
.
serviceItemsList
.
forEach
(
item
=>
{
if
(
item
.
approveAmount
<=
0
&&
!
tipObj
.
isTip
)
{
tipObj
.
isTip
=
true
tipObj
.
tipMsg
=
`请输入大于等于1的
${
item
.
serviceItemName
}
价格`
}
})
for
(
let
key
in
this
.
materialForm
)
{
for
(
let
key
in
this
.
materialForm
)
{
if
(
this
.
materialForm
[
key
].
length
<
1
&&
!
tipObj
.
isTip
)
{
if
(
this
.
materialForm
[
key
].
length
<
1
&&
!
tipObj
.
isTip
)
{
tipObj
.
isTip
=
true
tipObj
.
isTip
=
true
...
@@ -214,7 +223,6 @@ export default {
...
@@ -214,7 +223,6 @@ export default {
})
})
return
false
return
false
}
}
return
valid
},
},
// 提交核赔
// 提交核赔
confirmSubmit
(
type
)
{
confirmSubmit
(
type
)
{
...
@@ -229,6 +237,9 @@ export default {
...
@@ -229,6 +237,9 @@ export default {
return
return
}
}
const
params
=
{
...
this
.
editForm
,
...
this
.
accountForm
}
const
params
=
{
...
this
.
editForm
,
...
this
.
accountForm
}
if
(
params
.
objectType
!==
1
)
{
params
.
accountType
=
0
}
params
.
operation
=
type
params
.
operation
=
type
params
.
reimbursementDate
=
params
.
reimbursementDate
?
util
.
dateFormat
(
params
.
reimbursementDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
params
.
reimbursementDate
=
params
.
reimbursementDate
?
util
.
dateFormat
(
params
.
reimbursementDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
params
.
reportDate
=
params
.
reportDate
?
util
.
dateFormat
(
params
.
reportDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
params
.
reportDate
=
params
.
reportDate
?
util
.
dateFormat
(
params
.
reportDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment