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 d93d101d
authored
Oct 15, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
十月份版本需求开发
1 parent
fa5aba15
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
386 additions
and
174 deletions
src/components/Upload/index.vue
src/views/claims/components/report.vue
src/views/claims/ghIndex.vue
src/views/claims/index.vue
src/views/claims/order.vue
src/views/config/addConfig.vue
src/components/Upload/index.vue
View file @
d93d101
<
template
>
<
template
>
<div
class=
"upload-ctnr"
>
<div
class=
"upload-ctnr"
>
<label
v-if=
"name"
:class=
"['label',
{'required-field': required}]" for="">
{{
name
}}
</label>
<label
v-if=
"name"
:class=
"['label',
{'required-field': required}]" for="">
{{
name
}}
</label>
<div
class=
"upload-wrap"
:style=
"defaultStyle"
>
<div
class=
"upload-wrap"
:style=
"defaultStyle"
>
<img
v-if=
"url"
class=
"image"
:src=
"url"
alt=
""
/>
<img
v-if=
"url"
class=
"image"
:src=
"url"
alt=
""
/>
<div
v-else
class=
"add-img"
>
<div
v-else
class=
"add-img"
>
<input
type=
"file"
class=
"file"
id=
"file"
ref=
"input"
@
change=
"upload"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
/>
<input
type=
"file"
class=
"file"
id=
"file"
ref=
"input"
@
change=
"upload"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
/>
<i
class=
"el-icon-plus add"
></i>
<i
class=
"el-icon-plus add"
></i>
<p>
上传照片
</p>
<p>
上传照片
</p>
</div>
</div>
<div
class=
"operate"
v-if=
"url"
>
<div
class=
"operate"
v-if=
"url"
>
<div
class=
"btn-wrap"
>
<div
class=
"btn-wrap"
>
<i
class=
"el-icon-view"
@
click=
"handleLook"
></i>
<i
class=
"el-icon-view"
@
click=
"handleLook"
></i>
<i
v-if=
"!disabled"
class=
"el-icon-delete del-icon"
@
click=
"del"
></i>
<i
v-if=
"!disabled"
class=
"el-icon-delete del-icon"
@
click=
"del"
></i>
</div>
</div>
</div>
</div>
</div>
<el-dialog
class=
"image-dialog"
:visible
.
sync=
"dialogVisibleImg"
width=
"30%"
>
</div>
<big-view
ref=
"viewForm"
v-if=
"dialogVisibleImg"
:dialogSrc=
"url"
dialogType=
"img"
></big-view>
<el-dialog
class=
"image-dialog"
:visible
.
sync=
"dialogVisibleImg"
width=
"30%"
>
</el-dialog>
<big-view
ref=
"viewForm"
v-if=
"dialogVisibleImg"
:dialogSrc=
"url"
dialogType=
"img"
></big-view>
</div>
</el-dialog>
</
template
>
</div>
</
template
>
<
script
>
import
bigView
from
'@/components/big-view'
<
script
>
export
default
{
import
bigView
from
'@/components/big-view'
name
:
'Upload'
,
export
default
{
components
:
{
name
:
'Upload'
,
bigView
components
:
{
bigView
},
props
:
{
required
:
{
type
:
Boolean
,
default
:
false
},
},
props
:
{
name
:
{
required
:
{
type
:
String
,
type
:
Boolean
,
default
:
''
default
:
false
},
},
disabled
:
{
name
:
{
type
:
Boolean
,
type
:
String
,
default
:
false
default
:
''
},
},
url
:
{
disabled
:
{
type
:
String
,
type
:
Boolean
,
default
:
''
default
:
false
},
},
attr
:
{
url
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
},
},
defaultStyle
:
{
attr
:
{
type
:
Object
,
type
:
String
,
default
:
()
=>
{
default
:
''
return
{}
},
defaultStyle
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
}
},
},
data
()
{
checkObj
:
{
// 校验规则
return
{
type
:
Object
,
dialogVisibleImg
:
false
default
:
()
=>
{
return
{}
}
}
}
},
data
()
{
return
{
dialogVisibleImg
:
false
}
},
methods
:
{
handleLook
()
{
this
.
dialogVisibleImg
=
true
},
},
methods
:
{
upload
(
e
)
{
handleLook
(){
const
file
=
e
.
target
.
files
[
0
]
this
.
dialogVisibleImg
=
true
if
(
this
.
checkObj
&&
Object
.
keys
(
this
.
checkObj
).
length
)
{
},
const
AllImgExt
=
this
.
checkObj
.
fileTypes
upload
(
e
)
{
let
extName
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
const
file
=
e
.
target
.
files
[
0
]
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
const
reader
=
new
FileReader
()
return
this
.
$message
.
error
(
'上传格式不正确'
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
event
=>
{
const
imgFile
=
event
.
target
.
result
const
arrBase64
=
imgFile
.
split
(
','
)
const
base64
=
file
.
name
.
split
(
'.'
).
pop
()
+
'@'
+
arrBase64
[
1
]
this
.
$apis
.
claims
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$emit
(
'uploadSuccess'
,
{
attr
:
this
.
attr
,
url
:
res
})
})
}
}
},
const
size
=
e
.
size
/
1024
/
1024
del
(){
const
maxSize
=
this
.
checkObj
.
maxSize
this
.
$emit
(
'delImage'
,
{
attr
:
this
.
attr
})
if
(
size
>
maxSize
)
{
return
this
.
$message
.
error
(
`上传文件不可超过
${
maxSize
}
M`
)
}
}
const
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
event
=>
{
const
imgFile
=
event
.
target
.
result
const
arrBase64
=
imgFile
.
split
(
','
)
const
base64
=
file
.
name
.
split
(
'.'
).
pop
()
+
'@'
+
arrBase64
[
1
]
this
.
$apis
.
claims
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$emit
(
'uploadSuccess'
,
{
attr
:
this
.
attr
,
url
:
res
})
})
}
}
},
del
()
{
this
.
$emit
(
'delImage'
,
{
attr
:
this
.
attr
})
}
}
}
}
</
script
>
}
<
style
lang=
"scss"
scoped
>
</
script
>
.upload-ctnr
{
<
style
lang=
"scss"
scoped
>
display
:
flex
;
.upload-ctnr
{
.label{
display
:
flex
;
display
:
inline-block
;
.label
{
vertical-align
:
top
;
display
:
inline-block
;
width
:
154px
;
vertical-align
:
top
;
height
:
20px
;
width
:
154px
;
font-size
:
14px
;
height
:
20px
;
color
:
#333333
;
font-size
:
14px
;
text-align
:
right
;
color
:
#333333
;
line-height
:
20px
;
text-align
:
right
;
box-sizing
:
border-box
;
line-height
:
20px
;
box-sizing
:
border-box
;
}
.upload-wrap
{
display
:
inline-flex
;
border
:
1px
dashed
#00000026
;
box-sizing
:
border-box
;
width
:
104px
;
height
:
104px
;
background
:
#0000000
a
;
border-radius
:
4px
;
position
:
relative
;
&:hover
{
.operate
{
display
:
block
;
}
}
.image
{
width
:
100%
;
height
:
100%
;
z-index
:
2
;
position
:
relative
;
}
}
.upload-wrap
{
.add-img
{
width
:
100%
;
height
:
100%
;
cursor
:
pointer
;
display
:
inline-flex
;
display
:
inline-flex
;
border
:
1px
dashed
#00000026
;
flex-direction
:
column
;
box-sizing
:
border-box
;
justify-content
:
center
;
width
:
104px
;
align-items
:
center
;
height
:
104px
;
color
:
#666666
;
background
:
#0000000
a
;
border-radius
:
4px
;
position
:
relative
;
position
:
relative
;
&:hover{
.file
{
.operate{
display
:
block
;
}
}
.image
{
width
:
100%
;
height
:
100%
;
z-index
:
2
;
position
:
relative
;
}
.add-img
{
width
:
100%
;
height
:
100%
;
cursor
:
pointer
;
display
:
inline-flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
color
:
#666666
;
position
:
relative
;
.file{
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
1
;
position
:
absolute
;
opacity
:
0
;
}
.add
{
font-size
:
18px
;
}
p
{
height
:
32px
;
line-height
:
32px
;
}
}
.operate
{
display
:
none
;
position
:
absolute
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
z-index
:
1
;
border-radius
:
4px
;
position
:
absolute
;
z-index
:
5
;
opacity
:
0
;
.btn-wrap{
}
color
:
#fff
;
.add
{
position
:
absolute
;
font-size
:
18px
;
transform
:
translate
(
-50%
,
-50%
);
}
top
:
50%
;
p
{
left
:
50%
;
height
:
32px
;
.del-icon{
line-height
:
32px
;
margin-left
:
12px
;
}
}
}
i
{
.operate
{
font-size
:
16px
;
display
:
none
;
cursor
:
pointer
;
position
:
absolute
;
}
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
border-radius
:
4px
;
z-index
:
5
;
.btn-wrap
{
color
:
#fff
;
position
:
absolute
;
transform
:
translate
(
-50%
,
-50%
);
top
:
50%
;
left
:
50%
;
.del-icon
{
margin-left
:
12px
;
}
i
{
font-size
:
16px
;
cursor
:
pointer
;
}
}
}
}
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
}
</
style
>
src/views/claims/components/report.vue
View file @
d93d101
...
@@ -53,6 +53,7 @@ export default {
...
@@ -53,6 +53,7 @@ export default {
editFormData
:
[],
editFormData
:
[],
showGh
:
false
,
showGh
:
false
,
editRule
:
{
editRule
:
{
caseType
:
[{
required
:
true
,
message
:
'请选择案件类型'
,
trigger
:
'change'
}
],
contractNo
:
[{
required
:
true
,
message
:
'请输入合同号'
,
trigger
:
'change'
}
],
contractNo
:
[{
required
:
true
,
message
:
'请输入合同号'
,
trigger
:
'change'
}
],
reportDate
:
[{
required
:
true
,
message
:
'请选择报案日期'
,
trigger
:
'change'
}
],
reportDate
:
[{
required
:
true
,
message
:
'请选择报案日期'
,
trigger
:
'change'
}
],
reimbursementDate
:
[
reimbursementDate
:
[
...
@@ -122,6 +123,10 @@ export default {
...
@@ -122,6 +123,10 @@ export default {
handlerDetail
()
{
handlerDetail
()
{
this
.
editDetail
=
[
this
.
editDetail
=
[
{
{
label
:
'案件类型'
,
value
:
this
.
editForm
.
caseType
==
0
?
'常规赔案'
:
'内部赔案'
}
,
{
label
:
'报案人'
,
label
:
'报案人'
,
value
:
this
.
editForm
.
reporterName
value
:
this
.
editForm
.
reporterName
}
,
}
,
...
@@ -171,6 +176,23 @@ export default {
...
@@ -171,6 +176,23 @@ export default {
const
isDisabled
=
this
.
pageType
==
2
?
true
:
false
const
isDisabled
=
this
.
pageType
==
2
?
true
:
false
const
dj
=
[
const
dj
=
[
{
{
label
:
'案件类型'
,
name
:
'caseType'
,
type
:
'radio'
,
optionList
:
[
{
confId
:
0
,
confName
:
'常规赔案'
}
,
{
confId
:
1
,
confName
:
'内部赔案'
}
],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
}
,
{
label
:
'合同号'
,
label
:
'合同号'
,
name
:
'contractNo'
,
name
:
'contractNo'
,
type
:
'input'
,
type
:
'input'
,
...
...
src/views/claims/ghIndex.vue
View file @
d93d101
...
@@ -116,10 +116,10 @@ import followPop from './components/followPop'
...
@@ -116,10 +116,10 @@ import followPop from './components/followPop'
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
//服务状态:0-待提交国任 1-待支付 2-校验不通过 3-支付成功 4-支付失败
//服务状态:0-待提交国任 1-待支付 2-校验不通过 3-支付成功 4-支付失败
const
statusList
=
[
const
statusList
=
[
{
//
{
confId
:
''
,
//
confId: '',
confName
:
'全部'
//
confName: '全部'
},
//
},
{
{
confId
:
0
,
confId
:
0
,
confName
:
'待提交国任'
confName
:
'待提交国任'
...
@@ -434,7 +434,7 @@ export default {
...
@@ -434,7 +434,7 @@ export default {
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
searchForm
:
{
searchForm
:
{
searchText
:
''
,
searchText
:
''
,
status
:
''
,
status
List
:
[]
,
commitDate
:
''
,
commitDate
:
''
,
shopDate
:
''
,
shopDate
:
''
,
merchantUpdatedDate
:
''
,
merchantUpdatedDate
:
''
,
...
@@ -454,10 +454,11 @@ export default {
...
@@ -454,10 +454,11 @@ export default {
},
},
{
{
label
:
'服务状态'
,
label
:
'服务状态'
,
name
:
'status'
,
name
:
'status
List
'
,
type
:
'select'
,
type
:
'select'
,
isClear
:
true
,
isClear
:
true
,
optionList
:
statusList
,
optionList
:
statusList
,
multiple
:
true
,
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
optionLabel
:
'confName'
},
},
...
@@ -982,7 +983,7 @@ export default {
...
@@ -982,7 +983,7 @@ export default {
handleRestFn
()
{
handleRestFn
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
searchText
:
''
,
searchText
:
''
,
status
:
''
,
status
List
:
[]
,
commitDate
:
''
,
commitDate
:
''
,
shopDate
:
''
,
shopDate
:
''
,
merchantUpdatedDate
:
''
,
merchantUpdatedDate
:
''
,
...
...
src/views/claims/index.vue
View file @
d93d101
...
@@ -43,10 +43,10 @@
...
@@ -43,10 +43,10 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
const
statusList
=
[
const
statusList
=
[
{
//
{
confId
:
''
,
//
confId: '',
confName
:
'全部'
//
confName: '全部'
},
//
},
{
{
confId
:
0
,
confId
:
0
,
confName
:
'待提交国任'
confName
:
'待提交国任'
...
@@ -217,7 +217,7 @@ export default {
...
@@ -217,7 +217,7 @@ export default {
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
searchForm
:
{
searchForm
:
{
searchText
:
''
,
searchText
:
''
,
status
:
''
,
status
List
:
[]
,
commitDate
:
''
commitDate
:
''
},
},
searchParams
:
{},
searchParams
:
{},
...
@@ -232,10 +232,11 @@ export default {
...
@@ -232,10 +232,11 @@ export default {
},
},
{
{
label
:
'服务状态'
,
label
:
'服务状态'
,
name
:
'status'
,
name
:
'status
List
'
,
type
:
'select'
,
type
:
'select'
,
isClear
:
true
,
isClear
:
true
,
optionList
:
statusList
,
optionList
:
statusList
,
multiple
:
true
,
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
optionLabel
:
'confName'
},
},
...
@@ -568,7 +569,7 @@ export default {
...
@@ -568,7 +569,7 @@ export default {
handleRestFn
()
{
handleRestFn
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
searchText
:
''
,
searchText
:
''
,
status
:
''
,
status
List
:
[]
,
commitDate
:
''
commitDate
:
''
}
}
this
.
getTableData
()
this
.
getTableData
()
...
...
src/views/claims/order.vue
View file @
d93d101
...
@@ -86,6 +86,7 @@ export default {
...
@@ -86,6 +86,7 @@ export default {
routeInfo
:
null
,
routeInfo
:
null
,
isGH
:
false
,
isGH
:
false
,
editForm
:
{
editForm
:
{
caseType
:
0
,
// 默认常规赔案
contractNo
:
''
,
contractNo
:
''
,
reportDate
:
''
,
reportDate
:
''
,
reimbursementDate
:
''
,
reimbursementDate
:
''
,
...
...
src/views/config/addConfig.vue
View file @
d93d101
...
@@ -26,6 +26,30 @@
...
@@ -26,6 +26,30 @@
<el-radio
:label=
"2"
>
驻店零售
</el-radio>
<el-radio
:label=
"2"
>
驻店零售
</el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
class=
"contracting-parties"
v-if=
"!showGh"
>
<label
for=
""
class=
"label"
>
合同主体:
</label>
<el-radio-group
v-model=
"contractObj.contractSubjectType"
>
<div
v-for=
"(item, index) in contractSubjectTypeList"
:key=
"index"
class=
"contract_type_item"
>
<el-radio
:label=
"item.label"
>
{{ item.value }}
</el-radio>
<div
v-if=
"contractObj.contractSubjectType == item.label"
class=
"contract_type_content"
>
<el-form-item
size=
"small"
label-width=
"154px"
label=
"主体名称:"
v-if=
"contractObj.contractSubjectType == 3"
>
<el-input
v-model=
"contractObj['typeData'][index].contractSubjectName"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"特别声明:"
label-width=
"154px"
>
<el-input
type=
"textarea"
placeholder=
"请输入"
@
input=
"(event) => handleInput(event, index)"
v-model=
"contractObj['typeData'][index].contractImportantClause"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"合同Logo:"
label-width=
"154px"
>
<Upload
@
uploadSuccess=
"(event) => uploadSuccess(event, index)"
:checkObj=
"checkObj"
@
delImage=
"(event) => delImage(event, index)"
class=
"upload"
:attr=
"'contractLogoUrl'"
:url=
"contractObj['typeData'][index]['contractLogoUrl']"
></Upload>
<div
class=
"upload-tip"
>
图片格式为jpg,jpeg,png,大小10M以内
</div>
</el-form-item>
<el-form-item
size=
"small"
label=
"合同章:"
label-width=
"154px"
>
<Upload
@
uploadSuccess=
"(event) => uploadSuccess(event, index)"
:checkObj=
"checkObj"
@
delImage=
"(event) => delImage(event, index)"
class=
"upload"
:attr=
"'contractSealUrl'"
:url=
"contractObj['typeData'][index]['contractSealUrl']"
></Upload>
<div
class=
"upload-tip"
>
图片格式为jpg,jpeg,png,大小10M以内
</div>
</el-form-item>
</div>
</div>
</el-radio-group>
</div>
<
template
v-if=
"!showGh"
>
<
template
v-if=
"!showGh"
>
<el-form-item
size=
"small"
label=
"配置可见产品及产品属性"
></el-form-item>
<el-form-item
size=
"small"
label=
"配置可见产品及产品属性"
></el-form-item>
<el-form-item>
<el-form-item>
...
@@ -132,6 +156,7 @@
...
@@ -132,6 +156,7 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
relateStoreDialog
from
'@/components/relateStoreDialog'
import
relateStoreDialog
from
'@/components/relateStoreDialog'
import
Upload
from
'@/components/Upload'
const
theftOptions
=
[
'盗抢卡输入'
]
const
theftOptions
=
[
'盗抢卡输入'
]
const
vehicleOptions
=
[
'全损卡输入'
]
const
vehicleOptions
=
[
'全损卡输入'
]
const
tyreOptions
=
[
'轮胎卡输入'
]
const
tyreOptions
=
[
'轮胎卡输入'
]
...
@@ -141,9 +166,9 @@ export default {
...
@@ -141,9 +166,9 @@ export default {
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
robberyServerList
:[],
robberyServerList
:
[],
vehicleServerList
:[],
vehicleServerList
:
[],
configTitle
:
''
,
configTitle
:
''
,
selectedTable
:
false
,
selectedTable
:
false
,
checkPosition
:
false
,
checkPosition
:
false
,
saleMode
:
1
,
saleMode
:
1
,
...
@@ -194,16 +219,65 @@ export default {
...
@@ -194,16 +219,65 @@ export default {
collisions
:
collisionOptions
,
collisions
:
collisionOptions
,
collisionTerminate
:
false
,
collisionTerminate
:
false
,
costPrice
:
false
,
//选择门店成本
costPrice
:
false
,
//选择门店成本
showGh
:
false
,
showGh
:
false
,
newPackageList
:
[]
newPackageList
:
[],
contractSubjectTypeList
:
[
{
label
:
1
,
value
:
'深圳广联数科科技有限公司'
,
},
{
label
:
2
,
value
:
'深圳市嘀加智慧云服务有限公司'
},
{
label
:
3
,
value
:
'自定义'
},
],
contractObj
:
{
contractSubjectType
:
''
,
typeData
:
[]
},
checkobj
:
{
fileTypes
:
'.png|.jpg|.jpeg'
,
maxSize
:
10
}
}
}
},
},
components
:
{
components
:
{
relateStoreDialog
relateStoreDialog
,
Upload
},
watch
:
{
saleMode
:
{
deep
:
true
,
handler
(
val
)
{
if
(
val
==
1
)
{
this
.
$set
(
this
.
contractObj
,
'contractSubjectType'
,
1
)
}
else
if
(
val
==
2
)
{
this
.
$set
(
this
.
contractObj
,
'contractSubjectType'
,
2
)
}
}
},
'contractObj.contractSubjectType'
:
{
deep
:
true
,
handler
(
val
)
{
if
((
val
==
3
||
val
==
2
))
{
if
(
!
this
.
contractObj
.
typeData
[
val
-
1
].
contractImportantClause
)
this
.
$set
(
this
.
contractObj
.
typeData
[
val
-
1
],
'contractImportantClause'
,
'本合同项下的服务已向保险公司投保'
)
}
let
contractSubjectName
=
val
==
1
?
'深圳广联数科科技有限公司'
:
val
==
2
?
'深圳市嘀加智慧云服务有限公司'
:
''
this
.
$set
(
this
.
contractObj
.
typeData
[
val
-
1
],
'contractSubjectName'
,
contractSubjectName
)
}
}
},
},
created
(){
created
(){
this
.
diffHost
()
this
.
diffHost
()
this
.
initContractObj
()
},
},
mounted
()
{
mounted
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
...
@@ -234,6 +308,7 @@ export default {
...
@@ -234,6 +308,7 @@ export default {
this
.
againstCollision
=
[
'碰撞卡输入'
]
this
.
againstCollision
=
[
'碰撞卡输入'
]
this
.
collisionRadio
=
'1'
this
.
collisionRadio
=
'1'
this
.
vehicleRadio
=
'1'
this
.
vehicleRadio
=
'1'
this
.
contractObj
.
contractSubjectType
=
1
// 默认是批发 选中深圳广联数科科技有限公司
}
}
this
.
getStoreConfig
()
this
.
getStoreConfig
()
},
},
...
@@ -312,6 +387,10 @@ export default {
...
@@ -312,6 +387,10 @@ export default {
// }
// }
// this.data = storeArr
// this.data = storeArr
// },
// },
handleInput
(
e
,
index
)
{
this
.
$set
(
this
.
contractObj
.
typeData
[
index
],
'contractImportantClause'
,
e
)
this
.
$forceUpdate
()
},
getConfig
(
merchantId
)
{
getConfig
(
merchantId
)
{
let
para
=
{
let
para
=
{
merchantId
merchantId
...
@@ -383,6 +462,14 @@ export default {
...
@@ -383,6 +462,14 @@ export default {
this
.
first
=
!!
arrs
[
i
]?.
isChecked
this
.
first
=
!!
arrs
[
i
]?.
isChecked
}
}
}
}
const
contractSubjectType
=
res
.
contractSubjectType
==
0
?
3
:
res
.
contractSubjectName
==
'深圳市嘀加智慧云服务有限公司'
?
2
:
res
.
contractSubjectName
==
'深圳市嘀加智慧云服务有限公司'
?
1
:
res
.
saleMode
==
1
?
1
:
2
// 主体类型 0自定义(将值做转换,方便交互处理)
this
.
contractObj
.
contractSubjectType
=
contractSubjectType
this
.
contractObj
.
typeData
[
contractSubjectType
-
1
]
=
{
contractSubjectName
:
res
.
contractSubjectName
,
contractImportantClause
:
res
.
contractImportantClause
,
contractLogoUrl
:
res
.
contractLogoUrl
,
contractSealUrl
:
res
.
contractSealUrl
}
})
})
},
},
onSubmit
()
{
onSubmit
()
{
...
@@ -453,13 +540,26 @@ export default {
...
@@ -453,13 +540,26 @@ export default {
params
.
push
({
packageCode
,
servicePeriod
:
packageServicePeriod
,
cardName
})
params
.
push
({
packageCode
,
servicePeriod
:
packageServicePeriod
,
cardName
})
}
}
})
})
if
(
!
this
.
contractObj
.
typeData
[
this
.
contractObj
.
contractSubjectType
-
1
].
contractSubjectName
)
{
return
this
.
$message
.
error
(
'请输入合同主体名称'
)
}
let
targetParams
=
{
let
targetParams
=
{
openCostPrice
:
this
.
costPrice
?
1
:
0
,
openCostPrice
:
this
.
costPrice
?
1
:
0
,
createDetailRequests
:
params
,
createDetailRequests
:
params
,
saleMode
:
this
.
saleMode
saleMode
:
this
.
saleMode
,
contractSubjectName
:
this
.
contractObj
.
typeData
[
this
.
contractObj
.
contractSubjectType
-
1
].
contractSubjectName
,
contractSubjectType
:
this
.
contractObj
.
contractSubjectType
==
3
?
0
:
undefined
,
contractImportantClause
:
this
.
contractObj
.
typeData
[
this
.
contractObj
.
contractSubjectType
-
1
].
contractImportantClause
,
contractLogoUrl
:
this
.
contractObj
.
typeData
[
this
.
contractObj
.
contractSubjectType
-
1
].
contractLogoUrl
,
contractSealUrl
:
this
.
contractObj
.
typeData
[
this
.
contractObj
.
contractSubjectType
-
1
].
contractSealUrl
}
}
if
(
this
.
showGh
){
if
(
this
.
showGh
){
delete
targetParams
.
createDetailRequests
delete
targetParams
.
createDetailRequests
delete
targetParams
.
contractSubjectName
delete
targetParams
.
contractSubjectType
delete
targetParams
.
contractImportantClause
delete
targetParams
.
contractLogoUrl
delete
targetParams
.
contractSealUrl
}
else
{
}
else
{
delete
targetParams
.
openCostPrice
delete
targetParams
.
openCostPrice
targetParams
.
checkPosition
=
this
.
checkPosition
?
0
:
1
targetParams
.
checkPosition
=
this
.
checkPosition
?
0
:
1
...
@@ -575,6 +675,20 @@ export default {
...
@@ -575,6 +675,20 @@ export default {
},
},
checkCostPrice
(){
checkCostPrice
(){
},
uploadSuccess
(
e
,
index
)
{
this
.
$set
(
this
.
contractObj
?.
typeData
[
index
],
e
.
attr
,
e
.
url
)
this
.
$forceUpdate
()
},
delImage
(
e
,
index
)
{
this
.
$set
(
this
.
contractObj
?.
typeData
[
index
],
e
.
attr
,
''
)
this
.
$forceUpdate
()
},
// 初始化合同主体数据
initContractObj
()
{
this
.
contractSubjectTypeList
.
forEach
(
el
=>
{
this
.
contractObj
.
typeData
.
push
({
contractSubjectName
:
''
,
contractImportantClause
:
''
,
contractLogoUrl
:
''
,
contractSealUrl
:
''
})
})
}
}
}
}
}
}
...
@@ -708,6 +822,62 @@ export default {
...
@@ -708,6 +822,62 @@ export default {
}
}
}
}
.contracting-parties
{
display
:
flex
;
align-items
:
flex-start
;
margin
:
12px
0
0
;
.label
{
display
:
inline-block
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#333333
;
text-align
:
right
;
&::before
{
content
:
'*'
;
color
:
#f56c6c
;
margin-right
:
4px
;
}
}
.contract_type_item
{
margin-bottom
:
12px
;
.contract_type_content
{
width
:
700px
;
padding
:
20px
20px
1px
;
background
:
#f9f9f9
;
margin
:
16px
0
;
.upload-tip
{
color
:
#999999
;
}
}
}
}
.contracting-parties
.contract_type_item
.contract_type_content
/
deep
/
.el-form-item
{
margin-bottom
:
20px
;
}
.contracting-parties
.contract_type_item
.contract_type_content
/
deep
/
.el-form-item__label
{
text-align
:
right
;
color
:
#333333
;
font-size
:
14px
;
font-weight
:
400
;
}
.contracting-parties
.contract_type_item
.contract_type_content
/
deep
/
.el-input--small
{
width
:
432px
;
margin-left
:
0
!important
;
}
.contracting-parties
.contract_type_item
.contract_type_content
/
deep
/
.el-form-item__content
{
.upload-ctnr
{
margin-left
:
0
!important
;
}
.upload-tip
{
color
:
#999999
;
margin-left
:
0
!important
;
}
}
.special-config
{
.special-config
{
margin-bottom
:
0
!important
;
margin-bottom
:
0
!important
;
}
}
...
...
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