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 cfe70c84
authored
Apr 14, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
自测完成
1 parent
9abb79e8
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
69 deletions
src/api/modules/claims.js
src/views/claims/components/material.vue
src/views/claims/components/repair.vue
src/views/claims/components/report.vue
src/views/claims/index.vue
src/views/claims/order.vue
src/api/modules/claims.js
View file @
cfe70c8
...
@@ -78,7 +78,7 @@ const checkContractNo = params => {
...
@@ -78,7 +78,7 @@ const checkContractNo = params => {
// 校验核赔权益订单合同号
// 校验核赔权益订单合同号
const
getDetailByWOCode
=
params
=>
{
const
getDetailByWOCode
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.claims.
detail
'
params
.
method
=
'scrm.api.equity.service.claims.
create.before.init
'
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/views/claims/components/material.vue
View file @
cfe70c8
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<div
slot=
"tip"
class=
"remark"
v-if=
"item.name == 'idCard'"
>
身份证人像面
</div>
<div
slot=
"tip"
class=
"remark"
v-if=
"item.name == 'idCard'"
>
身份证人像面
</div>
<div
slot=
"tip"
class=
"remark"
v-if=
"item.name == 'idCardBack'"
>
身份证国徽面
</div>
<div
slot=
"tip"
class=
"remark"
v-if=
"item.name == 'idCardBack'"
>
身份证国徽面
</div>
<div
slot=
"tip"
class=
"file-box"
v-if=
"item.name == 'otherInfo'"
>
<div
slot=
"tip"
class=
"file-box"
v-if=
"item.name == 'otherInfo'"
>
<span
class=
"file_tip"
>
支持扩展名:.rar .zip .doc .docx .pdf .jpg .png。
</span>
<span
v-if=
"materialForm[item.name].length == 0"
class=
"file_tip"
>
支持扩展名:.rar .zip .doc .docx .pdf .jpg .png .jpeg。
</span>
<template
v-else
>
<div
class=
"bar_outer"
v-for=
"(imgItem, imgId) in materialForm[item.name]"
:key=
"imgId"
>
<div
class=
"bar_outer"
v-for=
"(imgItem, imgId) in materialForm[item.name]"
:key=
"imgId"
>
<el-progress
<el-progress
color=
"#F5F7FA"
color=
"#F5F7FA"
...
@@ -29,6 +30,7 @@
...
@@ -29,6 +30,7 @@
>
</el-progress>
>
</el-progress>
<i
v-if=
"pageType != 2"
@
click=
"handleRemove(imgItem.url, item.name)"
class=
"el-icon-delete del_img"
></i>
<i
v-if=
"pageType != 2"
@
click=
"handleRemove(imgItem.url, item.name)"
class=
"el-icon-delete del_img"
></i>
</div>
</div>
</
template
>
</div>
</div>
</el-upload>
</el-upload>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
...
@@ -95,10 +97,10 @@ export default {
...
@@ -95,10 +97,10 @@ export default {
},
},
methods
:
{
methods
:
{
beforeAvatarUpload
(
e
,
fieldName
)
{
beforeAvatarUpload
(
e
,
fieldName
)
{
console
.
log
(
e
,
fieldName
,
456789
)
console
.
log
(
e
)
let
AllImgExt
=
'.png|.jpg'
let
AllImgExt
=
'.png|.jpg
|.jpeg
'
if
(
fieldName
===
'otherInfo'
)
{
if
(
fieldName
===
'otherInfo'
)
{
AllImgExt
=
'.zip|.rar|.png|.jpg|.pdf|.doc|.docx'
AllImgExt
=
'.zip|.
jpeg|.
rar|.png|.jpg|.pdf|.doc|.docx'
}
}
let
extName
=
e
.
name
.
substring
(
e
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
let
extName
=
e
.
name
.
substring
(
e
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
...
@@ -122,7 +124,6 @@ export default {
...
@@ -122,7 +124,6 @@ export default {
}
}
},
},
httpRequest
({
file
:
e
},
fieldName
)
{
httpRequest
({
file
:
e
},
fieldName
)
{
console
.
log
(
e
,
456
)
// // 转码base64
// // 转码base64
const
reader
=
new
FileReader
()
const
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
e
)
reader
.
readAsDataURL
(
e
)
...
@@ -155,7 +156,6 @@ export default {
...
@@ -155,7 +156,6 @@ export default {
}
}
},
},
handleRemove
(
e
,
fieldName
,
isDel
)
{
handleRemove
(
e
,
fieldName
,
isDel
)
{
console
.
log
(
e
,
fieldName
)
if
(
isDel
)
{
if
(
isDel
)
{
let
id
=
this
.
$refs
[
fieldName
+
'Ref'
][
0
].
uploadFiles
.
findIndex
(
item
=>
item
.
uid
===
e
.
uid
)
let
id
=
this
.
$refs
[
fieldName
+
'Ref'
][
0
].
uploadFiles
.
findIndex
(
item
=>
item
.
uid
===
e
.
uid
)
this
.
$refs
[
fieldName
+
'Ref'
][
0
].
uploadFiles
.
splice
(
id
,
1
)
this
.
$refs
[
fieldName
+
'Ref'
][
0
].
uploadFiles
.
splice
(
id
,
1
)
...
@@ -328,6 +328,10 @@ export default {
...
@@ -328,6 +328,10 @@ export default {
text-align
:
left
;
text-align
:
left
;
.el-progress-bar__innerText
{
.el-progress-bar__innerText
{
color
:
#333
;
color
:
#333
;
width
:
310px
;
overflow
:
hidden
;
height
:
13px
;
text-overflow
:
ellipsis
;
}
}
}
}
}
}
...
...
src/views/claims/components/repair.vue
View file @
cfe70c8
...
@@ -15,8 +15,7 @@
...
@@ -15,8 +15,7 @@
<p
class=
"name"
>
{{
item
.
serviceItemName
}}
</p>
<p
class=
"name"
>
{{
item
.
serviceItemName
}}
</p>
<div
class=
"price-wrap"
>
<div
class=
"price-wrap"
>
<label
for=
""
>
定损批准金额:
</label>
<label
for=
""
>
定损批准金额:
</label>
<el-input
:disabled=
"pageType == 2"
@
input=
"validPrice($event, index)"
placeholder=
"请选择定损批准金额"
v-model=
"item.approveAmount"
></el-input>
<el-input
:disabled=
"pageType == 2"
maxlength=
"10"
@
input=
"validPrice($event, index)"
@
blur=
"changePrice($event, index)"
placeholder=
"请选择定损批准金额"
v-model=
"item.approveAmount"
></el-input>
<!--
<el-input
@
input=
"validPrice($event, index)"
placeholder=
"请选择定损批准金额"
v-model=
"item.price"
></el-input>
-->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -35,7 +34,7 @@
...
@@ -35,7 +34,7 @@
</div>
</div>
<div
class=
"collecter"
>
<div
class=
"collecter"
>
<label
class=
"require"
for=
""
>
收款对象:
</label>
<label
class=
"require"
for=
""
>
收款对象:
</label>
<el-radio-group
:disabled=
"pageType == 2"
v-model=
"accountForm.objectType"
@
change=
"changeOwner"
>
<el-radio-group
:disabled=
"pageType == 2"
v-model=
"accountForm.objectType"
>
<el-radio
:label=
"0"
>
店面
</el-radio>
<el-radio
:label=
"0"
>
店面
</el-radio>
<el-radio
:label=
"1"
>
其他
</el-radio>
<el-radio
:label=
"1"
>
其他
</el-radio>
</el-radio-group>
</el-radio-group>
...
@@ -51,20 +50,6 @@
...
@@ -51,20 +50,6 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
glsxCombiForm
from
'@/components/glsx-combi-form'
const
phoneReg
=
/^
(
13
[
0-9
]
|15
[
0-9
]
|16
[
0-9
]
|17
[
0-9
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
0-9
])[
0-9
]{8}
$/
const
phoneReg
=
/^
(
13
[
0-9
]
|15
[
0-9
]
|16
[
0-9
]
|17
[
0-9
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
0-9
])[
0-9
]{8}
$/
const
bankAccountValid
=
(
rule
,
value
,
callback
)
=>
{
const
strBin
=
'10,18,30,35,37,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,60,62,65,68,69,84,87,88,94,95,98,99'
if
(
!
value
)
{
return
callback
(
new
Error
(
'收款账号不能为空'
))
}
else
if
(
!
Number
.
isInteger
(
+
value
))
{
callback
(
new
Error
(
'收款账号必须全为数字'
))
}
else
if
(
strBin
.
indexOf
(
value
.
substring
(
0
,
2
))
===
-
1
)
{
callback
(
new
Error
(
'收款账号开头6位不符合规范'
))
}
else
if
(
value
.
trim
().
length
<
12
||
value
.
trim
().
length
>
19
)
{
callback
(
new
Error
(
'收款账号长度必须在12到19之间'
))
}
else
{
callback
()
}
}
export
default
{
export
default
{
name
:
'repair'
,
name
:
'repair'
,
props
:
{
props
:
{
...
@@ -232,7 +217,6 @@ export default {
...
@@ -232,7 +217,6 @@ export default {
methods
:{
methods
:{
getBankList
()
{
getBankList
()
{
this
.
$apis
.
claims
.
getBankList
({}).
then
(
res
=>
{
this
.
$apis
.
claims
.
getBankList
({}).
then
(
res
=>
{
console
.
log
(
res
,
456
)
const
branchBankList
=
this
.
accountData
.
find
(
item
=>
item
.
name
===
'branchBankCode'
)
const
branchBankList
=
this
.
accountData
.
find
(
item
=>
item
.
name
===
'branchBankCode'
)
branchBankList
.
optionList
=
res
.
branchBank
branchBankList
.
optionList
=
res
.
branchBank
const
accountCityList
=
this
.
accountData
.
find
(
item
=>
item
.
name
===
'bankCity'
)
const
accountCityList
=
this
.
accountData
.
find
(
item
=>
item
.
name
===
'bankCity'
)
...
@@ -241,37 +225,28 @@ export default {
...
@@ -241,37 +225,28 @@ export default {
IDCardTypeList
.
optionList
=
res
.
cardType
IDCardTypeList
.
optionList
=
res
.
cardType
})
})
},
},
// arrayToTree(arr){
// if (!Array.isArray(arr) || arr.length < 1) return null;
// const [root] = arr.filter(item => item.parentCode === null);
// const addChildren = (node, dataList) => {
// const children = dataList
// .filter(item => item.parentCode === node.code)
// .map(item => addChildren(item, dataList));
// return { ...node, children };
// };
// return addChildren(root, arr);
// },
validPrice
(
e
,
id
){
validPrice
(
e
,
id
){
let
checkPlan
=
''
+
this
.
serviceItemsList
[
id
].
approveAmount
let
checkPlan
=
''
+
this
.
serviceItemsList
[
id
].
approveAmount
checkPlan
=
checkPlan
.
replace
(
/
[^\d
.
]
/g
,
''
).
replace
(
/
\.{2,}
/g
,
'.'
).
replace
(
/^
\.
/g
,
''
).
replace
(
'.'
,
'$#$'
).
replace
(
/
\.
/g
,
''
).
replace
(
'$#$'
,
'.'
);
checkPlan
=
checkPlan
.
replace
(
/
[^\d
.
]
/g
,
''
).
replace
(
/
\.{2,}
/g
,
'.'
).
replace
(
/^
\.
/g
,
''
).
replace
(
'.'
,
'$#$'
).
replace
(
/
\.
/g
,
''
).
replace
(
'$#$'
,
'.'
);
if
(
checkPlan
.
indexOf
(
'.'
)
<
0
&&
checkPlan
!==
''
)
{
if
(
checkPlan
.
indexOf
(
'.'
)
<
0
&&
checkPlan
!==
''
)
{
// 以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
checkPlan
=
parseFloat
(
checkPlan
)
+
''
checkPlan
=
parseFloat
(
checkPlan
)
+
''
}
else
if
(
checkPlan
.
indexOf
(
'.'
)
>=
0
)
{
}
else
if
(
checkPlan
.
indexOf
(
'.'
)
>=
0
)
{
checkPlan
=
checkPlan
.
replace
(
/^
()
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
)
// 只能输入两个小数
checkPlan
=
checkPlan
.
replace
(
/^
()
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
)
// 只能输入两个小数
}
}
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
checkPlan
)
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
checkPlan
)
},
},
// changeOwner(newVal){
changePrice
(
e
,
id
){
// const item = this.accountData.find(item => {
if
(
!
e
.
target
.
value
)
return
;
// return item.name == 'accountType'
const
len
=
e
.
target
.
value
.
length
// })
let
lastStr
=
e
.
target
.
value
.
charAt
(
len
-
1
)
// item.isHide = newVal==0
if
(
lastStr
===
'.'
){
// if(newVal==0){
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
e
.
target
.
value
.
substr
(
0
,
len
-
1
))
// this.accountForm.accountType = 0
}
// }
const
maxPrice
=
2000000
// }
if
(
parseInt
(
e
.
target
.
value
)
>
maxPrice
){
this
.
$set
(
this
.
serviceItemsList
[
id
],
'approveAmount'
,
maxPrice
)
}
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/claims/components/report.vue
View file @
cfe70c8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"report-components"
>
<div
class=
"report-components"
>
<div
class=
"title"
>
报案信息(客户提交)
</div>
<div
class=
"title"
>
报案信息(客户提交)
</div>
<glsxCombiForm
:regionData=
"regionData"
class=
"edit-form-container "
ref=
"editFormRefReport"
labelWidth=
"144px"
defaultWidth=
"320px"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsxCombiForm
:regionData=
"regionData"
class=
"edit-form-container "
ref=
"editFormRefReport"
labelWidth=
"144px"
defaultWidth=
"320px"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
v-if=
"pageType
!= 2
"
style=
"display:inline-block;"
slot=
"syncBtn"
>
<div
v-if=
"pageType
== 1
"
style=
"display:inline-block;"
slot=
"syncBtn"
>
<el-button
style=
"margin:0 12px;"
type=
"primary"
@
click=
"toSearchOrderDetail"
>
同步
</el-button>
<el-button
style=
"margin:0 12px;"
type=
"primary"
@
click=
"toSearchOrderDetail"
>
同步
</el-button>
<span
style=
"font-weight: 400; color:#666;"
>
同步合同中以下信息,同步后的信息可手动编辑
</span>
<span
style=
"font-weight: 400; color:#666;"
>
同步合同中以下信息,同步后的信息可手动编辑
</span>
</div>
</div>
...
@@ -93,9 +93,7 @@ export default {
...
@@ -93,9 +93,7 @@ export default {
},
},
methods
:
{
methods
:
{
getCityList
()
{
getCityList
()
{
console
.
log
(
111
)
this
.
$apis
.
claims
.
getCityList
({}).
then
(
res
=>
{
this
.
$apis
.
claims
.
getCityList
({}).
then
(
res
=>
{
console
.
log
(
res
,
456
)
this
.
regionData
=
res
this
.
regionData
=
res
})
})
},
},
...
@@ -187,7 +185,6 @@ export default {
...
@@ -187,7 +185,6 @@ export default {
return
return
}
}
let
nodesInfo
=
this
.
$refs
.
editFormRefReport
.
$refs
.
cascader
[
0
].
getCheckedNodes
()[
0
].
pathLabels
let
nodesInfo
=
this
.
$refs
.
editFormRefReport
.
$refs
.
cascader
[
0
].
getCheckedNodes
()[
0
].
pathLabels
console
.
log
(
cellValue
,
888
)
}
}
},
},
{
{
...
@@ -311,6 +308,11 @@ export default {
...
@@ -311,6 +308,11 @@ export default {
}
}
/
deep
/
.el-form-item
{
/
deep
/
.el-form-item
{
display
:
flex
;
display
:
flex
;
.el-textarea
{
textarea
{
font-family
:
auto
;
}
}
}
}
/
deep
/
#reportDate
,
/
deep
/
#reportDate
,
/
deep
/
#reimbursementDate
{
/
deep
/
#reimbursementDate
{
...
...
src/views/claims/index.vue
View file @
cfe70c8
...
@@ -187,7 +187,7 @@ export default {
...
@@ -187,7 +187,7 @@ export default {
prop
:
'approvalAmount'
,
prop
:
'approvalAmount'
,
width
:
'100'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
approvalAmount
?
(
cellValue
.
approvalAmount
/
100
).
toFixed
(
2
)
:
'-'
return
cellValue
.
approvalAmount
||
'-'
}
}
},
},
{
{
...
@@ -237,12 +237,8 @@ export default {
...
@@ -237,12 +237,8 @@ export default {
// 从域名判断是不是广汇的
// 从域名判断是不是广汇的
diffHost
()
{
diffHost
()
{
let
href
=
window
.
location
.
host
let
href
=
window
.
location
.
host
if
(
href
.
indexOf
(
'cgacar'
)
!=
-
1
)
{
this
.
showGh
=
href
.
indexOf
(
'cgacar'
)
!=
-
1
this
.
showGh
=
true
if
(
!
this
.
showGh
)
this
.
searchFormData
[
0
].
placeholder
=
'请输入客户名 | 合同号 | 报案号'
}
else
{
this
.
showGh
=
false
this
.
searchFormData
[
0
].
placeholder
=
'请输入客户名 | 合同号 | 报案号'
}
},
},
// 1.新增 2.查看 3.重新提交 4.去处理
// 1.新增 2.查看 3.重新提交 4.去处理
handleEdit
(
editNo
,
row
)
{
handleEdit
(
editNo
,
row
)
{
...
@@ -255,14 +251,13 @@ export default {
...
@@ -255,14 +251,13 @@ export default {
}
}
if
(
this
.
showGh
)
{
if
(
this
.
showGh
)
{
// 广汇的用核销码
// 广汇的用核销码
urlParam
.
contractNo
=
row
.
writeOffCode
urlParam
.
contractNo
=
editNo
==
1
?
''
:
row
.
writeOffCode
}
}
const
temp
=
encodeURIComponent
(
JSON
.
stringify
(
urlParam
))
const
temp
=
encodeURIComponent
(
JSON
.
stringify
(
urlParam
))
this
.
$router
.
push
({
path
:
'/claims/order/'
+
temp
})
this
.
$router
.
push
({
path
:
'/claims/order/'
+
temp
})
},
},
handleOkFn
()
{
handleOkFn
()
{
this
.
getParams
()
this
.
getParams
()
console
.
log
(
this
.
searchParams
)
this
.
getTableData
()
this
.
getTableData
()
},
},
handleRestFn
()
{
handleRestFn
()
{
...
...
src/views/claims/order.vue
View file @
cfe70c8
...
@@ -30,6 +30,7 @@ export default {
...
@@ -30,6 +30,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
permitDraft
:
false
,
routeInfo
:
null
,
routeInfo
:
null
,
isGH
:
false
,
isGH
:
false
,
editForm
:
{
editForm
:
{
...
@@ -93,7 +94,6 @@ export default {
...
@@ -93,7 +94,6 @@ export default {
//详情
//详情
getDetailById
()
{
getDetailById
()
{
this
.
$apis
.
claims
.
getClaimsDetail
({
id
:
this
.
routeInfo
.
orderId
}).
then
(
res
=>
{
this
.
$apis
.
claims
.
getClaimsDetail
({
id
:
this
.
routeInfo
.
orderId
}).
then
(
res
=>
{
console
.
log
(
res
,
852
)
// 以下是report数据
// 以下是report数据
for
(
let
key
in
this
.
editForm
)
{
for
(
let
key
in
this
.
editForm
)
{
this
.
editForm
[
key
]
=
res
[
key
]
this
.
editForm
[
key
]
=
res
[
key
]
...
@@ -122,7 +122,6 @@ export default {
...
@@ -122,7 +122,6 @@ export default {
this
.
materialForm
.
otherInfo
.
push
(
obj
)
this
.
materialForm
.
otherInfo
.
push
(
obj
)
}
}
})
})
console
.
log
(
this
.
materialForm
,
8989
)
})
})
},
},
// 新增的时候,输入合同号,带出信息
// 新增的时候,输入合同号,带出信息
...
@@ -135,10 +134,16 @@ export default {
...
@@ -135,10 +134,16 @@ export default {
targetAPI
=
this
.
$apis
.
claims
.
getDetailByWOCode
targetAPI
=
this
.
$apis
.
claims
.
getDetailByWOCode
}
}
targetAPI
(
param
).
then
(
res
=>
{
targetAPI
(
param
).
then
(
res
=>
{
console
.
log
(
res
,
123
)
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
const
{
reporterName
,
reporterPhone
,
serviceItemsList
,
contractNo
}
=
res
.
data
this
.
permitDraft
=
true
this
.
editForm
=
{
...
this
.
editForm
,
reporterName
,
reporterPhone
}
const
{
serviceItemsList
,
contractNo
}
=
res
.
data
for
(
let
key
in
this
.
editForm
)
{
this
.
editForm
[
key
]
=
res
.
data
[
key
]
||
this
.
editForm
[
key
]
}
// if (this.routeInfo.isGH) {
// this.accountForm.handlerName = res.data.handlerName
// this.accountForm.handlerPhone = res.data.handlerPhone
// }
this
.
serviceItemsList
=
serviceItemsList
this
.
serviceItemsList
=
serviceItemsList
this
.
getAccountInfo
(
contractNo
)
this
.
getAccountInfo
(
contractNo
)
}
else
{
}
else
{
...
@@ -149,10 +154,9 @@ export default {
...
@@ -149,10 +154,9 @@ export default {
}
}
})
})
},
},
//
新增的时候,输入合同号。默认收款人的
信息
//
点击同步,获取收款人
信息
getAccountInfo
(
contractNo
)
{
getAccountInfo
(
contractNo
)
{
this
.
$apis
.
claims
.
getAccountInfo
({
contractNo
}).
then
(
res
=>
{
this
.
$apis
.
claims
.
getAccountInfo
({
contractNo
}).
then
(
res
=>
{
console
.
log
(
res
)
const
{
accountName
,
accountCityCode
:
bankCity
,
openBankCode
:
branchBankCode
,
accountNo
,
accountType
,
cardNo
:
payeeIDCardNo
,
cardTypeCode
:
payeeIDCardType
,
phone
:
payeePhone
}
=
res
||
{}
const
{
accountName
,
accountCityCode
:
bankCity
,
openBankCode
:
branchBankCode
,
accountNo
,
accountType
,
cardNo
:
payeeIDCardNo
,
cardTypeCode
:
payeeIDCardType
,
phone
:
payeePhone
}
=
res
||
{}
const
result
=
{
accountName
,
bankCity
,
branchBankCode
,
accountNo
,
accountType
,
payeeIDCardNo
,
payeeIDCardType
,
payeePhone
}
const
result
=
{
accountName
,
bankCity
,
branchBankCode
,
accountNo
,
accountType
,
payeeIDCardNo
,
payeeIDCardType
,
payeePhone
}
// for (let key in this.accountForm) {
// for (let key in this.accountForm) {
...
@@ -200,6 +204,13 @@ export default {
...
@@ -200,6 +204,13 @@ export default {
if
(
type
==
1
&&
!
this
.
validAccountInfo
())
{
if
(
type
==
1
&&
!
this
.
validAccountInfo
())
{
return
false
return
false
}
}
if
(
type
==
2
&&
!
this
.
permitDraft
)
{
this
.
$message
({
message
:
'请同步信息之后再保存草稿'
,
type
:
'error'
})
return
}
const
params
=
{
...
this
.
editForm
,
...
this
.
accountForm
}
const
params
=
{
...
this
.
editForm
,
...
this
.
accountForm
}
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'
)
:
''
...
@@ -231,7 +242,6 @@ export default {
...
@@ -231,7 +242,6 @@ export default {
params
.
id
=
this
.
routeInfo
.
orderId
params
.
id
=
this
.
routeInfo
.
orderId
}
}
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
this
.
$apis
.
claims
.
commitClaimsOrder
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
this
.
$message
({
this
.
$message
({
message
:
type
==
1
?
'提交成功'
:
'保存草稿成功'
,
message
:
type
==
1
?
'提交成功'
:
'保存草稿成功'
,
...
@@ -245,8 +255,6 @@ export default {
...
@@ -245,8 +255,6 @@ export default {
})
})
}
}
})
})
console
.
log
(
this
.
editForm
,
this
.
accountForm
,
this
.
materialForm
,
this
.
serviceItemsList
,
this
.
totalPrice
)
},
},
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
push
({
path
:
'/claims/index'
})
this
.
$router
.
push
({
path
:
'/claims/index'
})
...
...
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