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 53bc67a8
authored
Apr 20, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复 session问题
1 parent
284f5b3b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
70 deletions
src/api/modules/claims.js
src/views/claims/components/material.vue
src/views/claims/components/report.vue
src/views/claims/ghIndex.vue
src/views/claims/ghOrder.vue
src/views/claims/index.vue
src/views/claims/order.vue
src/api/modules/claims.js
View file @
53bc67a
...
@@ -39,8 +39,7 @@ const commitClaimsOrder = params => {
...
@@ -39,8 +39,7 @@ const commitClaimsOrder = params => {
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
returnAll
:
true
})
})
}
}
...
@@ -60,8 +59,7 @@ const exportClaimsData = params => {
...
@@ -60,8 +59,7 @@ const exportClaimsData = params => {
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
returnAll
:
true
})
})
}
}
...
@@ -71,8 +69,7 @@ const checkContractNo = params => {
...
@@ -71,8 +69,7 @@ const checkContractNo = params => {
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
returnAll
:
true
})
})
}
}
...
@@ -82,8 +79,7 @@ const getDetailByWOCode = params => {
...
@@ -82,8 +79,7 @@ const getDetailByWOCode = params => {
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
returnAll
:
true
})
})
}
}
...
...
src/views/claims/components/material.vue
View file @
53bc67a
...
@@ -111,11 +111,11 @@ export default {
...
@@ -111,11 +111,11 @@ export default {
const
size
=
e
.
size
/
1024
/
1024
const
size
=
e
.
size
/
1024
/
1024
let
maxSize
=
200
let
maxSize
=
200
let
filetype
=
this
.
getFileType
(
e
.
type
)
let
filetype
=
this
.
getFileType
(
e
.
type
)
if
(
filetype
==
'image'
)
{
if
(
filetype
==
'image'
)
{
maxSize
=
9
maxSize
=
9
}
else
if
(
filetype
==
'doc'
)
{
}
else
if
(
filetype
==
'doc'
)
{
maxSize
=
100
maxSize
=
100
}
else
{
}
else
{
maxSize
=
200
maxSize
=
200
}
}
if
(
size
>
maxSize
)
{
if
(
size
>
maxSize
)
{
...
...
src/views/claims/components/report.vue
View file @
53bc67a
...
@@ -102,7 +102,7 @@ export default {
...
@@ -102,7 +102,7 @@ export default {
// 当不是同一天,时间限制为'00:00:00 - 23:59:59',否则'00:00:00 - endTime'
// 当不是同一天,时间限制为'00:00:00 - 23:59:59',否则'00:00:00 - endTime'
let
endTime
=
new
Date
().
getTime
()
let
endTime
=
new
Date
().
getTime
()
if
(
util
.
dateFormat
(
endTime
)
===
util
.
dateFormat
(
new
Date
(
newVal
)))
{
if
(
util
.
dateFormat
(
endTime
)
===
util
.
dateFormat
(
new
Date
(
newVal
)))
{
limitTime
=
`00:00:00 -
${
util
.
dateFormat
(
endTime
,
'HH:mm:ss'
)}
`
limitTime
=
`00:00:00 -
${
util
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
new
Date
().
getHours
()
+
1
))
,
'HH:mm:ss'
)}
`
}
else
{
}
else
{
limitTime
=
'00:00:00 - 23:59:59'
limitTime
=
'00:00:00 - 23:59:59'
}
}
...
@@ -118,13 +118,13 @@ export default {
...
@@ -118,13 +118,13 @@ export default {
name
:
'contractNo'
,
name
:
'contractNo'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
100
,
maxlength
:
100
,
isDisabled
,
isDisabled
:
this
.
pageType
!=
1
,
isClear
:
true
,
isClear
:
true
,
suffixSlot
:
'syncBtn'
suffixSlot
:
'syncBtn'
},
},
{
{
label
:
'
报案
日期'
,
label
:
'
出险
日期'
,
name
:
're
por
tDate'
,
name
:
're
imbursemen
tDate'
,
type
:
'limitDatePicker'
,
type
:
'limitDatePicker'
,
dateType
:
'datetime'
,
dateType
:
'datetime'
,
isDisabled
,
isDisabled
,
...
@@ -136,16 +136,13 @@ export default {
...
@@ -136,16 +136,13 @@ export default {
},
},
focus
:
e
=>
{
focus
:
e
=>
{
if
(
e
.
value
)
{
if
(
e
.
value
)
{
this
.
updateTimeLimit
(
e
.
value
,
're
por
tDate'
)
this
.
updateTimeLimit
(
e
.
value
,
're
imbursemen
tDate'
)
}
}
},
handleDateChange
:
e
=>
{
if
(
e
)
this
.
$refs
.
editFormRefReport
.
$refs
.
formRef
.
validateField
(
'reimbursementDate'
)
}
}
},
},
{
{
label
:
'
出险
日期'
,
label
:
'
报案
日期'
,
name
:
're
imbursemen
tDate'
,
name
:
're
por
tDate'
,
type
:
'limitDatePicker'
,
type
:
'limitDatePicker'
,
dateType
:
'datetime'
,
dateType
:
'datetime'
,
isDisabled
,
isDisabled
,
...
@@ -157,8 +154,11 @@ export default {
...
@@ -157,8 +154,11 @@ export default {
},
},
focus
:
e
=>
{
focus
:
e
=>
{
if
(
e
.
value
)
{
if
(
e
.
value
)
{
this
.
updateTimeLimit
(
e
.
value
,
're
imbursemen
tDate'
)
this
.
updateTimeLimit
(
e
.
value
,
're
por
tDate'
)
}
}
},
handleDateChange
:
e
=>
{
if
(
e
)
this
.
$refs
.
editFormRefReport
.
$refs
.
formRef
.
validateField
(
'reimbursementDate'
)
}
}
},
},
{
{
...
@@ -187,7 +187,6 @@ export default {
...
@@ -187,7 +187,6 @@ export default {
if
(
!
cellValue
||
!
cellValue
.
length
)
{
if
(
!
cellValue
||
!
cellValue
.
length
)
{
return
return
}
}
let
nodesInfo
=
this
.
$refs
.
editFormRefReport
.
$refs
.
cascader
[
0
].
getCheckedNodes
()[
0
].
pathLabels
}
}
},
},
{
{
...
@@ -195,6 +194,7 @@ export default {
...
@@ -195,6 +194,7 @@ export default {
name
:
'reimbursementAddr'
,
name
:
'reimbursementAddr'
,
type
:
'input'
,
type
:
'input'
,
isDisabled
,
isDisabled
,
maxlength
:
200
,
isClear
:
true
,
isClear
:
true
,
inputType
:
'textarea'
inputType
:
'textarea'
}
}
...
@@ -205,13 +205,13 @@ export default {
...
@@ -205,13 +205,13 @@ export default {
name
:
'writeOffCode'
,
name
:
'writeOffCode'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
8
,
maxlength
:
8
,
isDisabled
,
isDisabled
:
this
.
pageType
!=
1
,
isClear
:
true
,
isClear
:
true
,
suffixSlot
:
'syncBtn'
suffixSlot
:
'syncBtn'
},
},
{
{
label
:
'
报案
日期'
,
label
:
'
出险
日期'
,
name
:
're
por
tDate'
,
name
:
're
imbursemen
tDate'
,
type
:
'limitDatePicker'
,
type
:
'limitDatePicker'
,
dateType
:
'datetime'
,
dateType
:
'datetime'
,
isDisabled
,
isDisabled
,
...
@@ -223,16 +223,13 @@ export default {
...
@@ -223,16 +223,13 @@ export default {
},
},
focus
:
e
=>
{
focus
:
e
=>
{
if
(
e
.
value
)
{
if
(
e
.
value
)
{
this
.
updateTimeLimit
(
e
.
value
,
're
por
tDate'
)
this
.
updateTimeLimit
(
e
.
value
,
're
imbursemen
tDate'
)
}
}
},
handleDateChange
:
e
=>
{
if
(
e
)
this
.
$refs
.
editFormRefReport
.
$refs
.
formRef
.
validateField
(
'reimbursementDate'
)
}
}
},
},
{
{
label
:
'
出险
日期'
,
label
:
'
报案
日期'
,
name
:
're
imbursemen
tDate'
,
name
:
're
por
tDate'
,
type
:
'limitDatePicker'
,
type
:
'limitDatePicker'
,
dateType
:
'datetime'
,
dateType
:
'datetime'
,
isDisabled
,
isDisabled
,
...
@@ -244,8 +241,11 @@ export default {
...
@@ -244,8 +241,11 @@ export default {
},
},
focus
:
e
=>
{
focus
:
e
=>
{
if
(
e
.
value
)
{
if
(
e
.
value
)
{
this
.
updateTimeLimit
(
e
.
value
,
're
imbursemen
tDate'
)
this
.
updateTimeLimit
(
e
.
value
,
're
por
tDate'
)
}
}
},
handleDateChange
:
e
=>
{
if
(
e
)
this
.
$refs
.
editFormRefReport
.
$refs
.
formRef
.
validateField
(
'reimbursementDate'
)
}
}
},
},
{
{
...
@@ -275,7 +275,6 @@ export default {
...
@@ -275,7 +275,6 @@ export default {
if
(
!
cellValue
||
!
cellValue
.
length
)
{
if
(
!
cellValue
||
!
cellValue
.
length
)
{
return
return
}
}
let
nodesInfo
=
this
.
$refs
.
editFormRefReport
.
$refs
.
cascader
[
0
].
getCheckedNodes
()[
0
].
pathLabels
}
}
},
},
{
{
...
@@ -284,6 +283,7 @@ export default {
...
@@ -284,6 +283,7 @@ export default {
type
:
'input'
,
type
:
'input'
,
isDisabled
,
isDisabled
,
isClear
:
true
,
isClear
:
true
,
maxlength
:
200
,
inputType
:
'textarea'
inputType
:
'textarea'
}
}
]
]
...
...
src/views/claims/ghIndex.vue
View file @
53bc67a
...
@@ -289,16 +289,12 @@ export default {
...
@@ -289,16 +289,12 @@ export default {
exportList
()
{
exportList
()
{
const
parmas
=
{
...
this
.
getParams
()
}
const
parmas
=
{
...
this
.
getParams
()
}
this
.
$apis
.
claims
.
exportClaimsData
(
parmas
).
then
(({
code
,
data
,
message
})
=>
{
this
.
$apis
.
claims
.
exportClaimsData
(
parmas
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
var
a
=
document
.
createElement
(
'a'
)
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'id'
,
'exportToExport'
)
a
.
setAttribute
(
'id'
,
'exportToExport'
)
a
.
setAttribute
(
'href'
,
data
)
a
.
setAttribute
(
'href'
,
data
)
a
.
setAttribute
(
'target'
,
'_blank'
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
a
.
click
()
}
else
{
this
.
$message
.
error
(
message
)
}
})
})
}
}
}
}
...
...
src/views/claims/ghOrder.vue
View file @
53bc67a
...
@@ -134,7 +134,6 @@ export default {
...
@@ -134,7 +134,6 @@ export default {
targetAPI
=
this
.
$apis
.
claims
.
getDetailByWOCode
targetAPI
=
this
.
$apis
.
claims
.
getDetailByWOCode
}
}
targetAPI
(
param
).
then
(
res
=>
{
targetAPI
(
param
).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
this
.
permitDraft
=
true
this
.
permitDraft
=
true
const
{
serviceItemsList
,
contractNo
}
=
res
.
data
const
{
serviceItemsList
,
contractNo
}
=
res
.
data
for
(
let
key
in
this
.
editForm
)
{
for
(
let
key
in
this
.
editForm
)
{
...
@@ -146,12 +145,6 @@ export default {
...
@@ -146,12 +145,6 @@ export default {
// }
// }
this
.
serviceItemsList
=
serviceItemsList
this
.
serviceItemsList
=
serviceItemsList
this
.
getAccountInfo
(
contractNo
)
this
.
getAccountInfo
(
contractNo
)
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
})
}
})
})
},
},
// 点击同步,获取收款人信息
// 点击同步,获取收款人信息
...
@@ -277,18 +270,11 @@ export default {
...
@@ -277,18 +270,11 @@ export default {
})
})
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
loading
.
close
()
loading
.
close
()
if
(
res
.
code
==
'0'
)
{
this
.
$message
({
this
.
$message
({
message
:
type
==
1
?
'提交成功'
:
'保存草稿成功'
,
message
:
type
==
1
?
'提交成功'
:
'保存草稿成功'
,
type
:
'success'
type
:
'success'
})
})
this
.
handleCancel
()
this
.
handleCancel
()
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
})
}
})
})
},
},
handleCancel
()
{
handleCancel
()
{
...
...
src/views/claims/index.vue
View file @
53bc67a
...
@@ -289,16 +289,12 @@ export default {
...
@@ -289,16 +289,12 @@ export default {
exportList
()
{
exportList
()
{
const
parmas
=
{
...
this
.
getParams
()
}
const
parmas
=
{
...
this
.
getParams
()
}
this
.
$apis
.
claims
.
exportClaimsData
(
parmas
).
then
(({
code
,
data
,
message
})
=>
{
this
.
$apis
.
claims
.
exportClaimsData
(
parmas
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
var
a
=
document
.
createElement
(
'a'
)
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'id'
,
'exportToExport'
)
a
.
setAttribute
(
'id'
,
'exportToExport'
)
a
.
setAttribute
(
'href'
,
data
)
a
.
setAttribute
(
'href'
,
data
)
a
.
setAttribute
(
'target'
,
'_blank'
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
a
.
click
()
}
else
{
this
.
$message
.
error
(
message
)
}
})
})
}
}
}
}
...
...
src/views/claims/order.vue
View file @
53bc67a
...
@@ -134,7 +134,6 @@ export default {
...
@@ -134,7 +134,6 @@ export default {
targetAPI
=
this
.
$apis
.
claims
.
getDetailByWOCode
targetAPI
=
this
.
$apis
.
claims
.
getDetailByWOCode
}
}
targetAPI
(
param
).
then
(
res
=>
{
targetAPI
(
param
).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
this
.
permitDraft
=
true
this
.
permitDraft
=
true
const
{
serviceItemsList
,
contractNo
}
=
res
.
data
const
{
serviceItemsList
,
contractNo
}
=
res
.
data
for
(
let
key
in
this
.
editForm
)
{
for
(
let
key
in
this
.
editForm
)
{
...
@@ -146,12 +145,6 @@ export default {
...
@@ -146,12 +145,6 @@ export default {
// }
// }
this
.
serviceItemsList
=
serviceItemsList
this
.
serviceItemsList
=
serviceItemsList
this
.
getAccountInfo
(
contractNo
)
this
.
getAccountInfo
(
contractNo
)
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
})
}
})
})
},
},
// 点击同步,获取收款人信息
// 点击同步,获取收款人信息
...
@@ -277,18 +270,11 @@ export default {
...
@@ -277,18 +270,11 @@ export default {
})
})
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
loading
.
close
()
loading
.
close
()
if
(
res
.
code
==
'0'
)
{
this
.
$message
({
this
.
$message
({
message
:
type
==
1
?
'提交成功'
:
'保存草稿成功'
,
message
:
type
==
1
?
'提交成功'
:
'保存草稿成功'
,
type
:
'success'
type
:
'success'
})
})
this
.
handleCancel
()
this
.
handleCancel
()
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
})
}
})
})
},
},
handleCancel
()
{
handleCancel
()
{
...
...
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