Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
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
xugong
hls-xcmg-vue-app
Commits
4c3cc414
Commit
4c3cc414
authored
Jan 09, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
fd4fc329
Pipeline
#4538
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
add-car.vue
src/pages/contractStart/add-car.vue
+31
-4
No files found.
src/pages/contractStart/add-car.vue
View file @
4c3cc414
...
...
@@ -156,7 +156,7 @@
v-for=
"(item,index) in equip"
:key=
"index"
class=
"equipment"
@
click=
"downNum = true;getRent(item.contract_id)"
@
click=
"downNum = true;getRent(item.contract_id
,item.contract_lease_item_id
)"
>
<div
class=
"left"
>
<span>
...
...
@@ -245,6 +245,7 @@ export default {
showDate
:
''
,
flag
:
false
,
isUpload
:
false
,
// 是否上传
contract_lease_item_id
:
''
,
upload_list
:
[],
// 上传列表
productLine
:
[
{
...
...
@@ -376,6 +377,30 @@ export default {
})
},
methods
:
{
getImg
(
id
)
{
// 获取合格证
let
vm
=
this
let
randomString
=
Math
.
floor
(
Math
.
random
()
*
21
)
let
url
=
process
.
env
.
basePath
+
'app_attment_query'
+
'&index'
+
`'
${
randomString
}
'`
let
param
=
{
'master'
:
{
'source_type'
:
'CON_CONTRACT_LEASE_ITEM'
,
'pkvalue'
:
id
,
},
}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
if
(
res
.
result
===
'S'
)
{
if
(
res
.
info
)
{
vm
.
vehicleImg
=
process
.
env
.
filePath
+
'attachment_id='
+
res
.
info
.
attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// ocr识别入口
ocrShow
()
{
let
vm
=
this
...
...
@@ -530,10 +555,10 @@ export default {
let
vm
=
this
let
list
=
[]
let
obj
=
{
pkvalue
:
'contract_lease_item_id'
,
pkvalue
:
vm
.
contract_lease_item_id
,
source_type
:
'CON_CONTRACT_LEASE_ITEM'
,
picture
:
''
,
check_id
:
''
,
check_id
:
vm
.
contract_lease_item_id
,
filePath
:
vm
.
vehicleImg
,
attachment_id
:
''
,
user_id
:
1
,
...
...
@@ -574,7 +599,7 @@ export default {
},
})
},
getRent
(
e
)
{
getRent
(
e
,
id
)
{
let
vm
=
this
for
(
let
i
in
vm
.
info
)
{
vm
.
info
[
i
]
=
''
...
...
@@ -589,6 +614,8 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
info
,
res
.
info
)
vm
.
getImg
(
id
)
vm
.
contract_lease_item_id
=
id
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
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